configure 601 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for vcmi VERSION.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  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. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  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); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell [email protected] about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # 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
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME='vcmi'
  647. PACKAGE_TARNAME='vcmi'
  648. PACKAGE_VERSION='VERSION'
  649. PACKAGE_STRING='vcmi VERSION'
  650. PACKAGE_BUGREPORT=''
  651. # Factoring default headers for most tests.
  652. ac_includes_default="\
  653. #include <stdio.h>
  654. #ifdef HAVE_SYS_TYPES_H
  655. # include <sys/types.h>
  656. #endif
  657. #ifdef HAVE_SYS_STAT_H
  658. # include <sys/stat.h>
  659. #endif
  660. #ifdef STDC_HEADERS
  661. # include <stdlib.h>
  662. # include <stddef.h>
  663. #else
  664. # ifdef HAVE_STDLIB_H
  665. # include <stdlib.h>
  666. # endif
  667. #endif
  668. #ifdef HAVE_STRING_H
  669. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  670. # include <memory.h>
  671. # endif
  672. # include <string.h>
  673. #endif
  674. #ifdef HAVE_STRINGS_H
  675. # include <strings.h>
  676. #endif
  677. #ifdef HAVE_INTTYPES_H
  678. # include <inttypes.h>
  679. #endif
  680. #ifdef HAVE_STDINT_H
  681. # include <stdint.h>
  682. #endif
  683. #ifdef HAVE_UNISTD_H
  684. # include <unistd.h>
  685. #endif"
  686. ac_subst_vars='LTLIBOBJS
  687. LIBOBJS
  688. FFMPEG_CXXFLAGS
  689. FFMPEG_LIBS
  690. SDL_CXXFLAGS
  691. SDL_LIBS
  692. HAVE_SDL_CONFIG
  693. BOOST_IOSTREAMS_LIB
  694. BOOST_THREAD_LIB
  695. BOOST_FILESYSTEM_LIB
  696. BOOST_SYSTEM_LIB
  697. BOOST_LDFLAGS
  698. BOOST_CPPFLAGS
  699. CXXCPP
  700. CPP
  701. OTOOL64
  702. OTOOL
  703. LIPO
  704. NMEDIT
  705. DSYMUTIL
  706. lt_ECHO
  707. RANLIB
  708. AR
  709. OBJDUMP
  710. LN_S
  711. NM
  712. ac_ct_DUMPBIN
  713. DUMPBIN
  714. LD
  715. FGREP
  716. EGREP
  717. GREP
  718. SED
  719. am__fastdepCC_FALSE
  720. am__fastdepCC_TRUE
  721. CCDEPMODE
  722. ac_ct_CC
  723. CFLAGS
  724. CC
  725. host_os
  726. host_vendor
  727. host_cpu
  728. host
  729. build_os
  730. build_vendor
  731. build_cpu
  732. build
  733. LIBTOOL
  734. am__fastdepCXX_FALSE
  735. am__fastdepCXX_TRUE
  736. CXXDEPMODE
  737. AMDEPBACKSLASH
  738. AMDEP_FALSE
  739. AMDEP_TRUE
  740. am__quote
  741. am__include
  742. DEPDIR
  743. OBJEXT
  744. EXEEXT
  745. ac_ct_CXX
  746. CPPFLAGS
  747. LDFLAGS
  748. CXXFLAGS
  749. CXX
  750. am__untar
  751. am__tar
  752. AMTAR
  753. am__leading_dot
  754. SET_MAKE
  755. AWK
  756. mkdir_p
  757. MKDIR_P
  758. INSTALL_STRIP_PROGRAM
  759. STRIP
  760. install_sh
  761. MAKEINFO
  762. AUTOHEADER
  763. AUTOMAKE
  764. AUTOCONF
  765. ACLOCAL
  766. VERSION
  767. PACKAGE
  768. CYGPATH_W
  769. am__isrc
  770. INSTALL_DATA
  771. INSTALL_SCRIPT
  772. INSTALL_PROGRAM
  773. target_alias
  774. host_alias
  775. build_alias
  776. LIBS
  777. ECHO_T
  778. ECHO_N
  779. ECHO_C
  780. DEFS
  781. mandir
  782. localedir
  783. libdir
  784. psdir
  785. pdfdir
  786. dvidir
  787. htmldir
  788. infodir
  789. docdir
  790. oldincludedir
  791. includedir
  792. localstatedir
  793. sharedstatedir
  794. sysconfdir
  795. datadir
  796. datarootdir
  797. libexecdir
  798. sbindir
  799. bindir
  800. program_transform_name
  801. prefix
  802. exec_prefix
  803. PACKAGE_BUGREPORT
  804. PACKAGE_STRING
  805. PACKAGE_VERSION
  806. PACKAGE_TARNAME
  807. PACKAGE_NAME
  808. PATH_SEPARATOR
  809. SHELL'
  810. ac_subst_files=''
  811. ac_user_opts='
  812. enable_option_checking
  813. enable_dependency_tracking
  814. enable_shared
  815. enable_static
  816. with_pic
  817. enable_fast_install
  818. with_gnu_ld
  819. enable_libtool_lock
  820. enable_debug
  821. with_boost
  822. with_boost_libdir
  823. with_boost_system
  824. with_boost_filesystem
  825. with_boost_thread
  826. with_boost_iostreams
  827. '
  828. ac_precious_vars='build_alias
  829. host_alias
  830. target_alias
  831. CXX
  832. CXXFLAGS
  833. LDFLAGS
  834. LIBS
  835. CPPFLAGS
  836. CCC
  837. CC
  838. CFLAGS
  839. CPP
  840. CXXCPP'
  841. # Initialize some variables set by options.
  842. ac_init_help=
  843. ac_init_version=false
  844. ac_unrecognized_opts=
  845. ac_unrecognized_sep=
  846. # The variables have the same names as the options, with
  847. # dashes changed to underlines.
  848. cache_file=/dev/null
  849. exec_prefix=NONE
  850. no_create=
  851. no_recursion=
  852. prefix=NONE
  853. program_prefix=NONE
  854. program_suffix=NONE
  855. program_transform_name=s,x,x,
  856. silent=
  857. site=
  858. srcdir=
  859. verbose=
  860. x_includes=NONE
  861. x_libraries=NONE
  862. # Installation directory options.
  863. # These are left unexpanded so users can "make install exec_prefix=/foo"
  864. # and all the variables that are supposed to be based on exec_prefix
  865. # by default will actually change.
  866. # Use braces instead of parens because sh, perl, etc. also accept them.
  867. # (The list follows the same order as the GNU Coding Standards.)
  868. bindir='${exec_prefix}/bin'
  869. sbindir='${exec_prefix}/sbin'
  870. libexecdir='${exec_prefix}/libexec'
  871. datarootdir='${prefix}/share'
  872. datadir='${datarootdir}'
  873. sysconfdir='${prefix}/etc'
  874. sharedstatedir='${prefix}/com'
  875. localstatedir='${prefix}/var'
  876. includedir='${prefix}/include'
  877. oldincludedir='/usr/include'
  878. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  879. infodir='${datarootdir}/info'
  880. htmldir='${docdir}'
  881. dvidir='${docdir}'
  882. pdfdir='${docdir}'
  883. psdir='${docdir}'
  884. libdir='${exec_prefix}/lib'
  885. localedir='${datarootdir}/locale'
  886. mandir='${datarootdir}/man'
  887. ac_prev=
  888. ac_dashdash=
  889. for ac_option
  890. do
  891. # If the previous option needs an argument, assign it.
  892. if test -n "$ac_prev"; then
  893. eval $ac_prev=\$ac_option
  894. ac_prev=
  895. continue
  896. fi
  897. case $ac_option in
  898. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  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_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  936. { (exit 1); exit 1; }; }
  937. ac_useropt_orig=$ac_useropt
  938. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  939. case $ac_user_opts in
  940. *"
  941. "enable_$ac_useropt"
  942. "*) ;;
  943. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  944. ac_unrecognized_sep=', ';;
  945. esac
  946. eval enable_$ac_useropt=no ;;
  947. -docdir | --docdir | --docdi | --doc | --do)
  948. ac_prev=docdir ;;
  949. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  950. docdir=$ac_optarg ;;
  951. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  952. ac_prev=dvidir ;;
  953. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  954. dvidir=$ac_optarg ;;
  955. -enable-* | --enable-*)
  956. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  957. # Reject names that are not valid shell variable names.
  958. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  959. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  960. { (exit 1); exit 1; }; }
  961. ac_useropt_orig=$ac_useropt
  962. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  963. case $ac_user_opts in
  964. *"
  965. "enable_$ac_useropt"
  966. "*) ;;
  967. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  968. ac_unrecognized_sep=', ';;
  969. esac
  970. eval enable_$ac_useropt=\$ac_optarg ;;
  971. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  972. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  973. | --exec | --exe | --ex)
  974. ac_prev=exec_prefix ;;
  975. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  976. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  977. | --exec=* | --exe=* | --ex=*)
  978. exec_prefix=$ac_optarg ;;
  979. -gas | --gas | --ga | --g)
  980. # Obsolete; use --with-gas.
  981. with_gas=yes ;;
  982. -help | --help | --hel | --he | -h)
  983. ac_init_help=long ;;
  984. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  985. ac_init_help=recursive ;;
  986. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  987. ac_init_help=short ;;
  988. -host | --host | --hos | --ho)
  989. ac_prev=host_alias ;;
  990. -host=* | --host=* | --hos=* | --ho=*)
  991. host_alias=$ac_optarg ;;
  992. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  993. ac_prev=htmldir ;;
  994. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  995. | --ht=*)
  996. htmldir=$ac_optarg ;;
  997. -includedir | --includedir | --includedi | --included | --include \
  998. | --includ | --inclu | --incl | --inc)
  999. ac_prev=includedir ;;
  1000. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1001. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1002. includedir=$ac_optarg ;;
  1003. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1004. ac_prev=infodir ;;
  1005. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1006. infodir=$ac_optarg ;;
  1007. -libdir | --libdir | --libdi | --libd)
  1008. ac_prev=libdir ;;
  1009. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1010. libdir=$ac_optarg ;;
  1011. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1012. | --libexe | --libex | --libe)
  1013. ac_prev=libexecdir ;;
  1014. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1015. | --libexe=* | --libex=* | --libe=*)
  1016. libexecdir=$ac_optarg ;;
  1017. -localedir | --localedir | --localedi | --localed | --locale)
  1018. ac_prev=localedir ;;
  1019. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1020. localedir=$ac_optarg ;;
  1021. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1022. | --localstate | --localstat | --localsta | --localst | --locals)
  1023. ac_prev=localstatedir ;;
  1024. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1025. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1026. localstatedir=$ac_optarg ;;
  1027. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1028. ac_prev=mandir ;;
  1029. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1030. mandir=$ac_optarg ;;
  1031. -nfp | --nfp | --nf)
  1032. # Obsolete; use --without-fp.
  1033. with_fp=no ;;
  1034. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1035. | --no-cr | --no-c | -n)
  1036. no_create=yes ;;
  1037. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1038. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1039. no_recursion=yes ;;
  1040. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1041. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1042. | --oldin | --oldi | --old | --ol | --o)
  1043. ac_prev=oldincludedir ;;
  1044. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1045. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1046. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1047. oldincludedir=$ac_optarg ;;
  1048. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1049. ac_prev=prefix ;;
  1050. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1051. prefix=$ac_optarg ;;
  1052. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1053. | --program-pre | --program-pr | --program-p)
  1054. ac_prev=program_prefix ;;
  1055. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1056. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1057. program_prefix=$ac_optarg ;;
  1058. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1059. | --program-suf | --program-su | --program-s)
  1060. ac_prev=program_suffix ;;
  1061. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1062. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1063. program_suffix=$ac_optarg ;;
  1064. -program-transform-name | --program-transform-name \
  1065. | --program-transform-nam | --program-transform-na \
  1066. | --program-transform-n | --program-transform- \
  1067. | --program-transform | --program-transfor \
  1068. | --program-transfo | --program-transf \
  1069. | --program-trans | --program-tran \
  1070. | --progr-tra | --program-tr | --program-t)
  1071. ac_prev=program_transform_name ;;
  1072. -program-transform-name=* | --program-transform-name=* \
  1073. | --program-transform-nam=* | --program-transform-na=* \
  1074. | --program-transform-n=* | --program-transform-=* \
  1075. | --program-transform=* | --program-transfor=* \
  1076. | --program-transfo=* | --program-transf=* \
  1077. | --program-trans=* | --program-tran=* \
  1078. | --progr-tra=* | --program-tr=* | --program-t=*)
  1079. program_transform_name=$ac_optarg ;;
  1080. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1081. ac_prev=pdfdir ;;
  1082. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1083. pdfdir=$ac_optarg ;;
  1084. -psdir | --psdir | --psdi | --psd | --ps)
  1085. ac_prev=psdir ;;
  1086. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1087. psdir=$ac_optarg ;;
  1088. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1089. | -silent | --silent | --silen | --sile | --sil)
  1090. silent=yes ;;
  1091. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1092. ac_prev=sbindir ;;
  1093. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1094. | --sbi=* | --sb=*)
  1095. sbindir=$ac_optarg ;;
  1096. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1097. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1098. | --sharedst | --shareds | --shared | --share | --shar \
  1099. | --sha | --sh)
  1100. ac_prev=sharedstatedir ;;
  1101. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1102. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1103. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1104. | --sha=* | --sh=*)
  1105. sharedstatedir=$ac_optarg ;;
  1106. -site | --site | --sit)
  1107. ac_prev=site ;;
  1108. -site=* | --site=* | --sit=*)
  1109. site=$ac_optarg ;;
  1110. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1111. ac_prev=srcdir ;;
  1112. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1113. srcdir=$ac_optarg ;;
  1114. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1115. | --syscon | --sysco | --sysc | --sys | --sy)
  1116. ac_prev=sysconfdir ;;
  1117. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1118. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1119. sysconfdir=$ac_optarg ;;
  1120. -target | --target | --targe | --targ | --tar | --ta | --t)
  1121. ac_prev=target_alias ;;
  1122. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1123. target_alias=$ac_optarg ;;
  1124. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1125. verbose=yes ;;
  1126. -version | --version | --versio | --versi | --vers | -V)
  1127. ac_init_version=: ;;
  1128. -with-* | --with-*)
  1129. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1130. # Reject names that are not valid shell variable names.
  1131. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1132. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1133. { (exit 1); exit 1; }; }
  1134. ac_useropt_orig=$ac_useropt
  1135. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1136. case $ac_user_opts in
  1137. *"
  1138. "with_$ac_useropt"
  1139. "*) ;;
  1140. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1141. ac_unrecognized_sep=', ';;
  1142. esac
  1143. eval with_$ac_useropt=\$ac_optarg ;;
  1144. -without-* | --without-*)
  1145. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1146. # Reject names that are not valid shell variable names.
  1147. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1148. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1149. { (exit 1); exit 1; }; }
  1150. ac_useropt_orig=$ac_useropt
  1151. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1152. case $ac_user_opts in
  1153. *"
  1154. "with_$ac_useropt"
  1155. "*) ;;
  1156. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1157. ac_unrecognized_sep=', ';;
  1158. esac
  1159. eval with_$ac_useropt=no ;;
  1160. --x)
  1161. # Obsolete; use --with-x.
  1162. with_x=yes ;;
  1163. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1164. | --x-incl | --x-inc | --x-in | --x-i)
  1165. ac_prev=x_includes ;;
  1166. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1167. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1168. x_includes=$ac_optarg ;;
  1169. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1170. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1171. ac_prev=x_libraries ;;
  1172. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1173. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1174. x_libraries=$ac_optarg ;;
  1175. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1176. Try \`$0 --help' for more information." >&2
  1177. { (exit 1); exit 1; }; }
  1178. ;;
  1179. *=*)
  1180. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1181. # Reject names that are not valid shell variable names.
  1182. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1183. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1184. { (exit 1); exit 1; }; }
  1185. eval $ac_envvar=\$ac_optarg
  1186. export $ac_envvar ;;
  1187. *)
  1188. # FIXME: should be removed in autoconf 3.0.
  1189. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1190. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1191. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1192. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1193. ;;
  1194. esac
  1195. done
  1196. if test -n "$ac_prev"; then
  1197. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1198. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1199. { (exit 1); exit 1; }; }
  1200. fi
  1201. if test -n "$ac_unrecognized_opts"; then
  1202. case $enable_option_checking in
  1203. no) ;;
  1204. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1205. { (exit 1); exit 1; }; } ;;
  1206. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1207. esac
  1208. fi
  1209. # Check all directory arguments for consistency.
  1210. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1211. datadir sysconfdir sharedstatedir localstatedir includedir \
  1212. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1213. libdir localedir mandir
  1214. do
  1215. eval ac_val=\$$ac_var
  1216. # Remove trailing slashes.
  1217. case $ac_val in
  1218. */ )
  1219. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1220. eval $ac_var=\$ac_val;;
  1221. esac
  1222. # Be sure to have absolute directory names.
  1223. case $ac_val in
  1224. [\\/$]* | ?:[\\/]* ) continue;;
  1225. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1226. esac
  1227. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1228. { (exit 1); exit 1; }; }
  1229. done
  1230. # There might be people who depend on the old broken behavior: `$host'
  1231. # used to hold the argument of --host etc.
  1232. # FIXME: To remove some day.
  1233. build=$build_alias
  1234. host=$host_alias
  1235. target=$target_alias
  1236. # FIXME: To remove some day.
  1237. if test "x$host_alias" != x; then
  1238. if test "x$build_alias" = x; then
  1239. cross_compiling=maybe
  1240. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1241. If a cross compiler is detected then cross compile mode will be used." >&2
  1242. elif test "x$build_alias" != "x$host_alias"; then
  1243. cross_compiling=yes
  1244. fi
  1245. fi
  1246. ac_tool_prefix=
  1247. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1248. test "$silent" = yes && exec 6>/dev/null
  1249. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1250. ac_ls_di=`ls -di .` &&
  1251. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1252. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1253. { (exit 1); exit 1; }; }
  1254. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1255. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1256. { (exit 1); exit 1; }; }
  1257. # Find the source files, if location was not specified.
  1258. if test -z "$srcdir"; then
  1259. ac_srcdir_defaulted=yes
  1260. # Try the directory containing this script, then the parent directory.
  1261. ac_confdir=`$as_dirname -- "$as_myself" ||
  1262. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1263. X"$as_myself" : 'X\(//\)[^/]' \| \
  1264. X"$as_myself" : 'X\(//\)$' \| \
  1265. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1266. $as_echo X"$as_myself" |
  1267. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1268. s//\1/
  1269. q
  1270. }
  1271. /^X\(\/\/\)[^/].*/{
  1272. s//\1/
  1273. q
  1274. }
  1275. /^X\(\/\/\)$/{
  1276. s//\1/
  1277. q
  1278. }
  1279. /^X\(\/\).*/{
  1280. s//\1/
  1281. q
  1282. }
  1283. s/.*/./; q'`
  1284. srcdir=$ac_confdir
  1285. if test ! -r "$srcdir/$ac_unique_file"; then
  1286. srcdir=..
  1287. fi
  1288. else
  1289. ac_srcdir_defaulted=no
  1290. fi
  1291. if test ! -r "$srcdir/$ac_unique_file"; then
  1292. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1293. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1294. { (exit 1); exit 1; }; }
  1295. fi
  1296. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1297. ac_abs_confdir=`(
  1298. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1299. { (exit 1); exit 1; }; }
  1300. pwd)`
  1301. # When building in place, set srcdir=.
  1302. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1303. srcdir=.
  1304. fi
  1305. # Remove unnecessary trailing slashes from srcdir.
  1306. # Double slashes in file names in object file debugging info
  1307. # mess up M-x gdb in Emacs.
  1308. case $srcdir in
  1309. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1310. esac
  1311. for ac_var in $ac_precious_vars; do
  1312. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1313. eval ac_env_${ac_var}_value=\$${ac_var}
  1314. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1315. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1316. done
  1317. #
  1318. # Report the --help message.
  1319. #
  1320. if test "$ac_init_help" = "long"; then
  1321. # Omit some internal or obsolete options to make the list less imposing.
  1322. # This message is too long to be a string in the A/UX 3.1 sh.
  1323. cat <<_ACEOF
  1324. \`configure' configures vcmi VERSION to adapt to many kinds of systems.
  1325. Usage: $0 [OPTION]... [VAR=VALUE]...
  1326. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1327. VAR=VALUE. See below for descriptions of some of the useful variables.
  1328. Defaults for the options are specified in brackets.
  1329. Configuration:
  1330. -h, --help display this help and exit
  1331. --help=short display options specific to this package
  1332. --help=recursive display the short help of all the included packages
  1333. -V, --version display version information and exit
  1334. -q, --quiet, --silent do not print \`checking...' messages
  1335. --cache-file=FILE cache test results in FILE [disabled]
  1336. -C, --config-cache alias for \`--cache-file=config.cache'
  1337. -n, --no-create do not create output files
  1338. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1339. Installation directories:
  1340. --prefix=PREFIX install architecture-independent files in PREFIX
  1341. [$ac_default_prefix]
  1342. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1343. [PREFIX]
  1344. By default, \`make install' will install all the files in
  1345. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1346. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1347. for instance \`--prefix=\$HOME'.
  1348. For better control, use the options below.
  1349. Fine tuning of the installation directories:
  1350. --bindir=DIR user executables [EPREFIX/bin]
  1351. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1352. --libexecdir=DIR program executables [EPREFIX/libexec]
  1353. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1354. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1355. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1356. --libdir=DIR object code libraries [EPREFIX/lib]
  1357. --includedir=DIR C header files [PREFIX/include]
  1358. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1359. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1360. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1361. --infodir=DIR info documentation [DATAROOTDIR/info]
  1362. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1363. --mandir=DIR man documentation [DATAROOTDIR/man]
  1364. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1365. --htmldir=DIR html documentation [DOCDIR]
  1366. --dvidir=DIR dvi documentation [DOCDIR]
  1367. --pdfdir=DIR pdf documentation [DOCDIR]
  1368. --psdir=DIR ps documentation [DOCDIR]
  1369. _ACEOF
  1370. cat <<\_ACEOF
  1371. Program names:
  1372. --program-prefix=PREFIX prepend PREFIX to installed program names
  1373. --program-suffix=SUFFIX append SUFFIX to installed program names
  1374. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1375. System types:
  1376. --build=BUILD configure for building on BUILD [guessed]
  1377. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1378. _ACEOF
  1379. fi
  1380. if test -n "$ac_init_help"; then
  1381. case $ac_init_help in
  1382. short | recursive ) echo "Configuration of vcmi VERSION:";;
  1383. esac
  1384. cat <<\_ACEOF
  1385. Optional Features:
  1386. --disable-option-checking ignore unrecognized --enable/--with options
  1387. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1388. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1389. --disable-dependency-tracking speeds up one-time build
  1390. --enable-dependency-tracking do not reject slow dependency extractors
  1391. --enable-shared[=PKGS] build shared libraries [default=yes]
  1392. --enable-static[=PKGS] build static libraries [default=no]
  1393. --enable-fast-install[=PKGS]
  1394. optimize for fast installation [default=yes]
  1395. --disable-libtool-lock avoid locking (might break parallel builds)
  1396. --disable-debug turn off debugging (default=enable)
  1397. Optional Packages:
  1398. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1399. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1400. --with-pic try to use only PIC/non-PIC objects [default=use
  1401. both]
  1402. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1403. --with-boost[=DIR] use boost (default is yes) - it is possible to
  1404. specify the root directory for boost (optional)
  1405. --with-boost-libdir=LIB_DIR
  1406. Force given directory for boost libraries. Note that
  1407. this will overwrite library path detection, so use
  1408. this parameter only if default library detection
  1409. fails and you know exactly where your boost
  1410. libraries are located.
  1411. --with-boost-system[=special-lib]
  1412. use the System library from boost - it is possible
  1413. to specify a certain library for the linker e.g.
  1414. --with-boost-system=boost_system-gcc-mt
  1415. --with-boost-filesystem[=special-lib]
  1416. use the Filesystem library from boost - it is
  1417. possible to specify a certain library for the linker
  1418. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1419. --with-boost-thread[=special-lib]
  1420. use the Thread library from boost - it is possible
  1421. to specify a certain library for the linker e.g.
  1422. --with-boost-thread=boost_thread-gcc-mt
  1423. --with-boost-iostreams[=special-lib]
  1424. use the IOStreams library from boost - it is
  1425. possible to specify a certain library for the
  1426. linker e.g.
  1427. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1428. Some influential environment variables:
  1429. CXX C++ compiler command
  1430. CXXFLAGS C++ compiler flags
  1431. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1432. nonstandard directory <lib dir>
  1433. LIBS libraries to pass to the linker, e.g. -l<library>
  1434. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1435. you have headers in a nonstandard directory <include dir>
  1436. CC C compiler command
  1437. CFLAGS C compiler flags
  1438. CPP C preprocessor
  1439. CXXCPP C++ preprocessor
  1440. Use these variables to override the choices made by `configure' or to help
  1441. it to find libraries and programs with nonstandard names/locations.
  1442. _ACEOF
  1443. ac_status=$?
  1444. fi
  1445. if test "$ac_init_help" = "recursive"; then
  1446. # If there are subdirs, report their specific --help.
  1447. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1448. test -d "$ac_dir" ||
  1449. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1450. continue
  1451. ac_builddir=.
  1452. case "$ac_dir" in
  1453. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1454. *)
  1455. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1456. # A ".." for each directory in $ac_dir_suffix.
  1457. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1458. case $ac_top_builddir_sub in
  1459. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1460. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1461. esac ;;
  1462. esac
  1463. ac_abs_top_builddir=$ac_pwd
  1464. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1465. # for backward compatibility:
  1466. ac_top_builddir=$ac_top_build_prefix
  1467. case $srcdir in
  1468. .) # We are building in place.
  1469. ac_srcdir=.
  1470. ac_top_srcdir=$ac_top_builddir_sub
  1471. ac_abs_top_srcdir=$ac_pwd ;;
  1472. [\\/]* | ?:[\\/]* ) # Absolute name.
  1473. ac_srcdir=$srcdir$ac_dir_suffix;
  1474. ac_top_srcdir=$srcdir
  1475. ac_abs_top_srcdir=$srcdir ;;
  1476. *) # Relative name.
  1477. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1478. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1479. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1480. esac
  1481. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1482. cd "$ac_dir" || { ac_status=$?; continue; }
  1483. # Check for guested configure.
  1484. if test -f "$ac_srcdir/configure.gnu"; then
  1485. echo &&
  1486. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1487. elif test -f "$ac_srcdir/configure"; then
  1488. echo &&
  1489. $SHELL "$ac_srcdir/configure" --help=recursive
  1490. else
  1491. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1492. fi || ac_status=$?
  1493. cd "$ac_pwd" || { ac_status=$?; break; }
  1494. done
  1495. fi
  1496. test -n "$ac_init_help" && exit $ac_status
  1497. if $ac_init_version; then
  1498. cat <<\_ACEOF
  1499. vcmi configure VERSION
  1500. generated by GNU Autoconf 2.63
  1501. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1502. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1503. This configure script is free software; the Free Software Foundation
  1504. gives unlimited permission to copy, distribute and modify it.
  1505. _ACEOF
  1506. exit
  1507. fi
  1508. cat >config.log <<_ACEOF
  1509. This file contains any messages produced by compilers while
  1510. running configure, to aid debugging if configure makes a mistake.
  1511. It was created by vcmi $as_me VERSION, which was
  1512. generated by GNU Autoconf 2.63. Invocation command line was
  1513. $ $0 $@
  1514. _ACEOF
  1515. exec 5>>config.log
  1516. {
  1517. cat <<_ASUNAME
  1518. ## --------- ##
  1519. ## Platform. ##
  1520. ## --------- ##
  1521. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1522. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1523. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1524. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1525. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1526. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1527. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1528. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1529. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1530. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1531. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1532. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1533. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1534. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1535. _ASUNAME
  1536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1537. for as_dir in $PATH
  1538. do
  1539. IFS=$as_save_IFS
  1540. test -z "$as_dir" && as_dir=.
  1541. $as_echo "PATH: $as_dir"
  1542. done
  1543. IFS=$as_save_IFS
  1544. } >&5
  1545. cat >&5 <<_ACEOF
  1546. ## ----------- ##
  1547. ## Core tests. ##
  1548. ## ----------- ##
  1549. _ACEOF
  1550. # Keep a trace of the command line.
  1551. # Strip out --no-create and --no-recursion so they do not pile up.
  1552. # Strip out --silent because we don't want to record it for future runs.
  1553. # Also quote any args containing shell meta-characters.
  1554. # Make two passes to allow for proper duplicate-argument suppression.
  1555. ac_configure_args=
  1556. ac_configure_args0=
  1557. ac_configure_args1=
  1558. ac_must_keep_next=false
  1559. for ac_pass in 1 2
  1560. do
  1561. for ac_arg
  1562. do
  1563. case $ac_arg in
  1564. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1565. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1566. | -silent | --silent | --silen | --sile | --sil)
  1567. continue ;;
  1568. *\'*)
  1569. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1570. esac
  1571. case $ac_pass in
  1572. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1573. 2)
  1574. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1575. if test $ac_must_keep_next = true; then
  1576. ac_must_keep_next=false # Got value, back to normal.
  1577. else
  1578. case $ac_arg in
  1579. *=* | --config-cache | -C | -disable-* | --disable-* \
  1580. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1581. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1582. | -with-* | --with-* | -without-* | --without-* | --x)
  1583. case "$ac_configure_args0 " in
  1584. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1585. esac
  1586. ;;
  1587. -* ) ac_must_keep_next=true ;;
  1588. esac
  1589. fi
  1590. ac_configure_args="$ac_configure_args '$ac_arg'"
  1591. ;;
  1592. esac
  1593. done
  1594. done
  1595. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1596. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1597. # When interrupted or exit'd, cleanup temporary files, and complete
  1598. # config.log. We remove comments because anyway the quotes in there
  1599. # would cause problems or look ugly.
  1600. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1601. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1602. trap 'exit_status=$?
  1603. # Save into config.log some information that might help in debugging.
  1604. {
  1605. echo
  1606. cat <<\_ASBOX
  1607. ## ---------------- ##
  1608. ## Cache variables. ##
  1609. ## ---------------- ##
  1610. _ASBOX
  1611. echo
  1612. # The following way of writing the cache mishandles newlines in values,
  1613. (
  1614. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1615. eval ac_val=\$$ac_var
  1616. case $ac_val in #(
  1617. *${as_nl}*)
  1618. case $ac_var in #(
  1619. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1620. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1621. esac
  1622. case $ac_var in #(
  1623. _ | IFS | as_nl) ;; #(
  1624. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1625. *) $as_unset $ac_var ;;
  1626. esac ;;
  1627. esac
  1628. done
  1629. (set) 2>&1 |
  1630. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1631. *${as_nl}ac_space=\ *)
  1632. sed -n \
  1633. "s/'\''/'\''\\\\'\'''\''/g;
  1634. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1635. ;; #(
  1636. *)
  1637. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1638. ;;
  1639. esac |
  1640. sort
  1641. )
  1642. echo
  1643. cat <<\_ASBOX
  1644. ## ----------------- ##
  1645. ## Output variables. ##
  1646. ## ----------------- ##
  1647. _ASBOX
  1648. echo
  1649. for ac_var in $ac_subst_vars
  1650. do
  1651. eval ac_val=\$$ac_var
  1652. case $ac_val in
  1653. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1654. esac
  1655. $as_echo "$ac_var='\''$ac_val'\''"
  1656. done | sort
  1657. echo
  1658. if test -n "$ac_subst_files"; then
  1659. cat <<\_ASBOX
  1660. ## ------------------- ##
  1661. ## File substitutions. ##
  1662. ## ------------------- ##
  1663. _ASBOX
  1664. echo
  1665. for ac_var in $ac_subst_files
  1666. do
  1667. eval ac_val=\$$ac_var
  1668. case $ac_val in
  1669. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1670. esac
  1671. $as_echo "$ac_var='\''$ac_val'\''"
  1672. done | sort
  1673. echo
  1674. fi
  1675. if test -s confdefs.h; then
  1676. cat <<\_ASBOX
  1677. ## ----------- ##
  1678. ## confdefs.h. ##
  1679. ## ----------- ##
  1680. _ASBOX
  1681. echo
  1682. cat confdefs.h
  1683. echo
  1684. fi
  1685. test "$ac_signal" != 0 &&
  1686. $as_echo "$as_me: caught signal $ac_signal"
  1687. $as_echo "$as_me: exit $exit_status"
  1688. } >&5
  1689. rm -f core *.core core.conftest.* &&
  1690. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1691. exit $exit_status
  1692. ' 0
  1693. for ac_signal in 1 2 13 15; do
  1694. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1695. done
  1696. ac_signal=0
  1697. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1698. rm -f -r conftest* confdefs.h
  1699. # Predefined preprocessor variables.
  1700. cat >>confdefs.h <<_ACEOF
  1701. #define PACKAGE_NAME "$PACKAGE_NAME"
  1702. _ACEOF
  1703. cat >>confdefs.h <<_ACEOF
  1704. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1705. _ACEOF
  1706. cat >>confdefs.h <<_ACEOF
  1707. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1708. _ACEOF
  1709. cat >>confdefs.h <<_ACEOF
  1710. #define PACKAGE_STRING "$PACKAGE_STRING"
  1711. _ACEOF
  1712. cat >>confdefs.h <<_ACEOF
  1713. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1714. _ACEOF
  1715. # Let the site file select an alternate cache file if it wants to.
  1716. # Prefer an explicitly selected file to automatically selected ones.
  1717. ac_site_file1=NONE
  1718. ac_site_file2=NONE
  1719. if test -n "$CONFIG_SITE"; then
  1720. ac_site_file1=$CONFIG_SITE
  1721. elif test "x$prefix" != xNONE; then
  1722. ac_site_file1=$prefix/share/config.site
  1723. ac_site_file2=$prefix/etc/config.site
  1724. else
  1725. ac_site_file1=$ac_default_prefix/share/config.site
  1726. ac_site_file2=$ac_default_prefix/etc/config.site
  1727. fi
  1728. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1729. do
  1730. test "x$ac_site_file" = xNONE && continue
  1731. if test -r "$ac_site_file"; then
  1732. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1733. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1734. sed 's/^/| /' "$ac_site_file" >&5
  1735. . "$ac_site_file"
  1736. fi
  1737. done
  1738. if test -r "$cache_file"; then
  1739. # Some versions of bash will fail to source /dev/null (special
  1740. # files actually), so we avoid doing that.
  1741. if test -f "$cache_file"; then
  1742. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1743. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1744. case $cache_file in
  1745. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1746. *) . "./$cache_file";;
  1747. esac
  1748. fi
  1749. else
  1750. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1751. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1752. >$cache_file
  1753. fi
  1754. # Check that the precious variables saved in the cache have kept the same
  1755. # value.
  1756. ac_cache_corrupted=false
  1757. for ac_var in $ac_precious_vars; do
  1758. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1759. eval ac_new_set=\$ac_env_${ac_var}_set
  1760. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1761. eval ac_new_val=\$ac_env_${ac_var}_value
  1762. case $ac_old_set,$ac_new_set in
  1763. set,)
  1764. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1765. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1766. ac_cache_corrupted=: ;;
  1767. ,set)
  1768. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1769. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1770. ac_cache_corrupted=: ;;
  1771. ,);;
  1772. *)
  1773. if test "x$ac_old_val" != "x$ac_new_val"; then
  1774. # differences in whitespace do not lead to failure.
  1775. ac_old_val_w=`echo x $ac_old_val`
  1776. ac_new_val_w=`echo x $ac_new_val`
  1777. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1778. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1779. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1780. ac_cache_corrupted=:
  1781. else
  1782. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1783. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1784. eval $ac_var=\$ac_old_val
  1785. fi
  1786. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1787. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1788. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1789. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1790. fi;;
  1791. esac
  1792. # Pass precious variables to config.status.
  1793. if test "$ac_new_set" = set; then
  1794. case $ac_new_val in
  1795. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1796. *) ac_arg=$ac_var=$ac_new_val ;;
  1797. esac
  1798. case " $ac_configure_args " in
  1799. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1800. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1801. esac
  1802. fi
  1803. done
  1804. if $ac_cache_corrupted; then
  1805. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1806. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1807. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1808. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1809. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1810. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1811. { (exit 1); exit 1; }; }
  1812. fi
  1813. ac_ext=c
  1814. ac_cpp='$CPP $CPPFLAGS'
  1815. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1816. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1817. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1818. am__api_version='1.10'
  1819. ac_aux_dir=
  1820. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1821. if test -f "$ac_dir/install-sh"; then
  1822. ac_aux_dir=$ac_dir
  1823. ac_install_sh="$ac_aux_dir/install-sh -c"
  1824. break
  1825. elif test -f "$ac_dir/install.sh"; then
  1826. ac_aux_dir=$ac_dir
  1827. ac_install_sh="$ac_aux_dir/install.sh -c"
  1828. break
  1829. elif test -f "$ac_dir/shtool"; then
  1830. ac_aux_dir=$ac_dir
  1831. ac_install_sh="$ac_aux_dir/shtool install -c"
  1832. break
  1833. fi
  1834. done
  1835. if test -z "$ac_aux_dir"; then
  1836. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1837. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1838. { (exit 1); exit 1; }; }
  1839. fi
  1840. # These three variables are undocumented and unsupported,
  1841. # and are intended to be withdrawn in a future Autoconf release.
  1842. # They can cause serious problems if a builder's source tree is in a directory
  1843. # whose full name contains unusual characters.
  1844. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1845. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1846. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1847. # Find a good install program. We prefer a C program (faster),
  1848. # so one script is as good as another. But avoid the broken or
  1849. # incompatible versions:
  1850. # SysV /etc/install, /usr/sbin/install
  1851. # SunOS /usr/etc/install
  1852. # IRIX /sbin/install
  1853. # AIX /bin/install
  1854. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1855. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1856. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1857. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1858. # OS/2's system install, which has a completely different semantic
  1859. # ./install, which can be erroneously created by make from ./install.sh.
  1860. # Reject install programs that cannot install multiple files.
  1861. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1862. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1863. if test -z "$INSTALL"; then
  1864. if test "${ac_cv_path_install+set}" = set; then
  1865. $as_echo_n "(cached) " >&6
  1866. else
  1867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1868. for as_dir in $PATH
  1869. do
  1870. IFS=$as_save_IFS
  1871. test -z "$as_dir" && as_dir=.
  1872. # Account for people who put trailing slashes in PATH elements.
  1873. case $as_dir/ in
  1874. ./ | .// | /cC/* | \
  1875. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1876. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1877. /usr/ucb/* ) ;;
  1878. *)
  1879. # OSF1 and SCO ODT 3.0 have their own names for install.
  1880. # Don't use installbsd from OSF since it installs stuff as root
  1881. # by default.
  1882. for ac_prog in ginstall scoinst install; do
  1883. for ac_exec_ext in '' $ac_executable_extensions; do
  1884. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1885. if test $ac_prog = install &&
  1886. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1887. # AIX install. It has an incompatible calling convention.
  1888. :
  1889. elif test $ac_prog = install &&
  1890. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1891. # program-specific install script used by HP pwplus--don't use.
  1892. :
  1893. else
  1894. rm -rf conftest.one conftest.two conftest.dir
  1895. echo one > conftest.one
  1896. echo two > conftest.two
  1897. mkdir conftest.dir
  1898. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1899. test -s conftest.one && test -s conftest.two &&
  1900. test -s conftest.dir/conftest.one &&
  1901. test -s conftest.dir/conftest.two
  1902. then
  1903. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1904. break 3
  1905. fi
  1906. fi
  1907. fi
  1908. done
  1909. done
  1910. ;;
  1911. esac
  1912. done
  1913. IFS=$as_save_IFS
  1914. rm -rf conftest.one conftest.two conftest.dir
  1915. fi
  1916. if test "${ac_cv_path_install+set}" = set; then
  1917. INSTALL=$ac_cv_path_install
  1918. else
  1919. # As a last resort, use the slow shell script. Don't cache a
  1920. # value for INSTALL within a source directory, because that will
  1921. # break other packages using the cache if that directory is
  1922. # removed, or if the value is a relative name.
  1923. INSTALL=$ac_install_sh
  1924. fi
  1925. fi
  1926. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1927. $as_echo "$INSTALL" >&6; }
  1928. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1929. # It thinks the first close brace ends the variable substitution.
  1930. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1931. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1932. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1933. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1934. $as_echo_n "checking whether build environment is sane... " >&6; }
  1935. # Just in case
  1936. sleep 1
  1937. echo timestamp > conftest.file
  1938. # Do `set' in a subshell so we don't clobber the current shell's
  1939. # arguments. Must try -L first in case configure is actually a
  1940. # symlink; some systems play weird games with the mod time of symlinks
  1941. # (eg FreeBSD returns the mod time of the symlink's containing
  1942. # directory).
  1943. if (
  1944. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1945. if test "$*" = "X"; then
  1946. # -L didn't work.
  1947. set X `ls -t $srcdir/configure conftest.file`
  1948. fi
  1949. rm -f conftest.file
  1950. if test "$*" != "X $srcdir/configure conftest.file" \
  1951. && test "$*" != "X conftest.file $srcdir/configure"; then
  1952. # If neither matched, then we have a broken ls. This can happen
  1953. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1954. # broken ls alias from the environment. This has actually
  1955. # happened. Such a system could not be considered "sane".
  1956. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1957. alias in your environment" >&5
  1958. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1959. alias in your environment" >&2;}
  1960. { (exit 1); exit 1; }; }
  1961. fi
  1962. test "$2" = conftest.file
  1963. )
  1964. then
  1965. # Ok.
  1966. :
  1967. else
  1968. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1969. Check your system clock" >&5
  1970. $as_echo "$as_me: error: newly created file is older than distributed files!
  1971. Check your system clock" >&2;}
  1972. { (exit 1); exit 1; }; }
  1973. fi
  1974. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1975. $as_echo "yes" >&6; }
  1976. test "$program_prefix" != NONE &&
  1977. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1978. # Use a double $ so make ignores it.
  1979. test "$program_suffix" != NONE &&
  1980. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1981. # Double any \ or $.
  1982. # By default was `s,x,x', remove it if useless.
  1983. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1984. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1985. # expand $ac_aux_dir to an absolute path
  1986. am_aux_dir=`cd $ac_aux_dir && pwd`
  1987. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1988. # Use eval to expand $SHELL
  1989. if eval "$MISSING --run true"; then
  1990. am_missing_run="$MISSING --run "
  1991. else
  1992. am_missing_run=
  1993. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1994. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1995. fi
  1996. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1997. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  1998. if test -z "$MKDIR_P"; then
  1999. if test "${ac_cv_path_mkdir+set}" = set; then
  2000. $as_echo_n "(cached) " >&6
  2001. else
  2002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2003. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2004. do
  2005. IFS=$as_save_IFS
  2006. test -z "$as_dir" && as_dir=.
  2007. for ac_prog in mkdir gmkdir; do
  2008. for ac_exec_ext in '' $ac_executable_extensions; do
  2009. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2010. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2011. 'mkdir (GNU coreutils) '* | \
  2012. 'mkdir (coreutils) '* | \
  2013. 'mkdir (fileutils) '4.1*)
  2014. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2015. break 3;;
  2016. esac
  2017. done
  2018. done
  2019. done
  2020. IFS=$as_save_IFS
  2021. fi
  2022. if test "${ac_cv_path_mkdir+set}" = set; then
  2023. MKDIR_P="$ac_cv_path_mkdir -p"
  2024. else
  2025. # As a last resort, use the slow shell script. Don't cache a
  2026. # value for MKDIR_P within a source directory, because that will
  2027. # break other packages using the cache if that directory is
  2028. # removed, or if the value is a relative name.
  2029. test -d ./--version && rmdir ./--version
  2030. MKDIR_P="$ac_install_sh -d"
  2031. fi
  2032. fi
  2033. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2034. $as_echo "$MKDIR_P" >&6; }
  2035. mkdir_p="$MKDIR_P"
  2036. case $mkdir_p in
  2037. [\\/$]* | ?:[\\/]*) ;;
  2038. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2039. esac
  2040. for ac_prog in gawk mawk nawk awk
  2041. do
  2042. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2043. set dummy $ac_prog; ac_word=$2
  2044. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2045. $as_echo_n "checking for $ac_word... " >&6; }
  2046. if test "${ac_cv_prog_AWK+set}" = set; then
  2047. $as_echo_n "(cached) " >&6
  2048. else
  2049. if test -n "$AWK"; then
  2050. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2051. else
  2052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2053. for as_dir in $PATH
  2054. do
  2055. IFS=$as_save_IFS
  2056. test -z "$as_dir" && as_dir=.
  2057. for ac_exec_ext in '' $ac_executable_extensions; do
  2058. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2059. ac_cv_prog_AWK="$ac_prog"
  2060. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2061. break 2
  2062. fi
  2063. done
  2064. done
  2065. IFS=$as_save_IFS
  2066. fi
  2067. fi
  2068. AWK=$ac_cv_prog_AWK
  2069. if test -n "$AWK"; then
  2070. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2071. $as_echo "$AWK" >&6; }
  2072. else
  2073. { $as_echo "$as_me:$LINENO: result: no" >&5
  2074. $as_echo "no" >&6; }
  2075. fi
  2076. test -n "$AWK" && break
  2077. done
  2078. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2079. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2080. set x ${MAKE-make}
  2081. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2082. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2083. $as_echo_n "(cached) " >&6
  2084. else
  2085. cat >conftest.make <<\_ACEOF
  2086. SHELL = /bin/sh
  2087. all:
  2088. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2089. _ACEOF
  2090. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2091. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2092. *@@@%%%=?*=@@@%%%*)
  2093. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2094. *)
  2095. eval ac_cv_prog_make_${ac_make}_set=no;;
  2096. esac
  2097. rm -f conftest.make
  2098. fi
  2099. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2100. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2101. $as_echo "yes" >&6; }
  2102. SET_MAKE=
  2103. else
  2104. { $as_echo "$as_me:$LINENO: result: no" >&5
  2105. $as_echo "no" >&6; }
  2106. SET_MAKE="MAKE=${MAKE-make}"
  2107. fi
  2108. rm -rf .tst 2>/dev/null
  2109. mkdir .tst 2>/dev/null
  2110. if test -d .tst; then
  2111. am__leading_dot=.
  2112. else
  2113. am__leading_dot=_
  2114. fi
  2115. rmdir .tst 2>/dev/null
  2116. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2117. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2118. # is not polluted with repeated "-I."
  2119. am__isrc=' -I$(srcdir)'
  2120. # test to see if srcdir already configured
  2121. if test -f $srcdir/config.status; then
  2122. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2123. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2124. { (exit 1); exit 1; }; }
  2125. fi
  2126. fi
  2127. # test whether we have cygpath
  2128. if test -z "$CYGPATH_W"; then
  2129. if (cygpath --version) >/dev/null 2>/dev/null; then
  2130. CYGPATH_W='cygpath -w'
  2131. else
  2132. CYGPATH_W=echo
  2133. fi
  2134. fi
  2135. # Define the identity of the package.
  2136. PACKAGE='vcmi'
  2137. VERSION='VERSION'
  2138. cat >>confdefs.h <<_ACEOF
  2139. #define PACKAGE "$PACKAGE"
  2140. _ACEOF
  2141. cat >>confdefs.h <<_ACEOF
  2142. #define VERSION "$VERSION"
  2143. _ACEOF
  2144. # Some tools Automake needs.
  2145. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2146. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2147. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2148. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2149. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2150. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2151. # Installed binaries are usually stripped using `strip' when the user
  2152. # run `make install-strip'. However `strip' might not be the right
  2153. # tool to use in cross-compilation environments, therefore Automake
  2154. # will honor the `STRIP' environment variable to overrule this program.
  2155. if test "$cross_compiling" != no; then
  2156. if test -n "$ac_tool_prefix"; then
  2157. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2158. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2159. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2160. $as_echo_n "checking for $ac_word... " >&6; }
  2161. if test "${ac_cv_prog_STRIP+set}" = set; then
  2162. $as_echo_n "(cached) " >&6
  2163. else
  2164. if test -n "$STRIP"; then
  2165. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2166. else
  2167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2168. for as_dir in $PATH
  2169. do
  2170. IFS=$as_save_IFS
  2171. test -z "$as_dir" && as_dir=.
  2172. for ac_exec_ext in '' $ac_executable_extensions; do
  2173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2174. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2175. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2176. break 2
  2177. fi
  2178. done
  2179. done
  2180. IFS=$as_save_IFS
  2181. fi
  2182. fi
  2183. STRIP=$ac_cv_prog_STRIP
  2184. if test -n "$STRIP"; then
  2185. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2186. $as_echo "$STRIP" >&6; }
  2187. else
  2188. { $as_echo "$as_me:$LINENO: result: no" >&5
  2189. $as_echo "no" >&6; }
  2190. fi
  2191. fi
  2192. if test -z "$ac_cv_prog_STRIP"; then
  2193. ac_ct_STRIP=$STRIP
  2194. # Extract the first word of "strip", so it can be a program name with args.
  2195. set dummy strip; ac_word=$2
  2196. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2197. $as_echo_n "checking for $ac_word... " >&6; }
  2198. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2199. $as_echo_n "(cached) " >&6
  2200. else
  2201. if test -n "$ac_ct_STRIP"; then
  2202. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2203. else
  2204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2205. for as_dir in $PATH
  2206. do
  2207. IFS=$as_save_IFS
  2208. test -z "$as_dir" && as_dir=.
  2209. for ac_exec_ext in '' $ac_executable_extensions; do
  2210. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2211. ac_cv_prog_ac_ct_STRIP="strip"
  2212. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2213. break 2
  2214. fi
  2215. done
  2216. done
  2217. IFS=$as_save_IFS
  2218. fi
  2219. fi
  2220. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2221. if test -n "$ac_ct_STRIP"; then
  2222. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2223. $as_echo "$ac_ct_STRIP" >&6; }
  2224. else
  2225. { $as_echo "$as_me:$LINENO: result: no" >&5
  2226. $as_echo "no" >&6; }
  2227. fi
  2228. if test "x$ac_ct_STRIP" = x; then
  2229. STRIP=":"
  2230. else
  2231. case $cross_compiling:$ac_tool_warned in
  2232. yes:)
  2233. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2234. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2235. ac_tool_warned=yes ;;
  2236. esac
  2237. STRIP=$ac_ct_STRIP
  2238. fi
  2239. else
  2240. STRIP="$ac_cv_prog_STRIP"
  2241. fi
  2242. fi
  2243. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2244. # We need awk for the "check" target. The system "awk" is bad on
  2245. # some platforms.
  2246. # Always define AMTAR for backward compatibility.
  2247. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2248. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2249. # Checks for build toolchain
  2250. ac_ext=cpp
  2251. ac_cpp='$CXXCPP $CPPFLAGS'
  2252. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2253. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2254. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2255. ac_ext=cpp
  2256. ac_cpp='$CXXCPP $CPPFLAGS'
  2257. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2258. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2259. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2260. if test -z "$CXX"; then
  2261. if test -n "$CCC"; then
  2262. CXX=$CCC
  2263. else
  2264. if test -n "$ac_tool_prefix"; then
  2265. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2266. do
  2267. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2268. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2269. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2270. $as_echo_n "checking for $ac_word... " >&6; }
  2271. if test "${ac_cv_prog_CXX+set}" = set; then
  2272. $as_echo_n "(cached) " >&6
  2273. else
  2274. if test -n "$CXX"; then
  2275. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2276. else
  2277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2278. for as_dir in $PATH
  2279. do
  2280. IFS=$as_save_IFS
  2281. test -z "$as_dir" && as_dir=.
  2282. for ac_exec_ext in '' $ac_executable_extensions; do
  2283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2284. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2285. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2286. break 2
  2287. fi
  2288. done
  2289. done
  2290. IFS=$as_save_IFS
  2291. fi
  2292. fi
  2293. CXX=$ac_cv_prog_CXX
  2294. if test -n "$CXX"; then
  2295. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2296. $as_echo "$CXX" >&6; }
  2297. else
  2298. { $as_echo "$as_me:$LINENO: result: no" >&5
  2299. $as_echo "no" >&6; }
  2300. fi
  2301. test -n "$CXX" && break
  2302. done
  2303. fi
  2304. if test -z "$CXX"; then
  2305. ac_ct_CXX=$CXX
  2306. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2307. do
  2308. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2309. set dummy $ac_prog; ac_word=$2
  2310. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2311. $as_echo_n "checking for $ac_word... " >&6; }
  2312. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2313. $as_echo_n "(cached) " >&6
  2314. else
  2315. if test -n "$ac_ct_CXX"; then
  2316. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2317. else
  2318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2319. for as_dir in $PATH
  2320. do
  2321. IFS=$as_save_IFS
  2322. test -z "$as_dir" && as_dir=.
  2323. for ac_exec_ext in '' $ac_executable_extensions; do
  2324. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2325. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2326. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2327. break 2
  2328. fi
  2329. done
  2330. done
  2331. IFS=$as_save_IFS
  2332. fi
  2333. fi
  2334. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2335. if test -n "$ac_ct_CXX"; then
  2336. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2337. $as_echo "$ac_ct_CXX" >&6; }
  2338. else
  2339. { $as_echo "$as_me:$LINENO: result: no" >&5
  2340. $as_echo "no" >&6; }
  2341. fi
  2342. test -n "$ac_ct_CXX" && break
  2343. done
  2344. if test "x$ac_ct_CXX" = x; then
  2345. CXX="g++"
  2346. else
  2347. case $cross_compiling:$ac_tool_warned in
  2348. yes:)
  2349. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2350. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2351. ac_tool_warned=yes ;;
  2352. esac
  2353. CXX=$ac_ct_CXX
  2354. fi
  2355. fi
  2356. fi
  2357. fi
  2358. # Provide some information about the compiler.
  2359. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2360. set X $ac_compile
  2361. ac_compiler=$2
  2362. { (ac_try="$ac_compiler --version >&5"
  2363. case "(($ac_try" in
  2364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2365. *) ac_try_echo=$ac_try;;
  2366. esac
  2367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2368. $as_echo "$ac_try_echo") >&5
  2369. (eval "$ac_compiler --version >&5") 2>&5
  2370. ac_status=$?
  2371. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2372. (exit $ac_status); }
  2373. { (ac_try="$ac_compiler -v >&5"
  2374. case "(($ac_try" in
  2375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2376. *) ac_try_echo=$ac_try;;
  2377. esac
  2378. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2379. $as_echo "$ac_try_echo") >&5
  2380. (eval "$ac_compiler -v >&5") 2>&5
  2381. ac_status=$?
  2382. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2383. (exit $ac_status); }
  2384. { (ac_try="$ac_compiler -V >&5"
  2385. case "(($ac_try" in
  2386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2387. *) ac_try_echo=$ac_try;;
  2388. esac
  2389. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2390. $as_echo "$ac_try_echo") >&5
  2391. (eval "$ac_compiler -V >&5") 2>&5
  2392. ac_status=$?
  2393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. (exit $ac_status); }
  2395. cat >conftest.$ac_ext <<_ACEOF
  2396. /* confdefs.h. */
  2397. _ACEOF
  2398. cat confdefs.h >>conftest.$ac_ext
  2399. cat >>conftest.$ac_ext <<_ACEOF
  2400. /* end confdefs.h. */
  2401. int
  2402. main ()
  2403. {
  2404. ;
  2405. return 0;
  2406. }
  2407. _ACEOF
  2408. ac_clean_files_save=$ac_clean_files
  2409. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2410. # Try to create an executable without -o first, disregard a.out.
  2411. # It will help us diagnose broken compilers, and finding out an intuition
  2412. # of exeext.
  2413. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2414. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2415. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2416. # The possible output files:
  2417. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2418. ac_rmfiles=
  2419. for ac_file in $ac_files
  2420. do
  2421. case $ac_file in
  2422. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2423. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2424. esac
  2425. done
  2426. rm -f $ac_rmfiles
  2427. if { (ac_try="$ac_link_default"
  2428. case "(($ac_try" in
  2429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2430. *) ac_try_echo=$ac_try;;
  2431. esac
  2432. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2433. $as_echo "$ac_try_echo") >&5
  2434. (eval "$ac_link_default") 2>&5
  2435. ac_status=$?
  2436. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2437. (exit $ac_status); }; then
  2438. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2439. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2440. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2441. # so that the user can short-circuit this test for compilers unknown to
  2442. # Autoconf.
  2443. for ac_file in $ac_files ''
  2444. do
  2445. test -f "$ac_file" || continue
  2446. case $ac_file in
  2447. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2448. ;;
  2449. [ab].out )
  2450. # We found the default executable, but exeext='' is most
  2451. # certainly right.
  2452. break;;
  2453. *.* )
  2454. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2455. then :; else
  2456. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2457. fi
  2458. # We set ac_cv_exeext here because the later test for it is not
  2459. # safe: cross compilers may not add the suffix if given an `-o'
  2460. # argument, so we may need to know it at that point already.
  2461. # Even if this section looks crufty: it has the advantage of
  2462. # actually working.
  2463. break;;
  2464. * )
  2465. break;;
  2466. esac
  2467. done
  2468. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2469. else
  2470. ac_file=''
  2471. fi
  2472. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2473. $as_echo "$ac_file" >&6; }
  2474. if test -z "$ac_file"; then
  2475. $as_echo "$as_me: failed program was:" >&5
  2476. sed 's/^/| /' conftest.$ac_ext >&5
  2477. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2478. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2479. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2480. See \`config.log' for more details." >&5
  2481. $as_echo "$as_me: error: C++ compiler cannot create executables
  2482. See \`config.log' for more details." >&2;}
  2483. { (exit 77); exit 77; }; }; }
  2484. fi
  2485. ac_exeext=$ac_cv_exeext
  2486. # Check that the compiler produces executables we can run. If not, either
  2487. # the compiler is broken, or we cross compile.
  2488. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2489. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2490. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2491. # If not cross compiling, check that we can run a simple program.
  2492. if test "$cross_compiling" != yes; then
  2493. if { ac_try='./$ac_file'
  2494. { (case "(($ac_try" in
  2495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2496. *) ac_try_echo=$ac_try;;
  2497. esac
  2498. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2499. $as_echo "$ac_try_echo") >&5
  2500. (eval "$ac_try") 2>&5
  2501. ac_status=$?
  2502. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2503. (exit $ac_status); }; }; then
  2504. cross_compiling=no
  2505. else
  2506. if test "$cross_compiling" = maybe; then
  2507. cross_compiling=yes
  2508. else
  2509. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2510. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2511. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2512. If you meant to cross compile, use \`--host'.
  2513. See \`config.log' for more details." >&5
  2514. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2515. If you meant to cross compile, use \`--host'.
  2516. See \`config.log' for more details." >&2;}
  2517. { (exit 1); exit 1; }; }; }
  2518. fi
  2519. fi
  2520. fi
  2521. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2522. $as_echo "yes" >&6; }
  2523. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2524. ac_clean_files=$ac_clean_files_save
  2525. # Check that the compiler produces executables we can run. If not, either
  2526. # the compiler is broken, or we cross compile.
  2527. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2528. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2529. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2530. $as_echo "$cross_compiling" >&6; }
  2531. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2532. $as_echo_n "checking for suffix of executables... " >&6; }
  2533. if { (ac_try="$ac_link"
  2534. case "(($ac_try" in
  2535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2536. *) ac_try_echo=$ac_try;;
  2537. esac
  2538. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2539. $as_echo "$ac_try_echo") >&5
  2540. (eval "$ac_link") 2>&5
  2541. ac_status=$?
  2542. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2543. (exit $ac_status); }; then
  2544. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2545. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2546. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2547. # `rm'.
  2548. for ac_file in conftest.exe conftest conftest.*; do
  2549. test -f "$ac_file" || continue
  2550. case $ac_file in
  2551. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2552. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2553. break;;
  2554. * ) break;;
  2555. esac
  2556. done
  2557. else
  2558. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2559. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2560. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2561. See \`config.log' for more details." >&5
  2562. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2563. See \`config.log' for more details." >&2;}
  2564. { (exit 1); exit 1; }; }; }
  2565. fi
  2566. rm -f conftest$ac_cv_exeext
  2567. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2568. $as_echo "$ac_cv_exeext" >&6; }
  2569. rm -f conftest.$ac_ext
  2570. EXEEXT=$ac_cv_exeext
  2571. ac_exeext=$EXEEXT
  2572. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2573. $as_echo_n "checking for suffix of object files... " >&6; }
  2574. if test "${ac_cv_objext+set}" = set; then
  2575. $as_echo_n "(cached) " >&6
  2576. else
  2577. cat >conftest.$ac_ext <<_ACEOF
  2578. /* confdefs.h. */
  2579. _ACEOF
  2580. cat confdefs.h >>conftest.$ac_ext
  2581. cat >>conftest.$ac_ext <<_ACEOF
  2582. /* end confdefs.h. */
  2583. int
  2584. main ()
  2585. {
  2586. ;
  2587. return 0;
  2588. }
  2589. _ACEOF
  2590. rm -f conftest.o conftest.obj
  2591. if { (ac_try="$ac_compile"
  2592. case "(($ac_try" in
  2593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2594. *) ac_try_echo=$ac_try;;
  2595. esac
  2596. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2597. $as_echo "$ac_try_echo") >&5
  2598. (eval "$ac_compile") 2>&5
  2599. ac_status=$?
  2600. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2601. (exit $ac_status); }; then
  2602. for ac_file in conftest.o conftest.obj conftest.*; do
  2603. test -f "$ac_file" || continue;
  2604. case $ac_file in
  2605. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2606. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2607. break;;
  2608. esac
  2609. done
  2610. else
  2611. $as_echo "$as_me: failed program was:" >&5
  2612. sed 's/^/| /' conftest.$ac_ext >&5
  2613. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2614. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2615. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2616. See \`config.log' for more details." >&5
  2617. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2618. See \`config.log' for more details." >&2;}
  2619. { (exit 1); exit 1; }; }; }
  2620. fi
  2621. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2622. fi
  2623. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2624. $as_echo "$ac_cv_objext" >&6; }
  2625. OBJEXT=$ac_cv_objext
  2626. ac_objext=$OBJEXT
  2627. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2628. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2629. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. cat >conftest.$ac_ext <<_ACEOF
  2633. /* confdefs.h. */
  2634. _ACEOF
  2635. cat confdefs.h >>conftest.$ac_ext
  2636. cat >>conftest.$ac_ext <<_ACEOF
  2637. /* end confdefs.h. */
  2638. int
  2639. main ()
  2640. {
  2641. #ifndef __GNUC__
  2642. choke me
  2643. #endif
  2644. ;
  2645. return 0;
  2646. }
  2647. _ACEOF
  2648. rm -f conftest.$ac_objext
  2649. if { (ac_try="$ac_compile"
  2650. case "(($ac_try" in
  2651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2652. *) ac_try_echo=$ac_try;;
  2653. esac
  2654. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2655. $as_echo "$ac_try_echo") >&5
  2656. (eval "$ac_compile") 2>conftest.er1
  2657. ac_status=$?
  2658. grep -v '^ *+' conftest.er1 >conftest.err
  2659. rm -f conftest.er1
  2660. cat conftest.err >&5
  2661. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2662. (exit $ac_status); } && {
  2663. test -z "$ac_cxx_werror_flag" ||
  2664. test ! -s conftest.err
  2665. } && test -s conftest.$ac_objext; then
  2666. ac_compiler_gnu=yes
  2667. else
  2668. $as_echo "$as_me: failed program was:" >&5
  2669. sed 's/^/| /' conftest.$ac_ext >&5
  2670. ac_compiler_gnu=no
  2671. fi
  2672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2673. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2674. fi
  2675. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2676. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2677. if test $ac_compiler_gnu = yes; then
  2678. GXX=yes
  2679. else
  2680. GXX=
  2681. fi
  2682. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2683. ac_save_CXXFLAGS=$CXXFLAGS
  2684. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2685. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2686. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2690. ac_cxx_werror_flag=yes
  2691. ac_cv_prog_cxx_g=no
  2692. CXXFLAGS="-g"
  2693. cat >conftest.$ac_ext <<_ACEOF
  2694. /* confdefs.h. */
  2695. _ACEOF
  2696. cat confdefs.h >>conftest.$ac_ext
  2697. cat >>conftest.$ac_ext <<_ACEOF
  2698. /* end confdefs.h. */
  2699. int
  2700. main ()
  2701. {
  2702. ;
  2703. return 0;
  2704. }
  2705. _ACEOF
  2706. rm -f conftest.$ac_objext
  2707. if { (ac_try="$ac_compile"
  2708. case "(($ac_try" in
  2709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2710. *) ac_try_echo=$ac_try;;
  2711. esac
  2712. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2713. $as_echo "$ac_try_echo") >&5
  2714. (eval "$ac_compile") 2>conftest.er1
  2715. ac_status=$?
  2716. grep -v '^ *+' conftest.er1 >conftest.err
  2717. rm -f conftest.er1
  2718. cat conftest.err >&5
  2719. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2720. (exit $ac_status); } && {
  2721. test -z "$ac_cxx_werror_flag" ||
  2722. test ! -s conftest.err
  2723. } && test -s conftest.$ac_objext; then
  2724. ac_cv_prog_cxx_g=yes
  2725. else
  2726. $as_echo "$as_me: failed program was:" >&5
  2727. sed 's/^/| /' conftest.$ac_ext >&5
  2728. CXXFLAGS=""
  2729. cat >conftest.$ac_ext <<_ACEOF
  2730. /* confdefs.h. */
  2731. _ACEOF
  2732. cat confdefs.h >>conftest.$ac_ext
  2733. cat >>conftest.$ac_ext <<_ACEOF
  2734. /* end confdefs.h. */
  2735. int
  2736. main ()
  2737. {
  2738. ;
  2739. return 0;
  2740. }
  2741. _ACEOF
  2742. rm -f conftest.$ac_objext
  2743. if { (ac_try="$ac_compile"
  2744. case "(($ac_try" in
  2745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2746. *) ac_try_echo=$ac_try;;
  2747. esac
  2748. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2749. $as_echo "$ac_try_echo") >&5
  2750. (eval "$ac_compile") 2>conftest.er1
  2751. ac_status=$?
  2752. grep -v '^ *+' conftest.er1 >conftest.err
  2753. rm -f conftest.er1
  2754. cat conftest.err >&5
  2755. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2756. (exit $ac_status); } && {
  2757. test -z "$ac_cxx_werror_flag" ||
  2758. test ! -s conftest.err
  2759. } && test -s conftest.$ac_objext; then
  2760. :
  2761. else
  2762. $as_echo "$as_me: failed program was:" >&5
  2763. sed 's/^/| /' conftest.$ac_ext >&5
  2764. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2765. CXXFLAGS="-g"
  2766. cat >conftest.$ac_ext <<_ACEOF
  2767. /* confdefs.h. */
  2768. _ACEOF
  2769. cat confdefs.h >>conftest.$ac_ext
  2770. cat >>conftest.$ac_ext <<_ACEOF
  2771. /* end confdefs.h. */
  2772. int
  2773. main ()
  2774. {
  2775. ;
  2776. return 0;
  2777. }
  2778. _ACEOF
  2779. rm -f conftest.$ac_objext
  2780. if { (ac_try="$ac_compile"
  2781. case "(($ac_try" in
  2782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2783. *) ac_try_echo=$ac_try;;
  2784. esac
  2785. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2786. $as_echo "$ac_try_echo") >&5
  2787. (eval "$ac_compile") 2>conftest.er1
  2788. ac_status=$?
  2789. grep -v '^ *+' conftest.er1 >conftest.err
  2790. rm -f conftest.er1
  2791. cat conftest.err >&5
  2792. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2793. (exit $ac_status); } && {
  2794. test -z "$ac_cxx_werror_flag" ||
  2795. test ! -s conftest.err
  2796. } && test -s conftest.$ac_objext; then
  2797. ac_cv_prog_cxx_g=yes
  2798. else
  2799. $as_echo "$as_me: failed program was:" >&5
  2800. sed 's/^/| /' conftest.$ac_ext >&5
  2801. fi
  2802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2803. fi
  2804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2805. fi
  2806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2807. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2808. fi
  2809. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2810. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2811. if test "$ac_test_CXXFLAGS" = set; then
  2812. CXXFLAGS=$ac_save_CXXFLAGS
  2813. elif test $ac_cv_prog_cxx_g = yes; then
  2814. if test "$GXX" = yes; then
  2815. CXXFLAGS="-g -O2"
  2816. else
  2817. CXXFLAGS="-g"
  2818. fi
  2819. else
  2820. if test "$GXX" = yes; then
  2821. CXXFLAGS="-O2"
  2822. else
  2823. CXXFLAGS=
  2824. fi
  2825. fi
  2826. ac_ext=cpp
  2827. ac_cpp='$CXXCPP $CPPFLAGS'
  2828. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2829. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2830. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2831. DEPDIR="${am__leading_dot}deps"
  2832. ac_config_commands="$ac_config_commands depfiles"
  2833. am_make=${MAKE-make}
  2834. cat > confinc << 'END'
  2835. am__doit:
  2836. @echo done
  2837. .PHONY: am__doit
  2838. END
  2839. # If we don't find an include directive, just comment out the code.
  2840. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2841. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2842. am__include="#"
  2843. am__quote=
  2844. _am_result=none
  2845. # First try GNU make style include.
  2846. echo "include confinc" > confmf
  2847. # We grep out `Entering directory' and `Leaving directory'
  2848. # messages which can occur if `w' ends up in MAKEFLAGS.
  2849. # In particular we don't look at `^make:' because GNU make might
  2850. # be invoked under some other name (usually "gmake"), in which
  2851. # case it prints its new name instead of `make'.
  2852. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2853. am__include=include
  2854. am__quote=
  2855. _am_result=GNU
  2856. fi
  2857. # Now try BSD make style include.
  2858. if test "$am__include" = "#"; then
  2859. echo '.include "confinc"' > confmf
  2860. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2861. am__include=.include
  2862. am__quote="\""
  2863. _am_result=BSD
  2864. fi
  2865. fi
  2866. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2867. $as_echo "$_am_result" >&6; }
  2868. rm -f confinc confmf
  2869. # Check whether --enable-dependency-tracking was given.
  2870. if test "${enable_dependency_tracking+set}" = set; then
  2871. enableval=$enable_dependency_tracking;
  2872. fi
  2873. if test "x$enable_dependency_tracking" != xno; then
  2874. am_depcomp="$ac_aux_dir/depcomp"
  2875. AMDEPBACKSLASH='\'
  2876. fi
  2877. if test "x$enable_dependency_tracking" != xno; then
  2878. AMDEP_TRUE=
  2879. AMDEP_FALSE='#'
  2880. else
  2881. AMDEP_TRUE='#'
  2882. AMDEP_FALSE=
  2883. fi
  2884. depcc="$CXX" am_compiler_list=
  2885. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2886. $as_echo_n "checking dependency style of $depcc... " >&6; }
  2887. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2888. $as_echo_n "(cached) " >&6
  2889. else
  2890. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2891. # We make a subdir and do the tests there. Otherwise we can end up
  2892. # making bogus files that we don't know about and never remove. For
  2893. # instance it was reported that on HP-UX the gcc test will end up
  2894. # making a dummy file named `D' -- because `-MD' means `put the output
  2895. # in D'.
  2896. mkdir conftest.dir
  2897. # Copy depcomp to subdir because otherwise we won't find it if we're
  2898. # using a relative directory.
  2899. cp "$am_depcomp" conftest.dir
  2900. cd conftest.dir
  2901. # We will build objects and dependencies in a subdirectory because
  2902. # it helps to detect inapplicable dependency modes. For instance
  2903. # both Tru64's cc and ICC support -MD to output dependencies as a
  2904. # side effect of compilation, but ICC will put the dependencies in
  2905. # the current directory while Tru64 will put them in the object
  2906. # directory.
  2907. mkdir sub
  2908. am_cv_CXX_dependencies_compiler_type=none
  2909. if test "$am_compiler_list" = ""; then
  2910. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2911. fi
  2912. for depmode in $am_compiler_list; do
  2913. # Setup a source with many dependencies, because some compilers
  2914. # like to wrap large dependency lists on column 80 (with \), and
  2915. # we should not choose a depcomp mode which is confused by this.
  2916. #
  2917. # We need to recreate these files for each test, as the compiler may
  2918. # overwrite some of them when testing with obscure command lines.
  2919. # This happens at least with the AIX C compiler.
  2920. : > sub/conftest.c
  2921. for i in 1 2 3 4 5 6; do
  2922. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2923. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2924. # Solaris 8's {/usr,}/bin/sh.
  2925. touch sub/conftst$i.h
  2926. done
  2927. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2928. case $depmode in
  2929. nosideeffect)
  2930. # after this tag, mechanisms are not by side-effect, so they'll
  2931. # only be used when explicitly requested
  2932. if test "x$enable_dependency_tracking" = xyes; then
  2933. continue
  2934. else
  2935. break
  2936. fi
  2937. ;;
  2938. none) break ;;
  2939. esac
  2940. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2941. # mode. It turns out that the SunPro C++ compiler does not properly
  2942. # handle `-M -o', and we need to detect this.
  2943. if depmode=$depmode \
  2944. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2945. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2946. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2947. >/dev/null 2>conftest.err &&
  2948. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  2949. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2950. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2951. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2952. # icc doesn't choke on unknown options, it will just issue warnings
  2953. # or remarks (even with -Werror). So we grep stderr for any message
  2954. # that says an option was ignored or not supported.
  2955. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2956. # icc: Command line warning: ignoring option '-M'; no argument required
  2957. # The diagnosis changed in icc 8.0:
  2958. # icc: Command line remark: option '-MP' not supported
  2959. if (grep 'ignoring option' conftest.err ||
  2960. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2961. am_cv_CXX_dependencies_compiler_type=$depmode
  2962. break
  2963. fi
  2964. fi
  2965. done
  2966. cd ..
  2967. rm -rf conftest.dir
  2968. else
  2969. am_cv_CXX_dependencies_compiler_type=none
  2970. fi
  2971. fi
  2972. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2973. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  2974. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2975. if
  2976. test "x$enable_dependency_tracking" != xno \
  2977. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2978. am__fastdepCXX_TRUE=
  2979. am__fastdepCXX_FALSE='#'
  2980. else
  2981. am__fastdepCXX_TRUE='#'
  2982. am__fastdepCXX_FALSE=
  2983. fi
  2984. # Check whether --enable-shared was given.
  2985. if test "${enable_shared+set}" = set; then
  2986. enableval=$enable_shared; p=${PACKAGE-default}
  2987. case $enableval in
  2988. yes) enable_shared=yes ;;
  2989. no) enable_shared=no ;;
  2990. *)
  2991. enable_shared=no
  2992. # Look at the argument we got. We use all the common list separators.
  2993. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2994. for pkg in $enableval; do
  2995. IFS="$lt_save_ifs"
  2996. if test "X$pkg" = "X$p"; then
  2997. enable_shared=yes
  2998. fi
  2999. done
  3000. IFS="$lt_save_ifs"
  3001. ;;
  3002. esac
  3003. else
  3004. enable_shared=yes
  3005. fi
  3006. # Check whether --enable-static was given.
  3007. if test "${enable_static+set}" = set; then
  3008. enableval=$enable_static; p=${PACKAGE-default}
  3009. case $enableval in
  3010. yes) enable_static=yes ;;
  3011. no) enable_static=no ;;
  3012. *)
  3013. enable_static=no
  3014. # Look at the argument we got. We use all the common list separators.
  3015. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3016. for pkg in $enableval; do
  3017. IFS="$lt_save_ifs"
  3018. if test "X$pkg" = "X$p"; then
  3019. enable_static=yes
  3020. fi
  3021. done
  3022. IFS="$lt_save_ifs"
  3023. ;;
  3024. esac
  3025. else
  3026. enable_static=no
  3027. fi
  3028. case `pwd` in
  3029. *\ * | *\ *)
  3030. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3031. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3032. esac
  3033. macro_version='2.2.6'
  3034. macro_revision='1.3012'
  3035. ltmain="$ac_aux_dir/ltmain.sh"
  3036. # Make sure we can run config.sub.
  3037. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3038. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3039. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3040. { (exit 1); exit 1; }; }
  3041. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  3042. $as_echo_n "checking build system type... " >&6; }
  3043. if test "${ac_cv_build+set}" = set; then
  3044. $as_echo_n "(cached) " >&6
  3045. else
  3046. ac_build_alias=$build_alias
  3047. test "x$ac_build_alias" = x &&
  3048. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3049. test "x$ac_build_alias" = x &&
  3050. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3051. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3052. { (exit 1); exit 1; }; }
  3053. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3054. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3055. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3056. { (exit 1); exit 1; }; }
  3057. fi
  3058. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3059. $as_echo "$ac_cv_build" >&6; }
  3060. case $ac_cv_build in
  3061. *-*-*) ;;
  3062. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3063. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  3064. { (exit 1); exit 1; }; };;
  3065. esac
  3066. build=$ac_cv_build
  3067. ac_save_IFS=$IFS; IFS='-'
  3068. set x $ac_cv_build
  3069. shift
  3070. build_cpu=$1
  3071. build_vendor=$2
  3072. shift; shift
  3073. # Remember, the first character of IFS is used to create $*,
  3074. # except with old shells:
  3075. build_os=$*
  3076. IFS=$ac_save_IFS
  3077. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3078. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  3079. $as_echo_n "checking host system type... " >&6; }
  3080. if test "${ac_cv_host+set}" = set; then
  3081. $as_echo_n "(cached) " >&6
  3082. else
  3083. if test "x$host_alias" = x; then
  3084. ac_cv_host=$ac_cv_build
  3085. else
  3086. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3087. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3088. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3089. { (exit 1); exit 1; }; }
  3090. fi
  3091. fi
  3092. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3093. $as_echo "$ac_cv_host" >&6; }
  3094. case $ac_cv_host in
  3095. *-*-*) ;;
  3096. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3097. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  3098. { (exit 1); exit 1; }; };;
  3099. esac
  3100. host=$ac_cv_host
  3101. ac_save_IFS=$IFS; IFS='-'
  3102. set x $ac_cv_host
  3103. shift
  3104. host_cpu=$1
  3105. host_vendor=$2
  3106. shift; shift
  3107. # Remember, the first character of IFS is used to create $*,
  3108. # except with old shells:
  3109. host_os=$*
  3110. IFS=$ac_save_IFS
  3111. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3112. ac_ext=c
  3113. ac_cpp='$CPP $CPPFLAGS'
  3114. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3115. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3116. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3117. if test -n "$ac_tool_prefix"; then
  3118. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3119. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3120. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3121. $as_echo_n "checking for $ac_word... " >&6; }
  3122. if test "${ac_cv_prog_CC+set}" = set; then
  3123. $as_echo_n "(cached) " >&6
  3124. else
  3125. if test -n "$CC"; then
  3126. ac_cv_prog_CC="$CC" # Let the user override the test.
  3127. else
  3128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3129. for as_dir in $PATH
  3130. do
  3131. IFS=$as_save_IFS
  3132. test -z "$as_dir" && as_dir=.
  3133. for ac_exec_ext in '' $ac_executable_extensions; do
  3134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3135. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3136. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3137. break 2
  3138. fi
  3139. done
  3140. done
  3141. IFS=$as_save_IFS
  3142. fi
  3143. fi
  3144. CC=$ac_cv_prog_CC
  3145. if test -n "$CC"; then
  3146. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3147. $as_echo "$CC" >&6; }
  3148. else
  3149. { $as_echo "$as_me:$LINENO: result: no" >&5
  3150. $as_echo "no" >&6; }
  3151. fi
  3152. fi
  3153. if test -z "$ac_cv_prog_CC"; then
  3154. ac_ct_CC=$CC
  3155. # Extract the first word of "gcc", so it can be a program name with args.
  3156. set dummy gcc; ac_word=$2
  3157. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3158. $as_echo_n "checking for $ac_word... " >&6; }
  3159. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3160. $as_echo_n "(cached) " >&6
  3161. else
  3162. if test -n "$ac_ct_CC"; then
  3163. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3164. else
  3165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3166. for as_dir in $PATH
  3167. do
  3168. IFS=$as_save_IFS
  3169. test -z "$as_dir" && as_dir=.
  3170. for ac_exec_ext in '' $ac_executable_extensions; do
  3171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3172. ac_cv_prog_ac_ct_CC="gcc"
  3173. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3174. break 2
  3175. fi
  3176. done
  3177. done
  3178. IFS=$as_save_IFS
  3179. fi
  3180. fi
  3181. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3182. if test -n "$ac_ct_CC"; then
  3183. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3184. $as_echo "$ac_ct_CC" >&6; }
  3185. else
  3186. { $as_echo "$as_me:$LINENO: result: no" >&5
  3187. $as_echo "no" >&6; }
  3188. fi
  3189. if test "x$ac_ct_CC" = x; then
  3190. CC=""
  3191. else
  3192. case $cross_compiling:$ac_tool_warned in
  3193. yes:)
  3194. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3195. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3196. ac_tool_warned=yes ;;
  3197. esac
  3198. CC=$ac_ct_CC
  3199. fi
  3200. else
  3201. CC="$ac_cv_prog_CC"
  3202. fi
  3203. if test -z "$CC"; then
  3204. if test -n "$ac_tool_prefix"; then
  3205. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3206. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3207. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3208. $as_echo_n "checking for $ac_word... " >&6; }
  3209. if test "${ac_cv_prog_CC+set}" = set; then
  3210. $as_echo_n "(cached) " >&6
  3211. else
  3212. if test -n "$CC"; then
  3213. ac_cv_prog_CC="$CC" # Let the user override the test.
  3214. else
  3215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3216. for as_dir in $PATH
  3217. do
  3218. IFS=$as_save_IFS
  3219. test -z "$as_dir" && as_dir=.
  3220. for ac_exec_ext in '' $ac_executable_extensions; do
  3221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3222. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3223. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3224. break 2
  3225. fi
  3226. done
  3227. done
  3228. IFS=$as_save_IFS
  3229. fi
  3230. fi
  3231. CC=$ac_cv_prog_CC
  3232. if test -n "$CC"; then
  3233. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3234. $as_echo "$CC" >&6; }
  3235. else
  3236. { $as_echo "$as_me:$LINENO: result: no" >&5
  3237. $as_echo "no" >&6; }
  3238. fi
  3239. fi
  3240. fi
  3241. if test -z "$CC"; then
  3242. # Extract the first word of "cc", so it can be a program name with args.
  3243. set dummy cc; ac_word=$2
  3244. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3245. $as_echo_n "checking for $ac_word... " >&6; }
  3246. if test "${ac_cv_prog_CC+set}" = set; then
  3247. $as_echo_n "(cached) " >&6
  3248. else
  3249. if test -n "$CC"; then
  3250. ac_cv_prog_CC="$CC" # Let the user override the test.
  3251. else
  3252. ac_prog_rejected=no
  3253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3254. for as_dir in $PATH
  3255. do
  3256. IFS=$as_save_IFS
  3257. test -z "$as_dir" && as_dir=.
  3258. for ac_exec_ext in '' $ac_executable_extensions; do
  3259. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3260. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3261. ac_prog_rejected=yes
  3262. continue
  3263. fi
  3264. ac_cv_prog_CC="cc"
  3265. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3266. break 2
  3267. fi
  3268. done
  3269. done
  3270. IFS=$as_save_IFS
  3271. if test $ac_prog_rejected = yes; then
  3272. # We found a bogon in the path, so make sure we never use it.
  3273. set dummy $ac_cv_prog_CC
  3274. shift
  3275. if test $# != 0; then
  3276. # We chose a different compiler from the bogus one.
  3277. # However, it has the same basename, so the bogon will be chosen
  3278. # first if we set CC to just the basename; use the full file name.
  3279. shift
  3280. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3281. fi
  3282. fi
  3283. fi
  3284. fi
  3285. CC=$ac_cv_prog_CC
  3286. if test -n "$CC"; then
  3287. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3288. $as_echo "$CC" >&6; }
  3289. else
  3290. { $as_echo "$as_me:$LINENO: result: no" >&5
  3291. $as_echo "no" >&6; }
  3292. fi
  3293. fi
  3294. if test -z "$CC"; then
  3295. if test -n "$ac_tool_prefix"; then
  3296. for ac_prog in cl.exe
  3297. do
  3298. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3299. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3300. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3301. $as_echo_n "checking for $ac_word... " >&6; }
  3302. if test "${ac_cv_prog_CC+set}" = set; then
  3303. $as_echo_n "(cached) " >&6
  3304. else
  3305. if test -n "$CC"; then
  3306. ac_cv_prog_CC="$CC" # Let the user override the test.
  3307. else
  3308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3309. for as_dir in $PATH
  3310. do
  3311. IFS=$as_save_IFS
  3312. test -z "$as_dir" && as_dir=.
  3313. for ac_exec_ext in '' $ac_executable_extensions; do
  3314. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3315. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3316. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3317. break 2
  3318. fi
  3319. done
  3320. done
  3321. IFS=$as_save_IFS
  3322. fi
  3323. fi
  3324. CC=$ac_cv_prog_CC
  3325. if test -n "$CC"; then
  3326. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3327. $as_echo "$CC" >&6; }
  3328. else
  3329. { $as_echo "$as_me:$LINENO: result: no" >&5
  3330. $as_echo "no" >&6; }
  3331. fi
  3332. test -n "$CC" && break
  3333. done
  3334. fi
  3335. if test -z "$CC"; then
  3336. ac_ct_CC=$CC
  3337. for ac_prog in cl.exe
  3338. do
  3339. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3340. set dummy $ac_prog; ac_word=$2
  3341. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3342. $as_echo_n "checking for $ac_word... " >&6; }
  3343. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3344. $as_echo_n "(cached) " >&6
  3345. else
  3346. if test -n "$ac_ct_CC"; then
  3347. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3348. else
  3349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3350. for as_dir in $PATH
  3351. do
  3352. IFS=$as_save_IFS
  3353. test -z "$as_dir" && as_dir=.
  3354. for ac_exec_ext in '' $ac_executable_extensions; do
  3355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3356. ac_cv_prog_ac_ct_CC="$ac_prog"
  3357. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3358. break 2
  3359. fi
  3360. done
  3361. done
  3362. IFS=$as_save_IFS
  3363. fi
  3364. fi
  3365. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3366. if test -n "$ac_ct_CC"; then
  3367. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3368. $as_echo "$ac_ct_CC" >&6; }
  3369. else
  3370. { $as_echo "$as_me:$LINENO: result: no" >&5
  3371. $as_echo "no" >&6; }
  3372. fi
  3373. test -n "$ac_ct_CC" && break
  3374. done
  3375. if test "x$ac_ct_CC" = x; then
  3376. CC=""
  3377. else
  3378. case $cross_compiling:$ac_tool_warned in
  3379. yes:)
  3380. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3381. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3382. ac_tool_warned=yes ;;
  3383. esac
  3384. CC=$ac_ct_CC
  3385. fi
  3386. fi
  3387. fi
  3388. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3390. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3391. See \`config.log' for more details." >&5
  3392. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3393. See \`config.log' for more details." >&2;}
  3394. { (exit 1); exit 1; }; }; }
  3395. # Provide some information about the compiler.
  3396. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3397. set X $ac_compile
  3398. ac_compiler=$2
  3399. { (ac_try="$ac_compiler --version >&5"
  3400. case "(($ac_try" in
  3401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3402. *) ac_try_echo=$ac_try;;
  3403. esac
  3404. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3405. $as_echo "$ac_try_echo") >&5
  3406. (eval "$ac_compiler --version >&5") 2>&5
  3407. ac_status=$?
  3408. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3409. (exit $ac_status); }
  3410. { (ac_try="$ac_compiler -v >&5"
  3411. case "(($ac_try" in
  3412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3413. *) ac_try_echo=$ac_try;;
  3414. esac
  3415. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3416. $as_echo "$ac_try_echo") >&5
  3417. (eval "$ac_compiler -v >&5") 2>&5
  3418. ac_status=$?
  3419. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3420. (exit $ac_status); }
  3421. { (ac_try="$ac_compiler -V >&5"
  3422. case "(($ac_try" in
  3423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3424. *) ac_try_echo=$ac_try;;
  3425. esac
  3426. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3427. $as_echo "$ac_try_echo") >&5
  3428. (eval "$ac_compiler -V >&5") 2>&5
  3429. ac_status=$?
  3430. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3431. (exit $ac_status); }
  3432. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3433. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3434. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3435. $as_echo_n "(cached) " >&6
  3436. else
  3437. cat >conftest.$ac_ext <<_ACEOF
  3438. /* confdefs.h. */
  3439. _ACEOF
  3440. cat confdefs.h >>conftest.$ac_ext
  3441. cat >>conftest.$ac_ext <<_ACEOF
  3442. /* end confdefs.h. */
  3443. int
  3444. main ()
  3445. {
  3446. #ifndef __GNUC__
  3447. choke me
  3448. #endif
  3449. ;
  3450. return 0;
  3451. }
  3452. _ACEOF
  3453. rm -f conftest.$ac_objext
  3454. if { (ac_try="$ac_compile"
  3455. case "(($ac_try" in
  3456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3457. *) ac_try_echo=$ac_try;;
  3458. esac
  3459. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3460. $as_echo "$ac_try_echo") >&5
  3461. (eval "$ac_compile") 2>conftest.er1
  3462. ac_status=$?
  3463. grep -v '^ *+' conftest.er1 >conftest.err
  3464. rm -f conftest.er1
  3465. cat conftest.err >&5
  3466. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3467. (exit $ac_status); } && {
  3468. test -z "$ac_c_werror_flag" ||
  3469. test ! -s conftest.err
  3470. } && test -s conftest.$ac_objext; then
  3471. ac_compiler_gnu=yes
  3472. else
  3473. $as_echo "$as_me: failed program was:" >&5
  3474. sed 's/^/| /' conftest.$ac_ext >&5
  3475. ac_compiler_gnu=no
  3476. fi
  3477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3478. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3479. fi
  3480. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3481. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3482. if test $ac_compiler_gnu = yes; then
  3483. GCC=yes
  3484. else
  3485. GCC=
  3486. fi
  3487. ac_test_CFLAGS=${CFLAGS+set}
  3488. ac_save_CFLAGS=$CFLAGS
  3489. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3490. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3491. if test "${ac_cv_prog_cc_g+set}" = set; then
  3492. $as_echo_n "(cached) " >&6
  3493. else
  3494. ac_save_c_werror_flag=$ac_c_werror_flag
  3495. ac_c_werror_flag=yes
  3496. ac_cv_prog_cc_g=no
  3497. CFLAGS="-g"
  3498. cat >conftest.$ac_ext <<_ACEOF
  3499. /* confdefs.h. */
  3500. _ACEOF
  3501. cat confdefs.h >>conftest.$ac_ext
  3502. cat >>conftest.$ac_ext <<_ACEOF
  3503. /* end confdefs.h. */
  3504. int
  3505. main ()
  3506. {
  3507. ;
  3508. return 0;
  3509. }
  3510. _ACEOF
  3511. rm -f conftest.$ac_objext
  3512. if { (ac_try="$ac_compile"
  3513. case "(($ac_try" in
  3514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3515. *) ac_try_echo=$ac_try;;
  3516. esac
  3517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3518. $as_echo "$ac_try_echo") >&5
  3519. (eval "$ac_compile") 2>conftest.er1
  3520. ac_status=$?
  3521. grep -v '^ *+' conftest.er1 >conftest.err
  3522. rm -f conftest.er1
  3523. cat conftest.err >&5
  3524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3525. (exit $ac_status); } && {
  3526. test -z "$ac_c_werror_flag" ||
  3527. test ! -s conftest.err
  3528. } && test -s conftest.$ac_objext; then
  3529. ac_cv_prog_cc_g=yes
  3530. else
  3531. $as_echo "$as_me: failed program was:" >&5
  3532. sed 's/^/| /' conftest.$ac_ext >&5
  3533. CFLAGS=""
  3534. cat >conftest.$ac_ext <<_ACEOF
  3535. /* confdefs.h. */
  3536. _ACEOF
  3537. cat confdefs.h >>conftest.$ac_ext
  3538. cat >>conftest.$ac_ext <<_ACEOF
  3539. /* end confdefs.h. */
  3540. int
  3541. main ()
  3542. {
  3543. ;
  3544. return 0;
  3545. }
  3546. _ACEOF
  3547. rm -f conftest.$ac_objext
  3548. if { (ac_try="$ac_compile"
  3549. case "(($ac_try" in
  3550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3551. *) ac_try_echo=$ac_try;;
  3552. esac
  3553. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3554. $as_echo "$ac_try_echo") >&5
  3555. (eval "$ac_compile") 2>conftest.er1
  3556. ac_status=$?
  3557. grep -v '^ *+' conftest.er1 >conftest.err
  3558. rm -f conftest.er1
  3559. cat conftest.err >&5
  3560. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3561. (exit $ac_status); } && {
  3562. test -z "$ac_c_werror_flag" ||
  3563. test ! -s conftest.err
  3564. } && test -s conftest.$ac_objext; then
  3565. :
  3566. else
  3567. $as_echo "$as_me: failed program was:" >&5
  3568. sed 's/^/| /' conftest.$ac_ext >&5
  3569. ac_c_werror_flag=$ac_save_c_werror_flag
  3570. CFLAGS="-g"
  3571. cat >conftest.$ac_ext <<_ACEOF
  3572. /* confdefs.h. */
  3573. _ACEOF
  3574. cat confdefs.h >>conftest.$ac_ext
  3575. cat >>conftest.$ac_ext <<_ACEOF
  3576. /* end confdefs.h. */
  3577. int
  3578. main ()
  3579. {
  3580. ;
  3581. return 0;
  3582. }
  3583. _ACEOF
  3584. rm -f conftest.$ac_objext
  3585. if { (ac_try="$ac_compile"
  3586. case "(($ac_try" in
  3587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3588. *) ac_try_echo=$ac_try;;
  3589. esac
  3590. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3591. $as_echo "$ac_try_echo") >&5
  3592. (eval "$ac_compile") 2>conftest.er1
  3593. ac_status=$?
  3594. grep -v '^ *+' conftest.er1 >conftest.err
  3595. rm -f conftest.er1
  3596. cat conftest.err >&5
  3597. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3598. (exit $ac_status); } && {
  3599. test -z "$ac_c_werror_flag" ||
  3600. test ! -s conftest.err
  3601. } && test -s conftest.$ac_objext; then
  3602. ac_cv_prog_cc_g=yes
  3603. else
  3604. $as_echo "$as_me: failed program was:" >&5
  3605. sed 's/^/| /' conftest.$ac_ext >&5
  3606. fi
  3607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3608. fi
  3609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3610. fi
  3611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3612. ac_c_werror_flag=$ac_save_c_werror_flag
  3613. fi
  3614. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3615. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3616. if test "$ac_test_CFLAGS" = set; then
  3617. CFLAGS=$ac_save_CFLAGS
  3618. elif test $ac_cv_prog_cc_g = yes; then
  3619. if test "$GCC" = yes; then
  3620. CFLAGS="-g -O2"
  3621. else
  3622. CFLAGS="-g"
  3623. fi
  3624. else
  3625. if test "$GCC" = yes; then
  3626. CFLAGS="-O2"
  3627. else
  3628. CFLAGS=
  3629. fi
  3630. fi
  3631. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3632. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3633. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3634. $as_echo_n "(cached) " >&6
  3635. else
  3636. ac_cv_prog_cc_c89=no
  3637. ac_save_CC=$CC
  3638. cat >conftest.$ac_ext <<_ACEOF
  3639. /* confdefs.h. */
  3640. _ACEOF
  3641. cat confdefs.h >>conftest.$ac_ext
  3642. cat >>conftest.$ac_ext <<_ACEOF
  3643. /* end confdefs.h. */
  3644. #include <stdarg.h>
  3645. #include <stdio.h>
  3646. #include <sys/types.h>
  3647. #include <sys/stat.h>
  3648. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3649. struct buf { int x; };
  3650. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3651. static char *e (p, i)
  3652. char **p;
  3653. int i;
  3654. {
  3655. return p[i];
  3656. }
  3657. static char *f (char * (*g) (char **, int), char **p, ...)
  3658. {
  3659. char *s;
  3660. va_list v;
  3661. va_start (v,p);
  3662. s = g (p, va_arg (v,int));
  3663. va_end (v);
  3664. return s;
  3665. }
  3666. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3667. function prototypes and stuff, but not '\xHH' hex character constants.
  3668. These don't provoke an error unfortunately, instead are silently treated
  3669. as 'x'. The following induces an error, until -std is added to get
  3670. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3671. array size at least. It's necessary to write '\x00'==0 to get something
  3672. that's true only with -std. */
  3673. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3674. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3675. inside strings and character constants. */
  3676. #define FOO(x) 'x'
  3677. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3678. int test (int i, double x);
  3679. struct s1 {int (*f) (int a);};
  3680. struct s2 {int (*f) (double a);};
  3681. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3682. int argc;
  3683. char **argv;
  3684. int
  3685. main ()
  3686. {
  3687. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3688. ;
  3689. return 0;
  3690. }
  3691. _ACEOF
  3692. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3693. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3694. do
  3695. CC="$ac_save_CC $ac_arg"
  3696. rm -f conftest.$ac_objext
  3697. if { (ac_try="$ac_compile"
  3698. case "(($ac_try" in
  3699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3700. *) ac_try_echo=$ac_try;;
  3701. esac
  3702. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3703. $as_echo "$ac_try_echo") >&5
  3704. (eval "$ac_compile") 2>conftest.er1
  3705. ac_status=$?
  3706. grep -v '^ *+' conftest.er1 >conftest.err
  3707. rm -f conftest.er1
  3708. cat conftest.err >&5
  3709. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3710. (exit $ac_status); } && {
  3711. test -z "$ac_c_werror_flag" ||
  3712. test ! -s conftest.err
  3713. } && test -s conftest.$ac_objext; then
  3714. ac_cv_prog_cc_c89=$ac_arg
  3715. else
  3716. $as_echo "$as_me: failed program was:" >&5
  3717. sed 's/^/| /' conftest.$ac_ext >&5
  3718. fi
  3719. rm -f core conftest.err conftest.$ac_objext
  3720. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3721. done
  3722. rm -f conftest.$ac_ext
  3723. CC=$ac_save_CC
  3724. fi
  3725. # AC_CACHE_VAL
  3726. case "x$ac_cv_prog_cc_c89" in
  3727. x)
  3728. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3729. $as_echo "none needed" >&6; } ;;
  3730. xno)
  3731. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3732. $as_echo "unsupported" >&6; } ;;
  3733. *)
  3734. CC="$CC $ac_cv_prog_cc_c89"
  3735. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3736. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3737. esac
  3738. ac_ext=cpp
  3739. ac_cpp='$CXXCPP $CPPFLAGS'
  3740. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3741. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3742. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3743. depcc="$CC" am_compiler_list=
  3744. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3745. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3746. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3747. $as_echo_n "(cached) " >&6
  3748. else
  3749. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3750. # We make a subdir and do the tests there. Otherwise we can end up
  3751. # making bogus files that we don't know about and never remove. For
  3752. # instance it was reported that on HP-UX the gcc test will end up
  3753. # making a dummy file named `D' -- because `-MD' means `put the output
  3754. # in D'.
  3755. mkdir conftest.dir
  3756. # Copy depcomp to subdir because otherwise we won't find it if we're
  3757. # using a relative directory.
  3758. cp "$am_depcomp" conftest.dir
  3759. cd conftest.dir
  3760. # We will build objects and dependencies in a subdirectory because
  3761. # it helps to detect inapplicable dependency modes. For instance
  3762. # both Tru64's cc and ICC support -MD to output dependencies as a
  3763. # side effect of compilation, but ICC will put the dependencies in
  3764. # the current directory while Tru64 will put them in the object
  3765. # directory.
  3766. mkdir sub
  3767. am_cv_CC_dependencies_compiler_type=none
  3768. if test "$am_compiler_list" = ""; then
  3769. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3770. fi
  3771. for depmode in $am_compiler_list; do
  3772. # Setup a source with many dependencies, because some compilers
  3773. # like to wrap large dependency lists on column 80 (with \), and
  3774. # we should not choose a depcomp mode which is confused by this.
  3775. #
  3776. # We need to recreate these files for each test, as the compiler may
  3777. # overwrite some of them when testing with obscure command lines.
  3778. # This happens at least with the AIX C compiler.
  3779. : > sub/conftest.c
  3780. for i in 1 2 3 4 5 6; do
  3781. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3782. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3783. # Solaris 8's {/usr,}/bin/sh.
  3784. touch sub/conftst$i.h
  3785. done
  3786. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3787. case $depmode in
  3788. nosideeffect)
  3789. # after this tag, mechanisms are not by side-effect, so they'll
  3790. # only be used when explicitly requested
  3791. if test "x$enable_dependency_tracking" = xyes; then
  3792. continue
  3793. else
  3794. break
  3795. fi
  3796. ;;
  3797. none) break ;;
  3798. esac
  3799. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3800. # mode. It turns out that the SunPro C++ compiler does not properly
  3801. # handle `-M -o', and we need to detect this.
  3802. if depmode=$depmode \
  3803. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3804. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3805. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3806. >/dev/null 2>conftest.err &&
  3807. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3808. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3809. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3810. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3811. # icc doesn't choke on unknown options, it will just issue warnings
  3812. # or remarks (even with -Werror). So we grep stderr for any message
  3813. # that says an option was ignored or not supported.
  3814. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3815. # icc: Command line warning: ignoring option '-M'; no argument required
  3816. # The diagnosis changed in icc 8.0:
  3817. # icc: Command line remark: option '-MP' not supported
  3818. if (grep 'ignoring option' conftest.err ||
  3819. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3820. am_cv_CC_dependencies_compiler_type=$depmode
  3821. break
  3822. fi
  3823. fi
  3824. done
  3825. cd ..
  3826. rm -rf conftest.dir
  3827. else
  3828. am_cv_CC_dependencies_compiler_type=none
  3829. fi
  3830. fi
  3831. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3832. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3833. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3834. if
  3835. test "x$enable_dependency_tracking" != xno \
  3836. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3837. am__fastdepCC_TRUE=
  3838. am__fastdepCC_FALSE='#'
  3839. else
  3840. am__fastdepCC_TRUE='#'
  3841. am__fastdepCC_FALSE=
  3842. fi
  3843. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3844. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3845. if test "${ac_cv_path_SED+set}" = set; then
  3846. $as_echo_n "(cached) " >&6
  3847. else
  3848. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3849. for ac_i in 1 2 3 4 5 6 7; do
  3850. ac_script="$ac_script$as_nl$ac_script"
  3851. done
  3852. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3853. $as_unset ac_script || ac_script=
  3854. if test -z "$SED"; then
  3855. ac_path_SED_found=false
  3856. # Loop through the user's path and test for each of PROGNAME-LIST
  3857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3858. for as_dir in $PATH
  3859. do
  3860. IFS=$as_save_IFS
  3861. test -z "$as_dir" && as_dir=.
  3862. for ac_prog in sed gsed; do
  3863. for ac_exec_ext in '' $ac_executable_extensions; do
  3864. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3865. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3866. # Check for GNU ac_path_SED and select it if it is found.
  3867. # Check for GNU $ac_path_SED
  3868. case `"$ac_path_SED" --version 2>&1` in
  3869. *GNU*)
  3870. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3871. *)
  3872. ac_count=0
  3873. $as_echo_n 0123456789 >"conftest.in"
  3874. while :
  3875. do
  3876. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3877. mv "conftest.tmp" "conftest.in"
  3878. cp "conftest.in" "conftest.nl"
  3879. $as_echo '' >> "conftest.nl"
  3880. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3881. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3882. ac_count=`expr $ac_count + 1`
  3883. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3884. # Best one so far, save it but keep looking for a better one
  3885. ac_cv_path_SED="$ac_path_SED"
  3886. ac_path_SED_max=$ac_count
  3887. fi
  3888. # 10*(2^10) chars as input seems more than enough
  3889. test $ac_count -gt 10 && break
  3890. done
  3891. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3892. esac
  3893. $ac_path_SED_found && break 3
  3894. done
  3895. done
  3896. done
  3897. IFS=$as_save_IFS
  3898. if test -z "$ac_cv_path_SED"; then
  3899. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3900. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3901. { (exit 1); exit 1; }; }
  3902. fi
  3903. else
  3904. ac_cv_path_SED=$SED
  3905. fi
  3906. fi
  3907. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3908. $as_echo "$ac_cv_path_SED" >&6; }
  3909. SED="$ac_cv_path_SED"
  3910. rm -f conftest.sed
  3911. test -z "$SED" && SED=sed
  3912. Xsed="$SED -e 1s/^X//"
  3913. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3914. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3915. if test "${ac_cv_path_GREP+set}" = set; then
  3916. $as_echo_n "(cached) " >&6
  3917. else
  3918. if test -z "$GREP"; then
  3919. ac_path_GREP_found=false
  3920. # Loop through the user's path and test for each of PROGNAME-LIST
  3921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3922. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3923. do
  3924. IFS=$as_save_IFS
  3925. test -z "$as_dir" && as_dir=.
  3926. for ac_prog in grep ggrep; do
  3927. for ac_exec_ext in '' $ac_executable_extensions; do
  3928. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3929. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3930. # Check for GNU ac_path_GREP and select it if it is found.
  3931. # Check for GNU $ac_path_GREP
  3932. case `"$ac_path_GREP" --version 2>&1` in
  3933. *GNU*)
  3934. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3935. *)
  3936. ac_count=0
  3937. $as_echo_n 0123456789 >"conftest.in"
  3938. while :
  3939. do
  3940. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3941. mv "conftest.tmp" "conftest.in"
  3942. cp "conftest.in" "conftest.nl"
  3943. $as_echo 'GREP' >> "conftest.nl"
  3944. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3945. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3946. ac_count=`expr $ac_count + 1`
  3947. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3948. # Best one so far, save it but keep looking for a better one
  3949. ac_cv_path_GREP="$ac_path_GREP"
  3950. ac_path_GREP_max=$ac_count
  3951. fi
  3952. # 10*(2^10) chars as input seems more than enough
  3953. test $ac_count -gt 10 && break
  3954. done
  3955. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3956. esac
  3957. $ac_path_GREP_found && break 3
  3958. done
  3959. done
  3960. done
  3961. IFS=$as_save_IFS
  3962. if test -z "$ac_cv_path_GREP"; then
  3963. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3964. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3965. { (exit 1); exit 1; }; }
  3966. fi
  3967. else
  3968. ac_cv_path_GREP=$GREP
  3969. fi
  3970. fi
  3971. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3972. $as_echo "$ac_cv_path_GREP" >&6; }
  3973. GREP="$ac_cv_path_GREP"
  3974. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3975. $as_echo_n "checking for egrep... " >&6; }
  3976. if test "${ac_cv_path_EGREP+set}" = set; then
  3977. $as_echo_n "(cached) " >&6
  3978. else
  3979. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3980. then ac_cv_path_EGREP="$GREP -E"
  3981. else
  3982. if test -z "$EGREP"; then
  3983. ac_path_EGREP_found=false
  3984. # Loop through the user's path and test for each of PROGNAME-LIST
  3985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3986. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3987. do
  3988. IFS=$as_save_IFS
  3989. test -z "$as_dir" && as_dir=.
  3990. for ac_prog in egrep; do
  3991. for ac_exec_ext in '' $ac_executable_extensions; do
  3992. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3993. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3994. # Check for GNU ac_path_EGREP and select it if it is found.
  3995. # Check for GNU $ac_path_EGREP
  3996. case `"$ac_path_EGREP" --version 2>&1` in
  3997. *GNU*)
  3998. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3999. *)
  4000. ac_count=0
  4001. $as_echo_n 0123456789 >"conftest.in"
  4002. while :
  4003. do
  4004. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4005. mv "conftest.tmp" "conftest.in"
  4006. cp "conftest.in" "conftest.nl"
  4007. $as_echo 'EGREP' >> "conftest.nl"
  4008. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4009. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4010. ac_count=`expr $ac_count + 1`
  4011. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4012. # Best one so far, save it but keep looking for a better one
  4013. ac_cv_path_EGREP="$ac_path_EGREP"
  4014. ac_path_EGREP_max=$ac_count
  4015. fi
  4016. # 10*(2^10) chars as input seems more than enough
  4017. test $ac_count -gt 10 && break
  4018. done
  4019. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4020. esac
  4021. $ac_path_EGREP_found && break 3
  4022. done
  4023. done
  4024. done
  4025. IFS=$as_save_IFS
  4026. if test -z "$ac_cv_path_EGREP"; then
  4027. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4028. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4029. { (exit 1); exit 1; }; }
  4030. fi
  4031. else
  4032. ac_cv_path_EGREP=$EGREP
  4033. fi
  4034. fi
  4035. fi
  4036. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4037. $as_echo "$ac_cv_path_EGREP" >&6; }
  4038. EGREP="$ac_cv_path_EGREP"
  4039. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4040. $as_echo_n "checking for fgrep... " >&6; }
  4041. if test "${ac_cv_path_FGREP+set}" = set; then
  4042. $as_echo_n "(cached) " >&6
  4043. else
  4044. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4045. then ac_cv_path_FGREP="$GREP -F"
  4046. else
  4047. if test -z "$FGREP"; then
  4048. ac_path_FGREP_found=false
  4049. # Loop through the user's path and test for each of PROGNAME-LIST
  4050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4051. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4052. do
  4053. IFS=$as_save_IFS
  4054. test -z "$as_dir" && as_dir=.
  4055. for ac_prog in fgrep; do
  4056. for ac_exec_ext in '' $ac_executable_extensions; do
  4057. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4058. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4059. # Check for GNU ac_path_FGREP and select it if it is found.
  4060. # Check for GNU $ac_path_FGREP
  4061. case `"$ac_path_FGREP" --version 2>&1` in
  4062. *GNU*)
  4063. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4064. *)
  4065. ac_count=0
  4066. $as_echo_n 0123456789 >"conftest.in"
  4067. while :
  4068. do
  4069. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4070. mv "conftest.tmp" "conftest.in"
  4071. cp "conftest.in" "conftest.nl"
  4072. $as_echo 'FGREP' >> "conftest.nl"
  4073. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4074. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4075. ac_count=`expr $ac_count + 1`
  4076. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4077. # Best one so far, save it but keep looking for a better one
  4078. ac_cv_path_FGREP="$ac_path_FGREP"
  4079. ac_path_FGREP_max=$ac_count
  4080. fi
  4081. # 10*(2^10) chars as input seems more than enough
  4082. test $ac_count -gt 10 && break
  4083. done
  4084. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4085. esac
  4086. $ac_path_FGREP_found && break 3
  4087. done
  4088. done
  4089. done
  4090. IFS=$as_save_IFS
  4091. if test -z "$ac_cv_path_FGREP"; then
  4092. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4093. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4094. { (exit 1); exit 1; }; }
  4095. fi
  4096. else
  4097. ac_cv_path_FGREP=$FGREP
  4098. fi
  4099. fi
  4100. fi
  4101. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4102. $as_echo "$ac_cv_path_FGREP" >&6; }
  4103. FGREP="$ac_cv_path_FGREP"
  4104. test -z "$GREP" && GREP=grep
  4105. # Check whether --with-gnu-ld was given.
  4106. if test "${with_gnu_ld+set}" = set; then
  4107. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4108. else
  4109. with_gnu_ld=no
  4110. fi
  4111. ac_prog=ld
  4112. if test "$GCC" = yes; then
  4113. # Check if gcc -print-prog-name=ld gives a path.
  4114. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4115. $as_echo_n "checking for ld used by $CC... " >&6; }
  4116. case $host in
  4117. *-*-mingw*)
  4118. # gcc leaves a trailing carriage return which upsets mingw
  4119. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4120. *)
  4121. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4122. esac
  4123. case $ac_prog in
  4124. # Accept absolute paths.
  4125. [\\/]* | ?:[\\/]*)
  4126. re_direlt='/[^/][^/]*/\.\./'
  4127. # Canonicalize the pathname of ld
  4128. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4129. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4130. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4131. done
  4132. test -z "$LD" && LD="$ac_prog"
  4133. ;;
  4134. "")
  4135. # If it fails, then pretend we aren't using GCC.
  4136. ac_prog=ld
  4137. ;;
  4138. *)
  4139. # If it is relative, then search for the first ld in PATH.
  4140. with_gnu_ld=unknown
  4141. ;;
  4142. esac
  4143. elif test "$with_gnu_ld" = yes; then
  4144. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4145. $as_echo_n "checking for GNU ld... " >&6; }
  4146. else
  4147. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4148. $as_echo_n "checking for non-GNU ld... " >&6; }
  4149. fi
  4150. if test "${lt_cv_path_LD+set}" = set; then
  4151. $as_echo_n "(cached) " >&6
  4152. else
  4153. if test -z "$LD"; then
  4154. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4155. for ac_dir in $PATH; do
  4156. IFS="$lt_save_ifs"
  4157. test -z "$ac_dir" && ac_dir=.
  4158. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4159. lt_cv_path_LD="$ac_dir/$ac_prog"
  4160. # Check to see if the program is GNU ld. I'd rather use --version,
  4161. # but apparently some variants of GNU ld only accept -v.
  4162. # Break only if it was the GNU/non-GNU ld that we prefer.
  4163. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4164. *GNU* | *'with BFD'*)
  4165. test "$with_gnu_ld" != no && break
  4166. ;;
  4167. *)
  4168. test "$with_gnu_ld" != yes && break
  4169. ;;
  4170. esac
  4171. fi
  4172. done
  4173. IFS="$lt_save_ifs"
  4174. else
  4175. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4176. fi
  4177. fi
  4178. LD="$lt_cv_path_LD"
  4179. if test -n "$LD"; then
  4180. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4181. $as_echo "$LD" >&6; }
  4182. else
  4183. { $as_echo "$as_me:$LINENO: result: no" >&5
  4184. $as_echo "no" >&6; }
  4185. fi
  4186. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4187. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4188. { (exit 1); exit 1; }; }
  4189. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4190. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4191. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4192. $as_echo_n "(cached) " >&6
  4193. else
  4194. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4195. case `$LD -v 2>&1 </dev/null` in
  4196. *GNU* | *'with BFD'*)
  4197. lt_cv_prog_gnu_ld=yes
  4198. ;;
  4199. *)
  4200. lt_cv_prog_gnu_ld=no
  4201. ;;
  4202. esac
  4203. fi
  4204. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4205. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4206. with_gnu_ld=$lt_cv_prog_gnu_ld
  4207. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4208. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4209. if test "${lt_cv_path_NM+set}" = set; then
  4210. $as_echo_n "(cached) " >&6
  4211. else
  4212. if test -n "$NM"; then
  4213. # Let the user override the test.
  4214. lt_cv_path_NM="$NM"
  4215. else
  4216. lt_nm_to_check="${ac_tool_prefix}nm"
  4217. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4218. lt_nm_to_check="$lt_nm_to_check nm"
  4219. fi
  4220. for lt_tmp_nm in $lt_nm_to_check; do
  4221. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4222. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4223. IFS="$lt_save_ifs"
  4224. test -z "$ac_dir" && ac_dir=.
  4225. tmp_nm="$ac_dir/$lt_tmp_nm"
  4226. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4227. # Check to see if the nm accepts a BSD-compat flag.
  4228. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4229. # nm: unknown option "B" ignored
  4230. # Tru64's nm complains that /dev/null is an invalid object file
  4231. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4232. */dev/null* | *'Invalid file or object type'*)
  4233. lt_cv_path_NM="$tmp_nm -B"
  4234. break
  4235. ;;
  4236. *)
  4237. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4238. */dev/null*)
  4239. lt_cv_path_NM="$tmp_nm -p"
  4240. break
  4241. ;;
  4242. *)
  4243. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4244. continue # so that we can try to find one that supports BSD flags
  4245. ;;
  4246. esac
  4247. ;;
  4248. esac
  4249. fi
  4250. done
  4251. IFS="$lt_save_ifs"
  4252. done
  4253. : ${lt_cv_path_NM=no}
  4254. fi
  4255. fi
  4256. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4257. $as_echo "$lt_cv_path_NM" >&6; }
  4258. if test "$lt_cv_path_NM" != "no"; then
  4259. NM="$lt_cv_path_NM"
  4260. else
  4261. # Didn't find any BSD compatible name lister, look for dumpbin.
  4262. if test -n "$ac_tool_prefix"; then
  4263. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4264. do
  4265. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4266. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4267. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4268. $as_echo_n "checking for $ac_word... " >&6; }
  4269. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4270. $as_echo_n "(cached) " >&6
  4271. else
  4272. if test -n "$DUMPBIN"; then
  4273. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4274. else
  4275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4276. for as_dir in $PATH
  4277. do
  4278. IFS=$as_save_IFS
  4279. test -z "$as_dir" && as_dir=.
  4280. for ac_exec_ext in '' $ac_executable_extensions; do
  4281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4282. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4283. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4284. break 2
  4285. fi
  4286. done
  4287. done
  4288. IFS=$as_save_IFS
  4289. fi
  4290. fi
  4291. DUMPBIN=$ac_cv_prog_DUMPBIN
  4292. if test -n "$DUMPBIN"; then
  4293. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4294. $as_echo "$DUMPBIN" >&6; }
  4295. else
  4296. { $as_echo "$as_me:$LINENO: result: no" >&5
  4297. $as_echo "no" >&6; }
  4298. fi
  4299. test -n "$DUMPBIN" && break
  4300. done
  4301. fi
  4302. if test -z "$DUMPBIN"; then
  4303. ac_ct_DUMPBIN=$DUMPBIN
  4304. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4305. do
  4306. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4307. set dummy $ac_prog; ac_word=$2
  4308. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4309. $as_echo_n "checking for $ac_word... " >&6; }
  4310. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. if test -n "$ac_ct_DUMPBIN"; then
  4314. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4315. else
  4316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4317. for as_dir in $PATH
  4318. do
  4319. IFS=$as_save_IFS
  4320. test -z "$as_dir" && as_dir=.
  4321. for ac_exec_ext in '' $ac_executable_extensions; do
  4322. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4323. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4324. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4325. break 2
  4326. fi
  4327. done
  4328. done
  4329. IFS=$as_save_IFS
  4330. fi
  4331. fi
  4332. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4333. if test -n "$ac_ct_DUMPBIN"; then
  4334. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4335. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4336. else
  4337. { $as_echo "$as_me:$LINENO: result: no" >&5
  4338. $as_echo "no" >&6; }
  4339. fi
  4340. test -n "$ac_ct_DUMPBIN" && break
  4341. done
  4342. if test "x$ac_ct_DUMPBIN" = x; then
  4343. DUMPBIN=":"
  4344. else
  4345. case $cross_compiling:$ac_tool_warned in
  4346. yes:)
  4347. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4348. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4349. ac_tool_warned=yes ;;
  4350. esac
  4351. DUMPBIN=$ac_ct_DUMPBIN
  4352. fi
  4353. fi
  4354. if test "$DUMPBIN" != ":"; then
  4355. NM="$DUMPBIN"
  4356. fi
  4357. fi
  4358. test -z "$NM" && NM=nm
  4359. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4360. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4361. if test "${lt_cv_nm_interface+set}" = set; then
  4362. $as_echo_n "(cached) " >&6
  4363. else
  4364. lt_cv_nm_interface="BSD nm"
  4365. echo "int some_variable = 0;" > conftest.$ac_ext
  4366. (eval echo "\"\$as_me:4918: $ac_compile\"" >&5)
  4367. (eval "$ac_compile" 2>conftest.err)
  4368. cat conftest.err >&5
  4369. (eval echo "\"\$as_me:4921: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4370. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4371. cat conftest.err >&5
  4372. (eval echo "\"\$as_me:4924: output\"" >&5)
  4373. cat conftest.out >&5
  4374. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4375. lt_cv_nm_interface="MS dumpbin"
  4376. fi
  4377. rm -f conftest*
  4378. fi
  4379. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4380. $as_echo "$lt_cv_nm_interface" >&6; }
  4381. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4382. $as_echo_n "checking whether ln -s works... " >&6; }
  4383. LN_S=$as_ln_s
  4384. if test "$LN_S" = "ln -s"; then
  4385. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4386. $as_echo "yes" >&6; }
  4387. else
  4388. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4389. $as_echo "no, using $LN_S" >&6; }
  4390. fi
  4391. # find the maximum length of command line arguments
  4392. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4393. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4394. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4395. $as_echo_n "(cached) " >&6
  4396. else
  4397. i=0
  4398. teststring="ABCD"
  4399. case $build_os in
  4400. msdosdjgpp*)
  4401. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4402. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4403. # during glob expansion). Even if it were fixed, the result of this
  4404. # check would be larger than it should be.
  4405. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4406. ;;
  4407. gnu*)
  4408. # Under GNU Hurd, this test is not required because there is
  4409. # no limit to the length of command line arguments.
  4410. # Libtool will interpret -1 as no limit whatsoever
  4411. lt_cv_sys_max_cmd_len=-1;
  4412. ;;
  4413. cygwin* | mingw* | cegcc*)
  4414. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4415. # about 5 minutes as the teststring grows exponentially.
  4416. # Worse, since 9x/ME are not pre-emptively multitasking,
  4417. # you end up with a "frozen" computer, even though with patience
  4418. # the test eventually succeeds (with a max line length of 256k).
  4419. # Instead, let's just punt: use the minimum linelength reported by
  4420. # all of the supported platforms: 8192 (on NT/2K/XP).
  4421. lt_cv_sys_max_cmd_len=8192;
  4422. ;;
  4423. amigaos*)
  4424. # On AmigaOS with pdksh, this test takes hours, literally.
  4425. # So we just punt and use a minimum line length of 8192.
  4426. lt_cv_sys_max_cmd_len=8192;
  4427. ;;
  4428. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4429. # This has been around since 386BSD, at least. Likely further.
  4430. if test -x /sbin/sysctl; then
  4431. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4432. elif test -x /usr/sbin/sysctl; then
  4433. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4434. else
  4435. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4436. fi
  4437. # And add a safety zone
  4438. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4439. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4440. ;;
  4441. interix*)
  4442. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4443. lt_cv_sys_max_cmd_len=196608
  4444. ;;
  4445. osf*)
  4446. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4447. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4448. # nice to cause kernel panics so lets avoid the loop below.
  4449. # First set a reasonable default.
  4450. lt_cv_sys_max_cmd_len=16384
  4451. #
  4452. if test -x /sbin/sysconfig; then
  4453. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4454. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4455. esac
  4456. fi
  4457. ;;
  4458. sco3.2v5*)
  4459. lt_cv_sys_max_cmd_len=102400
  4460. ;;
  4461. sysv5* | sco5v6* | sysv4.2uw2*)
  4462. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4463. if test -n "$kargmax"; then
  4464. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4465. else
  4466. lt_cv_sys_max_cmd_len=32768
  4467. fi
  4468. ;;
  4469. *)
  4470. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4471. if test -n "$lt_cv_sys_max_cmd_len"; then
  4472. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4473. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4474. else
  4475. # Make teststring a little bigger before we do anything with it.
  4476. # a 1K string should be a reasonable start.
  4477. for i in 1 2 3 4 5 6 7 8 ; do
  4478. teststring=$teststring$teststring
  4479. done
  4480. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4481. # If test is not a shell built-in, we'll probably end up computing a
  4482. # maximum length that is only half of the actual maximum length, but
  4483. # we can't tell.
  4484. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4485. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4486. test $i != 17 # 1/2 MB should be enough
  4487. do
  4488. i=`expr $i + 1`
  4489. teststring=$teststring$teststring
  4490. done
  4491. # Only check the string length outside the loop.
  4492. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4493. teststring=
  4494. # Add a significant safety factor because C++ compilers can tack on
  4495. # massive amounts of additional arguments before passing them to the
  4496. # linker. It appears as though 1/2 is a usable value.
  4497. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4498. fi
  4499. ;;
  4500. esac
  4501. fi
  4502. if test -n $lt_cv_sys_max_cmd_len ; then
  4503. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4504. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4505. else
  4506. { $as_echo "$as_me:$LINENO: result: none" >&5
  4507. $as_echo "none" >&6; }
  4508. fi
  4509. max_cmd_len=$lt_cv_sys_max_cmd_len
  4510. : ${CP="cp -f"}
  4511. : ${MV="mv -f"}
  4512. : ${RM="rm -f"}
  4513. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4514. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4515. # Try some XSI features
  4516. xsi_shell=no
  4517. ( _lt_dummy="a/b/c"
  4518. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4519. = c,a/b,, \
  4520. && eval 'test $(( 1 + 1 )) -eq 2 \
  4521. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4522. && xsi_shell=yes
  4523. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4524. $as_echo "$xsi_shell" >&6; }
  4525. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4526. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4527. lt_shell_append=no
  4528. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4529. >/dev/null 2>&1 \
  4530. && lt_shell_append=yes
  4531. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4532. $as_echo "$lt_shell_append" >&6; }
  4533. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4534. lt_unset=unset
  4535. else
  4536. lt_unset=false
  4537. fi
  4538. # test EBCDIC or ASCII
  4539. case `echo X|tr X '\101'` in
  4540. A) # ASCII based system
  4541. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4542. lt_SP2NL='tr \040 \012'
  4543. lt_NL2SP='tr \015\012 \040\040'
  4544. ;;
  4545. *) # EBCDIC based system
  4546. lt_SP2NL='tr \100 \n'
  4547. lt_NL2SP='tr \r\n \100\100'
  4548. ;;
  4549. esac
  4550. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4551. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4552. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. lt_cv_ld_reload_flag='-r'
  4556. fi
  4557. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4558. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4559. reload_flag=$lt_cv_ld_reload_flag
  4560. case $reload_flag in
  4561. "" | " "*) ;;
  4562. *) reload_flag=" $reload_flag" ;;
  4563. esac
  4564. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4565. case $host_os in
  4566. darwin*)
  4567. if test "$GCC" = yes; then
  4568. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4569. else
  4570. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4571. fi
  4572. ;;
  4573. esac
  4574. if test -n "$ac_tool_prefix"; then
  4575. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4576. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4577. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4578. $as_echo_n "checking for $ac_word... " >&6; }
  4579. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4580. $as_echo_n "(cached) " >&6
  4581. else
  4582. if test -n "$OBJDUMP"; then
  4583. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4584. else
  4585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4586. for as_dir in $PATH
  4587. do
  4588. IFS=$as_save_IFS
  4589. test -z "$as_dir" && as_dir=.
  4590. for ac_exec_ext in '' $ac_executable_extensions; do
  4591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4592. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4593. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4594. break 2
  4595. fi
  4596. done
  4597. done
  4598. IFS=$as_save_IFS
  4599. fi
  4600. fi
  4601. OBJDUMP=$ac_cv_prog_OBJDUMP
  4602. if test -n "$OBJDUMP"; then
  4603. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4604. $as_echo "$OBJDUMP" >&6; }
  4605. else
  4606. { $as_echo "$as_me:$LINENO: result: no" >&5
  4607. $as_echo "no" >&6; }
  4608. fi
  4609. fi
  4610. if test -z "$ac_cv_prog_OBJDUMP"; then
  4611. ac_ct_OBJDUMP=$OBJDUMP
  4612. # Extract the first word of "objdump", so it can be a program name with args.
  4613. set dummy objdump; ac_word=$2
  4614. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4615. $as_echo_n "checking for $ac_word... " >&6; }
  4616. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4617. $as_echo_n "(cached) " >&6
  4618. else
  4619. if test -n "$ac_ct_OBJDUMP"; then
  4620. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4621. else
  4622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4623. for as_dir in $PATH
  4624. do
  4625. IFS=$as_save_IFS
  4626. test -z "$as_dir" && as_dir=.
  4627. for ac_exec_ext in '' $ac_executable_extensions; do
  4628. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4629. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4630. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4631. break 2
  4632. fi
  4633. done
  4634. done
  4635. IFS=$as_save_IFS
  4636. fi
  4637. fi
  4638. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4639. if test -n "$ac_ct_OBJDUMP"; then
  4640. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4641. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4642. else
  4643. { $as_echo "$as_me:$LINENO: result: no" >&5
  4644. $as_echo "no" >&6; }
  4645. fi
  4646. if test "x$ac_ct_OBJDUMP" = x; then
  4647. OBJDUMP="false"
  4648. else
  4649. case $cross_compiling:$ac_tool_warned in
  4650. yes:)
  4651. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4652. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4653. ac_tool_warned=yes ;;
  4654. esac
  4655. OBJDUMP=$ac_ct_OBJDUMP
  4656. fi
  4657. else
  4658. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4659. fi
  4660. test -z "$OBJDUMP" && OBJDUMP=objdump
  4661. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4662. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4663. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4667. lt_cv_file_magic_test_file=
  4668. lt_cv_deplibs_check_method='unknown'
  4669. # Need to set the preceding variable on all platforms that support
  4670. # interlibrary dependencies.
  4671. # 'none' -- dependencies not supported.
  4672. # `unknown' -- same as none, but documents that we really don't know.
  4673. # 'pass_all' -- all dependencies passed with no checks.
  4674. # 'test_compile' -- check by making test program.
  4675. # 'file_magic [[regex]]' -- check by looking for files in library path
  4676. # which responds to the $file_magic_cmd with a given extended regex.
  4677. # If you have `file' or equivalent on your system and you're not sure
  4678. # whether `pass_all' will *always* work, you probably want this one.
  4679. case $host_os in
  4680. aix[4-9]*)
  4681. lt_cv_deplibs_check_method=pass_all
  4682. ;;
  4683. beos*)
  4684. lt_cv_deplibs_check_method=pass_all
  4685. ;;
  4686. bsdi[45]*)
  4687. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4688. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4689. lt_cv_file_magic_test_file=/shlib/libc.so
  4690. ;;
  4691. cygwin*)
  4692. # func_win32_libid is a shell function defined in ltmain.sh
  4693. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4694. lt_cv_file_magic_cmd='func_win32_libid'
  4695. ;;
  4696. mingw* | pw32*)
  4697. # Base MSYS/MinGW do not provide the 'file' command needed by
  4698. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4699. # unless we find 'file', for example because we are cross-compiling.
  4700. if ( file / ) >/dev/null 2>&1; then
  4701. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4702. lt_cv_file_magic_cmd='func_win32_libid'
  4703. else
  4704. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4705. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4706. fi
  4707. ;;
  4708. cegcc)
  4709. # use the weaker test based on 'objdump'. See mingw*.
  4710. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4711. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4712. ;;
  4713. darwin* | rhapsody*)
  4714. lt_cv_deplibs_check_method=pass_all
  4715. ;;
  4716. freebsd* | dragonfly*)
  4717. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4718. case $host_cpu in
  4719. i*86 )
  4720. # Not sure whether the presence of OpenBSD here was a mistake.
  4721. # Let's accept both of them until this is cleared up.
  4722. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4723. lt_cv_file_magic_cmd=/usr/bin/file
  4724. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4725. ;;
  4726. esac
  4727. else
  4728. lt_cv_deplibs_check_method=pass_all
  4729. fi
  4730. ;;
  4731. gnu*)
  4732. lt_cv_deplibs_check_method=pass_all
  4733. ;;
  4734. hpux10.20* | hpux11*)
  4735. lt_cv_file_magic_cmd=/usr/bin/file
  4736. case $host_cpu in
  4737. ia64*)
  4738. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4739. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4740. ;;
  4741. hppa*64*)
  4742. 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]'
  4743. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4744. ;;
  4745. *)
  4746. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4747. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4748. ;;
  4749. esac
  4750. ;;
  4751. interix[3-9]*)
  4752. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4753. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4754. ;;
  4755. irix5* | irix6* | nonstopux*)
  4756. case $LD in
  4757. *-32|*"-32 ") libmagic=32-bit;;
  4758. *-n32|*"-n32 ") libmagic=N32;;
  4759. *-64|*"-64 ") libmagic=64-bit;;
  4760. *) libmagic=never-match;;
  4761. esac
  4762. lt_cv_deplibs_check_method=pass_all
  4763. ;;
  4764. # This must be Linux ELF.
  4765. linux* | k*bsd*-gnu)
  4766. lt_cv_deplibs_check_method=pass_all
  4767. ;;
  4768. netbsd* | netbsdelf*-gnu)
  4769. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4770. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4771. else
  4772. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4773. fi
  4774. ;;
  4775. newos6*)
  4776. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4777. lt_cv_file_magic_cmd=/usr/bin/file
  4778. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4779. ;;
  4780. *nto* | *qnx*)
  4781. lt_cv_deplibs_check_method=pass_all
  4782. ;;
  4783. openbsd*)
  4784. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4785. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4786. else
  4787. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4788. fi
  4789. ;;
  4790. osf3* | osf4* | osf5*)
  4791. lt_cv_deplibs_check_method=pass_all
  4792. ;;
  4793. rdos*)
  4794. lt_cv_deplibs_check_method=pass_all
  4795. ;;
  4796. solaris*)
  4797. lt_cv_deplibs_check_method=pass_all
  4798. ;;
  4799. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4800. lt_cv_deplibs_check_method=pass_all
  4801. ;;
  4802. sysv4 | sysv4.3*)
  4803. case $host_vendor in
  4804. motorola)
  4805. 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]'
  4806. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4807. ;;
  4808. ncr)
  4809. lt_cv_deplibs_check_method=pass_all
  4810. ;;
  4811. sequent)
  4812. lt_cv_file_magic_cmd='/bin/file'
  4813. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4814. ;;
  4815. sni)
  4816. lt_cv_file_magic_cmd='/bin/file'
  4817. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4818. lt_cv_file_magic_test_file=/lib/libc.so
  4819. ;;
  4820. siemens)
  4821. lt_cv_deplibs_check_method=pass_all
  4822. ;;
  4823. pc)
  4824. lt_cv_deplibs_check_method=pass_all
  4825. ;;
  4826. esac
  4827. ;;
  4828. tpf*)
  4829. lt_cv_deplibs_check_method=pass_all
  4830. ;;
  4831. esac
  4832. fi
  4833. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4834. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4835. file_magic_cmd=$lt_cv_file_magic_cmd
  4836. deplibs_check_method=$lt_cv_deplibs_check_method
  4837. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4838. if test -n "$ac_tool_prefix"; then
  4839. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4840. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4841. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4842. $as_echo_n "checking for $ac_word... " >&6; }
  4843. if test "${ac_cv_prog_AR+set}" = set; then
  4844. $as_echo_n "(cached) " >&6
  4845. else
  4846. if test -n "$AR"; then
  4847. ac_cv_prog_AR="$AR" # Let the user override the test.
  4848. else
  4849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4850. for as_dir in $PATH
  4851. do
  4852. IFS=$as_save_IFS
  4853. test -z "$as_dir" && as_dir=.
  4854. for ac_exec_ext in '' $ac_executable_extensions; do
  4855. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4856. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4857. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4858. break 2
  4859. fi
  4860. done
  4861. done
  4862. IFS=$as_save_IFS
  4863. fi
  4864. fi
  4865. AR=$ac_cv_prog_AR
  4866. if test -n "$AR"; then
  4867. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4868. $as_echo "$AR" >&6; }
  4869. else
  4870. { $as_echo "$as_me:$LINENO: result: no" >&5
  4871. $as_echo "no" >&6; }
  4872. fi
  4873. fi
  4874. if test -z "$ac_cv_prog_AR"; then
  4875. ac_ct_AR=$AR
  4876. # Extract the first word of "ar", so it can be a program name with args.
  4877. set dummy ar; ac_word=$2
  4878. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4879. $as_echo_n "checking for $ac_word... " >&6; }
  4880. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4881. $as_echo_n "(cached) " >&6
  4882. else
  4883. if test -n "$ac_ct_AR"; then
  4884. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4885. else
  4886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4887. for as_dir in $PATH
  4888. do
  4889. IFS=$as_save_IFS
  4890. test -z "$as_dir" && as_dir=.
  4891. for ac_exec_ext in '' $ac_executable_extensions; do
  4892. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4893. ac_cv_prog_ac_ct_AR="ar"
  4894. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4895. break 2
  4896. fi
  4897. done
  4898. done
  4899. IFS=$as_save_IFS
  4900. fi
  4901. fi
  4902. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4903. if test -n "$ac_ct_AR"; then
  4904. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4905. $as_echo "$ac_ct_AR" >&6; }
  4906. else
  4907. { $as_echo "$as_me:$LINENO: result: no" >&5
  4908. $as_echo "no" >&6; }
  4909. fi
  4910. if test "x$ac_ct_AR" = x; then
  4911. AR="false"
  4912. else
  4913. case $cross_compiling:$ac_tool_warned in
  4914. yes:)
  4915. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4916. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4917. ac_tool_warned=yes ;;
  4918. esac
  4919. AR=$ac_ct_AR
  4920. fi
  4921. else
  4922. AR="$ac_cv_prog_AR"
  4923. fi
  4924. test -z "$AR" && AR=ar
  4925. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4926. if test -n "$ac_tool_prefix"; then
  4927. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4928. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4929. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4930. $as_echo_n "checking for $ac_word... " >&6; }
  4931. if test "${ac_cv_prog_STRIP+set}" = set; then
  4932. $as_echo_n "(cached) " >&6
  4933. else
  4934. if test -n "$STRIP"; then
  4935. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4936. else
  4937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4938. for as_dir in $PATH
  4939. do
  4940. IFS=$as_save_IFS
  4941. test -z "$as_dir" && as_dir=.
  4942. for ac_exec_ext in '' $ac_executable_extensions; do
  4943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4944. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4945. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4946. break 2
  4947. fi
  4948. done
  4949. done
  4950. IFS=$as_save_IFS
  4951. fi
  4952. fi
  4953. STRIP=$ac_cv_prog_STRIP
  4954. if test -n "$STRIP"; then
  4955. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4956. $as_echo "$STRIP" >&6; }
  4957. else
  4958. { $as_echo "$as_me:$LINENO: result: no" >&5
  4959. $as_echo "no" >&6; }
  4960. fi
  4961. fi
  4962. if test -z "$ac_cv_prog_STRIP"; then
  4963. ac_ct_STRIP=$STRIP
  4964. # Extract the first word of "strip", so it can be a program name with args.
  4965. set dummy strip; ac_word=$2
  4966. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4967. $as_echo_n "checking for $ac_word... " >&6; }
  4968. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4969. $as_echo_n "(cached) " >&6
  4970. else
  4971. if test -n "$ac_ct_STRIP"; then
  4972. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4973. else
  4974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4975. for as_dir in $PATH
  4976. do
  4977. IFS=$as_save_IFS
  4978. test -z "$as_dir" && as_dir=.
  4979. for ac_exec_ext in '' $ac_executable_extensions; do
  4980. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4981. ac_cv_prog_ac_ct_STRIP="strip"
  4982. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4983. break 2
  4984. fi
  4985. done
  4986. done
  4987. IFS=$as_save_IFS
  4988. fi
  4989. fi
  4990. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4991. if test -n "$ac_ct_STRIP"; then
  4992. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4993. $as_echo "$ac_ct_STRIP" >&6; }
  4994. else
  4995. { $as_echo "$as_me:$LINENO: result: no" >&5
  4996. $as_echo "no" >&6; }
  4997. fi
  4998. if test "x$ac_ct_STRIP" = x; then
  4999. STRIP=":"
  5000. else
  5001. case $cross_compiling:$ac_tool_warned in
  5002. yes:)
  5003. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5004. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5005. ac_tool_warned=yes ;;
  5006. esac
  5007. STRIP=$ac_ct_STRIP
  5008. fi
  5009. else
  5010. STRIP="$ac_cv_prog_STRIP"
  5011. fi
  5012. test -z "$STRIP" && STRIP=:
  5013. if test -n "$ac_tool_prefix"; then
  5014. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5015. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5016. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5017. $as_echo_n "checking for $ac_word... " >&6; }
  5018. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5019. $as_echo_n "(cached) " >&6
  5020. else
  5021. if test -n "$RANLIB"; then
  5022. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5023. else
  5024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5025. for as_dir in $PATH
  5026. do
  5027. IFS=$as_save_IFS
  5028. test -z "$as_dir" && as_dir=.
  5029. for ac_exec_ext in '' $ac_executable_extensions; do
  5030. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5031. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5032. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5033. break 2
  5034. fi
  5035. done
  5036. done
  5037. IFS=$as_save_IFS
  5038. fi
  5039. fi
  5040. RANLIB=$ac_cv_prog_RANLIB
  5041. if test -n "$RANLIB"; then
  5042. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5043. $as_echo "$RANLIB" >&6; }
  5044. else
  5045. { $as_echo "$as_me:$LINENO: result: no" >&5
  5046. $as_echo "no" >&6; }
  5047. fi
  5048. fi
  5049. if test -z "$ac_cv_prog_RANLIB"; then
  5050. ac_ct_RANLIB=$RANLIB
  5051. # Extract the first word of "ranlib", so it can be a program name with args.
  5052. set dummy ranlib; ac_word=$2
  5053. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5054. $as_echo_n "checking for $ac_word... " >&6; }
  5055. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5056. $as_echo_n "(cached) " >&6
  5057. else
  5058. if test -n "$ac_ct_RANLIB"; then
  5059. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5060. else
  5061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5062. for as_dir in $PATH
  5063. do
  5064. IFS=$as_save_IFS
  5065. test -z "$as_dir" && as_dir=.
  5066. for ac_exec_ext in '' $ac_executable_extensions; do
  5067. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5068. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5069. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5070. break 2
  5071. fi
  5072. done
  5073. done
  5074. IFS=$as_save_IFS
  5075. fi
  5076. fi
  5077. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5078. if test -n "$ac_ct_RANLIB"; then
  5079. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5080. $as_echo "$ac_ct_RANLIB" >&6; }
  5081. else
  5082. { $as_echo "$as_me:$LINENO: result: no" >&5
  5083. $as_echo "no" >&6; }
  5084. fi
  5085. if test "x$ac_ct_RANLIB" = x; then
  5086. RANLIB=":"
  5087. else
  5088. case $cross_compiling:$ac_tool_warned in
  5089. yes:)
  5090. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5091. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5092. ac_tool_warned=yes ;;
  5093. esac
  5094. RANLIB=$ac_ct_RANLIB
  5095. fi
  5096. else
  5097. RANLIB="$ac_cv_prog_RANLIB"
  5098. fi
  5099. test -z "$RANLIB" && RANLIB=:
  5100. # Determine commands to create old-style static archives.
  5101. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5102. old_postinstall_cmds='chmod 644 $oldlib'
  5103. old_postuninstall_cmds=
  5104. if test -n "$RANLIB"; then
  5105. case $host_os in
  5106. openbsd*)
  5107. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5108. ;;
  5109. *)
  5110. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5111. ;;
  5112. esac
  5113. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5114. fi
  5115. # If no C compiler was specified, use CC.
  5116. LTCC=${LTCC-"$CC"}
  5117. # If no C compiler flags were specified, use CFLAGS.
  5118. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5119. # Allow CC to be a program name with arguments.
  5120. compiler=$CC
  5121. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5122. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5123. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5124. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5125. $as_echo_n "(cached) " >&6
  5126. else
  5127. # These are sane defaults that work on at least a few old systems.
  5128. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5129. # Character class describing NM global symbol codes.
  5130. symcode='[BCDEGRST]'
  5131. # Regexp to match symbols that can be accessed directly from C.
  5132. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5133. # Define system-specific variables.
  5134. case $host_os in
  5135. aix*)
  5136. symcode='[BCDT]'
  5137. ;;
  5138. cygwin* | mingw* | pw32* | cegcc*)
  5139. symcode='[ABCDGISTW]'
  5140. ;;
  5141. hpux*)
  5142. if test "$host_cpu" = ia64; then
  5143. symcode='[ABCDEGRST]'
  5144. fi
  5145. ;;
  5146. irix* | nonstopux*)
  5147. symcode='[BCDEGRST]'
  5148. ;;
  5149. osf*)
  5150. symcode='[BCDEGQRST]'
  5151. ;;
  5152. solaris*)
  5153. symcode='[BDRT]'
  5154. ;;
  5155. sco3.2v5*)
  5156. symcode='[DT]'
  5157. ;;
  5158. sysv4.2uw2*)
  5159. symcode='[DT]'
  5160. ;;
  5161. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5162. symcode='[ABDT]'
  5163. ;;
  5164. sysv4)
  5165. symcode='[DFNSTU]'
  5166. ;;
  5167. esac
  5168. # If we're using GNU nm, then use its standard symbol codes.
  5169. case `$NM -V 2>&1` in
  5170. *GNU* | *'with BFD'*)
  5171. symcode='[ABCDGIRSTW]' ;;
  5172. esac
  5173. # Transform an extracted symbol line into a proper C declaration.
  5174. # Some systems (esp. on ia64) link data and code symbols differently,
  5175. # so use this general approach.
  5176. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5177. # Transform an extracted symbol line into symbol name and symbol address
  5178. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5179. 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'"
  5180. # Handle CRLF in mingw tool chain
  5181. opt_cr=
  5182. case $build_os in
  5183. mingw*)
  5184. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5185. ;;
  5186. esac
  5187. # Try without a prefix underscore, then with it.
  5188. for ac_symprfx in "" "_"; do
  5189. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5190. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5191. # Write the raw and C identifiers.
  5192. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5193. # Fake it for dumpbin and say T for any non-static function
  5194. # and D for any global variable.
  5195. # Also find C++ and __fastcall symbols from MSVC++,
  5196. # which start with @ or ?.
  5197. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5198. " {last_section=section; section=\$ 3};"\
  5199. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5200. " \$ 0!~/External *\|/{next};"\
  5201. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5202. " {if(hide[section]) next};"\
  5203. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5204. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5205. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5206. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5207. " ' prfx=^$ac_symprfx"
  5208. else
  5209. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5210. fi
  5211. # Check to see that the pipe works correctly.
  5212. pipe_works=no
  5213. rm -f conftest*
  5214. cat > conftest.$ac_ext <<_LT_EOF
  5215. #ifdef __cplusplus
  5216. extern "C" {
  5217. #endif
  5218. char nm_test_var;
  5219. void nm_test_func(void);
  5220. void nm_test_func(void){}
  5221. #ifdef __cplusplus
  5222. }
  5223. #endif
  5224. int main(){nm_test_var='a';nm_test_func();return(0);}
  5225. _LT_EOF
  5226. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5227. (eval $ac_compile) 2>&5
  5228. ac_status=$?
  5229. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5230. (exit $ac_status); }; then
  5231. # Now try to grab the symbols.
  5232. nlist=conftest.nm
  5233. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5234. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5235. ac_status=$?
  5236. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5237. (exit $ac_status); } && test -s "$nlist"; then
  5238. # Try sorting and uniquifying the output.
  5239. if sort "$nlist" | uniq > "$nlist"T; then
  5240. mv -f "$nlist"T "$nlist"
  5241. else
  5242. rm -f "$nlist"T
  5243. fi
  5244. # Make sure that we snagged all the symbols we need.
  5245. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5246. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5247. cat <<_LT_EOF > conftest.$ac_ext
  5248. #ifdef __cplusplus
  5249. extern "C" {
  5250. #endif
  5251. _LT_EOF
  5252. # Now generate the symbol file.
  5253. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5254. cat <<_LT_EOF >> conftest.$ac_ext
  5255. /* The mapping between symbol names and symbols. */
  5256. const struct {
  5257. const char *name;
  5258. void *address;
  5259. }
  5260. lt__PROGRAM__LTX_preloaded_symbols[] =
  5261. {
  5262. { "@PROGRAM@", (void *) 0 },
  5263. _LT_EOF
  5264. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5265. cat <<\_LT_EOF >> conftest.$ac_ext
  5266. {0, (void *) 0}
  5267. };
  5268. /* This works around a problem in FreeBSD linker */
  5269. #ifdef FREEBSD_WORKAROUND
  5270. static const void *lt_preloaded_setup() {
  5271. return lt__PROGRAM__LTX_preloaded_symbols;
  5272. }
  5273. #endif
  5274. #ifdef __cplusplus
  5275. }
  5276. #endif
  5277. _LT_EOF
  5278. # Now try linking the two files.
  5279. mv conftest.$ac_objext conftstm.$ac_objext
  5280. lt_save_LIBS="$LIBS"
  5281. lt_save_CFLAGS="$CFLAGS"
  5282. LIBS="conftstm.$ac_objext"
  5283. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5284. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5285. (eval $ac_link) 2>&5
  5286. ac_status=$?
  5287. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5288. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5289. pipe_works=yes
  5290. fi
  5291. LIBS="$lt_save_LIBS"
  5292. CFLAGS="$lt_save_CFLAGS"
  5293. else
  5294. echo "cannot find nm_test_func in $nlist" >&5
  5295. fi
  5296. else
  5297. echo "cannot find nm_test_var in $nlist" >&5
  5298. fi
  5299. else
  5300. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5301. fi
  5302. else
  5303. echo "$progname: failed program was:" >&5
  5304. cat conftest.$ac_ext >&5
  5305. fi
  5306. rm -rf conftest* conftst*
  5307. # Do not use the global_symbol_pipe unless it works.
  5308. if test "$pipe_works" = yes; then
  5309. break
  5310. else
  5311. lt_cv_sys_global_symbol_pipe=
  5312. fi
  5313. done
  5314. fi
  5315. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5316. lt_cv_sys_global_symbol_to_cdecl=
  5317. fi
  5318. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5319. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5320. $as_echo "failed" >&6; }
  5321. else
  5322. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5323. $as_echo "ok" >&6; }
  5324. fi
  5325. # Check whether --enable-libtool-lock was given.
  5326. if test "${enable_libtool_lock+set}" = set; then
  5327. enableval=$enable_libtool_lock;
  5328. fi
  5329. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5330. # Some flags need to be propagated to the compiler or linker for good
  5331. # libtool support.
  5332. case $host in
  5333. ia64-*-hpux*)
  5334. # Find out which ABI we are using.
  5335. echo 'int i;' > conftest.$ac_ext
  5336. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5337. (eval $ac_compile) 2>&5
  5338. ac_status=$?
  5339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5340. (exit $ac_status); }; then
  5341. case `/usr/bin/file conftest.$ac_objext` in
  5342. *ELF-32*)
  5343. HPUX_IA64_MODE="32"
  5344. ;;
  5345. *ELF-64*)
  5346. HPUX_IA64_MODE="64"
  5347. ;;
  5348. esac
  5349. fi
  5350. rm -rf conftest*
  5351. ;;
  5352. *-*-irix6*)
  5353. # Find out which ABI we are using.
  5354. echo '#line 6130 "configure"' > conftest.$ac_ext
  5355. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5356. (eval $ac_compile) 2>&5
  5357. ac_status=$?
  5358. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5359. (exit $ac_status); }; then
  5360. if test "$lt_cv_prog_gnu_ld" = yes; then
  5361. case `/usr/bin/file conftest.$ac_objext` in
  5362. *32-bit*)
  5363. LD="${LD-ld} -melf32bsmip"
  5364. ;;
  5365. *N32*)
  5366. LD="${LD-ld} -melf32bmipn32"
  5367. ;;
  5368. *64-bit*)
  5369. LD="${LD-ld} -melf64bmip"
  5370. ;;
  5371. esac
  5372. else
  5373. case `/usr/bin/file conftest.$ac_objext` in
  5374. *32-bit*)
  5375. LD="${LD-ld} -32"
  5376. ;;
  5377. *N32*)
  5378. LD="${LD-ld} -n32"
  5379. ;;
  5380. *64-bit*)
  5381. LD="${LD-ld} -64"
  5382. ;;
  5383. esac
  5384. fi
  5385. fi
  5386. rm -rf conftest*
  5387. ;;
  5388. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5389. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5390. # Find out which ABI we are using.
  5391. echo 'int i;' > conftest.$ac_ext
  5392. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5393. (eval $ac_compile) 2>&5
  5394. ac_status=$?
  5395. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5396. (exit $ac_status); }; then
  5397. case `/usr/bin/file conftest.o` in
  5398. *32-bit*)
  5399. case $host in
  5400. x86_64-*kfreebsd*-gnu)
  5401. LD="${LD-ld} -m elf_i386_fbsd"
  5402. ;;
  5403. x86_64-*linux*)
  5404. LD="${LD-ld} -m elf_i386"
  5405. ;;
  5406. ppc64-*linux*|powerpc64-*linux*)
  5407. LD="${LD-ld} -m elf32ppclinux"
  5408. ;;
  5409. s390x-*linux*)
  5410. LD="${LD-ld} -m elf_s390"
  5411. ;;
  5412. sparc64-*linux*)
  5413. LD="${LD-ld} -m elf32_sparc"
  5414. ;;
  5415. esac
  5416. ;;
  5417. *64-bit*)
  5418. case $host in
  5419. x86_64-*kfreebsd*-gnu)
  5420. LD="${LD-ld} -m elf_x86_64_fbsd"
  5421. ;;
  5422. x86_64-*linux*)
  5423. LD="${LD-ld} -m elf_x86_64"
  5424. ;;
  5425. ppc*-*linux*|powerpc*-*linux*)
  5426. LD="${LD-ld} -m elf64ppc"
  5427. ;;
  5428. s390*-*linux*|s390*-*tpf*)
  5429. LD="${LD-ld} -m elf64_s390"
  5430. ;;
  5431. sparc*-*linux*)
  5432. LD="${LD-ld} -m elf64_sparc"
  5433. ;;
  5434. esac
  5435. ;;
  5436. esac
  5437. fi
  5438. rm -rf conftest*
  5439. ;;
  5440. *-*-sco3.2v5*)
  5441. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5442. SAVE_CFLAGS="$CFLAGS"
  5443. CFLAGS="$CFLAGS -belf"
  5444. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5445. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5446. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5447. $as_echo_n "(cached) " >&6
  5448. else
  5449. ac_ext=c
  5450. ac_cpp='$CPP $CPPFLAGS'
  5451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5454. cat >conftest.$ac_ext <<_ACEOF
  5455. /* confdefs.h. */
  5456. _ACEOF
  5457. cat confdefs.h >>conftest.$ac_ext
  5458. cat >>conftest.$ac_ext <<_ACEOF
  5459. /* end confdefs.h. */
  5460. int
  5461. main ()
  5462. {
  5463. ;
  5464. return 0;
  5465. }
  5466. _ACEOF
  5467. rm -f conftest.$ac_objext conftest$ac_exeext
  5468. if { (ac_try="$ac_link"
  5469. case "(($ac_try" in
  5470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5471. *) ac_try_echo=$ac_try;;
  5472. esac
  5473. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5474. $as_echo "$ac_try_echo") >&5
  5475. (eval "$ac_link") 2>conftest.er1
  5476. ac_status=$?
  5477. grep -v '^ *+' conftest.er1 >conftest.err
  5478. rm -f conftest.er1
  5479. cat conftest.err >&5
  5480. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5481. (exit $ac_status); } && {
  5482. test -z "$ac_c_werror_flag" ||
  5483. test ! -s conftest.err
  5484. } && test -s conftest$ac_exeext && {
  5485. test "$cross_compiling" = yes ||
  5486. $as_test_x conftest$ac_exeext
  5487. }; then
  5488. lt_cv_cc_needs_belf=yes
  5489. else
  5490. $as_echo "$as_me: failed program was:" >&5
  5491. sed 's/^/| /' conftest.$ac_ext >&5
  5492. lt_cv_cc_needs_belf=no
  5493. fi
  5494. rm -rf conftest.dSYM
  5495. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5496. conftest$ac_exeext conftest.$ac_ext
  5497. ac_ext=c
  5498. ac_cpp='$CPP $CPPFLAGS'
  5499. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5500. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5501. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5502. fi
  5503. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5504. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5505. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5506. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5507. CFLAGS="$SAVE_CFLAGS"
  5508. fi
  5509. ;;
  5510. sparc*-*solaris*)
  5511. # Find out which ABI we are using.
  5512. echo 'int i;' > conftest.$ac_ext
  5513. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5514. (eval $ac_compile) 2>&5
  5515. ac_status=$?
  5516. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5517. (exit $ac_status); }; then
  5518. case `/usr/bin/file conftest.o` in
  5519. *64-bit*)
  5520. case $lt_cv_prog_gnu_ld in
  5521. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5522. *)
  5523. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5524. LD="${LD-ld} -64"
  5525. fi
  5526. ;;
  5527. esac
  5528. ;;
  5529. esac
  5530. fi
  5531. rm -rf conftest*
  5532. ;;
  5533. esac
  5534. need_locks="$enable_libtool_lock"
  5535. case $host_os in
  5536. rhapsody* | darwin*)
  5537. if test -n "$ac_tool_prefix"; then
  5538. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5539. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5540. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5541. $as_echo_n "checking for $ac_word... " >&6; }
  5542. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5543. $as_echo_n "(cached) " >&6
  5544. else
  5545. if test -n "$DSYMUTIL"; then
  5546. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5547. else
  5548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5549. for as_dir in $PATH
  5550. do
  5551. IFS=$as_save_IFS
  5552. test -z "$as_dir" && as_dir=.
  5553. for ac_exec_ext in '' $ac_executable_extensions; do
  5554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5555. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5556. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5557. break 2
  5558. fi
  5559. done
  5560. done
  5561. IFS=$as_save_IFS
  5562. fi
  5563. fi
  5564. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5565. if test -n "$DSYMUTIL"; then
  5566. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5567. $as_echo "$DSYMUTIL" >&6; }
  5568. else
  5569. { $as_echo "$as_me:$LINENO: result: no" >&5
  5570. $as_echo "no" >&6; }
  5571. fi
  5572. fi
  5573. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5574. ac_ct_DSYMUTIL=$DSYMUTIL
  5575. # Extract the first word of "dsymutil", so it can be a program name with args.
  5576. set dummy dsymutil; ac_word=$2
  5577. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5578. $as_echo_n "checking for $ac_word... " >&6; }
  5579. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5580. $as_echo_n "(cached) " >&6
  5581. else
  5582. if test -n "$ac_ct_DSYMUTIL"; then
  5583. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5584. else
  5585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5586. for as_dir in $PATH
  5587. do
  5588. IFS=$as_save_IFS
  5589. test -z "$as_dir" && as_dir=.
  5590. for ac_exec_ext in '' $ac_executable_extensions; do
  5591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5592. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5593. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5594. break 2
  5595. fi
  5596. done
  5597. done
  5598. IFS=$as_save_IFS
  5599. fi
  5600. fi
  5601. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5602. if test -n "$ac_ct_DSYMUTIL"; then
  5603. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5604. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5605. else
  5606. { $as_echo "$as_me:$LINENO: result: no" >&5
  5607. $as_echo "no" >&6; }
  5608. fi
  5609. if test "x$ac_ct_DSYMUTIL" = x; then
  5610. DSYMUTIL=":"
  5611. else
  5612. case $cross_compiling:$ac_tool_warned in
  5613. yes:)
  5614. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5616. ac_tool_warned=yes ;;
  5617. esac
  5618. DSYMUTIL=$ac_ct_DSYMUTIL
  5619. fi
  5620. else
  5621. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5622. fi
  5623. if test -n "$ac_tool_prefix"; then
  5624. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5625. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5626. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5627. $as_echo_n "checking for $ac_word... " >&6; }
  5628. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5629. $as_echo_n "(cached) " >&6
  5630. else
  5631. if test -n "$NMEDIT"; then
  5632. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5633. else
  5634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5635. for as_dir in $PATH
  5636. do
  5637. IFS=$as_save_IFS
  5638. test -z "$as_dir" && as_dir=.
  5639. for ac_exec_ext in '' $ac_executable_extensions; do
  5640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5641. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5642. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5643. break 2
  5644. fi
  5645. done
  5646. done
  5647. IFS=$as_save_IFS
  5648. fi
  5649. fi
  5650. NMEDIT=$ac_cv_prog_NMEDIT
  5651. if test -n "$NMEDIT"; then
  5652. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5653. $as_echo "$NMEDIT" >&6; }
  5654. else
  5655. { $as_echo "$as_me:$LINENO: result: no" >&5
  5656. $as_echo "no" >&6; }
  5657. fi
  5658. fi
  5659. if test -z "$ac_cv_prog_NMEDIT"; then
  5660. ac_ct_NMEDIT=$NMEDIT
  5661. # Extract the first word of "nmedit", so it can be a program name with args.
  5662. set dummy nmedit; ac_word=$2
  5663. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5664. $as_echo_n "checking for $ac_word... " >&6; }
  5665. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5666. $as_echo_n "(cached) " >&6
  5667. else
  5668. if test -n "$ac_ct_NMEDIT"; then
  5669. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5670. else
  5671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5672. for as_dir in $PATH
  5673. do
  5674. IFS=$as_save_IFS
  5675. test -z "$as_dir" && as_dir=.
  5676. for ac_exec_ext in '' $ac_executable_extensions; do
  5677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5678. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5679. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5680. break 2
  5681. fi
  5682. done
  5683. done
  5684. IFS=$as_save_IFS
  5685. fi
  5686. fi
  5687. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5688. if test -n "$ac_ct_NMEDIT"; then
  5689. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5690. $as_echo "$ac_ct_NMEDIT" >&6; }
  5691. else
  5692. { $as_echo "$as_me:$LINENO: result: no" >&5
  5693. $as_echo "no" >&6; }
  5694. fi
  5695. if test "x$ac_ct_NMEDIT" = x; then
  5696. NMEDIT=":"
  5697. else
  5698. case $cross_compiling:$ac_tool_warned in
  5699. yes:)
  5700. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5701. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5702. ac_tool_warned=yes ;;
  5703. esac
  5704. NMEDIT=$ac_ct_NMEDIT
  5705. fi
  5706. else
  5707. NMEDIT="$ac_cv_prog_NMEDIT"
  5708. fi
  5709. if test -n "$ac_tool_prefix"; then
  5710. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5711. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5712. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5713. $as_echo_n "checking for $ac_word... " >&6; }
  5714. if test "${ac_cv_prog_LIPO+set}" = set; then
  5715. $as_echo_n "(cached) " >&6
  5716. else
  5717. if test -n "$LIPO"; then
  5718. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5719. else
  5720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5721. for as_dir in $PATH
  5722. do
  5723. IFS=$as_save_IFS
  5724. test -z "$as_dir" && as_dir=.
  5725. for ac_exec_ext in '' $ac_executable_extensions; do
  5726. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5727. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5728. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5729. break 2
  5730. fi
  5731. done
  5732. done
  5733. IFS=$as_save_IFS
  5734. fi
  5735. fi
  5736. LIPO=$ac_cv_prog_LIPO
  5737. if test -n "$LIPO"; then
  5738. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5739. $as_echo "$LIPO" >&6; }
  5740. else
  5741. { $as_echo "$as_me:$LINENO: result: no" >&5
  5742. $as_echo "no" >&6; }
  5743. fi
  5744. fi
  5745. if test -z "$ac_cv_prog_LIPO"; then
  5746. ac_ct_LIPO=$LIPO
  5747. # Extract the first word of "lipo", so it can be a program name with args.
  5748. set dummy lipo; ac_word=$2
  5749. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5750. $as_echo_n "checking for $ac_word... " >&6; }
  5751. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5752. $as_echo_n "(cached) " >&6
  5753. else
  5754. if test -n "$ac_ct_LIPO"; then
  5755. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5756. else
  5757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5758. for as_dir in $PATH
  5759. do
  5760. IFS=$as_save_IFS
  5761. test -z "$as_dir" && as_dir=.
  5762. for ac_exec_ext in '' $ac_executable_extensions; do
  5763. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5764. ac_cv_prog_ac_ct_LIPO="lipo"
  5765. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5766. break 2
  5767. fi
  5768. done
  5769. done
  5770. IFS=$as_save_IFS
  5771. fi
  5772. fi
  5773. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5774. if test -n "$ac_ct_LIPO"; then
  5775. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5776. $as_echo "$ac_ct_LIPO" >&6; }
  5777. else
  5778. { $as_echo "$as_me:$LINENO: result: no" >&5
  5779. $as_echo "no" >&6; }
  5780. fi
  5781. if test "x$ac_ct_LIPO" = x; then
  5782. LIPO=":"
  5783. else
  5784. case $cross_compiling:$ac_tool_warned in
  5785. yes:)
  5786. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5787. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5788. ac_tool_warned=yes ;;
  5789. esac
  5790. LIPO=$ac_ct_LIPO
  5791. fi
  5792. else
  5793. LIPO="$ac_cv_prog_LIPO"
  5794. fi
  5795. if test -n "$ac_tool_prefix"; then
  5796. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5797. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5798. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5799. $as_echo_n "checking for $ac_word... " >&6; }
  5800. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5801. $as_echo_n "(cached) " >&6
  5802. else
  5803. if test -n "$OTOOL"; then
  5804. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5805. else
  5806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5807. for as_dir in $PATH
  5808. do
  5809. IFS=$as_save_IFS
  5810. test -z "$as_dir" && as_dir=.
  5811. for ac_exec_ext in '' $ac_executable_extensions; do
  5812. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5813. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5814. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5815. break 2
  5816. fi
  5817. done
  5818. done
  5819. IFS=$as_save_IFS
  5820. fi
  5821. fi
  5822. OTOOL=$ac_cv_prog_OTOOL
  5823. if test -n "$OTOOL"; then
  5824. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5825. $as_echo "$OTOOL" >&6; }
  5826. else
  5827. { $as_echo "$as_me:$LINENO: result: no" >&5
  5828. $as_echo "no" >&6; }
  5829. fi
  5830. fi
  5831. if test -z "$ac_cv_prog_OTOOL"; then
  5832. ac_ct_OTOOL=$OTOOL
  5833. # Extract the first word of "otool", so it can be a program name with args.
  5834. set dummy otool; ac_word=$2
  5835. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5836. $as_echo_n "checking for $ac_word... " >&6; }
  5837. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5838. $as_echo_n "(cached) " >&6
  5839. else
  5840. if test -n "$ac_ct_OTOOL"; then
  5841. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5842. else
  5843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5844. for as_dir in $PATH
  5845. do
  5846. IFS=$as_save_IFS
  5847. test -z "$as_dir" && as_dir=.
  5848. for ac_exec_ext in '' $ac_executable_extensions; do
  5849. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5850. ac_cv_prog_ac_ct_OTOOL="otool"
  5851. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5852. break 2
  5853. fi
  5854. done
  5855. done
  5856. IFS=$as_save_IFS
  5857. fi
  5858. fi
  5859. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5860. if test -n "$ac_ct_OTOOL"; then
  5861. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5862. $as_echo "$ac_ct_OTOOL" >&6; }
  5863. else
  5864. { $as_echo "$as_me:$LINENO: result: no" >&5
  5865. $as_echo "no" >&6; }
  5866. fi
  5867. if test "x$ac_ct_OTOOL" = x; then
  5868. OTOOL=":"
  5869. else
  5870. case $cross_compiling:$ac_tool_warned in
  5871. yes:)
  5872. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5873. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5874. ac_tool_warned=yes ;;
  5875. esac
  5876. OTOOL=$ac_ct_OTOOL
  5877. fi
  5878. else
  5879. OTOOL="$ac_cv_prog_OTOOL"
  5880. fi
  5881. if test -n "$ac_tool_prefix"; then
  5882. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5883. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5884. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5885. $as_echo_n "checking for $ac_word... " >&6; }
  5886. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5887. $as_echo_n "(cached) " >&6
  5888. else
  5889. if test -n "$OTOOL64"; then
  5890. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5891. else
  5892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5893. for as_dir in $PATH
  5894. do
  5895. IFS=$as_save_IFS
  5896. test -z "$as_dir" && as_dir=.
  5897. for ac_exec_ext in '' $ac_executable_extensions; do
  5898. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5899. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5900. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5901. break 2
  5902. fi
  5903. done
  5904. done
  5905. IFS=$as_save_IFS
  5906. fi
  5907. fi
  5908. OTOOL64=$ac_cv_prog_OTOOL64
  5909. if test -n "$OTOOL64"; then
  5910. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5911. $as_echo "$OTOOL64" >&6; }
  5912. else
  5913. { $as_echo "$as_me:$LINENO: result: no" >&5
  5914. $as_echo "no" >&6; }
  5915. fi
  5916. fi
  5917. if test -z "$ac_cv_prog_OTOOL64"; then
  5918. ac_ct_OTOOL64=$OTOOL64
  5919. # Extract the first word of "otool64", so it can be a program name with args.
  5920. set dummy otool64; ac_word=$2
  5921. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5922. $as_echo_n "checking for $ac_word... " >&6; }
  5923. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5924. $as_echo_n "(cached) " >&6
  5925. else
  5926. if test -n "$ac_ct_OTOOL64"; then
  5927. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5928. else
  5929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5930. for as_dir in $PATH
  5931. do
  5932. IFS=$as_save_IFS
  5933. test -z "$as_dir" && as_dir=.
  5934. for ac_exec_ext in '' $ac_executable_extensions; do
  5935. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5936. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5937. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5938. break 2
  5939. fi
  5940. done
  5941. done
  5942. IFS=$as_save_IFS
  5943. fi
  5944. fi
  5945. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5946. if test -n "$ac_ct_OTOOL64"; then
  5947. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5948. $as_echo "$ac_ct_OTOOL64" >&6; }
  5949. else
  5950. { $as_echo "$as_me:$LINENO: result: no" >&5
  5951. $as_echo "no" >&6; }
  5952. fi
  5953. if test "x$ac_ct_OTOOL64" = x; then
  5954. OTOOL64=":"
  5955. else
  5956. case $cross_compiling:$ac_tool_warned in
  5957. yes:)
  5958. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5959. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5960. ac_tool_warned=yes ;;
  5961. esac
  5962. OTOOL64=$ac_ct_OTOOL64
  5963. fi
  5964. else
  5965. OTOOL64="$ac_cv_prog_OTOOL64"
  5966. fi
  5967. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5968. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5969. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5970. $as_echo_n "(cached) " >&6
  5971. else
  5972. lt_cv_apple_cc_single_mod=no
  5973. if test -z "${LT_MULTI_MODULE}"; then
  5974. # By default we will add the -single_module flag. You can override
  5975. # by either setting the environment variable LT_MULTI_MODULE
  5976. # non-empty at configure time, or by adding -multi_module to the
  5977. # link flags.
  5978. rm -rf libconftest.dylib*
  5979. echo "int foo(void){return 1;}" > conftest.c
  5980. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5981. -dynamiclib -Wl,-single_module conftest.c" >&5
  5982. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5983. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5984. _lt_result=$?
  5985. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5986. lt_cv_apple_cc_single_mod=yes
  5987. else
  5988. cat conftest.err >&5
  5989. fi
  5990. rm -rf libconftest.dylib*
  5991. rm -f conftest.*
  5992. fi
  5993. fi
  5994. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5995. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5996. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5997. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5998. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5999. $as_echo_n "(cached) " >&6
  6000. else
  6001. lt_cv_ld_exported_symbols_list=no
  6002. save_LDFLAGS=$LDFLAGS
  6003. echo "_main" > conftest.sym
  6004. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6005. cat >conftest.$ac_ext <<_ACEOF
  6006. /* confdefs.h. */
  6007. _ACEOF
  6008. cat confdefs.h >>conftest.$ac_ext
  6009. cat >>conftest.$ac_ext <<_ACEOF
  6010. /* end confdefs.h. */
  6011. int
  6012. main ()
  6013. {
  6014. ;
  6015. return 0;
  6016. }
  6017. _ACEOF
  6018. rm -f conftest.$ac_objext conftest$ac_exeext
  6019. if { (ac_try="$ac_link"
  6020. case "(($ac_try" in
  6021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6022. *) ac_try_echo=$ac_try;;
  6023. esac
  6024. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6025. $as_echo "$ac_try_echo") >&5
  6026. (eval "$ac_link") 2>conftest.er1
  6027. ac_status=$?
  6028. grep -v '^ *+' conftest.er1 >conftest.err
  6029. rm -f conftest.er1
  6030. cat conftest.err >&5
  6031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6032. (exit $ac_status); } && {
  6033. test -z "$ac_c_werror_flag" ||
  6034. test ! -s conftest.err
  6035. } && test -s conftest$ac_exeext && {
  6036. test "$cross_compiling" = yes ||
  6037. $as_test_x conftest$ac_exeext
  6038. }; then
  6039. lt_cv_ld_exported_symbols_list=yes
  6040. else
  6041. $as_echo "$as_me: failed program was:" >&5
  6042. sed 's/^/| /' conftest.$ac_ext >&5
  6043. lt_cv_ld_exported_symbols_list=no
  6044. fi
  6045. rm -rf conftest.dSYM
  6046. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6047. conftest$ac_exeext conftest.$ac_ext
  6048. LDFLAGS="$save_LDFLAGS"
  6049. fi
  6050. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6051. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6052. case $host_os in
  6053. rhapsody* | darwin1.[012])
  6054. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6055. darwin1.*)
  6056. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6057. darwin*) # darwin 5.x on
  6058. # if running on 10.5 or later, the deployment target defaults
  6059. # to the OS version, if on x86, and 10.4, the deployment
  6060. # target defaults to 10.4. Don't you love it?
  6061. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6062. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6063. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6064. 10.[012]*)
  6065. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6066. 10.*)
  6067. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6068. esac
  6069. ;;
  6070. esac
  6071. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6072. _lt_dar_single_mod='$single_module'
  6073. fi
  6074. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6075. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6076. else
  6077. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6078. fi
  6079. if test "$DSYMUTIL" != ":"; then
  6080. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6081. else
  6082. _lt_dsymutil=
  6083. fi
  6084. ;;
  6085. esac
  6086. ac_ext=c
  6087. ac_cpp='$CPP $CPPFLAGS'
  6088. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6089. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6090. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6091. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6092. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6093. # On Suns, sometimes $CPP names a directory.
  6094. if test -n "$CPP" && test -d "$CPP"; then
  6095. CPP=
  6096. fi
  6097. if test -z "$CPP"; then
  6098. if test "${ac_cv_prog_CPP+set}" = set; then
  6099. $as_echo_n "(cached) " >&6
  6100. else
  6101. # Double quotes because CPP needs to be expanded
  6102. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6103. do
  6104. ac_preproc_ok=false
  6105. for ac_c_preproc_warn_flag in '' yes
  6106. do
  6107. # Use a header file that comes with gcc, so configuring glibc
  6108. # with a fresh cross-compiler works.
  6109. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6110. # <limits.h> exists even on freestanding compilers.
  6111. # On the NeXT, cc -E runs the code through the compiler's parser,
  6112. # not just through cpp. "Syntax error" is here to catch this case.
  6113. cat >conftest.$ac_ext <<_ACEOF
  6114. /* confdefs.h. */
  6115. _ACEOF
  6116. cat confdefs.h >>conftest.$ac_ext
  6117. cat >>conftest.$ac_ext <<_ACEOF
  6118. /* end confdefs.h. */
  6119. #ifdef __STDC__
  6120. # include <limits.h>
  6121. #else
  6122. # include <assert.h>
  6123. #endif
  6124. Syntax error
  6125. _ACEOF
  6126. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6127. case "(($ac_try" in
  6128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6129. *) ac_try_echo=$ac_try;;
  6130. esac
  6131. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6132. $as_echo "$ac_try_echo") >&5
  6133. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6134. ac_status=$?
  6135. grep -v '^ *+' conftest.er1 >conftest.err
  6136. rm -f conftest.er1
  6137. cat conftest.err >&5
  6138. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6139. (exit $ac_status); } >/dev/null && {
  6140. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6141. test ! -s conftest.err
  6142. }; then
  6143. :
  6144. else
  6145. $as_echo "$as_me: failed program was:" >&5
  6146. sed 's/^/| /' conftest.$ac_ext >&5
  6147. # Broken: fails on valid input.
  6148. continue
  6149. fi
  6150. rm -f conftest.err conftest.$ac_ext
  6151. # OK, works on sane cases. Now check whether nonexistent headers
  6152. # can be detected and how.
  6153. cat >conftest.$ac_ext <<_ACEOF
  6154. /* confdefs.h. */
  6155. _ACEOF
  6156. cat confdefs.h >>conftest.$ac_ext
  6157. cat >>conftest.$ac_ext <<_ACEOF
  6158. /* end confdefs.h. */
  6159. #include <ac_nonexistent.h>
  6160. _ACEOF
  6161. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6162. case "(($ac_try" in
  6163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6164. *) ac_try_echo=$ac_try;;
  6165. esac
  6166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6167. $as_echo "$ac_try_echo") >&5
  6168. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6169. ac_status=$?
  6170. grep -v '^ *+' conftest.er1 >conftest.err
  6171. rm -f conftest.er1
  6172. cat conftest.err >&5
  6173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6174. (exit $ac_status); } >/dev/null && {
  6175. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6176. test ! -s conftest.err
  6177. }; then
  6178. # Broken: success on invalid input.
  6179. continue
  6180. else
  6181. $as_echo "$as_me: failed program was:" >&5
  6182. sed 's/^/| /' conftest.$ac_ext >&5
  6183. # Passes both tests.
  6184. ac_preproc_ok=:
  6185. break
  6186. fi
  6187. rm -f conftest.err conftest.$ac_ext
  6188. done
  6189. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6190. rm -f conftest.err conftest.$ac_ext
  6191. if $ac_preproc_ok; then
  6192. break
  6193. fi
  6194. done
  6195. ac_cv_prog_CPP=$CPP
  6196. fi
  6197. CPP=$ac_cv_prog_CPP
  6198. else
  6199. ac_cv_prog_CPP=$CPP
  6200. fi
  6201. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6202. $as_echo "$CPP" >&6; }
  6203. ac_preproc_ok=false
  6204. for ac_c_preproc_warn_flag in '' yes
  6205. do
  6206. # Use a header file that comes with gcc, so configuring glibc
  6207. # with a fresh cross-compiler works.
  6208. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6209. # <limits.h> exists even on freestanding compilers.
  6210. # On the NeXT, cc -E runs the code through the compiler's parser,
  6211. # not just through cpp. "Syntax error" is here to catch this case.
  6212. cat >conftest.$ac_ext <<_ACEOF
  6213. /* confdefs.h. */
  6214. _ACEOF
  6215. cat confdefs.h >>conftest.$ac_ext
  6216. cat >>conftest.$ac_ext <<_ACEOF
  6217. /* end confdefs.h. */
  6218. #ifdef __STDC__
  6219. # include <limits.h>
  6220. #else
  6221. # include <assert.h>
  6222. #endif
  6223. Syntax error
  6224. _ACEOF
  6225. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6226. case "(($ac_try" in
  6227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6228. *) ac_try_echo=$ac_try;;
  6229. esac
  6230. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6231. $as_echo "$ac_try_echo") >&5
  6232. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6233. ac_status=$?
  6234. grep -v '^ *+' conftest.er1 >conftest.err
  6235. rm -f conftest.er1
  6236. cat conftest.err >&5
  6237. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6238. (exit $ac_status); } >/dev/null && {
  6239. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6240. test ! -s conftest.err
  6241. }; then
  6242. :
  6243. else
  6244. $as_echo "$as_me: failed program was:" >&5
  6245. sed 's/^/| /' conftest.$ac_ext >&5
  6246. # Broken: fails on valid input.
  6247. continue
  6248. fi
  6249. rm -f conftest.err conftest.$ac_ext
  6250. # OK, works on sane cases. Now check whether nonexistent headers
  6251. # can be detected and how.
  6252. cat >conftest.$ac_ext <<_ACEOF
  6253. /* confdefs.h. */
  6254. _ACEOF
  6255. cat confdefs.h >>conftest.$ac_ext
  6256. cat >>conftest.$ac_ext <<_ACEOF
  6257. /* end confdefs.h. */
  6258. #include <ac_nonexistent.h>
  6259. _ACEOF
  6260. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6261. case "(($ac_try" in
  6262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6263. *) ac_try_echo=$ac_try;;
  6264. esac
  6265. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6266. $as_echo "$ac_try_echo") >&5
  6267. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6268. ac_status=$?
  6269. grep -v '^ *+' conftest.er1 >conftest.err
  6270. rm -f conftest.er1
  6271. cat conftest.err >&5
  6272. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6273. (exit $ac_status); } >/dev/null && {
  6274. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6275. test ! -s conftest.err
  6276. }; then
  6277. # Broken: success on invalid input.
  6278. continue
  6279. else
  6280. $as_echo "$as_me: failed program was:" >&5
  6281. sed 's/^/| /' conftest.$ac_ext >&5
  6282. # Passes both tests.
  6283. ac_preproc_ok=:
  6284. break
  6285. fi
  6286. rm -f conftest.err conftest.$ac_ext
  6287. done
  6288. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6289. rm -f conftest.err conftest.$ac_ext
  6290. if $ac_preproc_ok; then
  6291. :
  6292. else
  6293. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6294. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6295. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6296. See \`config.log' for more details." >&5
  6297. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6298. See \`config.log' for more details." >&2;}
  6299. { (exit 1); exit 1; }; }; }
  6300. fi
  6301. ac_ext=c
  6302. ac_cpp='$CPP $CPPFLAGS'
  6303. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6304. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6305. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6306. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6307. $as_echo_n "checking for ANSI C header files... " >&6; }
  6308. if test "${ac_cv_header_stdc+set}" = set; then
  6309. $as_echo_n "(cached) " >&6
  6310. else
  6311. cat >conftest.$ac_ext <<_ACEOF
  6312. /* confdefs.h. */
  6313. _ACEOF
  6314. cat confdefs.h >>conftest.$ac_ext
  6315. cat >>conftest.$ac_ext <<_ACEOF
  6316. /* end confdefs.h. */
  6317. #include <stdlib.h>
  6318. #include <stdarg.h>
  6319. #include <string.h>
  6320. #include <float.h>
  6321. int
  6322. main ()
  6323. {
  6324. ;
  6325. return 0;
  6326. }
  6327. _ACEOF
  6328. rm -f conftest.$ac_objext
  6329. if { (ac_try="$ac_compile"
  6330. case "(($ac_try" in
  6331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6332. *) ac_try_echo=$ac_try;;
  6333. esac
  6334. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6335. $as_echo "$ac_try_echo") >&5
  6336. (eval "$ac_compile") 2>conftest.er1
  6337. ac_status=$?
  6338. grep -v '^ *+' conftest.er1 >conftest.err
  6339. rm -f conftest.er1
  6340. cat conftest.err >&5
  6341. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6342. (exit $ac_status); } && {
  6343. test -z "$ac_c_werror_flag" ||
  6344. test ! -s conftest.err
  6345. } && test -s conftest.$ac_objext; then
  6346. ac_cv_header_stdc=yes
  6347. else
  6348. $as_echo "$as_me: failed program was:" >&5
  6349. sed 's/^/| /' conftest.$ac_ext >&5
  6350. ac_cv_header_stdc=no
  6351. fi
  6352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6353. if test $ac_cv_header_stdc = yes; then
  6354. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6355. cat >conftest.$ac_ext <<_ACEOF
  6356. /* confdefs.h. */
  6357. _ACEOF
  6358. cat confdefs.h >>conftest.$ac_ext
  6359. cat >>conftest.$ac_ext <<_ACEOF
  6360. /* end confdefs.h. */
  6361. #include <string.h>
  6362. _ACEOF
  6363. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6364. $EGREP "memchr" >/dev/null 2>&1; then
  6365. :
  6366. else
  6367. ac_cv_header_stdc=no
  6368. fi
  6369. rm -f conftest*
  6370. fi
  6371. if test $ac_cv_header_stdc = yes; then
  6372. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6373. cat >conftest.$ac_ext <<_ACEOF
  6374. /* confdefs.h. */
  6375. _ACEOF
  6376. cat confdefs.h >>conftest.$ac_ext
  6377. cat >>conftest.$ac_ext <<_ACEOF
  6378. /* end confdefs.h. */
  6379. #include <stdlib.h>
  6380. _ACEOF
  6381. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6382. $EGREP "free" >/dev/null 2>&1; then
  6383. :
  6384. else
  6385. ac_cv_header_stdc=no
  6386. fi
  6387. rm -f conftest*
  6388. fi
  6389. if test $ac_cv_header_stdc = yes; then
  6390. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6391. if test "$cross_compiling" = yes; then
  6392. :
  6393. else
  6394. cat >conftest.$ac_ext <<_ACEOF
  6395. /* confdefs.h. */
  6396. _ACEOF
  6397. cat confdefs.h >>conftest.$ac_ext
  6398. cat >>conftest.$ac_ext <<_ACEOF
  6399. /* end confdefs.h. */
  6400. #include <ctype.h>
  6401. #include <stdlib.h>
  6402. #if ((' ' & 0x0FF) == 0x020)
  6403. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6404. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6405. #else
  6406. # define ISLOWER(c) \
  6407. (('a' <= (c) && (c) <= 'i') \
  6408. || ('j' <= (c) && (c) <= 'r') \
  6409. || ('s' <= (c) && (c) <= 'z'))
  6410. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6411. #endif
  6412. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6413. int
  6414. main ()
  6415. {
  6416. int i;
  6417. for (i = 0; i < 256; i++)
  6418. if (XOR (islower (i), ISLOWER (i))
  6419. || toupper (i) != TOUPPER (i))
  6420. return 2;
  6421. return 0;
  6422. }
  6423. _ACEOF
  6424. rm -f conftest$ac_exeext
  6425. if { (ac_try="$ac_link"
  6426. case "(($ac_try" in
  6427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6428. *) ac_try_echo=$ac_try;;
  6429. esac
  6430. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6431. $as_echo "$ac_try_echo") >&5
  6432. (eval "$ac_link") 2>&5
  6433. ac_status=$?
  6434. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6435. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6436. { (case "(($ac_try" in
  6437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6438. *) ac_try_echo=$ac_try;;
  6439. esac
  6440. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6441. $as_echo "$ac_try_echo") >&5
  6442. (eval "$ac_try") 2>&5
  6443. ac_status=$?
  6444. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6445. (exit $ac_status); }; }; then
  6446. :
  6447. else
  6448. $as_echo "$as_me: program exited with status $ac_status" >&5
  6449. $as_echo "$as_me: failed program was:" >&5
  6450. sed 's/^/| /' conftest.$ac_ext >&5
  6451. ( exit $ac_status )
  6452. ac_cv_header_stdc=no
  6453. fi
  6454. rm -rf conftest.dSYM
  6455. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6456. fi
  6457. fi
  6458. fi
  6459. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6460. $as_echo "$ac_cv_header_stdc" >&6; }
  6461. if test $ac_cv_header_stdc = yes; then
  6462. cat >>confdefs.h <<\_ACEOF
  6463. #define STDC_HEADERS 1
  6464. _ACEOF
  6465. fi
  6466. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6467. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6468. inttypes.h stdint.h unistd.h
  6469. do
  6470. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6471. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6472. $as_echo_n "checking for $ac_header... " >&6; }
  6473. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6474. $as_echo_n "(cached) " >&6
  6475. else
  6476. cat >conftest.$ac_ext <<_ACEOF
  6477. /* confdefs.h. */
  6478. _ACEOF
  6479. cat confdefs.h >>conftest.$ac_ext
  6480. cat >>conftest.$ac_ext <<_ACEOF
  6481. /* end confdefs.h. */
  6482. $ac_includes_default
  6483. #include <$ac_header>
  6484. _ACEOF
  6485. rm -f conftest.$ac_objext
  6486. if { (ac_try="$ac_compile"
  6487. case "(($ac_try" in
  6488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6489. *) ac_try_echo=$ac_try;;
  6490. esac
  6491. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6492. $as_echo "$ac_try_echo") >&5
  6493. (eval "$ac_compile") 2>conftest.er1
  6494. ac_status=$?
  6495. grep -v '^ *+' conftest.er1 >conftest.err
  6496. rm -f conftest.er1
  6497. cat conftest.err >&5
  6498. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6499. (exit $ac_status); } && {
  6500. test -z "$ac_c_werror_flag" ||
  6501. test ! -s conftest.err
  6502. } && test -s conftest.$ac_objext; then
  6503. eval "$as_ac_Header=yes"
  6504. else
  6505. $as_echo "$as_me: failed program was:" >&5
  6506. sed 's/^/| /' conftest.$ac_ext >&5
  6507. eval "$as_ac_Header=no"
  6508. fi
  6509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6510. fi
  6511. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6512. $as_echo "$as_val"'`
  6513. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6514. $as_echo "$ac_res" >&6; }
  6515. as_val=`eval 'as_val=${'$as_ac_Header'}
  6516. $as_echo "$as_val"'`
  6517. if test "x$as_val" = x""yes; then
  6518. cat >>confdefs.h <<_ACEOF
  6519. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6520. _ACEOF
  6521. fi
  6522. done
  6523. for ac_header in dlfcn.h
  6524. do
  6525. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6526. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6527. $as_echo_n "checking for $ac_header... " >&6; }
  6528. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6529. $as_echo_n "(cached) " >&6
  6530. else
  6531. cat >conftest.$ac_ext <<_ACEOF
  6532. /* confdefs.h. */
  6533. _ACEOF
  6534. cat confdefs.h >>conftest.$ac_ext
  6535. cat >>conftest.$ac_ext <<_ACEOF
  6536. /* end confdefs.h. */
  6537. $ac_includes_default
  6538. #include <$ac_header>
  6539. _ACEOF
  6540. rm -f conftest.$ac_objext
  6541. if { (ac_try="$ac_compile"
  6542. case "(($ac_try" in
  6543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6544. *) ac_try_echo=$ac_try;;
  6545. esac
  6546. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6547. $as_echo "$ac_try_echo") >&5
  6548. (eval "$ac_compile") 2>conftest.er1
  6549. ac_status=$?
  6550. grep -v '^ *+' conftest.er1 >conftest.err
  6551. rm -f conftest.er1
  6552. cat conftest.err >&5
  6553. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6554. (exit $ac_status); } && {
  6555. test -z "$ac_c_werror_flag" ||
  6556. test ! -s conftest.err
  6557. } && test -s conftest.$ac_objext; then
  6558. eval "$as_ac_Header=yes"
  6559. else
  6560. $as_echo "$as_me: failed program was:" >&5
  6561. sed 's/^/| /' conftest.$ac_ext >&5
  6562. eval "$as_ac_Header=no"
  6563. fi
  6564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6565. fi
  6566. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6567. $as_echo "$as_val"'`
  6568. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6569. $as_echo "$ac_res" >&6; }
  6570. as_val=`eval 'as_val=${'$as_ac_Header'}
  6571. $as_echo "$as_val"'`
  6572. if test "x$as_val" = x""yes; then
  6573. cat >>confdefs.h <<_ACEOF
  6574. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6575. _ACEOF
  6576. fi
  6577. done
  6578. ac_ext=cpp
  6579. ac_cpp='$CXXCPP $CPPFLAGS'
  6580. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6581. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6582. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6583. if test -z "$CXX"; then
  6584. if test -n "$CCC"; then
  6585. CXX=$CCC
  6586. else
  6587. if test -n "$ac_tool_prefix"; then
  6588. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6589. do
  6590. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6591. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6592. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6593. $as_echo_n "checking for $ac_word... " >&6; }
  6594. if test "${ac_cv_prog_CXX+set}" = set; then
  6595. $as_echo_n "(cached) " >&6
  6596. else
  6597. if test -n "$CXX"; then
  6598. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6599. else
  6600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6601. for as_dir in $PATH
  6602. do
  6603. IFS=$as_save_IFS
  6604. test -z "$as_dir" && as_dir=.
  6605. for ac_exec_ext in '' $ac_executable_extensions; do
  6606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6607. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6608. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6609. break 2
  6610. fi
  6611. done
  6612. done
  6613. IFS=$as_save_IFS
  6614. fi
  6615. fi
  6616. CXX=$ac_cv_prog_CXX
  6617. if test -n "$CXX"; then
  6618. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  6619. $as_echo "$CXX" >&6; }
  6620. else
  6621. { $as_echo "$as_me:$LINENO: result: no" >&5
  6622. $as_echo "no" >&6; }
  6623. fi
  6624. test -n "$CXX" && break
  6625. done
  6626. fi
  6627. if test -z "$CXX"; then
  6628. ac_ct_CXX=$CXX
  6629. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6630. do
  6631. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6632. set dummy $ac_prog; ac_word=$2
  6633. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6634. $as_echo_n "checking for $ac_word... " >&6; }
  6635. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  6636. $as_echo_n "(cached) " >&6
  6637. else
  6638. if test -n "$ac_ct_CXX"; then
  6639. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6640. else
  6641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6642. for as_dir in $PATH
  6643. do
  6644. IFS=$as_save_IFS
  6645. test -z "$as_dir" && as_dir=.
  6646. for ac_exec_ext in '' $ac_executable_extensions; do
  6647. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6648. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6649. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6650. break 2
  6651. fi
  6652. done
  6653. done
  6654. IFS=$as_save_IFS
  6655. fi
  6656. fi
  6657. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6658. if test -n "$ac_ct_CXX"; then
  6659. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  6660. $as_echo "$ac_ct_CXX" >&6; }
  6661. else
  6662. { $as_echo "$as_me:$LINENO: result: no" >&5
  6663. $as_echo "no" >&6; }
  6664. fi
  6665. test -n "$ac_ct_CXX" && break
  6666. done
  6667. if test "x$ac_ct_CXX" = x; then
  6668. CXX="g++"
  6669. else
  6670. case $cross_compiling:$ac_tool_warned in
  6671. yes:)
  6672. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6673. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6674. ac_tool_warned=yes ;;
  6675. esac
  6676. CXX=$ac_ct_CXX
  6677. fi
  6678. fi
  6679. fi
  6680. fi
  6681. # Provide some information about the compiler.
  6682. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  6683. set X $ac_compile
  6684. ac_compiler=$2
  6685. { (ac_try="$ac_compiler --version >&5"
  6686. case "(($ac_try" in
  6687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6688. *) ac_try_echo=$ac_try;;
  6689. esac
  6690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6691. $as_echo "$ac_try_echo") >&5
  6692. (eval "$ac_compiler --version >&5") 2>&5
  6693. ac_status=$?
  6694. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6695. (exit $ac_status); }
  6696. { (ac_try="$ac_compiler -v >&5"
  6697. case "(($ac_try" in
  6698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6699. *) ac_try_echo=$ac_try;;
  6700. esac
  6701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6702. $as_echo "$ac_try_echo") >&5
  6703. (eval "$ac_compiler -v >&5") 2>&5
  6704. ac_status=$?
  6705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6706. (exit $ac_status); }
  6707. { (ac_try="$ac_compiler -V >&5"
  6708. case "(($ac_try" in
  6709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6710. *) ac_try_echo=$ac_try;;
  6711. esac
  6712. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6713. $as_echo "$ac_try_echo") >&5
  6714. (eval "$ac_compiler -V >&5") 2>&5
  6715. ac_status=$?
  6716. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6717. (exit $ac_status); }
  6718. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  6719. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6720. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. cat >conftest.$ac_ext <<_ACEOF
  6724. /* confdefs.h. */
  6725. _ACEOF
  6726. cat confdefs.h >>conftest.$ac_ext
  6727. cat >>conftest.$ac_ext <<_ACEOF
  6728. /* end confdefs.h. */
  6729. int
  6730. main ()
  6731. {
  6732. #ifndef __GNUC__
  6733. choke me
  6734. #endif
  6735. ;
  6736. return 0;
  6737. }
  6738. _ACEOF
  6739. rm -f conftest.$ac_objext
  6740. if { (ac_try="$ac_compile"
  6741. case "(($ac_try" in
  6742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6743. *) ac_try_echo=$ac_try;;
  6744. esac
  6745. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6746. $as_echo "$ac_try_echo") >&5
  6747. (eval "$ac_compile") 2>conftest.er1
  6748. ac_status=$?
  6749. grep -v '^ *+' conftest.er1 >conftest.err
  6750. rm -f conftest.er1
  6751. cat conftest.err >&5
  6752. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6753. (exit $ac_status); } && {
  6754. test -z "$ac_cxx_werror_flag" ||
  6755. test ! -s conftest.err
  6756. } && test -s conftest.$ac_objext; then
  6757. ac_compiler_gnu=yes
  6758. else
  6759. $as_echo "$as_me: failed program was:" >&5
  6760. sed 's/^/| /' conftest.$ac_ext >&5
  6761. ac_compiler_gnu=no
  6762. fi
  6763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6764. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6765. fi
  6766. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  6767. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6768. if test $ac_compiler_gnu = yes; then
  6769. GXX=yes
  6770. else
  6771. GXX=
  6772. fi
  6773. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6774. ac_save_CXXFLAGS=$CXXFLAGS
  6775. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  6776. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6777. if test "${ac_cv_prog_cxx_g+set}" = set; then
  6778. $as_echo_n "(cached) " >&6
  6779. else
  6780. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6781. ac_cxx_werror_flag=yes
  6782. ac_cv_prog_cxx_g=no
  6783. CXXFLAGS="-g"
  6784. cat >conftest.$ac_ext <<_ACEOF
  6785. /* confdefs.h. */
  6786. _ACEOF
  6787. cat confdefs.h >>conftest.$ac_ext
  6788. cat >>conftest.$ac_ext <<_ACEOF
  6789. /* end confdefs.h. */
  6790. int
  6791. main ()
  6792. {
  6793. ;
  6794. return 0;
  6795. }
  6796. _ACEOF
  6797. rm -f conftest.$ac_objext
  6798. if { (ac_try="$ac_compile"
  6799. case "(($ac_try" in
  6800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6801. *) ac_try_echo=$ac_try;;
  6802. esac
  6803. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6804. $as_echo "$ac_try_echo") >&5
  6805. (eval "$ac_compile") 2>conftest.er1
  6806. ac_status=$?
  6807. grep -v '^ *+' conftest.er1 >conftest.err
  6808. rm -f conftest.er1
  6809. cat conftest.err >&5
  6810. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6811. (exit $ac_status); } && {
  6812. test -z "$ac_cxx_werror_flag" ||
  6813. test ! -s conftest.err
  6814. } && test -s conftest.$ac_objext; then
  6815. ac_cv_prog_cxx_g=yes
  6816. else
  6817. $as_echo "$as_me: failed program was:" >&5
  6818. sed 's/^/| /' conftest.$ac_ext >&5
  6819. CXXFLAGS=""
  6820. cat >conftest.$ac_ext <<_ACEOF
  6821. /* confdefs.h. */
  6822. _ACEOF
  6823. cat confdefs.h >>conftest.$ac_ext
  6824. cat >>conftest.$ac_ext <<_ACEOF
  6825. /* end confdefs.h. */
  6826. int
  6827. main ()
  6828. {
  6829. ;
  6830. return 0;
  6831. }
  6832. _ACEOF
  6833. rm -f conftest.$ac_objext
  6834. if { (ac_try="$ac_compile"
  6835. case "(($ac_try" in
  6836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6837. *) ac_try_echo=$ac_try;;
  6838. esac
  6839. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6840. $as_echo "$ac_try_echo") >&5
  6841. (eval "$ac_compile") 2>conftest.er1
  6842. ac_status=$?
  6843. grep -v '^ *+' conftest.er1 >conftest.err
  6844. rm -f conftest.er1
  6845. cat conftest.err >&5
  6846. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6847. (exit $ac_status); } && {
  6848. test -z "$ac_cxx_werror_flag" ||
  6849. test ! -s conftest.err
  6850. } && test -s conftest.$ac_objext; then
  6851. :
  6852. else
  6853. $as_echo "$as_me: failed program was:" >&5
  6854. sed 's/^/| /' conftest.$ac_ext >&5
  6855. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6856. CXXFLAGS="-g"
  6857. cat >conftest.$ac_ext <<_ACEOF
  6858. /* confdefs.h. */
  6859. _ACEOF
  6860. cat confdefs.h >>conftest.$ac_ext
  6861. cat >>conftest.$ac_ext <<_ACEOF
  6862. /* end confdefs.h. */
  6863. int
  6864. main ()
  6865. {
  6866. ;
  6867. return 0;
  6868. }
  6869. _ACEOF
  6870. rm -f conftest.$ac_objext
  6871. if { (ac_try="$ac_compile"
  6872. case "(($ac_try" in
  6873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6874. *) ac_try_echo=$ac_try;;
  6875. esac
  6876. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6877. $as_echo "$ac_try_echo") >&5
  6878. (eval "$ac_compile") 2>conftest.er1
  6879. ac_status=$?
  6880. grep -v '^ *+' conftest.er1 >conftest.err
  6881. rm -f conftest.er1
  6882. cat conftest.err >&5
  6883. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6884. (exit $ac_status); } && {
  6885. test -z "$ac_cxx_werror_flag" ||
  6886. test ! -s conftest.err
  6887. } && test -s conftest.$ac_objext; then
  6888. ac_cv_prog_cxx_g=yes
  6889. else
  6890. $as_echo "$as_me: failed program was:" >&5
  6891. sed 's/^/| /' conftest.$ac_ext >&5
  6892. fi
  6893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6894. fi
  6895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6896. fi
  6897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6898. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6899. fi
  6900. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  6901. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6902. if test "$ac_test_CXXFLAGS" = set; then
  6903. CXXFLAGS=$ac_save_CXXFLAGS
  6904. elif test $ac_cv_prog_cxx_g = yes; then
  6905. if test "$GXX" = yes; then
  6906. CXXFLAGS="-g -O2"
  6907. else
  6908. CXXFLAGS="-g"
  6909. fi
  6910. else
  6911. if test "$GXX" = yes; then
  6912. CXXFLAGS="-O2"
  6913. else
  6914. CXXFLAGS=
  6915. fi
  6916. fi
  6917. ac_ext=cpp
  6918. ac_cpp='$CXXCPP $CPPFLAGS'
  6919. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6920. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6921. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6922. depcc="$CXX" am_compiler_list=
  6923. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6924. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6925. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  6926. $as_echo_n "(cached) " >&6
  6927. else
  6928. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6929. # We make a subdir and do the tests there. Otherwise we can end up
  6930. # making bogus files that we don't know about and never remove. For
  6931. # instance it was reported that on HP-UX the gcc test will end up
  6932. # making a dummy file named `D' -- because `-MD' means `put the output
  6933. # in D'.
  6934. mkdir conftest.dir
  6935. # Copy depcomp to subdir because otherwise we won't find it if we're
  6936. # using a relative directory.
  6937. cp "$am_depcomp" conftest.dir
  6938. cd conftest.dir
  6939. # We will build objects and dependencies in a subdirectory because
  6940. # it helps to detect inapplicable dependency modes. For instance
  6941. # both Tru64's cc and ICC support -MD to output dependencies as a
  6942. # side effect of compilation, but ICC will put the dependencies in
  6943. # the current directory while Tru64 will put them in the object
  6944. # directory.
  6945. mkdir sub
  6946. am_cv_CXX_dependencies_compiler_type=none
  6947. if test "$am_compiler_list" = ""; then
  6948. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6949. fi
  6950. for depmode in $am_compiler_list; do
  6951. # Setup a source with many dependencies, because some compilers
  6952. # like to wrap large dependency lists on column 80 (with \), and
  6953. # we should not choose a depcomp mode which is confused by this.
  6954. #
  6955. # We need to recreate these files for each test, as the compiler may
  6956. # overwrite some of them when testing with obscure command lines.
  6957. # This happens at least with the AIX C compiler.
  6958. : > sub/conftest.c
  6959. for i in 1 2 3 4 5 6; do
  6960. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6961. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6962. # Solaris 8's {/usr,}/bin/sh.
  6963. touch sub/conftst$i.h
  6964. done
  6965. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6966. case $depmode in
  6967. nosideeffect)
  6968. # after this tag, mechanisms are not by side-effect, so they'll
  6969. # only be used when explicitly requested
  6970. if test "x$enable_dependency_tracking" = xyes; then
  6971. continue
  6972. else
  6973. break
  6974. fi
  6975. ;;
  6976. none) break ;;
  6977. esac
  6978. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6979. # mode. It turns out that the SunPro C++ compiler does not properly
  6980. # handle `-M -o', and we need to detect this.
  6981. if depmode=$depmode \
  6982. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6983. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6984. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6985. >/dev/null 2>conftest.err &&
  6986. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6987. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6988. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6989. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6990. # icc doesn't choke on unknown options, it will just issue warnings
  6991. # or remarks (even with -Werror). So we grep stderr for any message
  6992. # that says an option was ignored or not supported.
  6993. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6994. # icc: Command line warning: ignoring option '-M'; no argument required
  6995. # The diagnosis changed in icc 8.0:
  6996. # icc: Command line remark: option '-MP' not supported
  6997. if (grep 'ignoring option' conftest.err ||
  6998. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6999. am_cv_CXX_dependencies_compiler_type=$depmode
  7000. break
  7001. fi
  7002. fi
  7003. done
  7004. cd ..
  7005. rm -rf conftest.dir
  7006. else
  7007. am_cv_CXX_dependencies_compiler_type=none
  7008. fi
  7009. fi
  7010. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7011. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7012. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7013. if
  7014. test "x$enable_dependency_tracking" != xno \
  7015. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7016. am__fastdepCXX_TRUE=
  7017. am__fastdepCXX_FALSE='#'
  7018. else
  7019. am__fastdepCXX_TRUE='#'
  7020. am__fastdepCXX_FALSE=
  7021. fi
  7022. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7023. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7024. (test "X$CXX" != "Xg++"))) ; then
  7025. ac_ext=cpp
  7026. ac_cpp='$CXXCPP $CPPFLAGS'
  7027. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7028. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7029. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7030. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  7031. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7032. if test -z "$CXXCPP"; then
  7033. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  7034. $as_echo_n "(cached) " >&6
  7035. else
  7036. # Double quotes because CXXCPP needs to be expanded
  7037. for CXXCPP in "$CXX -E" "/lib/cpp"
  7038. do
  7039. ac_preproc_ok=false
  7040. for ac_cxx_preproc_warn_flag in '' yes
  7041. do
  7042. # Use a header file that comes with gcc, so configuring glibc
  7043. # with a fresh cross-compiler works.
  7044. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7045. # <limits.h> exists even on freestanding compilers.
  7046. # On the NeXT, cc -E runs the code through the compiler's parser,
  7047. # not just through cpp. "Syntax error" is here to catch this case.
  7048. cat >conftest.$ac_ext <<_ACEOF
  7049. /* confdefs.h. */
  7050. _ACEOF
  7051. cat confdefs.h >>conftest.$ac_ext
  7052. cat >>conftest.$ac_ext <<_ACEOF
  7053. /* end confdefs.h. */
  7054. #ifdef __STDC__
  7055. # include <limits.h>
  7056. #else
  7057. # include <assert.h>
  7058. #endif
  7059. Syntax error
  7060. _ACEOF
  7061. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7062. case "(($ac_try" in
  7063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7064. *) ac_try_echo=$ac_try;;
  7065. esac
  7066. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7067. $as_echo "$ac_try_echo") >&5
  7068. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7069. ac_status=$?
  7070. grep -v '^ *+' conftest.er1 >conftest.err
  7071. rm -f conftest.er1
  7072. cat conftest.err >&5
  7073. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7074. (exit $ac_status); } >/dev/null && {
  7075. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7076. test ! -s conftest.err
  7077. }; then
  7078. :
  7079. else
  7080. $as_echo "$as_me: failed program was:" >&5
  7081. sed 's/^/| /' conftest.$ac_ext >&5
  7082. # Broken: fails on valid input.
  7083. continue
  7084. fi
  7085. rm -f conftest.err conftest.$ac_ext
  7086. # OK, works on sane cases. Now check whether nonexistent headers
  7087. # can be detected and how.
  7088. cat >conftest.$ac_ext <<_ACEOF
  7089. /* confdefs.h. */
  7090. _ACEOF
  7091. cat confdefs.h >>conftest.$ac_ext
  7092. cat >>conftest.$ac_ext <<_ACEOF
  7093. /* end confdefs.h. */
  7094. #include <ac_nonexistent.h>
  7095. _ACEOF
  7096. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7097. case "(($ac_try" in
  7098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7099. *) ac_try_echo=$ac_try;;
  7100. esac
  7101. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7102. $as_echo "$ac_try_echo") >&5
  7103. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7104. ac_status=$?
  7105. grep -v '^ *+' conftest.er1 >conftest.err
  7106. rm -f conftest.er1
  7107. cat conftest.err >&5
  7108. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7109. (exit $ac_status); } >/dev/null && {
  7110. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7111. test ! -s conftest.err
  7112. }; then
  7113. # Broken: success on invalid input.
  7114. continue
  7115. else
  7116. $as_echo "$as_me: failed program was:" >&5
  7117. sed 's/^/| /' conftest.$ac_ext >&5
  7118. # Passes both tests.
  7119. ac_preproc_ok=:
  7120. break
  7121. fi
  7122. rm -f conftest.err conftest.$ac_ext
  7123. done
  7124. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7125. rm -f conftest.err conftest.$ac_ext
  7126. if $ac_preproc_ok; then
  7127. break
  7128. fi
  7129. done
  7130. ac_cv_prog_CXXCPP=$CXXCPP
  7131. fi
  7132. CXXCPP=$ac_cv_prog_CXXCPP
  7133. else
  7134. ac_cv_prog_CXXCPP=$CXXCPP
  7135. fi
  7136. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  7137. $as_echo "$CXXCPP" >&6; }
  7138. ac_preproc_ok=false
  7139. for ac_cxx_preproc_warn_flag in '' yes
  7140. do
  7141. # Use a header file that comes with gcc, so configuring glibc
  7142. # with a fresh cross-compiler works.
  7143. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7144. # <limits.h> exists even on freestanding compilers.
  7145. # On the NeXT, cc -E runs the code through the compiler's parser,
  7146. # not just through cpp. "Syntax error" is here to catch this case.
  7147. cat >conftest.$ac_ext <<_ACEOF
  7148. /* confdefs.h. */
  7149. _ACEOF
  7150. cat confdefs.h >>conftest.$ac_ext
  7151. cat >>conftest.$ac_ext <<_ACEOF
  7152. /* end confdefs.h. */
  7153. #ifdef __STDC__
  7154. # include <limits.h>
  7155. #else
  7156. # include <assert.h>
  7157. #endif
  7158. Syntax error
  7159. _ACEOF
  7160. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7161. case "(($ac_try" in
  7162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7163. *) ac_try_echo=$ac_try;;
  7164. esac
  7165. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7166. $as_echo "$ac_try_echo") >&5
  7167. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7168. ac_status=$?
  7169. grep -v '^ *+' conftest.er1 >conftest.err
  7170. rm -f conftest.er1
  7171. cat conftest.err >&5
  7172. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7173. (exit $ac_status); } >/dev/null && {
  7174. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7175. test ! -s conftest.err
  7176. }; then
  7177. :
  7178. else
  7179. $as_echo "$as_me: failed program was:" >&5
  7180. sed 's/^/| /' conftest.$ac_ext >&5
  7181. # Broken: fails on valid input.
  7182. continue
  7183. fi
  7184. rm -f conftest.err conftest.$ac_ext
  7185. # OK, works on sane cases. Now check whether nonexistent headers
  7186. # can be detected and how.
  7187. cat >conftest.$ac_ext <<_ACEOF
  7188. /* confdefs.h. */
  7189. _ACEOF
  7190. cat confdefs.h >>conftest.$ac_ext
  7191. cat >>conftest.$ac_ext <<_ACEOF
  7192. /* end confdefs.h. */
  7193. #include <ac_nonexistent.h>
  7194. _ACEOF
  7195. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7196. case "(($ac_try" in
  7197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7198. *) ac_try_echo=$ac_try;;
  7199. esac
  7200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7201. $as_echo "$ac_try_echo") >&5
  7202. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7203. ac_status=$?
  7204. grep -v '^ *+' conftest.er1 >conftest.err
  7205. rm -f conftest.er1
  7206. cat conftest.err >&5
  7207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7208. (exit $ac_status); } >/dev/null && {
  7209. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7210. test ! -s conftest.err
  7211. }; then
  7212. # Broken: success on invalid input.
  7213. continue
  7214. else
  7215. $as_echo "$as_me: failed program was:" >&5
  7216. sed 's/^/| /' conftest.$ac_ext >&5
  7217. # Passes both tests.
  7218. ac_preproc_ok=:
  7219. break
  7220. fi
  7221. rm -f conftest.err conftest.$ac_ext
  7222. done
  7223. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7224. rm -f conftest.err conftest.$ac_ext
  7225. if $ac_preproc_ok; then
  7226. :
  7227. else
  7228. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7229. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7230. _lt_caught_CXX_error=yes; }
  7231. fi
  7232. ac_ext=cpp
  7233. ac_cpp='$CXXCPP $CPPFLAGS'
  7234. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7235. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7236. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7237. else
  7238. _lt_caught_CXX_error=yes
  7239. fi
  7240. # Set options
  7241. enable_dlopen=no
  7242. enable_win32_dll=no
  7243. # Check whether --with-pic was given.
  7244. if test "${with_pic+set}" = set; then
  7245. withval=$with_pic; pic_mode="$withval"
  7246. else
  7247. pic_mode=default
  7248. fi
  7249. test -z "$pic_mode" && pic_mode=default
  7250. # Check whether --enable-fast-install was given.
  7251. if test "${enable_fast_install+set}" = set; then
  7252. enableval=$enable_fast_install; p=${PACKAGE-default}
  7253. case $enableval in
  7254. yes) enable_fast_install=yes ;;
  7255. no) enable_fast_install=no ;;
  7256. *)
  7257. enable_fast_install=no
  7258. # Look at the argument we got. We use all the common list separators.
  7259. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7260. for pkg in $enableval; do
  7261. IFS="$lt_save_ifs"
  7262. if test "X$pkg" = "X$p"; then
  7263. enable_fast_install=yes
  7264. fi
  7265. done
  7266. IFS="$lt_save_ifs"
  7267. ;;
  7268. esac
  7269. else
  7270. enable_fast_install=yes
  7271. fi
  7272. # This can be used to rebuild libtool when needed
  7273. LIBTOOL_DEPS="$ltmain"
  7274. # Always use our own libtool.
  7275. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7276. test -z "$LN_S" && LN_S="ln -s"
  7277. if test -n "${ZSH_VERSION+set}" ; then
  7278. setopt NO_GLOB_SUBST
  7279. fi
  7280. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7281. $as_echo_n "checking for objdir... " >&6; }
  7282. if test "${lt_cv_objdir+set}" = set; then
  7283. $as_echo_n "(cached) " >&6
  7284. else
  7285. rm -f .libs 2>/dev/null
  7286. mkdir .libs 2>/dev/null
  7287. if test -d .libs; then
  7288. lt_cv_objdir=.libs
  7289. else
  7290. # MS-DOS does not allow filenames that begin with a dot.
  7291. lt_cv_objdir=_libs
  7292. fi
  7293. rmdir .libs 2>/dev/null
  7294. fi
  7295. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7296. $as_echo "$lt_cv_objdir" >&6; }
  7297. objdir=$lt_cv_objdir
  7298. cat >>confdefs.h <<_ACEOF
  7299. #define LT_OBJDIR "$lt_cv_objdir/"
  7300. _ACEOF
  7301. case $host_os in
  7302. aix3*)
  7303. # AIX sometimes has problems with the GCC collect2 program. For some
  7304. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7305. # vanish in a puff of smoke.
  7306. if test "X${COLLECT_NAMES+set}" != Xset; then
  7307. COLLECT_NAMES=
  7308. export COLLECT_NAMES
  7309. fi
  7310. ;;
  7311. esac
  7312. # Sed substitution that helps us do robust quoting. It backslashifies
  7313. # metacharacters that are still active within double-quoted strings.
  7314. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7315. # Same as above, but do not quote variable references.
  7316. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7317. # Sed substitution to delay expansion of an escaped shell variable in a
  7318. # double_quote_subst'ed string.
  7319. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7320. # Sed substitution to delay expansion of an escaped single quote.
  7321. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7322. # Sed substitution to avoid accidental globbing in evaled expressions
  7323. no_glob_subst='s/\*/\\\*/g'
  7324. # Global variables:
  7325. ofile=libtool
  7326. can_build_shared=yes
  7327. # All known linkers require a `.a' archive for static linking (except MSVC,
  7328. # which needs '.lib').
  7329. libext=a
  7330. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7331. old_CC="$CC"
  7332. old_CFLAGS="$CFLAGS"
  7333. # Set sane defaults for various variables
  7334. test -z "$CC" && CC=cc
  7335. test -z "$LTCC" && LTCC=$CC
  7336. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7337. test -z "$LD" && LD=ld
  7338. test -z "$ac_objext" && ac_objext=o
  7339. for cc_temp in $compiler""; do
  7340. case $cc_temp in
  7341. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7342. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7343. \-*) ;;
  7344. *) break;;
  7345. esac
  7346. done
  7347. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7348. # Only perform the check for file, if the check method requires it
  7349. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7350. case $deplibs_check_method in
  7351. file_magic*)
  7352. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7353. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7354. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7355. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7356. $as_echo_n "(cached) " >&6
  7357. else
  7358. case $MAGIC_CMD in
  7359. [\\/*] | ?:[\\/]*)
  7360. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7361. ;;
  7362. *)
  7363. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7364. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7365. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7366. for ac_dir in $ac_dummy; do
  7367. IFS="$lt_save_ifs"
  7368. test -z "$ac_dir" && ac_dir=.
  7369. if test -f $ac_dir/${ac_tool_prefix}file; then
  7370. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7371. if test -n "$file_magic_test_file"; then
  7372. case $deplibs_check_method in
  7373. "file_magic "*)
  7374. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7375. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7376. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7377. $EGREP "$file_magic_regex" > /dev/null; then
  7378. :
  7379. else
  7380. cat <<_LT_EOF 1>&2
  7381. *** Warning: the command libtool uses to detect shared libraries,
  7382. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7383. *** The result is that libtool may fail to recognize shared libraries
  7384. *** as such. This will affect the creation of libtool libraries that
  7385. *** depend on shared libraries, but programs linked with such libtool
  7386. *** libraries will work regardless of this problem. Nevertheless, you
  7387. *** may want to report the problem to your system manager and/or to
  7388. *** [email protected]
  7389. _LT_EOF
  7390. fi ;;
  7391. esac
  7392. fi
  7393. break
  7394. fi
  7395. done
  7396. IFS="$lt_save_ifs"
  7397. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7398. ;;
  7399. esac
  7400. fi
  7401. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7402. if test -n "$MAGIC_CMD"; then
  7403. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7404. $as_echo "$MAGIC_CMD" >&6; }
  7405. else
  7406. { $as_echo "$as_me:$LINENO: result: no" >&5
  7407. $as_echo "no" >&6; }
  7408. fi
  7409. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7410. if test -n "$ac_tool_prefix"; then
  7411. { $as_echo "$as_me:$LINENO: checking for file" >&5
  7412. $as_echo_n "checking for file... " >&6; }
  7413. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7414. $as_echo_n "(cached) " >&6
  7415. else
  7416. case $MAGIC_CMD in
  7417. [\\/*] | ?:[\\/]*)
  7418. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7419. ;;
  7420. *)
  7421. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7422. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7423. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7424. for ac_dir in $ac_dummy; do
  7425. IFS="$lt_save_ifs"
  7426. test -z "$ac_dir" && ac_dir=.
  7427. if test -f $ac_dir/file; then
  7428. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7429. if test -n "$file_magic_test_file"; then
  7430. case $deplibs_check_method in
  7431. "file_magic "*)
  7432. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7433. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7434. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7435. $EGREP "$file_magic_regex" > /dev/null; then
  7436. :
  7437. else
  7438. cat <<_LT_EOF 1>&2
  7439. *** Warning: the command libtool uses to detect shared libraries,
  7440. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7441. *** The result is that libtool may fail to recognize shared libraries
  7442. *** as such. This will affect the creation of libtool libraries that
  7443. *** depend on shared libraries, but programs linked with such libtool
  7444. *** libraries will work regardless of this problem. Nevertheless, you
  7445. *** may want to report the problem to your system manager and/or to
  7446. *** [email protected]
  7447. _LT_EOF
  7448. fi ;;
  7449. esac
  7450. fi
  7451. break
  7452. fi
  7453. done
  7454. IFS="$lt_save_ifs"
  7455. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7456. ;;
  7457. esac
  7458. fi
  7459. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7460. if test -n "$MAGIC_CMD"; then
  7461. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7462. $as_echo "$MAGIC_CMD" >&6; }
  7463. else
  7464. { $as_echo "$as_me:$LINENO: result: no" >&5
  7465. $as_echo "no" >&6; }
  7466. fi
  7467. else
  7468. MAGIC_CMD=:
  7469. fi
  7470. fi
  7471. fi
  7472. ;;
  7473. esac
  7474. # Use C for the default configuration in the libtool script
  7475. lt_save_CC="$CC"
  7476. ac_ext=c
  7477. ac_cpp='$CPP $CPPFLAGS'
  7478. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7479. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7480. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7481. # Source file extension for C test sources.
  7482. ac_ext=c
  7483. # Object file extension for compiled C test sources.
  7484. objext=o
  7485. objext=$objext
  7486. # Code to be used in simple compile tests
  7487. lt_simple_compile_test_code="int some_variable = 0;"
  7488. # Code to be used in simple link tests
  7489. lt_simple_link_test_code='int main(){return(0);}'
  7490. # If no C compiler was specified, use CC.
  7491. LTCC=${LTCC-"$CC"}
  7492. # If no C compiler flags were specified, use CFLAGS.
  7493. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7494. # Allow CC to be a program name with arguments.
  7495. compiler=$CC
  7496. # Save the default compiler, since it gets overwritten when the other
  7497. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7498. compiler_DEFAULT=$CC
  7499. # save warnings/boilerplate of simple test code
  7500. ac_outfile=conftest.$ac_objext
  7501. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7502. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7503. _lt_compiler_boilerplate=`cat conftest.err`
  7504. $RM conftest*
  7505. ac_outfile=conftest.$ac_objext
  7506. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7507. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7508. _lt_linker_boilerplate=`cat conftest.err`
  7509. $RM -r conftest*
  7510. ## CAVEAT EMPTOR:
  7511. ## There is no encapsulation within the following macros, do not change
  7512. ## the running order or otherwise move them around unless you know exactly
  7513. ## what you are doing...
  7514. if test -n "$compiler"; then
  7515. lt_prog_compiler_no_builtin_flag=
  7516. if test "$GCC" = yes; then
  7517. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7518. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7519. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7520. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7521. $as_echo_n "(cached) " >&6
  7522. else
  7523. lt_cv_prog_compiler_rtti_exceptions=no
  7524. ac_outfile=conftest.$ac_objext
  7525. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7526. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7527. # Insert the option either (1) after the last *FLAGS variable, or
  7528. # (2) before a word containing "conftest.", or (3) at the end.
  7529. # Note that $ac_compile itself does not contain backslashes and begins
  7530. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7531. # The option is referenced via a variable to avoid confusing sed.
  7532. lt_compile=`echo "$ac_compile" | $SED \
  7533. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7534. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7535. -e 's:$: $lt_compiler_flag:'`
  7536. (eval echo "\"\$as_me:8646: $lt_compile\"" >&5)
  7537. (eval "$lt_compile" 2>conftest.err)
  7538. ac_status=$?
  7539. cat conftest.err >&5
  7540. echo "$as_me:8650: \$? = $ac_status" >&5
  7541. if (exit $ac_status) && test -s "$ac_outfile"; then
  7542. # The compiler can only warn and ignore the option if not recognized
  7543. # So say no if there are warnings other than the usual output.
  7544. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7545. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7546. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7547. lt_cv_prog_compiler_rtti_exceptions=yes
  7548. fi
  7549. fi
  7550. $RM conftest*
  7551. fi
  7552. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7553. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7554. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7555. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7556. else
  7557. :
  7558. fi
  7559. fi
  7560. lt_prog_compiler_wl=
  7561. lt_prog_compiler_pic=
  7562. lt_prog_compiler_static=
  7563. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7564. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7565. if test "$GCC" = yes; then
  7566. lt_prog_compiler_wl='-Wl,'
  7567. lt_prog_compiler_static='-static'
  7568. case $host_os in
  7569. aix*)
  7570. # All AIX code is PIC.
  7571. if test "$host_cpu" = ia64; then
  7572. # AIX 5 now supports IA64 processor
  7573. lt_prog_compiler_static='-Bstatic'
  7574. fi
  7575. ;;
  7576. amigaos*)
  7577. case $host_cpu in
  7578. powerpc)
  7579. # see comment about AmigaOS4 .so support
  7580. lt_prog_compiler_pic='-fPIC'
  7581. ;;
  7582. m68k)
  7583. # FIXME: we need at least 68020 code to build shared libraries, but
  7584. # adding the `-m68020' flag to GCC prevents building anything better,
  7585. # like `-m68040'.
  7586. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7587. ;;
  7588. esac
  7589. ;;
  7590. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7591. # PIC is the default for these OSes.
  7592. ;;
  7593. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7594. # This hack is so that the source file can tell whether it is being
  7595. # built for inclusion in a dll (and should export symbols for example).
  7596. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7597. # (--disable-auto-import) libraries
  7598. lt_prog_compiler_pic='-DDLL_EXPORT'
  7599. ;;
  7600. darwin* | rhapsody*)
  7601. # PIC is the default on this platform
  7602. # Common symbols not allowed in MH_DYLIB files
  7603. lt_prog_compiler_pic='-fno-common'
  7604. ;;
  7605. hpux*)
  7606. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7607. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7608. # sets the default TLS model and affects inlining.
  7609. case $host_cpu in
  7610. hppa*64*)
  7611. # +Z the default
  7612. ;;
  7613. *)
  7614. lt_prog_compiler_pic='-fPIC'
  7615. ;;
  7616. esac
  7617. ;;
  7618. interix[3-9]*)
  7619. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7620. # Instead, we relocate shared libraries at runtime.
  7621. ;;
  7622. msdosdjgpp*)
  7623. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7624. # on systems that don't support them.
  7625. lt_prog_compiler_can_build_shared=no
  7626. enable_shared=no
  7627. ;;
  7628. *nto* | *qnx*)
  7629. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7630. # it will coredump.
  7631. lt_prog_compiler_pic='-fPIC -shared'
  7632. ;;
  7633. sysv4*MP*)
  7634. if test -d /usr/nec; then
  7635. lt_prog_compiler_pic=-Kconform_pic
  7636. fi
  7637. ;;
  7638. *)
  7639. lt_prog_compiler_pic='-fPIC'
  7640. ;;
  7641. esac
  7642. else
  7643. # PORTME Check for flag to pass linker flags through the system compiler.
  7644. case $host_os in
  7645. aix*)
  7646. lt_prog_compiler_wl='-Wl,'
  7647. if test "$host_cpu" = ia64; then
  7648. # AIX 5 now supports IA64 processor
  7649. lt_prog_compiler_static='-Bstatic'
  7650. else
  7651. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7652. fi
  7653. ;;
  7654. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7655. # This hack is so that the source file can tell whether it is being
  7656. # built for inclusion in a dll (and should export symbols for example).
  7657. lt_prog_compiler_pic='-DDLL_EXPORT'
  7658. ;;
  7659. hpux9* | hpux10* | hpux11*)
  7660. lt_prog_compiler_wl='-Wl,'
  7661. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7662. # not for PA HP-UX.
  7663. case $host_cpu in
  7664. hppa*64*|ia64*)
  7665. # +Z the default
  7666. ;;
  7667. *)
  7668. lt_prog_compiler_pic='+Z'
  7669. ;;
  7670. esac
  7671. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7672. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7673. ;;
  7674. irix5* | irix6* | nonstopux*)
  7675. lt_prog_compiler_wl='-Wl,'
  7676. # PIC (with -KPIC) is the default.
  7677. lt_prog_compiler_static='-non_shared'
  7678. ;;
  7679. linux* | k*bsd*-gnu)
  7680. case $cc_basename in
  7681. # old Intel for x86_64 which still supported -KPIC.
  7682. ecc*)
  7683. lt_prog_compiler_wl='-Wl,'
  7684. lt_prog_compiler_pic='-KPIC'
  7685. lt_prog_compiler_static='-static'
  7686. ;;
  7687. # icc used to be incompatible with GCC.
  7688. # ICC 10 doesn't accept -KPIC any more.
  7689. icc* | ifort*)
  7690. lt_prog_compiler_wl='-Wl,'
  7691. lt_prog_compiler_pic='-fPIC'
  7692. lt_prog_compiler_static='-static'
  7693. ;;
  7694. # Lahey Fortran 8.1.
  7695. lf95*)
  7696. lt_prog_compiler_wl='-Wl,'
  7697. lt_prog_compiler_pic='--shared'
  7698. lt_prog_compiler_static='--static'
  7699. ;;
  7700. pgcc* | pgf77* | pgf90* | pgf95*)
  7701. # Portland Group compilers (*not* the Pentium gcc compiler,
  7702. # which looks to be a dead project)
  7703. lt_prog_compiler_wl='-Wl,'
  7704. lt_prog_compiler_pic='-fpic'
  7705. lt_prog_compiler_static='-Bstatic'
  7706. ;;
  7707. ccc*)
  7708. lt_prog_compiler_wl='-Wl,'
  7709. # All Alpha code is PIC.
  7710. lt_prog_compiler_static='-non_shared'
  7711. ;;
  7712. xl*)
  7713. # IBM XL C 8.0/Fortran 10.1 on PPC
  7714. lt_prog_compiler_wl='-Wl,'
  7715. lt_prog_compiler_pic='-qpic'
  7716. lt_prog_compiler_static='-qstaticlink'
  7717. ;;
  7718. *)
  7719. case `$CC -V 2>&1 | sed 5q` in
  7720. *Sun\ C*)
  7721. # Sun C 5.9
  7722. lt_prog_compiler_pic='-KPIC'
  7723. lt_prog_compiler_static='-Bstatic'
  7724. lt_prog_compiler_wl='-Wl,'
  7725. ;;
  7726. *Sun\ F*)
  7727. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7728. lt_prog_compiler_pic='-KPIC'
  7729. lt_prog_compiler_static='-Bstatic'
  7730. lt_prog_compiler_wl=''
  7731. ;;
  7732. esac
  7733. ;;
  7734. esac
  7735. ;;
  7736. newsos6)
  7737. lt_prog_compiler_pic='-KPIC'
  7738. lt_prog_compiler_static='-Bstatic'
  7739. ;;
  7740. *nto* | *qnx*)
  7741. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7742. # it will coredump.
  7743. lt_prog_compiler_pic='-fPIC -shared'
  7744. ;;
  7745. osf3* | osf4* | osf5*)
  7746. lt_prog_compiler_wl='-Wl,'
  7747. # All OSF/1 code is PIC.
  7748. lt_prog_compiler_static='-non_shared'
  7749. ;;
  7750. rdos*)
  7751. lt_prog_compiler_static='-non_shared'
  7752. ;;
  7753. solaris*)
  7754. lt_prog_compiler_pic='-KPIC'
  7755. lt_prog_compiler_static='-Bstatic'
  7756. case $cc_basename in
  7757. f77* | f90* | f95*)
  7758. lt_prog_compiler_wl='-Qoption ld ';;
  7759. *)
  7760. lt_prog_compiler_wl='-Wl,';;
  7761. esac
  7762. ;;
  7763. sunos4*)
  7764. lt_prog_compiler_wl='-Qoption ld '
  7765. lt_prog_compiler_pic='-PIC'
  7766. lt_prog_compiler_static='-Bstatic'
  7767. ;;
  7768. sysv4 | sysv4.2uw2* | sysv4.3*)
  7769. lt_prog_compiler_wl='-Wl,'
  7770. lt_prog_compiler_pic='-KPIC'
  7771. lt_prog_compiler_static='-Bstatic'
  7772. ;;
  7773. sysv4*MP*)
  7774. if test -d /usr/nec ;then
  7775. lt_prog_compiler_pic='-Kconform_pic'
  7776. lt_prog_compiler_static='-Bstatic'
  7777. fi
  7778. ;;
  7779. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7780. lt_prog_compiler_wl='-Wl,'
  7781. lt_prog_compiler_pic='-KPIC'
  7782. lt_prog_compiler_static='-Bstatic'
  7783. ;;
  7784. unicos*)
  7785. lt_prog_compiler_wl='-Wl,'
  7786. lt_prog_compiler_can_build_shared=no
  7787. ;;
  7788. uts4*)
  7789. lt_prog_compiler_pic='-pic'
  7790. lt_prog_compiler_static='-Bstatic'
  7791. ;;
  7792. *)
  7793. lt_prog_compiler_can_build_shared=no
  7794. ;;
  7795. esac
  7796. fi
  7797. case $host_os in
  7798. # For platforms which do not support PIC, -DPIC is meaningless:
  7799. *djgpp*)
  7800. lt_prog_compiler_pic=
  7801. ;;
  7802. *)
  7803. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7804. ;;
  7805. esac
  7806. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7807. $as_echo "$lt_prog_compiler_pic" >&6; }
  7808. #
  7809. # Check to make sure the PIC flag actually works.
  7810. #
  7811. if test -n "$lt_prog_compiler_pic"; then
  7812. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7813. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7814. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7815. $as_echo_n "(cached) " >&6
  7816. else
  7817. lt_cv_prog_compiler_pic_works=no
  7818. ac_outfile=conftest.$ac_objext
  7819. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7820. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7821. # Insert the option either (1) after the last *FLAGS variable, or
  7822. # (2) before a word containing "conftest.", or (3) at the end.
  7823. # Note that $ac_compile itself does not contain backslashes and begins
  7824. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7825. # The option is referenced via a variable to avoid confusing sed.
  7826. lt_compile=`echo "$ac_compile" | $SED \
  7827. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7828. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7829. -e 's:$: $lt_compiler_flag:'`
  7830. (eval echo "\"\$as_me:8985: $lt_compile\"" >&5)
  7831. (eval "$lt_compile" 2>conftest.err)
  7832. ac_status=$?
  7833. cat conftest.err >&5
  7834. echo "$as_me:8989: \$? = $ac_status" >&5
  7835. if (exit $ac_status) && test -s "$ac_outfile"; then
  7836. # The compiler can only warn and ignore the option if not recognized
  7837. # So say no if there are warnings other than the usual output.
  7838. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7839. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7840. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7841. lt_cv_prog_compiler_pic_works=yes
  7842. fi
  7843. fi
  7844. $RM conftest*
  7845. fi
  7846. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  7847. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7848. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7849. case $lt_prog_compiler_pic in
  7850. "" | " "*) ;;
  7851. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7852. esac
  7853. else
  7854. lt_prog_compiler_pic=
  7855. lt_prog_compiler_can_build_shared=no
  7856. fi
  7857. fi
  7858. #
  7859. # Check to make sure the static flag actually works.
  7860. #
  7861. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7862. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7863. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7864. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7865. $as_echo_n "(cached) " >&6
  7866. else
  7867. lt_cv_prog_compiler_static_works=no
  7868. save_LDFLAGS="$LDFLAGS"
  7869. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7870. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7871. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7872. # The linker can only warn and ignore the option if not recognized
  7873. # So say no if there are warnings
  7874. if test -s conftest.err; then
  7875. # Append any errors to the config.log.
  7876. cat conftest.err 1>&5
  7877. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7878. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7879. if diff conftest.exp conftest.er2 >/dev/null; then
  7880. lt_cv_prog_compiler_static_works=yes
  7881. fi
  7882. else
  7883. lt_cv_prog_compiler_static_works=yes
  7884. fi
  7885. fi
  7886. $RM -r conftest*
  7887. LDFLAGS="$save_LDFLAGS"
  7888. fi
  7889. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7890. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7891. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7892. :
  7893. else
  7894. lt_prog_compiler_static=
  7895. fi
  7896. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7897. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7898. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7899. $as_echo_n "(cached) " >&6
  7900. else
  7901. lt_cv_prog_compiler_c_o=no
  7902. $RM -r conftest 2>/dev/null
  7903. mkdir conftest
  7904. cd conftest
  7905. mkdir out
  7906. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7907. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7908. # Insert the option either (1) after the last *FLAGS variable, or
  7909. # (2) before a word containing "conftest.", or (3) at the end.
  7910. # Note that $ac_compile itself does not contain backslashes and begins
  7911. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7912. lt_compile=`echo "$ac_compile" | $SED \
  7913. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7914. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7915. -e 's:$: $lt_compiler_flag:'`
  7916. (eval echo "\"\$as_me:9090: $lt_compile\"" >&5)
  7917. (eval "$lt_compile" 2>out/conftest.err)
  7918. ac_status=$?
  7919. cat out/conftest.err >&5
  7920. echo "$as_me:9094: \$? = $ac_status" >&5
  7921. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7922. then
  7923. # The compiler can only warn and ignore the option if not recognized
  7924. # So say no if there are warnings
  7925. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7926. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7927. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7928. lt_cv_prog_compiler_c_o=yes
  7929. fi
  7930. fi
  7931. chmod u+w . 2>&5
  7932. $RM conftest*
  7933. # SGI C++ compiler will create directory out/ii_files/ for
  7934. # template instantiation
  7935. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7936. $RM out/* && rmdir out
  7937. cd ..
  7938. $RM -r conftest
  7939. $RM conftest*
  7940. fi
  7941. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7942. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7943. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7944. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7945. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7946. $as_echo_n "(cached) " >&6
  7947. else
  7948. lt_cv_prog_compiler_c_o=no
  7949. $RM -r conftest 2>/dev/null
  7950. mkdir conftest
  7951. cd conftest
  7952. mkdir out
  7953. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7954. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7955. # Insert the option either (1) after the last *FLAGS variable, or
  7956. # (2) before a word containing "conftest.", or (3) at the end.
  7957. # Note that $ac_compile itself does not contain backslashes and begins
  7958. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7959. lt_compile=`echo "$ac_compile" | $SED \
  7960. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7961. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7962. -e 's:$: $lt_compiler_flag:'`
  7963. (eval echo "\"\$as_me:9145: $lt_compile\"" >&5)
  7964. (eval "$lt_compile" 2>out/conftest.err)
  7965. ac_status=$?
  7966. cat out/conftest.err >&5
  7967. echo "$as_me:9149: \$? = $ac_status" >&5
  7968. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7969. then
  7970. # The compiler can only warn and ignore the option if not recognized
  7971. # So say no if there are warnings
  7972. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7973. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7974. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7975. lt_cv_prog_compiler_c_o=yes
  7976. fi
  7977. fi
  7978. chmod u+w . 2>&5
  7979. $RM conftest*
  7980. # SGI C++ compiler will create directory out/ii_files/ for
  7981. # template instantiation
  7982. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7983. $RM out/* && rmdir out
  7984. cd ..
  7985. $RM -r conftest
  7986. $RM conftest*
  7987. fi
  7988. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7989. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7990. hard_links="nottested"
  7991. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7992. # do not overwrite the value of need_locks provided by the user
  7993. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7994. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7995. hard_links=yes
  7996. $RM conftest*
  7997. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7998. touch conftest.a
  7999. ln conftest.a conftest.b 2>&5 || hard_links=no
  8000. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8001. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8002. $as_echo "$hard_links" >&6; }
  8003. if test "$hard_links" = no; then
  8004. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8005. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8006. need_locks=warn
  8007. fi
  8008. else
  8009. need_locks=no
  8010. fi
  8011. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8012. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8013. runpath_var=
  8014. allow_undefined_flag=
  8015. always_export_symbols=no
  8016. archive_cmds=
  8017. archive_expsym_cmds=
  8018. compiler_needs_object=no
  8019. enable_shared_with_static_runtimes=no
  8020. export_dynamic_flag_spec=
  8021. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8022. hardcode_automatic=no
  8023. hardcode_direct=no
  8024. hardcode_direct_absolute=no
  8025. hardcode_libdir_flag_spec=
  8026. hardcode_libdir_flag_spec_ld=
  8027. hardcode_libdir_separator=
  8028. hardcode_minus_L=no
  8029. hardcode_shlibpath_var=unsupported
  8030. inherit_rpath=no
  8031. link_all_deplibs=unknown
  8032. module_cmds=
  8033. module_expsym_cmds=
  8034. old_archive_from_new_cmds=
  8035. old_archive_from_expsyms_cmds=
  8036. thread_safe_flag_spec=
  8037. whole_archive_flag_spec=
  8038. # include_expsyms should be a list of space-separated symbols to be *always*
  8039. # included in the symbol list
  8040. include_expsyms=
  8041. # exclude_expsyms can be an extended regexp of symbols to exclude
  8042. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8043. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8044. # as well as any symbol that contains `d'.
  8045. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8046. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8047. # platforms (ab)use it in PIC code, but their linkers get confused if
  8048. # the symbol is explicitly referenced. Since portable code cannot
  8049. # rely on this symbol name, it's probably fine to never include it in
  8050. # preloaded symbol tables.
  8051. # Exclude shared library initialization/finalization symbols.
  8052. extract_expsyms_cmds=
  8053. case $host_os in
  8054. cygwin* | mingw* | pw32* | cegcc*)
  8055. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8056. # When not using gcc, we currently assume that we are using
  8057. # Microsoft Visual C++.
  8058. if test "$GCC" != yes; then
  8059. with_gnu_ld=no
  8060. fi
  8061. ;;
  8062. interix*)
  8063. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8064. with_gnu_ld=yes
  8065. ;;
  8066. openbsd*)
  8067. with_gnu_ld=no
  8068. ;;
  8069. esac
  8070. ld_shlibs=yes
  8071. if test "$with_gnu_ld" = yes; then
  8072. # If archive_cmds runs LD, not CC, wlarc should be empty
  8073. wlarc='${wl}'
  8074. # Set some defaults for GNU ld with shared library support. These
  8075. # are reset later if shared libraries are not supported. Putting them
  8076. # here allows them to be overridden if necessary.
  8077. runpath_var=LD_RUN_PATH
  8078. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8079. export_dynamic_flag_spec='${wl}--export-dynamic'
  8080. # ancient GNU ld didn't support --whole-archive et. al.
  8081. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8082. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8083. else
  8084. whole_archive_flag_spec=
  8085. fi
  8086. supports_anon_versioning=no
  8087. case `$LD -v 2>&1` in
  8088. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8089. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8090. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8091. *\ 2.11.*) ;; # other 2.11 versions
  8092. *) supports_anon_versioning=yes ;;
  8093. esac
  8094. # See if GNU ld supports shared libraries.
  8095. case $host_os in
  8096. aix[3-9]*)
  8097. # On AIX/PPC, the GNU linker is very broken
  8098. if test "$host_cpu" != ia64; then
  8099. ld_shlibs=no
  8100. cat <<_LT_EOF 1>&2
  8101. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8102. *** to be unable to reliably create shared libraries on AIX.
  8103. *** Therefore, libtool is disabling shared libraries support. If you
  8104. *** really care for shared libraries, you may want to modify your PATH
  8105. *** so that a non-GNU linker is found, and then restart.
  8106. _LT_EOF
  8107. fi
  8108. ;;
  8109. amigaos*)
  8110. case $host_cpu in
  8111. powerpc)
  8112. # see comment about AmigaOS4 .so support
  8113. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8114. archive_expsym_cmds=''
  8115. ;;
  8116. m68k)
  8117. 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)'
  8118. hardcode_libdir_flag_spec='-L$libdir'
  8119. hardcode_minus_L=yes
  8120. ;;
  8121. esac
  8122. ;;
  8123. beos*)
  8124. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8125. allow_undefined_flag=unsupported
  8126. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8127. # support --undefined. This deserves some investigation. FIXME
  8128. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8129. else
  8130. ld_shlibs=no
  8131. fi
  8132. ;;
  8133. cygwin* | mingw* | pw32* | cegcc*)
  8134. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8135. # as there is no search path for DLLs.
  8136. hardcode_libdir_flag_spec='-L$libdir'
  8137. allow_undefined_flag=unsupported
  8138. always_export_symbols=no
  8139. enable_shared_with_static_runtimes=yes
  8140. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8141. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8142. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8143. # If the export-symbols file already is a .def file (1st line
  8144. # is EXPORTS), use it as is; otherwise, prepend...
  8145. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8146. cp $export_symbols $output_objdir/$soname.def;
  8147. else
  8148. echo EXPORTS > $output_objdir/$soname.def;
  8149. cat $export_symbols >> $output_objdir/$soname.def;
  8150. fi~
  8151. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8152. else
  8153. ld_shlibs=no
  8154. fi
  8155. ;;
  8156. interix[3-9]*)
  8157. hardcode_direct=no
  8158. hardcode_shlibpath_var=no
  8159. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8160. export_dynamic_flag_spec='${wl}-E'
  8161. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8162. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8163. # default) and relocated if they conflict, which is a slow very memory
  8164. # consuming and fragmenting process. To avoid this, we pick a random,
  8165. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8166. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8167. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8168. 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'
  8169. ;;
  8170. gnu* | linux* | tpf* | k*bsd*-gnu)
  8171. tmp_diet=no
  8172. if test "$host_os" = linux-dietlibc; then
  8173. case $cc_basename in
  8174. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8175. esac
  8176. fi
  8177. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8178. && test "$tmp_diet" = no
  8179. then
  8180. tmp_addflag=
  8181. tmp_sharedflag='-shared'
  8182. case $cc_basename,$host_cpu in
  8183. pgcc*) # Portland Group C compiler
  8184. 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'
  8185. tmp_addflag=' $pic_flag'
  8186. ;;
  8187. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8188. 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'
  8189. tmp_addflag=' $pic_flag -Mnomain' ;;
  8190. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8191. tmp_addflag=' -i_dynamic' ;;
  8192. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8193. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8194. ifc* | ifort*) # Intel Fortran compiler
  8195. tmp_addflag=' -nofor_main' ;;
  8196. lf95*) # Lahey Fortran 8.1
  8197. whole_archive_flag_spec=
  8198. tmp_sharedflag='--shared' ;;
  8199. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8200. tmp_sharedflag='-qmkshrobj'
  8201. tmp_addflag= ;;
  8202. esac
  8203. case `$CC -V 2>&1 | sed 5q` in
  8204. *Sun\ C*) # Sun C 5.9
  8205. 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'
  8206. compiler_needs_object=yes
  8207. tmp_sharedflag='-G' ;;
  8208. *Sun\ F*) # Sun Fortran 8.3
  8209. tmp_sharedflag='-G' ;;
  8210. esac
  8211. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8212. if test "x$supports_anon_versioning" = xyes; then
  8213. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8214. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8215. echo "local: *; };" >> $output_objdir/$libname.ver~
  8216. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8217. fi
  8218. case $cc_basename in
  8219. xlf*)
  8220. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8221. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8222. hardcode_libdir_flag_spec=
  8223. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8224. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8225. if test "x$supports_anon_versioning" = xyes; then
  8226. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8227. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8228. echo "local: *; };" >> $output_objdir/$libname.ver~
  8229. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8230. fi
  8231. ;;
  8232. esac
  8233. else
  8234. ld_shlibs=no
  8235. fi
  8236. ;;
  8237. netbsd* | netbsdelf*-gnu)
  8238. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8239. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8240. wlarc=
  8241. else
  8242. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8243. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8244. fi
  8245. ;;
  8246. solaris*)
  8247. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8248. ld_shlibs=no
  8249. cat <<_LT_EOF 1>&2
  8250. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8251. *** create shared libraries on Solaris systems. Therefore, libtool
  8252. *** is disabling shared libraries support. We urge you to upgrade GNU
  8253. *** binutils to release 2.9.1 or newer. Another option is to modify
  8254. *** your PATH or compiler configuration so that the native linker is
  8255. *** used, and then restart.
  8256. _LT_EOF
  8257. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8258. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8259. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8260. else
  8261. ld_shlibs=no
  8262. fi
  8263. ;;
  8264. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8265. case `$LD -v 2>&1` in
  8266. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8267. ld_shlibs=no
  8268. cat <<_LT_EOF 1>&2
  8269. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8270. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8271. *** is disabling shared libraries support. We urge you to upgrade GNU
  8272. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8273. *** your PATH or compiler configuration so that the native linker is
  8274. *** used, and then restart.
  8275. _LT_EOF
  8276. ;;
  8277. *)
  8278. # For security reasons, it is highly recommended that you always
  8279. # use absolute paths for naming shared libraries, and exclude the
  8280. # DT_RUNPATH tag from executables and libraries. But doing so
  8281. # requires that you compile everything twice, which is a pain.
  8282. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8283. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8284. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8285. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8286. else
  8287. ld_shlibs=no
  8288. fi
  8289. ;;
  8290. esac
  8291. ;;
  8292. sunos4*)
  8293. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8294. wlarc=
  8295. hardcode_direct=yes
  8296. hardcode_shlibpath_var=no
  8297. ;;
  8298. *)
  8299. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8300. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8301. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8302. else
  8303. ld_shlibs=no
  8304. fi
  8305. ;;
  8306. esac
  8307. if test "$ld_shlibs" = no; then
  8308. runpath_var=
  8309. hardcode_libdir_flag_spec=
  8310. export_dynamic_flag_spec=
  8311. whole_archive_flag_spec=
  8312. fi
  8313. else
  8314. # PORTME fill in a description of your system's linker (not GNU ld)
  8315. case $host_os in
  8316. aix3*)
  8317. allow_undefined_flag=unsupported
  8318. always_export_symbols=yes
  8319. 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'
  8320. # Note: this linker hardcodes the directories in LIBPATH if there
  8321. # are no directories specified by -L.
  8322. hardcode_minus_L=yes
  8323. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8324. # Neither direct hardcoding nor static linking is supported with a
  8325. # broken collect2.
  8326. hardcode_direct=unsupported
  8327. fi
  8328. ;;
  8329. aix[4-9]*)
  8330. if test "$host_cpu" = ia64; then
  8331. # On IA64, the linker does run time linking by default, so we don't
  8332. # have to do anything special.
  8333. aix_use_runtimelinking=no
  8334. exp_sym_flag='-Bexport'
  8335. no_entry_flag=""
  8336. else
  8337. # If we're using GNU nm, then we don't want the "-C" option.
  8338. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8339. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8340. 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'
  8341. else
  8342. 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'
  8343. fi
  8344. aix_use_runtimelinking=no
  8345. # Test if we are trying to use run time linking or normal
  8346. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8347. # need to do runtime linking.
  8348. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8349. for ld_flag in $LDFLAGS; do
  8350. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8351. aix_use_runtimelinking=yes
  8352. break
  8353. fi
  8354. done
  8355. ;;
  8356. esac
  8357. exp_sym_flag='-bexport'
  8358. no_entry_flag='-bnoentry'
  8359. fi
  8360. # When large executables or shared objects are built, AIX ld can
  8361. # have problems creating the table of contents. If linking a library
  8362. # or program results in "error TOC overflow" add -mminimal-toc to
  8363. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8364. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8365. archive_cmds=''
  8366. hardcode_direct=yes
  8367. hardcode_direct_absolute=yes
  8368. hardcode_libdir_separator=':'
  8369. link_all_deplibs=yes
  8370. file_list_spec='${wl}-f,'
  8371. if test "$GCC" = yes; then
  8372. case $host_os in aix4.[012]|aix4.[012].*)
  8373. # We only want to do this on AIX 4.2 and lower, the check
  8374. # below for broken collect2 doesn't work under 4.3+
  8375. collect2name=`${CC} -print-prog-name=collect2`
  8376. if test -f "$collect2name" &&
  8377. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8378. then
  8379. # We have reworked collect2
  8380. :
  8381. else
  8382. # We have old collect2
  8383. hardcode_direct=unsupported
  8384. # It fails to find uninstalled libraries when the uninstalled
  8385. # path is not listed in the libpath. Setting hardcode_minus_L
  8386. # to unsupported forces relinking
  8387. hardcode_minus_L=yes
  8388. hardcode_libdir_flag_spec='-L$libdir'
  8389. hardcode_libdir_separator=
  8390. fi
  8391. ;;
  8392. esac
  8393. shared_flag='-shared'
  8394. if test "$aix_use_runtimelinking" = yes; then
  8395. shared_flag="$shared_flag "'${wl}-G'
  8396. fi
  8397. link_all_deplibs=no
  8398. else
  8399. # not using gcc
  8400. if test "$host_cpu" = ia64; then
  8401. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8402. # chokes on -Wl,-G. The following line is correct:
  8403. shared_flag='-G'
  8404. else
  8405. if test "$aix_use_runtimelinking" = yes; then
  8406. shared_flag='${wl}-G'
  8407. else
  8408. shared_flag='${wl}-bM:SRE'
  8409. fi
  8410. fi
  8411. fi
  8412. export_dynamic_flag_spec='${wl}-bexpall'
  8413. # It seems that -bexpall does not export symbols beginning with
  8414. # underscore (_), so it is better to generate a list of symbols to export.
  8415. always_export_symbols=yes
  8416. if test "$aix_use_runtimelinking" = yes; then
  8417. # Warning - without using the other runtime loading flags (-brtl),
  8418. # -berok will link without error, but may produce a broken library.
  8419. allow_undefined_flag='-berok'
  8420. # Determine the default libpath from the value encoded in an
  8421. # empty executable.
  8422. cat >conftest.$ac_ext <<_ACEOF
  8423. /* confdefs.h. */
  8424. _ACEOF
  8425. cat confdefs.h >>conftest.$ac_ext
  8426. cat >>conftest.$ac_ext <<_ACEOF
  8427. /* end confdefs.h. */
  8428. int
  8429. main ()
  8430. {
  8431. ;
  8432. return 0;
  8433. }
  8434. _ACEOF
  8435. rm -f conftest.$ac_objext conftest$ac_exeext
  8436. if { (ac_try="$ac_link"
  8437. case "(($ac_try" in
  8438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8439. *) ac_try_echo=$ac_try;;
  8440. esac
  8441. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8442. $as_echo "$ac_try_echo") >&5
  8443. (eval "$ac_link") 2>conftest.er1
  8444. ac_status=$?
  8445. grep -v '^ *+' conftest.er1 >conftest.err
  8446. rm -f conftest.er1
  8447. cat conftest.err >&5
  8448. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8449. (exit $ac_status); } && {
  8450. test -z "$ac_c_werror_flag" ||
  8451. test ! -s conftest.err
  8452. } && test -s conftest$ac_exeext && {
  8453. test "$cross_compiling" = yes ||
  8454. $as_test_x conftest$ac_exeext
  8455. }; then
  8456. lt_aix_libpath_sed='
  8457. /Import File Strings/,/^$/ {
  8458. /^0/ {
  8459. s/^0 *\(.*\)$/\1/
  8460. p
  8461. }
  8462. }'
  8463. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8464. # Check for a 64-bit object if we didn't find anything.
  8465. if test -z "$aix_libpath"; then
  8466. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8467. fi
  8468. else
  8469. $as_echo "$as_me: failed program was:" >&5
  8470. sed 's/^/| /' conftest.$ac_ext >&5
  8471. fi
  8472. rm -rf conftest.dSYM
  8473. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8474. conftest$ac_exeext conftest.$ac_ext
  8475. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8476. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8477. 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"
  8478. else
  8479. if test "$host_cpu" = ia64; then
  8480. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8481. allow_undefined_flag="-z nodefs"
  8482. 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"
  8483. else
  8484. # Determine the default libpath from the value encoded in an
  8485. # empty executable.
  8486. cat >conftest.$ac_ext <<_ACEOF
  8487. /* confdefs.h. */
  8488. _ACEOF
  8489. cat confdefs.h >>conftest.$ac_ext
  8490. cat >>conftest.$ac_ext <<_ACEOF
  8491. /* end confdefs.h. */
  8492. int
  8493. main ()
  8494. {
  8495. ;
  8496. return 0;
  8497. }
  8498. _ACEOF
  8499. rm -f conftest.$ac_objext conftest$ac_exeext
  8500. if { (ac_try="$ac_link"
  8501. case "(($ac_try" in
  8502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8503. *) ac_try_echo=$ac_try;;
  8504. esac
  8505. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8506. $as_echo "$ac_try_echo") >&5
  8507. (eval "$ac_link") 2>conftest.er1
  8508. ac_status=$?
  8509. grep -v '^ *+' conftest.er1 >conftest.err
  8510. rm -f conftest.er1
  8511. cat conftest.err >&5
  8512. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8513. (exit $ac_status); } && {
  8514. test -z "$ac_c_werror_flag" ||
  8515. test ! -s conftest.err
  8516. } && test -s conftest$ac_exeext && {
  8517. test "$cross_compiling" = yes ||
  8518. $as_test_x conftest$ac_exeext
  8519. }; then
  8520. lt_aix_libpath_sed='
  8521. /Import File Strings/,/^$/ {
  8522. /^0/ {
  8523. s/^0 *\(.*\)$/\1/
  8524. p
  8525. }
  8526. }'
  8527. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8528. # Check for a 64-bit object if we didn't find anything.
  8529. if test -z "$aix_libpath"; then
  8530. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8531. fi
  8532. else
  8533. $as_echo "$as_me: failed program was:" >&5
  8534. sed 's/^/| /' conftest.$ac_ext >&5
  8535. fi
  8536. rm -rf conftest.dSYM
  8537. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8538. conftest$ac_exeext conftest.$ac_ext
  8539. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8540. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8541. # Warning - without using the other run time loading flags,
  8542. # -berok will link without error, but may produce a broken library.
  8543. no_undefined_flag=' ${wl}-bernotok'
  8544. allow_undefined_flag=' ${wl}-berok'
  8545. # Exported symbols can be pulled into shared objects from archives
  8546. whole_archive_flag_spec='$convenience'
  8547. archive_cmds_need_lc=yes
  8548. # This is similar to how AIX traditionally builds its shared libraries.
  8549. 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'
  8550. fi
  8551. fi
  8552. ;;
  8553. amigaos*)
  8554. case $host_cpu in
  8555. powerpc)
  8556. # see comment about AmigaOS4 .so support
  8557. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8558. archive_expsym_cmds=''
  8559. ;;
  8560. m68k)
  8561. 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)'
  8562. hardcode_libdir_flag_spec='-L$libdir'
  8563. hardcode_minus_L=yes
  8564. ;;
  8565. esac
  8566. ;;
  8567. bsdi[45]*)
  8568. export_dynamic_flag_spec=-rdynamic
  8569. ;;
  8570. cygwin* | mingw* | pw32* | cegcc*)
  8571. # When not using gcc, we currently assume that we are using
  8572. # Microsoft Visual C++.
  8573. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8574. # no search path for DLLs.
  8575. hardcode_libdir_flag_spec=' '
  8576. allow_undefined_flag=unsupported
  8577. # Tell ltmain to make .lib files, not .a files.
  8578. libext=lib
  8579. # Tell ltmain to make .dll files, not .so files.
  8580. shrext_cmds=".dll"
  8581. # FIXME: Setting linknames here is a bad hack.
  8582. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8583. # The linker will automatically build a .lib file if we build a DLL.
  8584. old_archive_from_new_cmds='true'
  8585. # FIXME: Should let the user specify the lib program.
  8586. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8587. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8588. enable_shared_with_static_runtimes=yes
  8589. ;;
  8590. darwin* | rhapsody*)
  8591. archive_cmds_need_lc=no
  8592. hardcode_direct=no
  8593. hardcode_automatic=yes
  8594. hardcode_shlibpath_var=unsupported
  8595. whole_archive_flag_spec=''
  8596. link_all_deplibs=yes
  8597. allow_undefined_flag="$_lt_dar_allow_undefined"
  8598. case $cc_basename in
  8599. ifort*) _lt_dar_can_shared=yes ;;
  8600. *) _lt_dar_can_shared=$GCC ;;
  8601. esac
  8602. if test "$_lt_dar_can_shared" = "yes"; then
  8603. output_verbose_link_cmd=echo
  8604. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8605. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8606. 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}"
  8607. 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}"
  8608. else
  8609. ld_shlibs=no
  8610. fi
  8611. ;;
  8612. dgux*)
  8613. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8614. hardcode_libdir_flag_spec='-L$libdir'
  8615. hardcode_shlibpath_var=no
  8616. ;;
  8617. freebsd1*)
  8618. ld_shlibs=no
  8619. ;;
  8620. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8621. # support. Future versions do this automatically, but an explicit c++rt0.o
  8622. # does not break anything, and helps significantly (at the cost of a little
  8623. # extra space).
  8624. freebsd2.2*)
  8625. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8626. hardcode_libdir_flag_spec='-R$libdir'
  8627. hardcode_direct=yes
  8628. hardcode_shlibpath_var=no
  8629. ;;
  8630. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8631. freebsd2*)
  8632. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8633. hardcode_direct=yes
  8634. hardcode_minus_L=yes
  8635. hardcode_shlibpath_var=no
  8636. ;;
  8637. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8638. freebsd* | dragonfly*)
  8639. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8640. hardcode_libdir_flag_spec='-R$libdir'
  8641. hardcode_direct=yes
  8642. hardcode_shlibpath_var=no
  8643. ;;
  8644. hpux9*)
  8645. if test "$GCC" = yes; then
  8646. 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'
  8647. else
  8648. 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'
  8649. fi
  8650. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8651. hardcode_libdir_separator=:
  8652. hardcode_direct=yes
  8653. # hardcode_minus_L: Not really in the search PATH,
  8654. # but as the default location of the library.
  8655. hardcode_minus_L=yes
  8656. export_dynamic_flag_spec='${wl}-E'
  8657. ;;
  8658. hpux10*)
  8659. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8660. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8661. else
  8662. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8663. fi
  8664. if test "$with_gnu_ld" = no; then
  8665. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8666. hardcode_libdir_flag_spec_ld='+b $libdir'
  8667. hardcode_libdir_separator=:
  8668. hardcode_direct=yes
  8669. hardcode_direct_absolute=yes
  8670. export_dynamic_flag_spec='${wl}-E'
  8671. # hardcode_minus_L: Not really in the search PATH,
  8672. # but as the default location of the library.
  8673. hardcode_minus_L=yes
  8674. fi
  8675. ;;
  8676. hpux11*)
  8677. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8678. case $host_cpu in
  8679. hppa*64*)
  8680. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8681. ;;
  8682. ia64*)
  8683. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8684. ;;
  8685. *)
  8686. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8687. ;;
  8688. esac
  8689. else
  8690. case $host_cpu in
  8691. hppa*64*)
  8692. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8693. ;;
  8694. ia64*)
  8695. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8696. ;;
  8697. *)
  8698. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8699. ;;
  8700. esac
  8701. fi
  8702. if test "$with_gnu_ld" = no; then
  8703. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8704. hardcode_libdir_separator=:
  8705. case $host_cpu in
  8706. hppa*64*|ia64*)
  8707. hardcode_direct=no
  8708. hardcode_shlibpath_var=no
  8709. ;;
  8710. *)
  8711. hardcode_direct=yes
  8712. hardcode_direct_absolute=yes
  8713. export_dynamic_flag_spec='${wl}-E'
  8714. # hardcode_minus_L: Not really in the search PATH,
  8715. # but as the default location of the library.
  8716. hardcode_minus_L=yes
  8717. ;;
  8718. esac
  8719. fi
  8720. ;;
  8721. irix5* | irix6* | nonstopux*)
  8722. if test "$GCC" = yes; then
  8723. 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'
  8724. # Try to use the -exported_symbol ld option, if it does not
  8725. # work, assume that -exports_file does not work either and
  8726. # implicitly export all symbols.
  8727. save_LDFLAGS="$LDFLAGS"
  8728. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8729. cat >conftest.$ac_ext <<_ACEOF
  8730. int foo(void) {}
  8731. _ACEOF
  8732. rm -f conftest.$ac_objext conftest$ac_exeext
  8733. if { (ac_try="$ac_link"
  8734. case "(($ac_try" in
  8735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8736. *) ac_try_echo=$ac_try;;
  8737. esac
  8738. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8739. $as_echo "$ac_try_echo") >&5
  8740. (eval "$ac_link") 2>conftest.er1
  8741. ac_status=$?
  8742. grep -v '^ *+' conftest.er1 >conftest.err
  8743. rm -f conftest.er1
  8744. cat conftest.err >&5
  8745. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8746. (exit $ac_status); } && {
  8747. test -z "$ac_c_werror_flag" ||
  8748. test ! -s conftest.err
  8749. } && test -s conftest$ac_exeext && {
  8750. test "$cross_compiling" = yes ||
  8751. $as_test_x conftest$ac_exeext
  8752. }; then
  8753. 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'
  8754. else
  8755. $as_echo "$as_me: failed program was:" >&5
  8756. sed 's/^/| /' conftest.$ac_ext >&5
  8757. fi
  8758. rm -rf conftest.dSYM
  8759. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8760. conftest$ac_exeext conftest.$ac_ext
  8761. LDFLAGS="$save_LDFLAGS"
  8762. else
  8763. 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'
  8764. 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'
  8765. fi
  8766. archive_cmds_need_lc='no'
  8767. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8768. hardcode_libdir_separator=:
  8769. inherit_rpath=yes
  8770. link_all_deplibs=yes
  8771. ;;
  8772. netbsd* | netbsdelf*-gnu)
  8773. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8774. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8775. else
  8776. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8777. fi
  8778. hardcode_libdir_flag_spec='-R$libdir'
  8779. hardcode_direct=yes
  8780. hardcode_shlibpath_var=no
  8781. ;;
  8782. newsos6)
  8783. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8784. hardcode_direct=yes
  8785. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8786. hardcode_libdir_separator=:
  8787. hardcode_shlibpath_var=no
  8788. ;;
  8789. *nto* | *qnx*)
  8790. ;;
  8791. openbsd*)
  8792. if test -f /usr/libexec/ld.so; then
  8793. hardcode_direct=yes
  8794. hardcode_shlibpath_var=no
  8795. hardcode_direct_absolute=yes
  8796. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8797. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8798. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8799. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8800. export_dynamic_flag_spec='${wl}-E'
  8801. else
  8802. case $host_os in
  8803. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8804. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8805. hardcode_libdir_flag_spec='-R$libdir'
  8806. ;;
  8807. *)
  8808. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8809. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8810. ;;
  8811. esac
  8812. fi
  8813. else
  8814. ld_shlibs=no
  8815. fi
  8816. ;;
  8817. os2*)
  8818. hardcode_libdir_flag_spec='-L$libdir'
  8819. hardcode_minus_L=yes
  8820. allow_undefined_flag=unsupported
  8821. 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'
  8822. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8823. ;;
  8824. osf3*)
  8825. if test "$GCC" = yes; then
  8826. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8827. 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'
  8828. else
  8829. allow_undefined_flag=' -expect_unresolved \*'
  8830. 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'
  8831. fi
  8832. archive_cmds_need_lc='no'
  8833. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8834. hardcode_libdir_separator=:
  8835. ;;
  8836. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8837. if test "$GCC" = yes; then
  8838. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8839. 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'
  8840. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8841. else
  8842. allow_undefined_flag=' -expect_unresolved \*'
  8843. 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'
  8844. 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~
  8845. $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'
  8846. # Both c and cxx compiler support -rpath directly
  8847. hardcode_libdir_flag_spec='-rpath $libdir'
  8848. fi
  8849. archive_cmds_need_lc='no'
  8850. hardcode_libdir_separator=:
  8851. ;;
  8852. solaris*)
  8853. no_undefined_flag=' -z defs'
  8854. if test "$GCC" = yes; then
  8855. wlarc='${wl}'
  8856. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8857. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8858. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8859. else
  8860. case `$CC -V 2>&1` in
  8861. *"Compilers 5.0"*)
  8862. wlarc=''
  8863. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8864. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8865. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8866. ;;
  8867. *)
  8868. wlarc='${wl}'
  8869. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8870. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8871. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8872. ;;
  8873. esac
  8874. fi
  8875. hardcode_libdir_flag_spec='-R$libdir'
  8876. hardcode_shlibpath_var=no
  8877. case $host_os in
  8878. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8879. *)
  8880. # The compiler driver will combine and reorder linker options,
  8881. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8882. # but is careful enough not to reorder.
  8883. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8884. if test "$GCC" = yes; then
  8885. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8886. else
  8887. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8888. fi
  8889. ;;
  8890. esac
  8891. link_all_deplibs=yes
  8892. ;;
  8893. sunos4*)
  8894. if test "x$host_vendor" = xsequent; then
  8895. # Use $CC to link under sequent, because it throws in some extra .o
  8896. # files that make .init and .fini sections work.
  8897. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8898. else
  8899. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8900. fi
  8901. hardcode_libdir_flag_spec='-L$libdir'
  8902. hardcode_direct=yes
  8903. hardcode_minus_L=yes
  8904. hardcode_shlibpath_var=no
  8905. ;;
  8906. sysv4)
  8907. case $host_vendor in
  8908. sni)
  8909. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8910. hardcode_direct=yes # is this really true???
  8911. ;;
  8912. siemens)
  8913. ## LD is ld it makes a PLAMLIB
  8914. ## CC just makes a GrossModule.
  8915. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8916. reload_cmds='$CC -r -o $output$reload_objs'
  8917. hardcode_direct=no
  8918. ;;
  8919. motorola)
  8920. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8921. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8922. ;;
  8923. esac
  8924. runpath_var='LD_RUN_PATH'
  8925. hardcode_shlibpath_var=no
  8926. ;;
  8927. sysv4.3*)
  8928. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8929. hardcode_shlibpath_var=no
  8930. export_dynamic_flag_spec='-Bexport'
  8931. ;;
  8932. sysv4*MP*)
  8933. if test -d /usr/nec; then
  8934. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8935. hardcode_shlibpath_var=no
  8936. runpath_var=LD_RUN_PATH
  8937. hardcode_runpath_var=yes
  8938. ld_shlibs=yes
  8939. fi
  8940. ;;
  8941. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8942. no_undefined_flag='${wl}-z,text'
  8943. archive_cmds_need_lc=no
  8944. hardcode_shlibpath_var=no
  8945. runpath_var='LD_RUN_PATH'
  8946. if test "$GCC" = yes; then
  8947. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8948. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8949. else
  8950. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8951. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8952. fi
  8953. ;;
  8954. sysv5* | sco3.2v5* | sco5v6*)
  8955. # Note: We can NOT use -z defs as we might desire, because we do not
  8956. # link with -lc, and that would cause any symbols used from libc to
  8957. # always be unresolved, which means just about no library would
  8958. # ever link correctly. If we're not using GNU ld we use -z text
  8959. # though, which does catch some bad symbols but isn't as heavy-handed
  8960. # as -z defs.
  8961. no_undefined_flag='${wl}-z,text'
  8962. allow_undefined_flag='${wl}-z,nodefs'
  8963. archive_cmds_need_lc=no
  8964. hardcode_shlibpath_var=no
  8965. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8966. hardcode_libdir_separator=':'
  8967. link_all_deplibs=yes
  8968. export_dynamic_flag_spec='${wl}-Bexport'
  8969. runpath_var='LD_RUN_PATH'
  8970. if test "$GCC" = yes; then
  8971. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8972. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8973. else
  8974. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8975. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8976. fi
  8977. ;;
  8978. uts4*)
  8979. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8980. hardcode_libdir_flag_spec='-L$libdir'
  8981. hardcode_shlibpath_var=no
  8982. ;;
  8983. *)
  8984. ld_shlibs=no
  8985. ;;
  8986. esac
  8987. if test x$host_vendor = xsni; then
  8988. case $host in
  8989. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8990. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8991. ;;
  8992. esac
  8993. fi
  8994. fi
  8995. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8996. $as_echo "$ld_shlibs" >&6; }
  8997. test "$ld_shlibs" = no && can_build_shared=no
  8998. with_gnu_ld=$with_gnu_ld
  8999. #
  9000. # Do we need to explicitly link libc?
  9001. #
  9002. case "x$archive_cmds_need_lc" in
  9003. x|xyes)
  9004. # Assume -lc should be added
  9005. archive_cmds_need_lc=yes
  9006. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9007. case $archive_cmds in
  9008. *'~'*)
  9009. # FIXME: we may have to deal with multi-command sequences.
  9010. ;;
  9011. '$CC '*)
  9012. # Test whether the compiler implicitly links with -lc since on some
  9013. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9014. # to ld, don't add -lc before -lgcc.
  9015. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9016. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9017. $RM conftest*
  9018. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9019. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9020. (eval $ac_compile) 2>&5
  9021. ac_status=$?
  9022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9023. (exit $ac_status); } 2>conftest.err; then
  9024. soname=conftest
  9025. lib=conftest
  9026. libobjs=conftest.$ac_objext
  9027. deplibs=
  9028. wl=$lt_prog_compiler_wl
  9029. pic_flag=$lt_prog_compiler_pic
  9030. compiler_flags=-v
  9031. linker_flags=-v
  9032. verstring=
  9033. output_objdir=.
  9034. libname=conftest
  9035. lt_save_allow_undefined_flag=$allow_undefined_flag
  9036. allow_undefined_flag=
  9037. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9038. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9039. ac_status=$?
  9040. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9041. (exit $ac_status); }
  9042. then
  9043. archive_cmds_need_lc=no
  9044. else
  9045. archive_cmds_need_lc=yes
  9046. fi
  9047. allow_undefined_flag=$lt_save_allow_undefined_flag
  9048. else
  9049. cat conftest.err 1>&5
  9050. fi
  9051. $RM conftest*
  9052. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9053. $as_echo "$archive_cmds_need_lc" >&6; }
  9054. ;;
  9055. esac
  9056. fi
  9057. ;;
  9058. esac
  9059. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9060. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9061. if test "$GCC" = yes; then
  9062. case $host_os in
  9063. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9064. *) lt_awk_arg="/^libraries:/" ;;
  9065. esac
  9066. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9067. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9068. # if the path contains ";" then we assume it to be the separator
  9069. # otherwise default to the standard path separator (i.e. ":") - it is
  9070. # assumed that no part of a normal pathname contains ";" but that should
  9071. # okay in the real world where ";" in dirpaths is itself problematic.
  9072. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9073. else
  9074. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9075. fi
  9076. # Ok, now we have the path, separated by spaces, we can step through it
  9077. # and add multilib dir if necessary.
  9078. lt_tmp_lt_search_path_spec=
  9079. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9080. for lt_sys_path in $lt_search_path_spec; do
  9081. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9082. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9083. else
  9084. test -d "$lt_sys_path" && \
  9085. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9086. fi
  9087. done
  9088. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9089. BEGIN {RS=" "; FS="/|\n";} {
  9090. lt_foo="";
  9091. lt_count=0;
  9092. for (lt_i = NF; lt_i > 0; lt_i--) {
  9093. if ($lt_i != "" && $lt_i != ".") {
  9094. if ($lt_i == "..") {
  9095. lt_count++;
  9096. } else {
  9097. if (lt_count == 0) {
  9098. lt_foo="/" $lt_i lt_foo;
  9099. } else {
  9100. lt_count--;
  9101. }
  9102. }
  9103. }
  9104. }
  9105. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9106. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9107. }'`
  9108. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9109. else
  9110. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9111. fi
  9112. library_names_spec=
  9113. libname_spec='lib$name'
  9114. soname_spec=
  9115. shrext_cmds=".so"
  9116. postinstall_cmds=
  9117. postuninstall_cmds=
  9118. finish_cmds=
  9119. finish_eval=
  9120. shlibpath_var=
  9121. shlibpath_overrides_runpath=unknown
  9122. version_type=none
  9123. dynamic_linker="$host_os ld.so"
  9124. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9125. need_lib_prefix=unknown
  9126. hardcode_into_libs=no
  9127. # when you set need_version to no, make sure it does not cause -set_version
  9128. # flags to be left without arguments
  9129. need_version=unknown
  9130. case $host_os in
  9131. aix3*)
  9132. version_type=linux
  9133. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9134. shlibpath_var=LIBPATH
  9135. # AIX 3 has no versioning support, so we append a major version to the name.
  9136. soname_spec='${libname}${release}${shared_ext}$major'
  9137. ;;
  9138. aix[4-9]*)
  9139. version_type=linux
  9140. need_lib_prefix=no
  9141. need_version=no
  9142. hardcode_into_libs=yes
  9143. if test "$host_cpu" = ia64; then
  9144. # AIX 5 supports IA64
  9145. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9146. shlibpath_var=LD_LIBRARY_PATH
  9147. else
  9148. # With GCC up to 2.95.x, collect2 would create an import file
  9149. # for dependence libraries. The import file would start with
  9150. # the line `#! .'. This would cause the generated library to
  9151. # depend on `.', always an invalid library. This was fixed in
  9152. # development snapshots of GCC prior to 3.0.
  9153. case $host_os in
  9154. aix4 | aix4.[01] | aix4.[01].*)
  9155. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9156. echo ' yes '
  9157. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9158. :
  9159. else
  9160. can_build_shared=no
  9161. fi
  9162. ;;
  9163. esac
  9164. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9165. # soname into executable. Probably we can add versioning support to
  9166. # collect2, so additional links can be useful in future.
  9167. if test "$aix_use_runtimelinking" = yes; then
  9168. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9169. # instead of lib<name>.a to let people know that these are not
  9170. # typical AIX shared libraries.
  9171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9172. else
  9173. # We preserve .a as extension for shared libraries through AIX4.2
  9174. # and later when we are not doing run time linking.
  9175. library_names_spec='${libname}${release}.a $libname.a'
  9176. soname_spec='${libname}${release}${shared_ext}$major'
  9177. fi
  9178. shlibpath_var=LIBPATH
  9179. fi
  9180. ;;
  9181. amigaos*)
  9182. case $host_cpu in
  9183. powerpc)
  9184. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9185. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9187. ;;
  9188. m68k)
  9189. library_names_spec='$libname.ixlibrary $libname.a'
  9190. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9191. 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'
  9192. ;;
  9193. esac
  9194. ;;
  9195. beos*)
  9196. library_names_spec='${libname}${shared_ext}'
  9197. dynamic_linker="$host_os ld.so"
  9198. shlibpath_var=LIBRARY_PATH
  9199. ;;
  9200. bsdi[45]*)
  9201. version_type=linux
  9202. need_version=no
  9203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9204. soname_spec='${libname}${release}${shared_ext}$major'
  9205. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9206. shlibpath_var=LD_LIBRARY_PATH
  9207. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9208. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9209. # the default ld.so.conf also contains /usr/contrib/lib and
  9210. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9211. # libtool to hard-code these into programs
  9212. ;;
  9213. cygwin* | mingw* | pw32* | cegcc*)
  9214. version_type=windows
  9215. shrext_cmds=".dll"
  9216. need_version=no
  9217. need_lib_prefix=no
  9218. case $GCC,$host_os in
  9219. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9220. library_names_spec='$libname.dll.a'
  9221. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9222. postinstall_cmds='base_file=`basename \${file}`~
  9223. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9224. dldir=$destdir/`dirname \$dlpath`~
  9225. test -d \$dldir || mkdir -p \$dldir~
  9226. $install_prog $dir/$dlname \$dldir/$dlname~
  9227. chmod a+x \$dldir/$dlname~
  9228. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9229. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9230. fi'
  9231. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9232. dlpath=$dir/\$dldll~
  9233. $RM \$dlpath'
  9234. shlibpath_overrides_runpath=yes
  9235. case $host_os in
  9236. cygwin*)
  9237. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9238. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9239. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9240. ;;
  9241. mingw* | cegcc*)
  9242. # MinGW DLLs use traditional 'lib' prefix
  9243. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9244. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9245. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9246. # It is most probably a Windows format PATH printed by
  9247. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9248. # path with ; separators, and with drive letters. We can handle the
  9249. # drive letters (cygwin fileutils understands them), so leave them,
  9250. # especially as we might pass files found there to a mingw objdump,
  9251. # which wouldn't understand a cygwinified path. Ahh.
  9252. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9253. else
  9254. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9255. fi
  9256. ;;
  9257. pw32*)
  9258. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9259. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9260. ;;
  9261. esac
  9262. ;;
  9263. *)
  9264. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9265. ;;
  9266. esac
  9267. dynamic_linker='Win32 ld.exe'
  9268. # FIXME: first we should search . and the directory the executable is in
  9269. shlibpath_var=PATH
  9270. ;;
  9271. darwin* | rhapsody*)
  9272. dynamic_linker="$host_os dyld"
  9273. version_type=darwin
  9274. need_lib_prefix=no
  9275. need_version=no
  9276. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9277. soname_spec='${libname}${release}${major}$shared_ext'
  9278. shlibpath_overrides_runpath=yes
  9279. shlibpath_var=DYLD_LIBRARY_PATH
  9280. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9281. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9282. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9283. ;;
  9284. dgux*)
  9285. version_type=linux
  9286. need_lib_prefix=no
  9287. need_version=no
  9288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9289. soname_spec='${libname}${release}${shared_ext}$major'
  9290. shlibpath_var=LD_LIBRARY_PATH
  9291. ;;
  9292. freebsd1*)
  9293. dynamic_linker=no
  9294. ;;
  9295. freebsd* | dragonfly*)
  9296. # DragonFly does not have aout. When/if they implement a new
  9297. # versioning mechanism, adjust this.
  9298. if test -x /usr/bin/objformat; then
  9299. objformat=`/usr/bin/objformat`
  9300. else
  9301. case $host_os in
  9302. freebsd[123]*) objformat=aout ;;
  9303. *) objformat=elf ;;
  9304. esac
  9305. fi
  9306. version_type=freebsd-$objformat
  9307. case $version_type in
  9308. freebsd-elf*)
  9309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9310. need_version=no
  9311. need_lib_prefix=no
  9312. ;;
  9313. freebsd-*)
  9314. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9315. need_version=yes
  9316. ;;
  9317. esac
  9318. shlibpath_var=LD_LIBRARY_PATH
  9319. case $host_os in
  9320. freebsd2*)
  9321. shlibpath_overrides_runpath=yes
  9322. ;;
  9323. freebsd3.[01]* | freebsdelf3.[01]*)
  9324. shlibpath_overrides_runpath=yes
  9325. hardcode_into_libs=yes
  9326. ;;
  9327. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9328. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9329. shlibpath_overrides_runpath=no
  9330. hardcode_into_libs=yes
  9331. ;;
  9332. *) # from 4.6 on, and DragonFly
  9333. shlibpath_overrides_runpath=yes
  9334. hardcode_into_libs=yes
  9335. ;;
  9336. esac
  9337. ;;
  9338. gnu*)
  9339. version_type=linux
  9340. need_lib_prefix=no
  9341. need_version=no
  9342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9343. soname_spec='${libname}${release}${shared_ext}$major'
  9344. shlibpath_var=LD_LIBRARY_PATH
  9345. hardcode_into_libs=yes
  9346. ;;
  9347. hpux9* | hpux10* | hpux11*)
  9348. # Give a soname corresponding to the major version so that dld.sl refuses to
  9349. # link against other versions.
  9350. version_type=sunos
  9351. need_lib_prefix=no
  9352. need_version=no
  9353. case $host_cpu in
  9354. ia64*)
  9355. shrext_cmds='.so'
  9356. hardcode_into_libs=yes
  9357. dynamic_linker="$host_os dld.so"
  9358. shlibpath_var=LD_LIBRARY_PATH
  9359. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9361. soname_spec='${libname}${release}${shared_ext}$major'
  9362. if test "X$HPUX_IA64_MODE" = X32; then
  9363. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9364. else
  9365. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9366. fi
  9367. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9368. ;;
  9369. hppa*64*)
  9370. shrext_cmds='.sl'
  9371. hardcode_into_libs=yes
  9372. dynamic_linker="$host_os dld.sl"
  9373. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9374. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9376. soname_spec='${libname}${release}${shared_ext}$major'
  9377. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9378. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9379. ;;
  9380. *)
  9381. shrext_cmds='.sl'
  9382. dynamic_linker="$host_os dld.sl"
  9383. shlibpath_var=SHLIB_PATH
  9384. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9386. soname_spec='${libname}${release}${shared_ext}$major'
  9387. ;;
  9388. esac
  9389. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9390. postinstall_cmds='chmod 555 $lib'
  9391. ;;
  9392. interix[3-9]*)
  9393. version_type=linux
  9394. need_lib_prefix=no
  9395. need_version=no
  9396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9397. soname_spec='${libname}${release}${shared_ext}$major'
  9398. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9399. shlibpath_var=LD_LIBRARY_PATH
  9400. shlibpath_overrides_runpath=no
  9401. hardcode_into_libs=yes
  9402. ;;
  9403. irix5* | irix6* | nonstopux*)
  9404. case $host_os in
  9405. nonstopux*) version_type=nonstopux ;;
  9406. *)
  9407. if test "$lt_cv_prog_gnu_ld" = yes; then
  9408. version_type=linux
  9409. else
  9410. version_type=irix
  9411. fi ;;
  9412. esac
  9413. need_lib_prefix=no
  9414. need_version=no
  9415. soname_spec='${libname}${release}${shared_ext}$major'
  9416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9417. case $host_os in
  9418. irix5* | nonstopux*)
  9419. libsuff= shlibsuff=
  9420. ;;
  9421. *)
  9422. case $LD in # libtool.m4 will add one of these switches to LD
  9423. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9424. libsuff= shlibsuff= libmagic=32-bit;;
  9425. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9426. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9427. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9428. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9429. *) libsuff= shlibsuff= libmagic=never-match;;
  9430. esac
  9431. ;;
  9432. esac
  9433. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9434. shlibpath_overrides_runpath=no
  9435. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9436. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9437. hardcode_into_libs=yes
  9438. ;;
  9439. # No shared lib support for Linux oldld, aout, or coff.
  9440. linux*oldld* | linux*aout* | linux*coff*)
  9441. dynamic_linker=no
  9442. ;;
  9443. # This must be Linux ELF.
  9444. linux* | k*bsd*-gnu)
  9445. version_type=linux
  9446. need_lib_prefix=no
  9447. need_version=no
  9448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9449. soname_spec='${libname}${release}${shared_ext}$major'
  9450. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9451. shlibpath_var=LD_LIBRARY_PATH
  9452. shlibpath_overrides_runpath=no
  9453. # Some binutils ld are patched to set DT_RUNPATH
  9454. save_LDFLAGS=$LDFLAGS
  9455. save_libdir=$libdir
  9456. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9457. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9458. cat >conftest.$ac_ext <<_ACEOF
  9459. /* confdefs.h. */
  9460. _ACEOF
  9461. cat confdefs.h >>conftest.$ac_ext
  9462. cat >>conftest.$ac_ext <<_ACEOF
  9463. /* end confdefs.h. */
  9464. int
  9465. main ()
  9466. {
  9467. ;
  9468. return 0;
  9469. }
  9470. _ACEOF
  9471. rm -f conftest.$ac_objext conftest$ac_exeext
  9472. if { (ac_try="$ac_link"
  9473. case "(($ac_try" in
  9474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9475. *) ac_try_echo=$ac_try;;
  9476. esac
  9477. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9478. $as_echo "$ac_try_echo") >&5
  9479. (eval "$ac_link") 2>conftest.er1
  9480. ac_status=$?
  9481. grep -v '^ *+' conftest.er1 >conftest.err
  9482. rm -f conftest.er1
  9483. cat conftest.err >&5
  9484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9485. (exit $ac_status); } && {
  9486. test -z "$ac_c_werror_flag" ||
  9487. test ! -s conftest.err
  9488. } && test -s conftest$ac_exeext && {
  9489. test "$cross_compiling" = yes ||
  9490. $as_test_x conftest$ac_exeext
  9491. }; then
  9492. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  9493. shlibpath_overrides_runpath=yes
  9494. fi
  9495. else
  9496. $as_echo "$as_me: failed program was:" >&5
  9497. sed 's/^/| /' conftest.$ac_ext >&5
  9498. fi
  9499. rm -rf conftest.dSYM
  9500. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9501. conftest$ac_exeext conftest.$ac_ext
  9502. LDFLAGS=$save_LDFLAGS
  9503. libdir=$save_libdir
  9504. # This implies no fast_install, which is unacceptable.
  9505. # Some rework will be needed to allow for fast_install
  9506. # before this can be enabled.
  9507. hardcode_into_libs=yes
  9508. # Append ld.so.conf contents to the search path
  9509. if test -f /etc/ld.so.conf; then
  9510. 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' ' '`
  9511. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9512. fi
  9513. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9514. # powerpc, because MkLinux only supported shared libraries with the
  9515. # GNU dynamic linker. Since this was broken with cross compilers,
  9516. # most powerpc-linux boxes support dynamic linking these days and
  9517. # people can always --disable-shared, the test was removed, and we
  9518. # assume the GNU/Linux dynamic linker is in use.
  9519. dynamic_linker='GNU/Linux ld.so'
  9520. ;;
  9521. netbsdelf*-gnu)
  9522. version_type=linux
  9523. need_lib_prefix=no
  9524. need_version=no
  9525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9526. soname_spec='${libname}${release}${shared_ext}$major'
  9527. shlibpath_var=LD_LIBRARY_PATH
  9528. shlibpath_overrides_runpath=no
  9529. hardcode_into_libs=yes
  9530. dynamic_linker='NetBSD ld.elf_so'
  9531. ;;
  9532. netbsd*)
  9533. version_type=sunos
  9534. need_lib_prefix=no
  9535. need_version=no
  9536. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9537. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9538. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9539. dynamic_linker='NetBSD (a.out) ld.so'
  9540. else
  9541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9542. soname_spec='${libname}${release}${shared_ext}$major'
  9543. dynamic_linker='NetBSD ld.elf_so'
  9544. fi
  9545. shlibpath_var=LD_LIBRARY_PATH
  9546. shlibpath_overrides_runpath=yes
  9547. hardcode_into_libs=yes
  9548. ;;
  9549. newsos6)
  9550. version_type=linux
  9551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9552. shlibpath_var=LD_LIBRARY_PATH
  9553. shlibpath_overrides_runpath=yes
  9554. ;;
  9555. *nto* | *qnx*)
  9556. version_type=qnx
  9557. need_lib_prefix=no
  9558. need_version=no
  9559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9560. soname_spec='${libname}${release}${shared_ext}$major'
  9561. shlibpath_var=LD_LIBRARY_PATH
  9562. shlibpath_overrides_runpath=no
  9563. hardcode_into_libs=yes
  9564. dynamic_linker='ldqnx.so'
  9565. ;;
  9566. openbsd*)
  9567. version_type=sunos
  9568. sys_lib_dlsearch_path_spec="/usr/lib"
  9569. need_lib_prefix=no
  9570. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9571. case $host_os in
  9572. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9573. *) need_version=no ;;
  9574. esac
  9575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9576. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9577. shlibpath_var=LD_LIBRARY_PATH
  9578. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9579. case $host_os in
  9580. openbsd2.[89] | openbsd2.[89].*)
  9581. shlibpath_overrides_runpath=no
  9582. ;;
  9583. *)
  9584. shlibpath_overrides_runpath=yes
  9585. ;;
  9586. esac
  9587. else
  9588. shlibpath_overrides_runpath=yes
  9589. fi
  9590. ;;
  9591. os2*)
  9592. libname_spec='$name'
  9593. shrext_cmds=".dll"
  9594. need_lib_prefix=no
  9595. library_names_spec='$libname${shared_ext} $libname.a'
  9596. dynamic_linker='OS/2 ld.exe'
  9597. shlibpath_var=LIBPATH
  9598. ;;
  9599. osf3* | osf4* | osf5*)
  9600. version_type=osf
  9601. need_lib_prefix=no
  9602. need_version=no
  9603. soname_spec='${libname}${release}${shared_ext}$major'
  9604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9605. shlibpath_var=LD_LIBRARY_PATH
  9606. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9607. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9608. ;;
  9609. rdos*)
  9610. dynamic_linker=no
  9611. ;;
  9612. solaris*)
  9613. version_type=linux
  9614. need_lib_prefix=no
  9615. need_version=no
  9616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9617. soname_spec='${libname}${release}${shared_ext}$major'
  9618. shlibpath_var=LD_LIBRARY_PATH
  9619. shlibpath_overrides_runpath=yes
  9620. hardcode_into_libs=yes
  9621. # ldd complains unless libraries are executable
  9622. postinstall_cmds='chmod +x $lib'
  9623. ;;
  9624. sunos4*)
  9625. version_type=sunos
  9626. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9627. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9628. shlibpath_var=LD_LIBRARY_PATH
  9629. shlibpath_overrides_runpath=yes
  9630. if test "$with_gnu_ld" = yes; then
  9631. need_lib_prefix=no
  9632. fi
  9633. need_version=yes
  9634. ;;
  9635. sysv4 | sysv4.3*)
  9636. version_type=linux
  9637. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9638. soname_spec='${libname}${release}${shared_ext}$major'
  9639. shlibpath_var=LD_LIBRARY_PATH
  9640. case $host_vendor in
  9641. sni)
  9642. shlibpath_overrides_runpath=no
  9643. need_lib_prefix=no
  9644. runpath_var=LD_RUN_PATH
  9645. ;;
  9646. siemens)
  9647. need_lib_prefix=no
  9648. ;;
  9649. motorola)
  9650. need_lib_prefix=no
  9651. need_version=no
  9652. shlibpath_overrides_runpath=no
  9653. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9654. ;;
  9655. esac
  9656. ;;
  9657. sysv4*MP*)
  9658. if test -d /usr/nec ;then
  9659. version_type=linux
  9660. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9661. soname_spec='$libname${shared_ext}.$major'
  9662. shlibpath_var=LD_LIBRARY_PATH
  9663. fi
  9664. ;;
  9665. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9666. version_type=freebsd-elf
  9667. need_lib_prefix=no
  9668. need_version=no
  9669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9670. soname_spec='${libname}${release}${shared_ext}$major'
  9671. shlibpath_var=LD_LIBRARY_PATH
  9672. shlibpath_overrides_runpath=yes
  9673. hardcode_into_libs=yes
  9674. if test "$with_gnu_ld" = yes; then
  9675. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9676. else
  9677. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9678. case $host_os in
  9679. sco3.2v5*)
  9680. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9681. ;;
  9682. esac
  9683. fi
  9684. sys_lib_dlsearch_path_spec='/usr/lib'
  9685. ;;
  9686. tpf*)
  9687. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9688. version_type=linux
  9689. need_lib_prefix=no
  9690. need_version=no
  9691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9692. shlibpath_var=LD_LIBRARY_PATH
  9693. shlibpath_overrides_runpath=no
  9694. hardcode_into_libs=yes
  9695. ;;
  9696. uts4*)
  9697. version_type=linux
  9698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9699. soname_spec='${libname}${release}${shared_ext}$major'
  9700. shlibpath_var=LD_LIBRARY_PATH
  9701. ;;
  9702. *)
  9703. dynamic_linker=no
  9704. ;;
  9705. esac
  9706. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9707. $as_echo "$dynamic_linker" >&6; }
  9708. test "$dynamic_linker" = no && can_build_shared=no
  9709. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9710. if test "$GCC" = yes; then
  9711. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9712. fi
  9713. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9714. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9715. fi
  9716. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9717. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9718. fi
  9719. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9720. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9721. hardcode_action=
  9722. if test -n "$hardcode_libdir_flag_spec" ||
  9723. test -n "$runpath_var" ||
  9724. test "X$hardcode_automatic" = "Xyes" ; then
  9725. # We can hardcode non-existent directories.
  9726. if test "$hardcode_direct" != no &&
  9727. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9728. # have to relink, otherwise we might link with an installed library
  9729. # when we should be linking with a yet-to-be-installed one
  9730. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9731. test "$hardcode_minus_L" != no; then
  9732. # Linking always hardcodes the temporary library directory.
  9733. hardcode_action=relink
  9734. else
  9735. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9736. hardcode_action=immediate
  9737. fi
  9738. else
  9739. # We cannot hardcode anything, or else we can only hardcode existing
  9740. # directories.
  9741. hardcode_action=unsupported
  9742. fi
  9743. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9744. $as_echo "$hardcode_action" >&6; }
  9745. if test "$hardcode_action" = relink ||
  9746. test "$inherit_rpath" = yes; then
  9747. # Fast installation is not supported
  9748. enable_fast_install=no
  9749. elif test "$shlibpath_overrides_runpath" = yes ||
  9750. test "$enable_shared" = no; then
  9751. # Fast installation is not necessary
  9752. enable_fast_install=needless
  9753. fi
  9754. if test "x$enable_dlopen" != xyes; then
  9755. enable_dlopen=unknown
  9756. enable_dlopen_self=unknown
  9757. enable_dlopen_self_static=unknown
  9758. else
  9759. lt_cv_dlopen=no
  9760. lt_cv_dlopen_libs=
  9761. case $host_os in
  9762. beos*)
  9763. lt_cv_dlopen="load_add_on"
  9764. lt_cv_dlopen_libs=
  9765. lt_cv_dlopen_self=yes
  9766. ;;
  9767. mingw* | pw32* | cegcc*)
  9768. lt_cv_dlopen="LoadLibrary"
  9769. lt_cv_dlopen_libs=
  9770. ;;
  9771. cygwin*)
  9772. lt_cv_dlopen="dlopen"
  9773. lt_cv_dlopen_libs=
  9774. ;;
  9775. darwin*)
  9776. # if libdl is installed we need to link against it
  9777. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9778. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9779. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9780. $as_echo_n "(cached) " >&6
  9781. else
  9782. ac_check_lib_save_LIBS=$LIBS
  9783. LIBS="-ldl $LIBS"
  9784. cat >conftest.$ac_ext <<_ACEOF
  9785. /* confdefs.h. */
  9786. _ACEOF
  9787. cat confdefs.h >>conftest.$ac_ext
  9788. cat >>conftest.$ac_ext <<_ACEOF
  9789. /* end confdefs.h. */
  9790. /* Override any GCC internal prototype to avoid an error.
  9791. Use char because int might match the return type of a GCC
  9792. builtin and then its argument prototype would still apply. */
  9793. #ifdef __cplusplus
  9794. extern "C"
  9795. #endif
  9796. char dlopen ();
  9797. int
  9798. main ()
  9799. {
  9800. return dlopen ();
  9801. ;
  9802. return 0;
  9803. }
  9804. _ACEOF
  9805. rm -f conftest.$ac_objext conftest$ac_exeext
  9806. if { (ac_try="$ac_link"
  9807. case "(($ac_try" in
  9808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9809. *) ac_try_echo=$ac_try;;
  9810. esac
  9811. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9812. $as_echo "$ac_try_echo") >&5
  9813. (eval "$ac_link") 2>conftest.er1
  9814. ac_status=$?
  9815. grep -v '^ *+' conftest.er1 >conftest.err
  9816. rm -f conftest.er1
  9817. cat conftest.err >&5
  9818. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9819. (exit $ac_status); } && {
  9820. test -z "$ac_c_werror_flag" ||
  9821. test ! -s conftest.err
  9822. } && test -s conftest$ac_exeext && {
  9823. test "$cross_compiling" = yes ||
  9824. $as_test_x conftest$ac_exeext
  9825. }; then
  9826. ac_cv_lib_dl_dlopen=yes
  9827. else
  9828. $as_echo "$as_me: failed program was:" >&5
  9829. sed 's/^/| /' conftest.$ac_ext >&5
  9830. ac_cv_lib_dl_dlopen=no
  9831. fi
  9832. rm -rf conftest.dSYM
  9833. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9834. conftest$ac_exeext conftest.$ac_ext
  9835. LIBS=$ac_check_lib_save_LIBS
  9836. fi
  9837. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9838. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9839. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9840. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9841. else
  9842. lt_cv_dlopen="dyld"
  9843. lt_cv_dlopen_libs=
  9844. lt_cv_dlopen_self=yes
  9845. fi
  9846. ;;
  9847. *)
  9848. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  9849. $as_echo_n "checking for shl_load... " >&6; }
  9850. if test "${ac_cv_func_shl_load+set}" = set; then
  9851. $as_echo_n "(cached) " >&6
  9852. else
  9853. cat >conftest.$ac_ext <<_ACEOF
  9854. /* confdefs.h. */
  9855. _ACEOF
  9856. cat confdefs.h >>conftest.$ac_ext
  9857. cat >>conftest.$ac_ext <<_ACEOF
  9858. /* end confdefs.h. */
  9859. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9860. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9861. #define shl_load innocuous_shl_load
  9862. /* System header to define __stub macros and hopefully few prototypes,
  9863. which can conflict with char shl_load (); below.
  9864. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9865. <limits.h> exists even on freestanding compilers. */
  9866. #ifdef __STDC__
  9867. # include <limits.h>
  9868. #else
  9869. # include <assert.h>
  9870. #endif
  9871. #undef shl_load
  9872. /* Override any GCC internal prototype to avoid an error.
  9873. Use char because int might match the return type of a GCC
  9874. builtin and then its argument prototype would still apply. */
  9875. #ifdef __cplusplus
  9876. extern "C"
  9877. #endif
  9878. char shl_load ();
  9879. /* The GNU C library defines this for functions which it implements
  9880. to always fail with ENOSYS. Some functions are actually named
  9881. something starting with __ and the normal name is an alias. */
  9882. #if defined __stub_shl_load || defined __stub___shl_load
  9883. choke me
  9884. #endif
  9885. int
  9886. main ()
  9887. {
  9888. return shl_load ();
  9889. ;
  9890. return 0;
  9891. }
  9892. _ACEOF
  9893. rm -f conftest.$ac_objext conftest$ac_exeext
  9894. if { (ac_try="$ac_link"
  9895. case "(($ac_try" in
  9896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9897. *) ac_try_echo=$ac_try;;
  9898. esac
  9899. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9900. $as_echo "$ac_try_echo") >&5
  9901. (eval "$ac_link") 2>conftest.er1
  9902. ac_status=$?
  9903. grep -v '^ *+' conftest.er1 >conftest.err
  9904. rm -f conftest.er1
  9905. cat conftest.err >&5
  9906. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9907. (exit $ac_status); } && {
  9908. test -z "$ac_c_werror_flag" ||
  9909. test ! -s conftest.err
  9910. } && test -s conftest$ac_exeext && {
  9911. test "$cross_compiling" = yes ||
  9912. $as_test_x conftest$ac_exeext
  9913. }; then
  9914. ac_cv_func_shl_load=yes
  9915. else
  9916. $as_echo "$as_me: failed program was:" >&5
  9917. sed 's/^/| /' conftest.$ac_ext >&5
  9918. ac_cv_func_shl_load=no
  9919. fi
  9920. rm -rf conftest.dSYM
  9921. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9922. conftest$ac_exeext conftest.$ac_ext
  9923. fi
  9924. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9925. $as_echo "$ac_cv_func_shl_load" >&6; }
  9926. if test "x$ac_cv_func_shl_load" = x""yes; then
  9927. lt_cv_dlopen="shl_load"
  9928. else
  9929. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9930. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9931. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9932. $as_echo_n "(cached) " >&6
  9933. else
  9934. ac_check_lib_save_LIBS=$LIBS
  9935. LIBS="-ldld $LIBS"
  9936. cat >conftest.$ac_ext <<_ACEOF
  9937. /* confdefs.h. */
  9938. _ACEOF
  9939. cat confdefs.h >>conftest.$ac_ext
  9940. cat >>conftest.$ac_ext <<_ACEOF
  9941. /* end confdefs.h. */
  9942. /* Override any GCC internal prototype to avoid an error.
  9943. Use char because int might match the return type of a GCC
  9944. builtin and then its argument prototype would still apply. */
  9945. #ifdef __cplusplus
  9946. extern "C"
  9947. #endif
  9948. char shl_load ();
  9949. int
  9950. main ()
  9951. {
  9952. return shl_load ();
  9953. ;
  9954. return 0;
  9955. }
  9956. _ACEOF
  9957. rm -f conftest.$ac_objext conftest$ac_exeext
  9958. if { (ac_try="$ac_link"
  9959. case "(($ac_try" in
  9960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9961. *) ac_try_echo=$ac_try;;
  9962. esac
  9963. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9964. $as_echo "$ac_try_echo") >&5
  9965. (eval "$ac_link") 2>conftest.er1
  9966. ac_status=$?
  9967. grep -v '^ *+' conftest.er1 >conftest.err
  9968. rm -f conftest.er1
  9969. cat conftest.err >&5
  9970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9971. (exit $ac_status); } && {
  9972. test -z "$ac_c_werror_flag" ||
  9973. test ! -s conftest.err
  9974. } && test -s conftest$ac_exeext && {
  9975. test "$cross_compiling" = yes ||
  9976. $as_test_x conftest$ac_exeext
  9977. }; then
  9978. ac_cv_lib_dld_shl_load=yes
  9979. else
  9980. $as_echo "$as_me: failed program was:" >&5
  9981. sed 's/^/| /' conftest.$ac_ext >&5
  9982. ac_cv_lib_dld_shl_load=no
  9983. fi
  9984. rm -rf conftest.dSYM
  9985. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9986. conftest$ac_exeext conftest.$ac_ext
  9987. LIBS=$ac_check_lib_save_LIBS
  9988. fi
  9989. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9990. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9991. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  9992. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9993. else
  9994. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  9995. $as_echo_n "checking for dlopen... " >&6; }
  9996. if test "${ac_cv_func_dlopen+set}" = set; then
  9997. $as_echo_n "(cached) " >&6
  9998. else
  9999. cat >conftest.$ac_ext <<_ACEOF
  10000. /* confdefs.h. */
  10001. _ACEOF
  10002. cat confdefs.h >>conftest.$ac_ext
  10003. cat >>conftest.$ac_ext <<_ACEOF
  10004. /* end confdefs.h. */
  10005. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10006. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10007. #define dlopen innocuous_dlopen
  10008. /* System header to define __stub macros and hopefully few prototypes,
  10009. which can conflict with char dlopen (); below.
  10010. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10011. <limits.h> exists even on freestanding compilers. */
  10012. #ifdef __STDC__
  10013. # include <limits.h>
  10014. #else
  10015. # include <assert.h>
  10016. #endif
  10017. #undef dlopen
  10018. /* Override any GCC internal prototype to avoid an error.
  10019. Use char because int might match the return type of a GCC
  10020. builtin and then its argument prototype would still apply. */
  10021. #ifdef __cplusplus
  10022. extern "C"
  10023. #endif
  10024. char dlopen ();
  10025. /* The GNU C library defines this for functions which it implements
  10026. to always fail with ENOSYS. Some functions are actually named
  10027. something starting with __ and the normal name is an alias. */
  10028. #if defined __stub_dlopen || defined __stub___dlopen
  10029. choke me
  10030. #endif
  10031. int
  10032. main ()
  10033. {
  10034. return dlopen ();
  10035. ;
  10036. return 0;
  10037. }
  10038. _ACEOF
  10039. rm -f conftest.$ac_objext conftest$ac_exeext
  10040. if { (ac_try="$ac_link"
  10041. case "(($ac_try" in
  10042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10043. *) ac_try_echo=$ac_try;;
  10044. esac
  10045. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10046. $as_echo "$ac_try_echo") >&5
  10047. (eval "$ac_link") 2>conftest.er1
  10048. ac_status=$?
  10049. grep -v '^ *+' conftest.er1 >conftest.err
  10050. rm -f conftest.er1
  10051. cat conftest.err >&5
  10052. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10053. (exit $ac_status); } && {
  10054. test -z "$ac_c_werror_flag" ||
  10055. test ! -s conftest.err
  10056. } && test -s conftest$ac_exeext && {
  10057. test "$cross_compiling" = yes ||
  10058. $as_test_x conftest$ac_exeext
  10059. }; then
  10060. ac_cv_func_dlopen=yes
  10061. else
  10062. $as_echo "$as_me: failed program was:" >&5
  10063. sed 's/^/| /' conftest.$ac_ext >&5
  10064. ac_cv_func_dlopen=no
  10065. fi
  10066. rm -rf conftest.dSYM
  10067. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10068. conftest$ac_exeext conftest.$ac_ext
  10069. fi
  10070. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10071. $as_echo "$ac_cv_func_dlopen" >&6; }
  10072. if test "x$ac_cv_func_dlopen" = x""yes; then
  10073. lt_cv_dlopen="dlopen"
  10074. else
  10075. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10076. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10077. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10078. $as_echo_n "(cached) " >&6
  10079. else
  10080. ac_check_lib_save_LIBS=$LIBS
  10081. LIBS="-ldl $LIBS"
  10082. cat >conftest.$ac_ext <<_ACEOF
  10083. /* confdefs.h. */
  10084. _ACEOF
  10085. cat confdefs.h >>conftest.$ac_ext
  10086. cat >>conftest.$ac_ext <<_ACEOF
  10087. /* end confdefs.h. */
  10088. /* Override any GCC internal prototype to avoid an error.
  10089. Use char because int might match the return type of a GCC
  10090. builtin and then its argument prototype would still apply. */
  10091. #ifdef __cplusplus
  10092. extern "C"
  10093. #endif
  10094. char dlopen ();
  10095. int
  10096. main ()
  10097. {
  10098. return dlopen ();
  10099. ;
  10100. return 0;
  10101. }
  10102. _ACEOF
  10103. rm -f conftest.$ac_objext conftest$ac_exeext
  10104. if { (ac_try="$ac_link"
  10105. case "(($ac_try" in
  10106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10107. *) ac_try_echo=$ac_try;;
  10108. esac
  10109. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10110. $as_echo "$ac_try_echo") >&5
  10111. (eval "$ac_link") 2>conftest.er1
  10112. ac_status=$?
  10113. grep -v '^ *+' conftest.er1 >conftest.err
  10114. rm -f conftest.er1
  10115. cat conftest.err >&5
  10116. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10117. (exit $ac_status); } && {
  10118. test -z "$ac_c_werror_flag" ||
  10119. test ! -s conftest.err
  10120. } && test -s conftest$ac_exeext && {
  10121. test "$cross_compiling" = yes ||
  10122. $as_test_x conftest$ac_exeext
  10123. }; then
  10124. ac_cv_lib_dl_dlopen=yes
  10125. else
  10126. $as_echo "$as_me: failed program was:" >&5
  10127. sed 's/^/| /' conftest.$ac_ext >&5
  10128. ac_cv_lib_dl_dlopen=no
  10129. fi
  10130. rm -rf conftest.dSYM
  10131. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10132. conftest$ac_exeext conftest.$ac_ext
  10133. LIBS=$ac_check_lib_save_LIBS
  10134. fi
  10135. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10136. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10137. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10138. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10139. else
  10140. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10141. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10142. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10143. $as_echo_n "(cached) " >&6
  10144. else
  10145. ac_check_lib_save_LIBS=$LIBS
  10146. LIBS="-lsvld $LIBS"
  10147. cat >conftest.$ac_ext <<_ACEOF
  10148. /* confdefs.h. */
  10149. _ACEOF
  10150. cat confdefs.h >>conftest.$ac_ext
  10151. cat >>conftest.$ac_ext <<_ACEOF
  10152. /* end confdefs.h. */
  10153. /* Override any GCC internal prototype to avoid an error.
  10154. Use char because int might match the return type of a GCC
  10155. builtin and then its argument prototype would still apply. */
  10156. #ifdef __cplusplus
  10157. extern "C"
  10158. #endif
  10159. char dlopen ();
  10160. int
  10161. main ()
  10162. {
  10163. return dlopen ();
  10164. ;
  10165. return 0;
  10166. }
  10167. _ACEOF
  10168. rm -f conftest.$ac_objext conftest$ac_exeext
  10169. if { (ac_try="$ac_link"
  10170. case "(($ac_try" in
  10171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10172. *) ac_try_echo=$ac_try;;
  10173. esac
  10174. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10175. $as_echo "$ac_try_echo") >&5
  10176. (eval "$ac_link") 2>conftest.er1
  10177. ac_status=$?
  10178. grep -v '^ *+' conftest.er1 >conftest.err
  10179. rm -f conftest.er1
  10180. cat conftest.err >&5
  10181. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10182. (exit $ac_status); } && {
  10183. test -z "$ac_c_werror_flag" ||
  10184. test ! -s conftest.err
  10185. } && test -s conftest$ac_exeext && {
  10186. test "$cross_compiling" = yes ||
  10187. $as_test_x conftest$ac_exeext
  10188. }; then
  10189. ac_cv_lib_svld_dlopen=yes
  10190. else
  10191. $as_echo "$as_me: failed program was:" >&5
  10192. sed 's/^/| /' conftest.$ac_ext >&5
  10193. ac_cv_lib_svld_dlopen=no
  10194. fi
  10195. rm -rf conftest.dSYM
  10196. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10197. conftest$ac_exeext conftest.$ac_ext
  10198. LIBS=$ac_check_lib_save_LIBS
  10199. fi
  10200. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10201. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10202. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10203. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10204. else
  10205. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10206. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10207. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10208. $as_echo_n "(cached) " >&6
  10209. else
  10210. ac_check_lib_save_LIBS=$LIBS
  10211. LIBS="-ldld $LIBS"
  10212. cat >conftest.$ac_ext <<_ACEOF
  10213. /* confdefs.h. */
  10214. _ACEOF
  10215. cat confdefs.h >>conftest.$ac_ext
  10216. cat >>conftest.$ac_ext <<_ACEOF
  10217. /* end confdefs.h. */
  10218. /* Override any GCC internal prototype to avoid an error.
  10219. Use char because int might match the return type of a GCC
  10220. builtin and then its argument prototype would still apply. */
  10221. #ifdef __cplusplus
  10222. extern "C"
  10223. #endif
  10224. char dld_link ();
  10225. int
  10226. main ()
  10227. {
  10228. return dld_link ();
  10229. ;
  10230. return 0;
  10231. }
  10232. _ACEOF
  10233. rm -f conftest.$ac_objext conftest$ac_exeext
  10234. if { (ac_try="$ac_link"
  10235. case "(($ac_try" in
  10236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10237. *) ac_try_echo=$ac_try;;
  10238. esac
  10239. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10240. $as_echo "$ac_try_echo") >&5
  10241. (eval "$ac_link") 2>conftest.er1
  10242. ac_status=$?
  10243. grep -v '^ *+' conftest.er1 >conftest.err
  10244. rm -f conftest.er1
  10245. cat conftest.err >&5
  10246. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10247. (exit $ac_status); } && {
  10248. test -z "$ac_c_werror_flag" ||
  10249. test ! -s conftest.err
  10250. } && test -s conftest$ac_exeext && {
  10251. test "$cross_compiling" = yes ||
  10252. $as_test_x conftest$ac_exeext
  10253. }; then
  10254. ac_cv_lib_dld_dld_link=yes
  10255. else
  10256. $as_echo "$as_me: failed program was:" >&5
  10257. sed 's/^/| /' conftest.$ac_ext >&5
  10258. ac_cv_lib_dld_dld_link=no
  10259. fi
  10260. rm -rf conftest.dSYM
  10261. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10262. conftest$ac_exeext conftest.$ac_ext
  10263. LIBS=$ac_check_lib_save_LIBS
  10264. fi
  10265. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10266. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10267. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10268. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10269. fi
  10270. fi
  10271. fi
  10272. fi
  10273. fi
  10274. fi
  10275. ;;
  10276. esac
  10277. if test "x$lt_cv_dlopen" != xno; then
  10278. enable_dlopen=yes
  10279. else
  10280. enable_dlopen=no
  10281. fi
  10282. case $lt_cv_dlopen in
  10283. dlopen)
  10284. save_CPPFLAGS="$CPPFLAGS"
  10285. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10286. save_LDFLAGS="$LDFLAGS"
  10287. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10288. save_LIBS="$LIBS"
  10289. LIBS="$lt_cv_dlopen_libs $LIBS"
  10290. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10291. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10292. if test "${lt_cv_dlopen_self+set}" = set; then
  10293. $as_echo_n "(cached) " >&6
  10294. else
  10295. if test "$cross_compiling" = yes; then :
  10296. lt_cv_dlopen_self=cross
  10297. else
  10298. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10299. lt_status=$lt_dlunknown
  10300. cat > conftest.$ac_ext <<_LT_EOF
  10301. #line 11958 "configure"
  10302. #include "confdefs.h"
  10303. #if HAVE_DLFCN_H
  10304. #include <dlfcn.h>
  10305. #endif
  10306. #include <stdio.h>
  10307. #ifdef RTLD_GLOBAL
  10308. # define LT_DLGLOBAL RTLD_GLOBAL
  10309. #else
  10310. # ifdef DL_GLOBAL
  10311. # define LT_DLGLOBAL DL_GLOBAL
  10312. # else
  10313. # define LT_DLGLOBAL 0
  10314. # endif
  10315. #endif
  10316. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10317. find out it does not work in some platform. */
  10318. #ifndef LT_DLLAZY_OR_NOW
  10319. # ifdef RTLD_LAZY
  10320. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10321. # else
  10322. # ifdef DL_LAZY
  10323. # define LT_DLLAZY_OR_NOW DL_LAZY
  10324. # else
  10325. # ifdef RTLD_NOW
  10326. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10327. # else
  10328. # ifdef DL_NOW
  10329. # define LT_DLLAZY_OR_NOW DL_NOW
  10330. # else
  10331. # define LT_DLLAZY_OR_NOW 0
  10332. # endif
  10333. # endif
  10334. # endif
  10335. # endif
  10336. #endif
  10337. void fnord() { int i=42;}
  10338. int main ()
  10339. {
  10340. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10341. int status = $lt_dlunknown;
  10342. if (self)
  10343. {
  10344. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10345. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10346. /* dlclose (self); */
  10347. }
  10348. else
  10349. puts (dlerror ());
  10350. return status;
  10351. }
  10352. _LT_EOF
  10353. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10354. (eval $ac_link) 2>&5
  10355. ac_status=$?
  10356. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10357. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10358. (./conftest; exit; ) >&5 2>/dev/null
  10359. lt_status=$?
  10360. case x$lt_status in
  10361. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10362. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10363. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10364. esac
  10365. else :
  10366. # compilation failed
  10367. lt_cv_dlopen_self=no
  10368. fi
  10369. fi
  10370. rm -fr conftest*
  10371. fi
  10372. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10373. $as_echo "$lt_cv_dlopen_self" >&6; }
  10374. if test "x$lt_cv_dlopen_self" = xyes; then
  10375. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10376. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10377. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10378. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10379. $as_echo_n "(cached) " >&6
  10380. else
  10381. if test "$cross_compiling" = yes; then :
  10382. lt_cv_dlopen_self_static=cross
  10383. else
  10384. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10385. lt_status=$lt_dlunknown
  10386. cat > conftest.$ac_ext <<_LT_EOF
  10387. #line 12054 "configure"
  10388. #include "confdefs.h"
  10389. #if HAVE_DLFCN_H
  10390. #include <dlfcn.h>
  10391. #endif
  10392. #include <stdio.h>
  10393. #ifdef RTLD_GLOBAL
  10394. # define LT_DLGLOBAL RTLD_GLOBAL
  10395. #else
  10396. # ifdef DL_GLOBAL
  10397. # define LT_DLGLOBAL DL_GLOBAL
  10398. # else
  10399. # define LT_DLGLOBAL 0
  10400. # endif
  10401. #endif
  10402. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10403. find out it does not work in some platform. */
  10404. #ifndef LT_DLLAZY_OR_NOW
  10405. # ifdef RTLD_LAZY
  10406. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10407. # else
  10408. # ifdef DL_LAZY
  10409. # define LT_DLLAZY_OR_NOW DL_LAZY
  10410. # else
  10411. # ifdef RTLD_NOW
  10412. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10413. # else
  10414. # ifdef DL_NOW
  10415. # define LT_DLLAZY_OR_NOW DL_NOW
  10416. # else
  10417. # define LT_DLLAZY_OR_NOW 0
  10418. # endif
  10419. # endif
  10420. # endif
  10421. # endif
  10422. #endif
  10423. void fnord() { int i=42;}
  10424. int main ()
  10425. {
  10426. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10427. int status = $lt_dlunknown;
  10428. if (self)
  10429. {
  10430. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10431. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10432. /* dlclose (self); */
  10433. }
  10434. else
  10435. puts (dlerror ());
  10436. return status;
  10437. }
  10438. _LT_EOF
  10439. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10440. (eval $ac_link) 2>&5
  10441. ac_status=$?
  10442. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10443. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10444. (./conftest; exit; ) >&5 2>/dev/null
  10445. lt_status=$?
  10446. case x$lt_status in
  10447. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10448. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10449. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10450. esac
  10451. else :
  10452. # compilation failed
  10453. lt_cv_dlopen_self_static=no
  10454. fi
  10455. fi
  10456. rm -fr conftest*
  10457. fi
  10458. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10459. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10460. fi
  10461. CPPFLAGS="$save_CPPFLAGS"
  10462. LDFLAGS="$save_LDFLAGS"
  10463. LIBS="$save_LIBS"
  10464. ;;
  10465. esac
  10466. case $lt_cv_dlopen_self in
  10467. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10468. *) enable_dlopen_self=unknown ;;
  10469. esac
  10470. case $lt_cv_dlopen_self_static in
  10471. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10472. *) enable_dlopen_self_static=unknown ;;
  10473. esac
  10474. fi
  10475. striplib=
  10476. old_striplib=
  10477. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10478. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10479. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10480. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10481. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10482. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10483. $as_echo "yes" >&6; }
  10484. else
  10485. # FIXME - insert some real tests, host_os isn't really good enough
  10486. case $host_os in
  10487. darwin*)
  10488. if test -n "$STRIP" ; then
  10489. striplib="$STRIP -x"
  10490. old_striplib="$STRIP -S"
  10491. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10492. $as_echo "yes" >&6; }
  10493. else
  10494. { $as_echo "$as_me:$LINENO: result: no" >&5
  10495. $as_echo "no" >&6; }
  10496. fi
  10497. ;;
  10498. *)
  10499. { $as_echo "$as_me:$LINENO: result: no" >&5
  10500. $as_echo "no" >&6; }
  10501. ;;
  10502. esac
  10503. fi
  10504. # Report which library types will actually be built
  10505. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10506. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10507. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10508. $as_echo "$can_build_shared" >&6; }
  10509. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10510. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10511. test "$can_build_shared" = "no" && enable_shared=no
  10512. # On AIX, shared libraries and static libraries use the same namespace, and
  10513. # are all built from PIC.
  10514. case $host_os in
  10515. aix3*)
  10516. test "$enable_shared" = yes && enable_static=no
  10517. if test -n "$RANLIB"; then
  10518. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10519. postinstall_cmds='$RANLIB $lib'
  10520. fi
  10521. ;;
  10522. aix[4-9]*)
  10523. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10524. test "$enable_shared" = yes && enable_static=no
  10525. fi
  10526. ;;
  10527. esac
  10528. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  10529. $as_echo "$enable_shared" >&6; }
  10530. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10531. $as_echo_n "checking whether to build static libraries... " >&6; }
  10532. # Make sure either enable_shared or enable_static is yes.
  10533. test "$enable_shared" = yes || enable_static=yes
  10534. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  10535. $as_echo "$enable_static" >&6; }
  10536. fi
  10537. ac_ext=cpp
  10538. ac_cpp='$CXXCPP $CPPFLAGS'
  10539. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10540. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10541. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10542. CC="$lt_save_CC"
  10543. ac_ext=cpp
  10544. ac_cpp='$CXXCPP $CPPFLAGS'
  10545. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10546. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10547. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10548. archive_cmds_need_lc_CXX=no
  10549. allow_undefined_flag_CXX=
  10550. always_export_symbols_CXX=no
  10551. archive_expsym_cmds_CXX=
  10552. compiler_needs_object_CXX=no
  10553. export_dynamic_flag_spec_CXX=
  10554. hardcode_direct_CXX=no
  10555. hardcode_direct_absolute_CXX=no
  10556. hardcode_libdir_flag_spec_CXX=
  10557. hardcode_libdir_flag_spec_ld_CXX=
  10558. hardcode_libdir_separator_CXX=
  10559. hardcode_minus_L_CXX=no
  10560. hardcode_shlibpath_var_CXX=unsupported
  10561. hardcode_automatic_CXX=no
  10562. inherit_rpath_CXX=no
  10563. module_cmds_CXX=
  10564. module_expsym_cmds_CXX=
  10565. link_all_deplibs_CXX=unknown
  10566. old_archive_cmds_CXX=$old_archive_cmds
  10567. no_undefined_flag_CXX=
  10568. whole_archive_flag_spec_CXX=
  10569. enable_shared_with_static_runtimes_CXX=no
  10570. # Source file extension for C++ test sources.
  10571. ac_ext=cpp
  10572. # Object file extension for compiled C++ test sources.
  10573. objext=o
  10574. objext_CXX=$objext
  10575. # No sense in running all these tests if we already determined that
  10576. # the CXX compiler isn't working. Some variables (like enable_shared)
  10577. # are currently assumed to apply to all compilers on this platform,
  10578. # and will be corrupted by setting them based on a non-working compiler.
  10579. if test "$_lt_caught_CXX_error" != yes; then
  10580. # Code to be used in simple compile tests
  10581. lt_simple_compile_test_code="int some_variable = 0;"
  10582. # Code to be used in simple link tests
  10583. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10584. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10585. # If no C compiler was specified, use CC.
  10586. LTCC=${LTCC-"$CC"}
  10587. # If no C compiler flags were specified, use CFLAGS.
  10588. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10589. # Allow CC to be a program name with arguments.
  10590. compiler=$CC
  10591. # save warnings/boilerplate of simple test code
  10592. ac_outfile=conftest.$ac_objext
  10593. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10594. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10595. _lt_compiler_boilerplate=`cat conftest.err`
  10596. $RM conftest*
  10597. ac_outfile=conftest.$ac_objext
  10598. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10599. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10600. _lt_linker_boilerplate=`cat conftest.err`
  10601. $RM -r conftest*
  10602. # Allow CC to be a program name with arguments.
  10603. lt_save_CC=$CC
  10604. lt_save_LD=$LD
  10605. lt_save_GCC=$GCC
  10606. GCC=$GXX
  10607. lt_save_with_gnu_ld=$with_gnu_ld
  10608. lt_save_path_LD=$lt_cv_path_LD
  10609. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10610. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10611. else
  10612. $as_unset lt_cv_prog_gnu_ld
  10613. fi
  10614. if test -n "${lt_cv_path_LDCXX+set}"; then
  10615. lt_cv_path_LD=$lt_cv_path_LDCXX
  10616. else
  10617. $as_unset lt_cv_path_LD
  10618. fi
  10619. test -z "${LDCXX+set}" || LD=$LDCXX
  10620. CC=${CXX-"c++"}
  10621. compiler=$CC
  10622. compiler_CXX=$CC
  10623. for cc_temp in $compiler""; do
  10624. case $cc_temp in
  10625. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10626. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10627. \-*) ;;
  10628. *) break;;
  10629. esac
  10630. done
  10631. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10632. if test -n "$compiler"; then
  10633. # We don't want -fno-exception when compiling C++ code, so set the
  10634. # no_builtin_flag separately
  10635. if test "$GXX" = yes; then
  10636. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10637. else
  10638. lt_prog_compiler_no_builtin_flag_CXX=
  10639. fi
  10640. if test "$GXX" = yes; then
  10641. # Set up default GNU C++ configuration
  10642. # Check whether --with-gnu-ld was given.
  10643. if test "${with_gnu_ld+set}" = set; then
  10644. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10645. else
  10646. with_gnu_ld=no
  10647. fi
  10648. ac_prog=ld
  10649. if test "$GCC" = yes; then
  10650. # Check if gcc -print-prog-name=ld gives a path.
  10651. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10652. $as_echo_n "checking for ld used by $CC... " >&6; }
  10653. case $host in
  10654. *-*-mingw*)
  10655. # gcc leaves a trailing carriage return which upsets mingw
  10656. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10657. *)
  10658. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10659. esac
  10660. case $ac_prog in
  10661. # Accept absolute paths.
  10662. [\\/]* | ?:[\\/]*)
  10663. re_direlt='/[^/][^/]*/\.\./'
  10664. # Canonicalize the pathname of ld
  10665. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10666. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10667. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10668. done
  10669. test -z "$LD" && LD="$ac_prog"
  10670. ;;
  10671. "")
  10672. # If it fails, then pretend we aren't using GCC.
  10673. ac_prog=ld
  10674. ;;
  10675. *)
  10676. # If it is relative, then search for the first ld in PATH.
  10677. with_gnu_ld=unknown
  10678. ;;
  10679. esac
  10680. elif test "$with_gnu_ld" = yes; then
  10681. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  10682. $as_echo_n "checking for GNU ld... " >&6; }
  10683. else
  10684. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10685. $as_echo_n "checking for non-GNU ld... " >&6; }
  10686. fi
  10687. if test "${lt_cv_path_LD+set}" = set; then
  10688. $as_echo_n "(cached) " >&6
  10689. else
  10690. if test -z "$LD"; then
  10691. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10692. for ac_dir in $PATH; do
  10693. IFS="$lt_save_ifs"
  10694. test -z "$ac_dir" && ac_dir=.
  10695. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10696. lt_cv_path_LD="$ac_dir/$ac_prog"
  10697. # Check to see if the program is GNU ld. I'd rather use --version,
  10698. # but apparently some variants of GNU ld only accept -v.
  10699. # Break only if it was the GNU/non-GNU ld that we prefer.
  10700. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10701. *GNU* | *'with BFD'*)
  10702. test "$with_gnu_ld" != no && break
  10703. ;;
  10704. *)
  10705. test "$with_gnu_ld" != yes && break
  10706. ;;
  10707. esac
  10708. fi
  10709. done
  10710. IFS="$lt_save_ifs"
  10711. else
  10712. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10713. fi
  10714. fi
  10715. LD="$lt_cv_path_LD"
  10716. if test -n "$LD"; then
  10717. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  10718. $as_echo "$LD" >&6; }
  10719. else
  10720. { $as_echo "$as_me:$LINENO: result: no" >&5
  10721. $as_echo "no" >&6; }
  10722. fi
  10723. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10724. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10725. { (exit 1); exit 1; }; }
  10726. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10727. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10728. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10729. $as_echo_n "(cached) " >&6
  10730. else
  10731. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10732. case `$LD -v 2>&1 </dev/null` in
  10733. *GNU* | *'with BFD'*)
  10734. lt_cv_prog_gnu_ld=yes
  10735. ;;
  10736. *)
  10737. lt_cv_prog_gnu_ld=no
  10738. ;;
  10739. esac
  10740. fi
  10741. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10742. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10743. with_gnu_ld=$lt_cv_prog_gnu_ld
  10744. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10745. # archiving commands below assume that GNU ld is being used.
  10746. if test "$with_gnu_ld" = yes; then
  10747. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10748. 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'
  10749. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10750. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10751. # If archive_cmds runs LD, not CC, wlarc should be empty
  10752. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10753. # investigate it a little bit more. (MM)
  10754. wlarc='${wl}'
  10755. # ancient GNU ld didn't support --whole-archive et. al.
  10756. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10757. $GREP 'no-whole-archive' > /dev/null; then
  10758. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10759. else
  10760. whole_archive_flag_spec_CXX=
  10761. fi
  10762. else
  10763. with_gnu_ld=no
  10764. wlarc=
  10765. # A generic and very simple default shared library creation
  10766. # command for GNU C++ for the case where it uses the native
  10767. # linker, instead of GNU ld. If possible, this setting should
  10768. # overridden to take advantage of the native linker features on
  10769. # the platform it is being used on.
  10770. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10771. fi
  10772. # Commands to make compiler produce verbose output that lists
  10773. # what "hidden" libraries, object files and flags are used when
  10774. # linking a shared library.
  10775. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10776. else
  10777. GXX=no
  10778. with_gnu_ld=no
  10779. wlarc=
  10780. fi
  10781. # PORTME: fill in a description of your system's C++ link characteristics
  10782. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10783. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10784. ld_shlibs_CXX=yes
  10785. case $host_os in
  10786. aix3*)
  10787. # FIXME: insert proper C++ library support
  10788. ld_shlibs_CXX=no
  10789. ;;
  10790. aix[4-9]*)
  10791. if test "$host_cpu" = ia64; then
  10792. # On IA64, the linker does run time linking by default, so we don't
  10793. # have to do anything special.
  10794. aix_use_runtimelinking=no
  10795. exp_sym_flag='-Bexport'
  10796. no_entry_flag=""
  10797. else
  10798. aix_use_runtimelinking=no
  10799. # Test if we are trying to use run time linking or normal
  10800. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10801. # need to do runtime linking.
  10802. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10803. for ld_flag in $LDFLAGS; do
  10804. case $ld_flag in
  10805. *-brtl*)
  10806. aix_use_runtimelinking=yes
  10807. break
  10808. ;;
  10809. esac
  10810. done
  10811. ;;
  10812. esac
  10813. exp_sym_flag='-bexport'
  10814. no_entry_flag='-bnoentry'
  10815. fi
  10816. # When large executables or shared objects are built, AIX ld can
  10817. # have problems creating the table of contents. If linking a library
  10818. # or program results in "error TOC overflow" add -mminimal-toc to
  10819. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10820. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10821. archive_cmds_CXX=''
  10822. hardcode_direct_CXX=yes
  10823. hardcode_direct_absolute_CXX=yes
  10824. hardcode_libdir_separator_CXX=':'
  10825. link_all_deplibs_CXX=yes
  10826. file_list_spec_CXX='${wl}-f,'
  10827. if test "$GXX" = yes; then
  10828. case $host_os in aix4.[012]|aix4.[012].*)
  10829. # We only want to do this on AIX 4.2 and lower, the check
  10830. # below for broken collect2 doesn't work under 4.3+
  10831. collect2name=`${CC} -print-prog-name=collect2`
  10832. if test -f "$collect2name" &&
  10833. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10834. then
  10835. # We have reworked collect2
  10836. :
  10837. else
  10838. # We have old collect2
  10839. hardcode_direct_CXX=unsupported
  10840. # It fails to find uninstalled libraries when the uninstalled
  10841. # path is not listed in the libpath. Setting hardcode_minus_L
  10842. # to unsupported forces relinking
  10843. hardcode_minus_L_CXX=yes
  10844. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10845. hardcode_libdir_separator_CXX=
  10846. fi
  10847. esac
  10848. shared_flag='-shared'
  10849. if test "$aix_use_runtimelinking" = yes; then
  10850. shared_flag="$shared_flag "'${wl}-G'
  10851. fi
  10852. else
  10853. # not using gcc
  10854. if test "$host_cpu" = ia64; then
  10855. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10856. # chokes on -Wl,-G. The following line is correct:
  10857. shared_flag='-G'
  10858. else
  10859. if test "$aix_use_runtimelinking" = yes; then
  10860. shared_flag='${wl}-G'
  10861. else
  10862. shared_flag='${wl}-bM:SRE'
  10863. fi
  10864. fi
  10865. fi
  10866. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10867. # It seems that -bexpall does not export symbols beginning with
  10868. # underscore (_), so it is better to generate a list of symbols to
  10869. # export.
  10870. always_export_symbols_CXX=yes
  10871. if test "$aix_use_runtimelinking" = yes; then
  10872. # Warning - without using the other runtime loading flags (-brtl),
  10873. # -berok will link without error, but may produce a broken library.
  10874. allow_undefined_flag_CXX='-berok'
  10875. # Determine the default libpath from the value encoded in an empty
  10876. # executable.
  10877. cat >conftest.$ac_ext <<_ACEOF
  10878. /* confdefs.h. */
  10879. _ACEOF
  10880. cat confdefs.h >>conftest.$ac_ext
  10881. cat >>conftest.$ac_ext <<_ACEOF
  10882. /* end confdefs.h. */
  10883. int
  10884. main ()
  10885. {
  10886. ;
  10887. return 0;
  10888. }
  10889. _ACEOF
  10890. rm -f conftest.$ac_objext conftest$ac_exeext
  10891. if { (ac_try="$ac_link"
  10892. case "(($ac_try" in
  10893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10894. *) ac_try_echo=$ac_try;;
  10895. esac
  10896. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10897. $as_echo "$ac_try_echo") >&5
  10898. (eval "$ac_link") 2>conftest.er1
  10899. ac_status=$?
  10900. grep -v '^ *+' conftest.er1 >conftest.err
  10901. rm -f conftest.er1
  10902. cat conftest.err >&5
  10903. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10904. (exit $ac_status); } && {
  10905. test -z "$ac_cxx_werror_flag" ||
  10906. test ! -s conftest.err
  10907. } && test -s conftest$ac_exeext && {
  10908. test "$cross_compiling" = yes ||
  10909. $as_test_x conftest$ac_exeext
  10910. }; then
  10911. lt_aix_libpath_sed='
  10912. /Import File Strings/,/^$/ {
  10913. /^0/ {
  10914. s/^0 *\(.*\)$/\1/
  10915. p
  10916. }
  10917. }'
  10918. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10919. # Check for a 64-bit object if we didn't find anything.
  10920. if test -z "$aix_libpath"; then
  10921. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10922. fi
  10923. else
  10924. $as_echo "$as_me: failed program was:" >&5
  10925. sed 's/^/| /' conftest.$ac_ext >&5
  10926. fi
  10927. rm -rf conftest.dSYM
  10928. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10929. conftest$ac_exeext conftest.$ac_ext
  10930. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10931. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10932. 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"
  10933. else
  10934. if test "$host_cpu" = ia64; then
  10935. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10936. allow_undefined_flag_CXX="-z nodefs"
  10937. 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"
  10938. else
  10939. # Determine the default libpath from the value encoded in an
  10940. # empty executable.
  10941. cat >conftest.$ac_ext <<_ACEOF
  10942. /* confdefs.h. */
  10943. _ACEOF
  10944. cat confdefs.h >>conftest.$ac_ext
  10945. cat >>conftest.$ac_ext <<_ACEOF
  10946. /* end confdefs.h. */
  10947. int
  10948. main ()
  10949. {
  10950. ;
  10951. return 0;
  10952. }
  10953. _ACEOF
  10954. rm -f conftest.$ac_objext conftest$ac_exeext
  10955. if { (ac_try="$ac_link"
  10956. case "(($ac_try" in
  10957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10958. *) ac_try_echo=$ac_try;;
  10959. esac
  10960. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10961. $as_echo "$ac_try_echo") >&5
  10962. (eval "$ac_link") 2>conftest.er1
  10963. ac_status=$?
  10964. grep -v '^ *+' conftest.er1 >conftest.err
  10965. rm -f conftest.er1
  10966. cat conftest.err >&5
  10967. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10968. (exit $ac_status); } && {
  10969. test -z "$ac_cxx_werror_flag" ||
  10970. test ! -s conftest.err
  10971. } && test -s conftest$ac_exeext && {
  10972. test "$cross_compiling" = yes ||
  10973. $as_test_x conftest$ac_exeext
  10974. }; then
  10975. lt_aix_libpath_sed='
  10976. /Import File Strings/,/^$/ {
  10977. /^0/ {
  10978. s/^0 *\(.*\)$/\1/
  10979. p
  10980. }
  10981. }'
  10982. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10983. # Check for a 64-bit object if we didn't find anything.
  10984. if test -z "$aix_libpath"; then
  10985. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10986. fi
  10987. else
  10988. $as_echo "$as_me: failed program was:" >&5
  10989. sed 's/^/| /' conftest.$ac_ext >&5
  10990. fi
  10991. rm -rf conftest.dSYM
  10992. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10993. conftest$ac_exeext conftest.$ac_ext
  10994. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10995. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10996. # Warning - without using the other run time loading flags,
  10997. # -berok will link without error, but may produce a broken library.
  10998. no_undefined_flag_CXX=' ${wl}-bernotok'
  10999. allow_undefined_flag_CXX=' ${wl}-berok'
  11000. # Exported symbols can be pulled into shared objects from archives
  11001. whole_archive_flag_spec_CXX='$convenience'
  11002. archive_cmds_need_lc_CXX=yes
  11003. # This is similar to how AIX traditionally builds its shared
  11004. # libraries.
  11005. 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'
  11006. fi
  11007. fi
  11008. ;;
  11009. beos*)
  11010. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11011. allow_undefined_flag_CXX=unsupported
  11012. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11013. # support --undefined. This deserves some investigation. FIXME
  11014. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11015. else
  11016. ld_shlibs_CXX=no
  11017. fi
  11018. ;;
  11019. chorus*)
  11020. case $cc_basename in
  11021. *)
  11022. # FIXME: insert proper C++ library support
  11023. ld_shlibs_CXX=no
  11024. ;;
  11025. esac
  11026. ;;
  11027. cygwin* | mingw* | pw32* | cegcc*)
  11028. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11029. # as there is no search path for DLLs.
  11030. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11031. allow_undefined_flag_CXX=unsupported
  11032. always_export_symbols_CXX=no
  11033. enable_shared_with_static_runtimes_CXX=yes
  11034. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11035. 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'
  11036. # If the export-symbols file already is a .def file (1st line
  11037. # is EXPORTS), use it as is; otherwise, prepend...
  11038. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11039. cp $export_symbols $output_objdir/$soname.def;
  11040. else
  11041. echo EXPORTS > $output_objdir/$soname.def;
  11042. cat $export_symbols >> $output_objdir/$soname.def;
  11043. fi~
  11044. $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'
  11045. else
  11046. ld_shlibs_CXX=no
  11047. fi
  11048. ;;
  11049. darwin* | rhapsody*)
  11050. archive_cmds_need_lc_CXX=no
  11051. hardcode_direct_CXX=no
  11052. hardcode_automatic_CXX=yes
  11053. hardcode_shlibpath_var_CXX=unsupported
  11054. whole_archive_flag_spec_CXX=''
  11055. link_all_deplibs_CXX=yes
  11056. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11057. case $cc_basename in
  11058. ifort*) _lt_dar_can_shared=yes ;;
  11059. *) _lt_dar_can_shared=$GCC ;;
  11060. esac
  11061. if test "$_lt_dar_can_shared" = "yes"; then
  11062. output_verbose_link_cmd=echo
  11063. 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}"
  11064. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11065. 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}"
  11066. 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}"
  11067. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11068. 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}"
  11069. 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}"
  11070. fi
  11071. else
  11072. ld_shlibs_CXX=no
  11073. fi
  11074. ;;
  11075. dgux*)
  11076. case $cc_basename in
  11077. ec++*)
  11078. # FIXME: insert proper C++ library support
  11079. ld_shlibs_CXX=no
  11080. ;;
  11081. ghcx*)
  11082. # Green Hills C++ Compiler
  11083. # FIXME: insert proper C++ library support
  11084. ld_shlibs_CXX=no
  11085. ;;
  11086. *)
  11087. # FIXME: insert proper C++ library support
  11088. ld_shlibs_CXX=no
  11089. ;;
  11090. esac
  11091. ;;
  11092. freebsd[12]*)
  11093. # C++ shared libraries reported to be fairly broken before
  11094. # switch to ELF
  11095. ld_shlibs_CXX=no
  11096. ;;
  11097. freebsd-elf*)
  11098. archive_cmds_need_lc_CXX=no
  11099. ;;
  11100. freebsd* | dragonfly*)
  11101. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11102. # conventions
  11103. ld_shlibs_CXX=yes
  11104. ;;
  11105. gnu*)
  11106. ;;
  11107. hpux9*)
  11108. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11109. hardcode_libdir_separator_CXX=:
  11110. export_dynamic_flag_spec_CXX='${wl}-E'
  11111. hardcode_direct_CXX=yes
  11112. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11113. # but as the default
  11114. # location of the library.
  11115. case $cc_basename in
  11116. CC*)
  11117. # FIXME: insert proper C++ library support
  11118. ld_shlibs_CXX=no
  11119. ;;
  11120. aCC*)
  11121. 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'
  11122. # Commands to make compiler produce verbose output that lists
  11123. # what "hidden" libraries, object files and flags are used when
  11124. # linking a shared library.
  11125. #
  11126. # There doesn't appear to be a way to prevent this compiler from
  11127. # explicitly linking system object files so we need to strip them
  11128. # from the output so that they don't get included in the library
  11129. # dependencies.
  11130. 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'
  11131. ;;
  11132. *)
  11133. if test "$GXX" = yes; then
  11134. 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'
  11135. else
  11136. # FIXME: insert proper C++ library support
  11137. ld_shlibs_CXX=no
  11138. fi
  11139. ;;
  11140. esac
  11141. ;;
  11142. hpux10*|hpux11*)
  11143. if test $with_gnu_ld = no; then
  11144. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11145. hardcode_libdir_separator_CXX=:
  11146. case $host_cpu in
  11147. hppa*64*|ia64*)
  11148. ;;
  11149. *)
  11150. export_dynamic_flag_spec_CXX='${wl}-E'
  11151. ;;
  11152. esac
  11153. fi
  11154. case $host_cpu in
  11155. hppa*64*|ia64*)
  11156. hardcode_direct_CXX=no
  11157. hardcode_shlibpath_var_CXX=no
  11158. ;;
  11159. *)
  11160. hardcode_direct_CXX=yes
  11161. hardcode_direct_absolute_CXX=yes
  11162. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11163. # but as the default
  11164. # location of the library.
  11165. ;;
  11166. esac
  11167. case $cc_basename in
  11168. CC*)
  11169. # FIXME: insert proper C++ library support
  11170. ld_shlibs_CXX=no
  11171. ;;
  11172. aCC*)
  11173. case $host_cpu in
  11174. hppa*64*)
  11175. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11176. ;;
  11177. ia64*)
  11178. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11179. ;;
  11180. *)
  11181. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11182. ;;
  11183. esac
  11184. # Commands to make compiler produce verbose output that lists
  11185. # what "hidden" libraries, object files and flags are used when
  11186. # linking a shared library.
  11187. #
  11188. # There doesn't appear to be a way to prevent this compiler from
  11189. # explicitly linking system object files so we need to strip them
  11190. # from the output so that they don't get included in the library
  11191. # dependencies.
  11192. 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'
  11193. ;;
  11194. *)
  11195. if test "$GXX" = yes; then
  11196. if test $with_gnu_ld = no; then
  11197. case $host_cpu in
  11198. hppa*64*)
  11199. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11200. ;;
  11201. ia64*)
  11202. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11203. ;;
  11204. *)
  11205. 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'
  11206. ;;
  11207. esac
  11208. fi
  11209. else
  11210. # FIXME: insert proper C++ library support
  11211. ld_shlibs_CXX=no
  11212. fi
  11213. ;;
  11214. esac
  11215. ;;
  11216. interix[3-9]*)
  11217. hardcode_direct_CXX=no
  11218. hardcode_shlibpath_var_CXX=no
  11219. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11220. export_dynamic_flag_spec_CXX='${wl}-E'
  11221. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11222. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11223. # default) and relocated if they conflict, which is a slow very memory
  11224. # consuming and fragmenting process. To avoid this, we pick a random,
  11225. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11226. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11227. 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'
  11228. 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'
  11229. ;;
  11230. irix5* | irix6*)
  11231. case $cc_basename in
  11232. CC*)
  11233. # SGI C++
  11234. 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'
  11235. # Archives containing C++ object files must be created using
  11236. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11237. # necessary to make sure instantiated templates are included
  11238. # in the archive.
  11239. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11240. ;;
  11241. *)
  11242. if test "$GXX" = yes; then
  11243. if test "$with_gnu_ld" = no; then
  11244. 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'
  11245. else
  11246. 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'
  11247. fi
  11248. fi
  11249. link_all_deplibs_CXX=yes
  11250. ;;
  11251. esac
  11252. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11253. hardcode_libdir_separator_CXX=:
  11254. inherit_rpath_CXX=yes
  11255. ;;
  11256. linux* | k*bsd*-gnu)
  11257. case $cc_basename in
  11258. KCC*)
  11259. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11260. # KCC will only create a shared library if the output file
  11261. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11262. # to its proper name (with version) after linking.
  11263. 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'
  11264. 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'
  11265. # Commands to make compiler produce verbose output that lists
  11266. # what "hidden" libraries, object files and flags are used when
  11267. # linking a shared library.
  11268. #
  11269. # There doesn't appear to be a way to prevent this compiler from
  11270. # explicitly linking system object files so we need to strip them
  11271. # from the output so that they don't get included in the library
  11272. # dependencies.
  11273. 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'
  11274. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11275. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11276. # Archives containing C++ object files must be created using
  11277. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11278. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11279. ;;
  11280. icpc* | ecpc* )
  11281. # Intel C++
  11282. with_gnu_ld=yes
  11283. # version 8.0 and above of icpc choke on multiply defined symbols
  11284. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11285. # earlier do not add the objects themselves.
  11286. case `$CC -V 2>&1` in
  11287. *"Version 7."*)
  11288. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11289. 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'
  11290. ;;
  11291. *) # Version 8.0 or newer
  11292. tmp_idyn=
  11293. case $host_cpu in
  11294. ia64*) tmp_idyn=' -i_dynamic';;
  11295. esac
  11296. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11297. 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'
  11298. ;;
  11299. esac
  11300. archive_cmds_need_lc_CXX=no
  11301. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11302. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11303. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11304. ;;
  11305. pgCC* | pgcpp*)
  11306. # Portland Group C++ compiler
  11307. case `$CC -V` in
  11308. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11309. prelink_cmds_CXX='tpldir=Template.dir~
  11310. rm -rf $tpldir~
  11311. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11312. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11313. old_archive_cmds_CXX='tpldir=Template.dir~
  11314. rm -rf $tpldir~
  11315. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11316. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11317. $RANLIB $oldlib'
  11318. archive_cmds_CXX='tpldir=Template.dir~
  11319. rm -rf $tpldir~
  11320. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11321. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11322. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11323. rm -rf $tpldir~
  11324. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11325. $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'
  11326. ;;
  11327. *) # Version 6 will use weak symbols
  11328. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11329. 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'
  11330. ;;
  11331. esac
  11332. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11333. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11334. 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'
  11335. ;;
  11336. cxx*)
  11337. # Compaq C++
  11338. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11339. 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'
  11340. runpath_var=LD_RUN_PATH
  11341. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11342. hardcode_libdir_separator_CXX=:
  11343. # Commands to make compiler produce verbose output that lists
  11344. # what "hidden" libraries, object files and flags are used when
  11345. # linking a shared library.
  11346. #
  11347. # There doesn't appear to be a way to prevent this compiler from
  11348. # explicitly linking system object files so we need to strip them
  11349. # from the output so that they don't get included in the library
  11350. # dependencies.
  11351. 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'
  11352. ;;
  11353. xl*)
  11354. # IBM XL 8.0 on PPC, with GNU ld
  11355. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11356. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11357. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11358. if test "x$supports_anon_versioning" = xyes; then
  11359. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11360. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11361. echo "local: *; };" >> $output_objdir/$libname.ver~
  11362. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11363. fi
  11364. ;;
  11365. *)
  11366. case `$CC -V 2>&1 | sed 5q` in
  11367. *Sun\ C*)
  11368. # Sun C++ 5.9
  11369. no_undefined_flag_CXX=' -zdefs'
  11370. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11371. 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'
  11372. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11373. 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'
  11374. compiler_needs_object_CXX=yes
  11375. # Not sure whether something based on
  11376. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11377. # would be better.
  11378. output_verbose_link_cmd='echo'
  11379. # Archives containing C++ object files must be created using
  11380. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11381. # necessary to make sure instantiated templates are included
  11382. # in the archive.
  11383. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11384. ;;
  11385. esac
  11386. ;;
  11387. esac
  11388. ;;
  11389. lynxos*)
  11390. # FIXME: insert proper C++ library support
  11391. ld_shlibs_CXX=no
  11392. ;;
  11393. m88k*)
  11394. # FIXME: insert proper C++ library support
  11395. ld_shlibs_CXX=no
  11396. ;;
  11397. mvs*)
  11398. case $cc_basename in
  11399. cxx*)
  11400. # FIXME: insert proper C++ library support
  11401. ld_shlibs_CXX=no
  11402. ;;
  11403. *)
  11404. # FIXME: insert proper C++ library support
  11405. ld_shlibs_CXX=no
  11406. ;;
  11407. esac
  11408. ;;
  11409. netbsd*)
  11410. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11411. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11412. wlarc=
  11413. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11414. hardcode_direct_CXX=yes
  11415. hardcode_shlibpath_var_CXX=no
  11416. fi
  11417. # Workaround some broken pre-1.5 toolchains
  11418. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11419. ;;
  11420. *nto* | *qnx*)
  11421. ld_shlibs_CXX=yes
  11422. ;;
  11423. openbsd2*)
  11424. # C++ shared libraries are fairly broken
  11425. ld_shlibs_CXX=no
  11426. ;;
  11427. openbsd*)
  11428. if test -f /usr/libexec/ld.so; then
  11429. hardcode_direct_CXX=yes
  11430. hardcode_shlibpath_var_CXX=no
  11431. hardcode_direct_absolute_CXX=yes
  11432. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11433. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11434. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11435. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11436. export_dynamic_flag_spec_CXX='${wl}-E'
  11437. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11438. fi
  11439. output_verbose_link_cmd=echo
  11440. else
  11441. ld_shlibs_CXX=no
  11442. fi
  11443. ;;
  11444. osf3* | osf4* | osf5*)
  11445. case $cc_basename in
  11446. KCC*)
  11447. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11448. # KCC will only create a shared library if the output file
  11449. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11450. # to its proper name (with version) after linking.
  11451. 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'
  11452. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11453. hardcode_libdir_separator_CXX=:
  11454. # Archives containing C++ object files must be created using
  11455. # the KAI C++ compiler.
  11456. case $host in
  11457. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11458. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11459. esac
  11460. ;;
  11461. RCC*)
  11462. # Rational C++ 2.4.1
  11463. # FIXME: insert proper C++ library support
  11464. ld_shlibs_CXX=no
  11465. ;;
  11466. cxx*)
  11467. case $host in
  11468. osf3*)
  11469. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11470. 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'
  11471. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11472. ;;
  11473. *)
  11474. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11475. 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'
  11476. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11477. echo "-hidden">> $lib.exp~
  11478. $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~
  11479. $RM $lib.exp'
  11480. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11481. ;;
  11482. esac
  11483. hardcode_libdir_separator_CXX=:
  11484. # Commands to make compiler produce verbose output that lists
  11485. # what "hidden" libraries, object files and flags are used when
  11486. # linking a shared library.
  11487. #
  11488. # There doesn't appear to be a way to prevent this compiler from
  11489. # explicitly linking system object files so we need to strip them
  11490. # from the output so that they don't get included in the library
  11491. # dependencies.
  11492. 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'
  11493. ;;
  11494. *)
  11495. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11496. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11497. case $host in
  11498. osf3*)
  11499. 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'
  11500. ;;
  11501. *)
  11502. 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'
  11503. ;;
  11504. esac
  11505. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11506. hardcode_libdir_separator_CXX=:
  11507. # Commands to make compiler produce verbose output that lists
  11508. # what "hidden" libraries, object files and flags are used when
  11509. # linking a shared library.
  11510. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11511. else
  11512. # FIXME: insert proper C++ library support
  11513. ld_shlibs_CXX=no
  11514. fi
  11515. ;;
  11516. esac
  11517. ;;
  11518. psos*)
  11519. # FIXME: insert proper C++ library support
  11520. ld_shlibs_CXX=no
  11521. ;;
  11522. sunos4*)
  11523. case $cc_basename in
  11524. CC*)
  11525. # Sun C++ 4.x
  11526. # FIXME: insert proper C++ library support
  11527. ld_shlibs_CXX=no
  11528. ;;
  11529. lcc*)
  11530. # Lucid
  11531. # FIXME: insert proper C++ library support
  11532. ld_shlibs_CXX=no
  11533. ;;
  11534. *)
  11535. # FIXME: insert proper C++ library support
  11536. ld_shlibs_CXX=no
  11537. ;;
  11538. esac
  11539. ;;
  11540. solaris*)
  11541. case $cc_basename in
  11542. CC*)
  11543. # Sun C++ 4.2, 5.x and Centerline C++
  11544. archive_cmds_need_lc_CXX=yes
  11545. no_undefined_flag_CXX=' -zdefs'
  11546. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11547. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11548. $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'
  11549. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11550. hardcode_shlibpath_var_CXX=no
  11551. case $host_os in
  11552. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11553. *)
  11554. # The compiler driver will combine and reorder linker options,
  11555. # but understands `-z linker_flag'.
  11556. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11557. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11558. ;;
  11559. esac
  11560. link_all_deplibs_CXX=yes
  11561. output_verbose_link_cmd='echo'
  11562. # Archives containing C++ object files must be created using
  11563. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11564. # necessary to make sure instantiated templates are included
  11565. # in the archive.
  11566. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11567. ;;
  11568. gcx*)
  11569. # Green Hills C++ Compiler
  11570. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11571. # The C++ compiler must be used to create the archive.
  11572. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11573. ;;
  11574. *)
  11575. # GNU C++ compiler with Solaris linker
  11576. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11577. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11578. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11579. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11580. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11581. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11582. # Commands to make compiler produce verbose output that lists
  11583. # what "hidden" libraries, object files and flags are used when
  11584. # linking a shared library.
  11585. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11586. else
  11587. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11588. # platform.
  11589. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11590. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11591. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11592. # Commands to make compiler produce verbose output that lists
  11593. # what "hidden" libraries, object files and flags are used when
  11594. # linking a shared library.
  11595. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11596. fi
  11597. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11598. case $host_os in
  11599. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11600. *)
  11601. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11602. ;;
  11603. esac
  11604. fi
  11605. ;;
  11606. esac
  11607. ;;
  11608. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11609. no_undefined_flag_CXX='${wl}-z,text'
  11610. archive_cmds_need_lc_CXX=no
  11611. hardcode_shlibpath_var_CXX=no
  11612. runpath_var='LD_RUN_PATH'
  11613. case $cc_basename in
  11614. CC*)
  11615. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11616. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11617. ;;
  11618. *)
  11619. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11620. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11621. ;;
  11622. esac
  11623. ;;
  11624. sysv5* | sco3.2v5* | sco5v6*)
  11625. # Note: We can NOT use -z defs as we might desire, because we do not
  11626. # link with -lc, and that would cause any symbols used from libc to
  11627. # always be unresolved, which means just about no library would
  11628. # ever link correctly. If we're not using GNU ld we use -z text
  11629. # though, which does catch some bad symbols but isn't as heavy-handed
  11630. # as -z defs.
  11631. no_undefined_flag_CXX='${wl}-z,text'
  11632. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11633. archive_cmds_need_lc_CXX=no
  11634. hardcode_shlibpath_var_CXX=no
  11635. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11636. hardcode_libdir_separator_CXX=':'
  11637. link_all_deplibs_CXX=yes
  11638. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11639. runpath_var='LD_RUN_PATH'
  11640. case $cc_basename in
  11641. CC*)
  11642. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11643. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11644. ;;
  11645. *)
  11646. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11647. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11648. ;;
  11649. esac
  11650. ;;
  11651. tandem*)
  11652. case $cc_basename in
  11653. NCC*)
  11654. # NonStop-UX NCC 3.20
  11655. # FIXME: insert proper C++ library support
  11656. ld_shlibs_CXX=no
  11657. ;;
  11658. *)
  11659. # FIXME: insert proper C++ library support
  11660. ld_shlibs_CXX=no
  11661. ;;
  11662. esac
  11663. ;;
  11664. vxworks*)
  11665. # FIXME: insert proper C++ library support
  11666. ld_shlibs_CXX=no
  11667. ;;
  11668. *)
  11669. # FIXME: insert proper C++ library support
  11670. ld_shlibs_CXX=no
  11671. ;;
  11672. esac
  11673. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11674. $as_echo "$ld_shlibs_CXX" >&6; }
  11675. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11676. GCC_CXX="$GXX"
  11677. LD_CXX="$LD"
  11678. ## CAVEAT EMPTOR:
  11679. ## There is no encapsulation within the following macros, do not change
  11680. ## the running order or otherwise move them around unless you know exactly
  11681. ## what you are doing...
  11682. # Dependencies to place before and after the object being linked:
  11683. predep_objects_CXX=
  11684. postdep_objects_CXX=
  11685. predeps_CXX=
  11686. postdeps_CXX=
  11687. compiler_lib_search_path_CXX=
  11688. cat > conftest.$ac_ext <<_LT_EOF
  11689. class Foo
  11690. {
  11691. public:
  11692. Foo (void) { a = 0; }
  11693. private:
  11694. int a;
  11695. };
  11696. _LT_EOF
  11697. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11698. (eval $ac_compile) 2>&5
  11699. ac_status=$?
  11700. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11701. (exit $ac_status); }; then
  11702. # Parse the compiler output and extract the necessary
  11703. # objects, libraries and library flags.
  11704. # Sentinel used to keep track of whether or not we are before
  11705. # the conftest object file.
  11706. pre_test_object_deps_done=no
  11707. for p in `eval "$output_verbose_link_cmd"`; do
  11708. case $p in
  11709. -L* | -R* | -l*)
  11710. # Some compilers place space between "-{L,R}" and the path.
  11711. # Remove the space.
  11712. if test $p = "-L" ||
  11713. test $p = "-R"; then
  11714. prev=$p
  11715. continue
  11716. else
  11717. prev=
  11718. fi
  11719. if test "$pre_test_object_deps_done" = no; then
  11720. case $p in
  11721. -L* | -R*)
  11722. # Internal compiler library paths should come after those
  11723. # provided the user. The postdeps already come after the
  11724. # user supplied libs so there is no need to process them.
  11725. if test -z "$compiler_lib_search_path_CXX"; then
  11726. compiler_lib_search_path_CXX="${prev}${p}"
  11727. else
  11728. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11729. fi
  11730. ;;
  11731. # The "-l" case would never come before the object being
  11732. # linked, so don't bother handling this case.
  11733. esac
  11734. else
  11735. if test -z "$postdeps_CXX"; then
  11736. postdeps_CXX="${prev}${p}"
  11737. else
  11738. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11739. fi
  11740. fi
  11741. ;;
  11742. *.$objext)
  11743. # This assumes that the test object file only shows up
  11744. # once in the compiler output.
  11745. if test "$p" = "conftest.$objext"; then
  11746. pre_test_object_deps_done=yes
  11747. continue
  11748. fi
  11749. if test "$pre_test_object_deps_done" = no; then
  11750. if test -z "$predep_objects_CXX"; then
  11751. predep_objects_CXX="$p"
  11752. else
  11753. predep_objects_CXX="$predep_objects_CXX $p"
  11754. fi
  11755. else
  11756. if test -z "$postdep_objects_CXX"; then
  11757. postdep_objects_CXX="$p"
  11758. else
  11759. postdep_objects_CXX="$postdep_objects_CXX $p"
  11760. fi
  11761. fi
  11762. ;;
  11763. *) ;; # Ignore the rest.
  11764. esac
  11765. done
  11766. # Clean up.
  11767. rm -f a.out a.exe
  11768. else
  11769. echo "libtool.m4: error: problem compiling CXX test program"
  11770. fi
  11771. $RM -f confest.$objext
  11772. # PORTME: override above test on systems where it is broken
  11773. case $host_os in
  11774. interix[3-9]*)
  11775. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11776. # hack all around it, let's just trust "g++" to DTRT.
  11777. predep_objects_CXX=
  11778. postdep_objects_CXX=
  11779. postdeps_CXX=
  11780. ;;
  11781. linux*)
  11782. case `$CC -V 2>&1 | sed 5q` in
  11783. *Sun\ C*)
  11784. # Sun C++ 5.9
  11785. # The more standards-conforming stlport4 library is
  11786. # incompatible with the Cstd library. Avoid specifying
  11787. # it if it's in CXXFLAGS. Ignore libCrun as
  11788. # -library=stlport4 depends on it.
  11789. case " $CXX $CXXFLAGS " in
  11790. *" -library=stlport4 "*)
  11791. solaris_use_stlport4=yes
  11792. ;;
  11793. esac
  11794. if test "$solaris_use_stlport4" != yes; then
  11795. postdeps_CXX='-library=Cstd -library=Crun'
  11796. fi
  11797. ;;
  11798. esac
  11799. ;;
  11800. solaris*)
  11801. case $cc_basename in
  11802. CC*)
  11803. # The more standards-conforming stlport4 library is
  11804. # incompatible with the Cstd library. Avoid specifying
  11805. # it if it's in CXXFLAGS. Ignore libCrun as
  11806. # -library=stlport4 depends on it.
  11807. case " $CXX $CXXFLAGS " in
  11808. *" -library=stlport4 "*)
  11809. solaris_use_stlport4=yes
  11810. ;;
  11811. esac
  11812. # Adding this requires a known-good setup of shared libraries for
  11813. # Sun compiler versions before 5.6, else PIC objects from an old
  11814. # archive will be linked into the output, leading to subtle bugs.
  11815. if test "$solaris_use_stlport4" != yes; then
  11816. postdeps_CXX='-library=Cstd -library=Crun'
  11817. fi
  11818. ;;
  11819. esac
  11820. ;;
  11821. esac
  11822. case " $postdeps_CXX " in
  11823. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11824. esac
  11825. compiler_lib_search_dirs_CXX=
  11826. if test -n "${compiler_lib_search_path_CXX}"; then
  11827. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11828. fi
  11829. lt_prog_compiler_wl_CXX=
  11830. lt_prog_compiler_pic_CXX=
  11831. lt_prog_compiler_static_CXX=
  11832. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11833. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11834. # C++ specific cases for pic, static, wl, etc.
  11835. if test "$GXX" = yes; then
  11836. lt_prog_compiler_wl_CXX='-Wl,'
  11837. lt_prog_compiler_static_CXX='-static'
  11838. case $host_os in
  11839. aix*)
  11840. # All AIX code is PIC.
  11841. if test "$host_cpu" = ia64; then
  11842. # AIX 5 now supports IA64 processor
  11843. lt_prog_compiler_static_CXX='-Bstatic'
  11844. fi
  11845. ;;
  11846. amigaos*)
  11847. case $host_cpu in
  11848. powerpc)
  11849. # see comment about AmigaOS4 .so support
  11850. lt_prog_compiler_pic_CXX='-fPIC'
  11851. ;;
  11852. m68k)
  11853. # FIXME: we need at least 68020 code to build shared libraries, but
  11854. # adding the `-m68020' flag to GCC prevents building anything better,
  11855. # like `-m68040'.
  11856. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11857. ;;
  11858. esac
  11859. ;;
  11860. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11861. # PIC is the default for these OSes.
  11862. ;;
  11863. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11864. # This hack is so that the source file can tell whether it is being
  11865. # built for inclusion in a dll (and should export symbols for example).
  11866. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11867. # (--disable-auto-import) libraries
  11868. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11869. ;;
  11870. darwin* | rhapsody*)
  11871. # PIC is the default on this platform
  11872. # Common symbols not allowed in MH_DYLIB files
  11873. lt_prog_compiler_pic_CXX='-fno-common'
  11874. ;;
  11875. *djgpp*)
  11876. # DJGPP does not support shared libraries at all
  11877. lt_prog_compiler_pic_CXX=
  11878. ;;
  11879. interix[3-9]*)
  11880. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11881. # Instead, we relocate shared libraries at runtime.
  11882. ;;
  11883. sysv4*MP*)
  11884. if test -d /usr/nec; then
  11885. lt_prog_compiler_pic_CXX=-Kconform_pic
  11886. fi
  11887. ;;
  11888. hpux*)
  11889. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11890. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11891. # sets the default TLS model and affects inlining.
  11892. case $host_cpu in
  11893. hppa*64*)
  11894. ;;
  11895. *)
  11896. lt_prog_compiler_pic_CXX='-fPIC'
  11897. ;;
  11898. esac
  11899. ;;
  11900. *qnx* | *nto*)
  11901. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11902. # it will coredump.
  11903. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11904. ;;
  11905. *)
  11906. lt_prog_compiler_pic_CXX='-fPIC'
  11907. ;;
  11908. esac
  11909. else
  11910. case $host_os in
  11911. aix[4-9]*)
  11912. # All AIX code is PIC.
  11913. if test "$host_cpu" = ia64; then
  11914. # AIX 5 now supports IA64 processor
  11915. lt_prog_compiler_static_CXX='-Bstatic'
  11916. else
  11917. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11918. fi
  11919. ;;
  11920. chorus*)
  11921. case $cc_basename in
  11922. cxch68*)
  11923. # Green Hills C++ Compiler
  11924. # _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"
  11925. ;;
  11926. esac
  11927. ;;
  11928. dgux*)
  11929. case $cc_basename in
  11930. ec++*)
  11931. lt_prog_compiler_pic_CXX='-KPIC'
  11932. ;;
  11933. ghcx*)
  11934. # Green Hills C++ Compiler
  11935. lt_prog_compiler_pic_CXX='-pic'
  11936. ;;
  11937. *)
  11938. ;;
  11939. esac
  11940. ;;
  11941. freebsd* | dragonfly*)
  11942. # FreeBSD uses GNU C++
  11943. ;;
  11944. hpux9* | hpux10* | hpux11*)
  11945. case $cc_basename in
  11946. CC*)
  11947. lt_prog_compiler_wl_CXX='-Wl,'
  11948. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11949. if test "$host_cpu" != ia64; then
  11950. lt_prog_compiler_pic_CXX='+Z'
  11951. fi
  11952. ;;
  11953. aCC*)
  11954. lt_prog_compiler_wl_CXX='-Wl,'
  11955. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11956. case $host_cpu in
  11957. hppa*64*|ia64*)
  11958. # +Z the default
  11959. ;;
  11960. *)
  11961. lt_prog_compiler_pic_CXX='+Z'
  11962. ;;
  11963. esac
  11964. ;;
  11965. *)
  11966. ;;
  11967. esac
  11968. ;;
  11969. interix*)
  11970. # This is c89, which is MS Visual C++ (no shared libs)
  11971. # Anyone wants to do a port?
  11972. ;;
  11973. irix5* | irix6* | nonstopux*)
  11974. case $cc_basename in
  11975. CC*)
  11976. lt_prog_compiler_wl_CXX='-Wl,'
  11977. lt_prog_compiler_static_CXX='-non_shared'
  11978. # CC pic flag -KPIC is the default.
  11979. ;;
  11980. *)
  11981. ;;
  11982. esac
  11983. ;;
  11984. linux* | k*bsd*-gnu)
  11985. case $cc_basename in
  11986. KCC*)
  11987. # KAI C++ Compiler
  11988. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11989. lt_prog_compiler_pic_CXX='-fPIC'
  11990. ;;
  11991. ecpc* )
  11992. # old Intel C++ for x86_64 which still supported -KPIC.
  11993. lt_prog_compiler_wl_CXX='-Wl,'
  11994. lt_prog_compiler_pic_CXX='-KPIC'
  11995. lt_prog_compiler_static_CXX='-static'
  11996. ;;
  11997. icpc* )
  11998. # Intel C++, used to be incompatible with GCC.
  11999. # ICC 10 doesn't accept -KPIC any more.
  12000. lt_prog_compiler_wl_CXX='-Wl,'
  12001. lt_prog_compiler_pic_CXX='-fPIC'
  12002. lt_prog_compiler_static_CXX='-static'
  12003. ;;
  12004. pgCC* | pgcpp*)
  12005. # Portland Group C++ compiler
  12006. lt_prog_compiler_wl_CXX='-Wl,'
  12007. lt_prog_compiler_pic_CXX='-fpic'
  12008. lt_prog_compiler_static_CXX='-Bstatic'
  12009. ;;
  12010. cxx*)
  12011. # Compaq C++
  12012. # Make sure the PIC flag is empty. It appears that all Alpha
  12013. # Linux and Compaq Tru64 Unix objects are PIC.
  12014. lt_prog_compiler_pic_CXX=
  12015. lt_prog_compiler_static_CXX='-non_shared'
  12016. ;;
  12017. xlc* | xlC*)
  12018. # IBM XL 8.0 on PPC
  12019. lt_prog_compiler_wl_CXX='-Wl,'
  12020. lt_prog_compiler_pic_CXX='-qpic'
  12021. lt_prog_compiler_static_CXX='-qstaticlink'
  12022. ;;
  12023. *)
  12024. case `$CC -V 2>&1 | sed 5q` in
  12025. *Sun\ C*)
  12026. # Sun C++ 5.9
  12027. lt_prog_compiler_pic_CXX='-KPIC'
  12028. lt_prog_compiler_static_CXX='-Bstatic'
  12029. lt_prog_compiler_wl_CXX='-Qoption ld '
  12030. ;;
  12031. esac
  12032. ;;
  12033. esac
  12034. ;;
  12035. lynxos*)
  12036. ;;
  12037. m88k*)
  12038. ;;
  12039. mvs*)
  12040. case $cc_basename in
  12041. cxx*)
  12042. lt_prog_compiler_pic_CXX='-W c,exportall'
  12043. ;;
  12044. *)
  12045. ;;
  12046. esac
  12047. ;;
  12048. netbsd* | netbsdelf*-gnu)
  12049. ;;
  12050. *qnx* | *nto*)
  12051. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12052. # it will coredump.
  12053. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12054. ;;
  12055. osf3* | osf4* | osf5*)
  12056. case $cc_basename in
  12057. KCC*)
  12058. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12059. ;;
  12060. RCC*)
  12061. # Rational C++ 2.4.1
  12062. lt_prog_compiler_pic_CXX='-pic'
  12063. ;;
  12064. cxx*)
  12065. # Digital/Compaq C++
  12066. lt_prog_compiler_wl_CXX='-Wl,'
  12067. # Make sure the PIC flag is empty. It appears that all Alpha
  12068. # Linux and Compaq Tru64 Unix objects are PIC.
  12069. lt_prog_compiler_pic_CXX=
  12070. lt_prog_compiler_static_CXX='-non_shared'
  12071. ;;
  12072. *)
  12073. ;;
  12074. esac
  12075. ;;
  12076. psos*)
  12077. ;;
  12078. solaris*)
  12079. case $cc_basename in
  12080. CC*)
  12081. # Sun C++ 4.2, 5.x and Centerline C++
  12082. lt_prog_compiler_pic_CXX='-KPIC'
  12083. lt_prog_compiler_static_CXX='-Bstatic'
  12084. lt_prog_compiler_wl_CXX='-Qoption ld '
  12085. ;;
  12086. gcx*)
  12087. # Green Hills C++ Compiler
  12088. lt_prog_compiler_pic_CXX='-PIC'
  12089. ;;
  12090. *)
  12091. ;;
  12092. esac
  12093. ;;
  12094. sunos4*)
  12095. case $cc_basename in
  12096. CC*)
  12097. # Sun C++ 4.x
  12098. lt_prog_compiler_pic_CXX='-pic'
  12099. lt_prog_compiler_static_CXX='-Bstatic'
  12100. ;;
  12101. lcc*)
  12102. # Lucid
  12103. lt_prog_compiler_pic_CXX='-pic'
  12104. ;;
  12105. *)
  12106. ;;
  12107. esac
  12108. ;;
  12109. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12110. case $cc_basename in
  12111. CC*)
  12112. lt_prog_compiler_wl_CXX='-Wl,'
  12113. lt_prog_compiler_pic_CXX='-KPIC'
  12114. lt_prog_compiler_static_CXX='-Bstatic'
  12115. ;;
  12116. esac
  12117. ;;
  12118. tandem*)
  12119. case $cc_basename in
  12120. NCC*)
  12121. # NonStop-UX NCC 3.20
  12122. lt_prog_compiler_pic_CXX='-KPIC'
  12123. ;;
  12124. *)
  12125. ;;
  12126. esac
  12127. ;;
  12128. vxworks*)
  12129. ;;
  12130. *)
  12131. lt_prog_compiler_can_build_shared_CXX=no
  12132. ;;
  12133. esac
  12134. fi
  12135. case $host_os in
  12136. # For platforms which do not support PIC, -DPIC is meaningless:
  12137. *djgpp*)
  12138. lt_prog_compiler_pic_CXX=
  12139. ;;
  12140. *)
  12141. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12142. ;;
  12143. esac
  12144. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12145. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12146. #
  12147. # Check to make sure the PIC flag actually works.
  12148. #
  12149. if test -n "$lt_prog_compiler_pic_CXX"; then
  12150. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12151. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12152. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12153. $as_echo_n "(cached) " >&6
  12154. else
  12155. lt_cv_prog_compiler_pic_works_CXX=no
  12156. ac_outfile=conftest.$ac_objext
  12157. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12158. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12159. # Insert the option either (1) after the last *FLAGS variable, or
  12160. # (2) before a word containing "conftest.", or (3) at the end.
  12161. # Note that $ac_compile itself does not contain backslashes and begins
  12162. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12163. # The option is referenced via a variable to avoid confusing sed.
  12164. lt_compile=`echo "$ac_compile" | $SED \
  12165. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12166. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12167. -e 's:$: $lt_compiler_flag:'`
  12168. (eval echo "\"\$as_me:14074: $lt_compile\"" >&5)
  12169. (eval "$lt_compile" 2>conftest.err)
  12170. ac_status=$?
  12171. cat conftest.err >&5
  12172. echo "$as_me:14078: \$? = $ac_status" >&5
  12173. if (exit $ac_status) && test -s "$ac_outfile"; then
  12174. # The compiler can only warn and ignore the option if not recognized
  12175. # So say no if there are warnings other than the usual output.
  12176. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12177. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12178. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12179. lt_cv_prog_compiler_pic_works_CXX=yes
  12180. fi
  12181. fi
  12182. $RM conftest*
  12183. fi
  12184. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12185. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12186. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12187. case $lt_prog_compiler_pic_CXX in
  12188. "" | " "*) ;;
  12189. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12190. esac
  12191. else
  12192. lt_prog_compiler_pic_CXX=
  12193. lt_prog_compiler_can_build_shared_CXX=no
  12194. fi
  12195. fi
  12196. #
  12197. # Check to make sure the static flag actually works.
  12198. #
  12199. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12200. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12201. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12202. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12203. $as_echo_n "(cached) " >&6
  12204. else
  12205. lt_cv_prog_compiler_static_works_CXX=no
  12206. save_LDFLAGS="$LDFLAGS"
  12207. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12208. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12209. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12210. # The linker can only warn and ignore the option if not recognized
  12211. # So say no if there are warnings
  12212. if test -s conftest.err; then
  12213. # Append any errors to the config.log.
  12214. cat conftest.err 1>&5
  12215. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12216. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12217. if diff conftest.exp conftest.er2 >/dev/null; then
  12218. lt_cv_prog_compiler_static_works_CXX=yes
  12219. fi
  12220. else
  12221. lt_cv_prog_compiler_static_works_CXX=yes
  12222. fi
  12223. fi
  12224. $RM -r conftest*
  12225. LDFLAGS="$save_LDFLAGS"
  12226. fi
  12227. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12228. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12229. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12230. :
  12231. else
  12232. lt_prog_compiler_static_CXX=
  12233. fi
  12234. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12235. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12236. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12237. $as_echo_n "(cached) " >&6
  12238. else
  12239. lt_cv_prog_compiler_c_o_CXX=no
  12240. $RM -r conftest 2>/dev/null
  12241. mkdir conftest
  12242. cd conftest
  12243. mkdir out
  12244. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12245. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12246. # Insert the option either (1) after the last *FLAGS variable, or
  12247. # (2) before a word containing "conftest.", or (3) at the end.
  12248. # Note that $ac_compile itself does not contain backslashes and begins
  12249. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12250. lt_compile=`echo "$ac_compile" | $SED \
  12251. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12252. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12253. -e 's:$: $lt_compiler_flag:'`
  12254. (eval echo "\"\$as_me:14173: $lt_compile\"" >&5)
  12255. (eval "$lt_compile" 2>out/conftest.err)
  12256. ac_status=$?
  12257. cat out/conftest.err >&5
  12258. echo "$as_me:14177: \$? = $ac_status" >&5
  12259. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12260. then
  12261. # The compiler can only warn and ignore the option if not recognized
  12262. # So say no if there are warnings
  12263. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12264. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12265. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12266. lt_cv_prog_compiler_c_o_CXX=yes
  12267. fi
  12268. fi
  12269. chmod u+w . 2>&5
  12270. $RM conftest*
  12271. # SGI C++ compiler will create directory out/ii_files/ for
  12272. # template instantiation
  12273. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12274. $RM out/* && rmdir out
  12275. cd ..
  12276. $RM -r conftest
  12277. $RM conftest*
  12278. fi
  12279. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12280. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12281. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12282. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12283. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12284. $as_echo_n "(cached) " >&6
  12285. else
  12286. lt_cv_prog_compiler_c_o_CXX=no
  12287. $RM -r conftest 2>/dev/null
  12288. mkdir conftest
  12289. cd conftest
  12290. mkdir out
  12291. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12292. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12293. # Insert the option either (1) after the last *FLAGS variable, or
  12294. # (2) before a word containing "conftest.", or (3) at the end.
  12295. # Note that $ac_compile itself does not contain backslashes and begins
  12296. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12297. lt_compile=`echo "$ac_compile" | $SED \
  12298. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12299. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12300. -e 's:$: $lt_compiler_flag:'`
  12301. (eval echo "\"\$as_me:14225: $lt_compile\"" >&5)
  12302. (eval "$lt_compile" 2>out/conftest.err)
  12303. ac_status=$?
  12304. cat out/conftest.err >&5
  12305. echo "$as_me:14229: \$? = $ac_status" >&5
  12306. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12307. then
  12308. # The compiler can only warn and ignore the option if not recognized
  12309. # So say no if there are warnings
  12310. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12311. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12312. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12313. lt_cv_prog_compiler_c_o_CXX=yes
  12314. fi
  12315. fi
  12316. chmod u+w . 2>&5
  12317. $RM conftest*
  12318. # SGI C++ compiler will create directory out/ii_files/ for
  12319. # template instantiation
  12320. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12321. $RM out/* && rmdir out
  12322. cd ..
  12323. $RM -r conftest
  12324. $RM conftest*
  12325. fi
  12326. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12327. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12328. hard_links="nottested"
  12329. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12330. # do not overwrite the value of need_locks provided by the user
  12331. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12332. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12333. hard_links=yes
  12334. $RM conftest*
  12335. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12336. touch conftest.a
  12337. ln conftest.a conftest.b 2>&5 || hard_links=no
  12338. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12339. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  12340. $as_echo "$hard_links" >&6; }
  12341. if test "$hard_links" = no; then
  12342. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12343. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12344. need_locks=warn
  12345. fi
  12346. else
  12347. need_locks=no
  12348. fi
  12349. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12350. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12351. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12352. case $host_os in
  12353. aix[4-9]*)
  12354. # If we're using GNU nm, then we don't want the "-C" option.
  12355. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12356. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12357. 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'
  12358. else
  12359. 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'
  12360. fi
  12361. ;;
  12362. pw32*)
  12363. export_symbols_cmds_CXX="$ltdll_cmds"
  12364. ;;
  12365. cygwin* | mingw* | cegcc*)
  12366. 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'
  12367. ;;
  12368. linux* | k*bsd*-gnu)
  12369. link_all_deplibs_CXX=no
  12370. ;;
  12371. *)
  12372. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12373. ;;
  12374. esac
  12375. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12376. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12377. $as_echo "$ld_shlibs_CXX" >&6; }
  12378. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12379. with_gnu_ld_CXX=$with_gnu_ld
  12380. #
  12381. # Do we need to explicitly link libc?
  12382. #
  12383. case "x$archive_cmds_need_lc_CXX" in
  12384. x|xyes)
  12385. # Assume -lc should be added
  12386. archive_cmds_need_lc_CXX=yes
  12387. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12388. case $archive_cmds_CXX in
  12389. *'~'*)
  12390. # FIXME: we may have to deal with multi-command sequences.
  12391. ;;
  12392. '$CC '*)
  12393. # Test whether the compiler implicitly links with -lc since on some
  12394. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12395. # to ld, don't add -lc before -lgcc.
  12396. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12397. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12398. $RM conftest*
  12399. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12400. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12401. (eval $ac_compile) 2>&5
  12402. ac_status=$?
  12403. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12404. (exit $ac_status); } 2>conftest.err; then
  12405. soname=conftest
  12406. lib=conftest
  12407. libobjs=conftest.$ac_objext
  12408. deplibs=
  12409. wl=$lt_prog_compiler_wl_CXX
  12410. pic_flag=$lt_prog_compiler_pic_CXX
  12411. compiler_flags=-v
  12412. linker_flags=-v
  12413. verstring=
  12414. output_objdir=.
  12415. libname=conftest
  12416. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12417. allow_undefined_flag_CXX=
  12418. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12419. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12420. ac_status=$?
  12421. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12422. (exit $ac_status); }
  12423. then
  12424. archive_cmds_need_lc_CXX=no
  12425. else
  12426. archive_cmds_need_lc_CXX=yes
  12427. fi
  12428. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12429. else
  12430. cat conftest.err 1>&5
  12431. fi
  12432. $RM conftest*
  12433. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12434. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  12435. ;;
  12436. esac
  12437. fi
  12438. ;;
  12439. esac
  12440. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12441. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12442. library_names_spec=
  12443. libname_spec='lib$name'
  12444. soname_spec=
  12445. shrext_cmds=".so"
  12446. postinstall_cmds=
  12447. postuninstall_cmds=
  12448. finish_cmds=
  12449. finish_eval=
  12450. shlibpath_var=
  12451. shlibpath_overrides_runpath=unknown
  12452. version_type=none
  12453. dynamic_linker="$host_os ld.so"
  12454. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12455. need_lib_prefix=unknown
  12456. hardcode_into_libs=no
  12457. # when you set need_version to no, make sure it does not cause -set_version
  12458. # flags to be left without arguments
  12459. need_version=unknown
  12460. case $host_os in
  12461. aix3*)
  12462. version_type=linux
  12463. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12464. shlibpath_var=LIBPATH
  12465. # AIX 3 has no versioning support, so we append a major version to the name.
  12466. soname_spec='${libname}${release}${shared_ext}$major'
  12467. ;;
  12468. aix[4-9]*)
  12469. version_type=linux
  12470. need_lib_prefix=no
  12471. need_version=no
  12472. hardcode_into_libs=yes
  12473. if test "$host_cpu" = ia64; then
  12474. # AIX 5 supports IA64
  12475. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12476. shlibpath_var=LD_LIBRARY_PATH
  12477. else
  12478. # With GCC up to 2.95.x, collect2 would create an import file
  12479. # for dependence libraries. The import file would start with
  12480. # the line `#! .'. This would cause the generated library to
  12481. # depend on `.', always an invalid library. This was fixed in
  12482. # development snapshots of GCC prior to 3.0.
  12483. case $host_os in
  12484. aix4 | aix4.[01] | aix4.[01].*)
  12485. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12486. echo ' yes '
  12487. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12488. :
  12489. else
  12490. can_build_shared=no
  12491. fi
  12492. ;;
  12493. esac
  12494. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12495. # soname into executable. Probably we can add versioning support to
  12496. # collect2, so additional links can be useful in future.
  12497. if test "$aix_use_runtimelinking" = yes; then
  12498. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12499. # instead of lib<name>.a to let people know that these are not
  12500. # typical AIX shared libraries.
  12501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12502. else
  12503. # We preserve .a as extension for shared libraries through AIX4.2
  12504. # and later when we are not doing run time linking.
  12505. library_names_spec='${libname}${release}.a $libname.a'
  12506. soname_spec='${libname}${release}${shared_ext}$major'
  12507. fi
  12508. shlibpath_var=LIBPATH
  12509. fi
  12510. ;;
  12511. amigaos*)
  12512. case $host_cpu in
  12513. powerpc)
  12514. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12515. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12517. ;;
  12518. m68k)
  12519. library_names_spec='$libname.ixlibrary $libname.a'
  12520. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12521. 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'
  12522. ;;
  12523. esac
  12524. ;;
  12525. beos*)
  12526. library_names_spec='${libname}${shared_ext}'
  12527. dynamic_linker="$host_os ld.so"
  12528. shlibpath_var=LIBRARY_PATH
  12529. ;;
  12530. bsdi[45]*)
  12531. version_type=linux
  12532. need_version=no
  12533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12534. soname_spec='${libname}${release}${shared_ext}$major'
  12535. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12536. shlibpath_var=LD_LIBRARY_PATH
  12537. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12538. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12539. # the default ld.so.conf also contains /usr/contrib/lib and
  12540. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12541. # libtool to hard-code these into programs
  12542. ;;
  12543. cygwin* | mingw* | pw32* | cegcc*)
  12544. version_type=windows
  12545. shrext_cmds=".dll"
  12546. need_version=no
  12547. need_lib_prefix=no
  12548. case $GCC,$host_os in
  12549. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12550. library_names_spec='$libname.dll.a'
  12551. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12552. postinstall_cmds='base_file=`basename \${file}`~
  12553. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12554. dldir=$destdir/`dirname \$dlpath`~
  12555. test -d \$dldir || mkdir -p \$dldir~
  12556. $install_prog $dir/$dlname \$dldir/$dlname~
  12557. chmod a+x \$dldir/$dlname~
  12558. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12559. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12560. fi'
  12561. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12562. dlpath=$dir/\$dldll~
  12563. $RM \$dlpath'
  12564. shlibpath_overrides_runpath=yes
  12565. case $host_os in
  12566. cygwin*)
  12567. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12568. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12569. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12570. ;;
  12571. mingw* | cegcc*)
  12572. # MinGW DLLs use traditional 'lib' prefix
  12573. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12574. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12575. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12576. # It is most probably a Windows format PATH printed by
  12577. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12578. # path with ; separators, and with drive letters. We can handle the
  12579. # drive letters (cygwin fileutils understands them), so leave them,
  12580. # especially as we might pass files found there to a mingw objdump,
  12581. # which wouldn't understand a cygwinified path. Ahh.
  12582. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12583. else
  12584. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12585. fi
  12586. ;;
  12587. pw32*)
  12588. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12589. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12590. ;;
  12591. esac
  12592. ;;
  12593. *)
  12594. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12595. ;;
  12596. esac
  12597. dynamic_linker='Win32 ld.exe'
  12598. # FIXME: first we should search . and the directory the executable is in
  12599. shlibpath_var=PATH
  12600. ;;
  12601. darwin* | rhapsody*)
  12602. dynamic_linker="$host_os dyld"
  12603. version_type=darwin
  12604. need_lib_prefix=no
  12605. need_version=no
  12606. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12607. soname_spec='${libname}${release}${major}$shared_ext'
  12608. shlibpath_overrides_runpath=yes
  12609. shlibpath_var=DYLD_LIBRARY_PATH
  12610. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12611. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12612. ;;
  12613. dgux*)
  12614. version_type=linux
  12615. need_lib_prefix=no
  12616. need_version=no
  12617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12618. soname_spec='${libname}${release}${shared_ext}$major'
  12619. shlibpath_var=LD_LIBRARY_PATH
  12620. ;;
  12621. freebsd1*)
  12622. dynamic_linker=no
  12623. ;;
  12624. freebsd* | dragonfly*)
  12625. # DragonFly does not have aout. When/if they implement a new
  12626. # versioning mechanism, adjust this.
  12627. if test -x /usr/bin/objformat; then
  12628. objformat=`/usr/bin/objformat`
  12629. else
  12630. case $host_os in
  12631. freebsd[123]*) objformat=aout ;;
  12632. *) objformat=elf ;;
  12633. esac
  12634. fi
  12635. version_type=freebsd-$objformat
  12636. case $version_type in
  12637. freebsd-elf*)
  12638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12639. need_version=no
  12640. need_lib_prefix=no
  12641. ;;
  12642. freebsd-*)
  12643. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12644. need_version=yes
  12645. ;;
  12646. esac
  12647. shlibpath_var=LD_LIBRARY_PATH
  12648. case $host_os in
  12649. freebsd2*)
  12650. shlibpath_overrides_runpath=yes
  12651. ;;
  12652. freebsd3.[01]* | freebsdelf3.[01]*)
  12653. shlibpath_overrides_runpath=yes
  12654. hardcode_into_libs=yes
  12655. ;;
  12656. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12657. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12658. shlibpath_overrides_runpath=no
  12659. hardcode_into_libs=yes
  12660. ;;
  12661. *) # from 4.6 on, and DragonFly
  12662. shlibpath_overrides_runpath=yes
  12663. hardcode_into_libs=yes
  12664. ;;
  12665. esac
  12666. ;;
  12667. gnu*)
  12668. version_type=linux
  12669. need_lib_prefix=no
  12670. need_version=no
  12671. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12672. soname_spec='${libname}${release}${shared_ext}$major'
  12673. shlibpath_var=LD_LIBRARY_PATH
  12674. hardcode_into_libs=yes
  12675. ;;
  12676. hpux9* | hpux10* | hpux11*)
  12677. # Give a soname corresponding to the major version so that dld.sl refuses to
  12678. # link against other versions.
  12679. version_type=sunos
  12680. need_lib_prefix=no
  12681. need_version=no
  12682. case $host_cpu in
  12683. ia64*)
  12684. shrext_cmds='.so'
  12685. hardcode_into_libs=yes
  12686. dynamic_linker="$host_os dld.so"
  12687. shlibpath_var=LD_LIBRARY_PATH
  12688. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12689. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12690. soname_spec='${libname}${release}${shared_ext}$major'
  12691. if test "X$HPUX_IA64_MODE" = X32; then
  12692. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12693. else
  12694. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12695. fi
  12696. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12697. ;;
  12698. hppa*64*)
  12699. shrext_cmds='.sl'
  12700. hardcode_into_libs=yes
  12701. dynamic_linker="$host_os dld.sl"
  12702. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12703. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12705. soname_spec='${libname}${release}${shared_ext}$major'
  12706. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12707. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12708. ;;
  12709. *)
  12710. shrext_cmds='.sl'
  12711. dynamic_linker="$host_os dld.sl"
  12712. shlibpath_var=SHLIB_PATH
  12713. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12715. soname_spec='${libname}${release}${shared_ext}$major'
  12716. ;;
  12717. esac
  12718. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12719. postinstall_cmds='chmod 555 $lib'
  12720. ;;
  12721. interix[3-9]*)
  12722. version_type=linux
  12723. need_lib_prefix=no
  12724. need_version=no
  12725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12726. soname_spec='${libname}${release}${shared_ext}$major'
  12727. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12728. shlibpath_var=LD_LIBRARY_PATH
  12729. shlibpath_overrides_runpath=no
  12730. hardcode_into_libs=yes
  12731. ;;
  12732. irix5* | irix6* | nonstopux*)
  12733. case $host_os in
  12734. nonstopux*) version_type=nonstopux ;;
  12735. *)
  12736. if test "$lt_cv_prog_gnu_ld" = yes; then
  12737. version_type=linux
  12738. else
  12739. version_type=irix
  12740. fi ;;
  12741. esac
  12742. need_lib_prefix=no
  12743. need_version=no
  12744. soname_spec='${libname}${release}${shared_ext}$major'
  12745. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12746. case $host_os in
  12747. irix5* | nonstopux*)
  12748. libsuff= shlibsuff=
  12749. ;;
  12750. *)
  12751. case $LD in # libtool.m4 will add one of these switches to LD
  12752. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12753. libsuff= shlibsuff= libmagic=32-bit;;
  12754. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12755. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12756. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12757. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12758. *) libsuff= shlibsuff= libmagic=never-match;;
  12759. esac
  12760. ;;
  12761. esac
  12762. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12763. shlibpath_overrides_runpath=no
  12764. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12765. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12766. hardcode_into_libs=yes
  12767. ;;
  12768. # No shared lib support for Linux oldld, aout, or coff.
  12769. linux*oldld* | linux*aout* | linux*coff*)
  12770. dynamic_linker=no
  12771. ;;
  12772. # This must be Linux ELF.
  12773. linux* | k*bsd*-gnu)
  12774. version_type=linux
  12775. need_lib_prefix=no
  12776. need_version=no
  12777. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12778. soname_spec='${libname}${release}${shared_ext}$major'
  12779. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12780. shlibpath_var=LD_LIBRARY_PATH
  12781. shlibpath_overrides_runpath=no
  12782. # Some binutils ld are patched to set DT_RUNPATH
  12783. save_LDFLAGS=$LDFLAGS
  12784. save_libdir=$libdir
  12785. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12786. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12787. cat >conftest.$ac_ext <<_ACEOF
  12788. /* confdefs.h. */
  12789. _ACEOF
  12790. cat confdefs.h >>conftest.$ac_ext
  12791. cat >>conftest.$ac_ext <<_ACEOF
  12792. /* end confdefs.h. */
  12793. int
  12794. main ()
  12795. {
  12796. ;
  12797. return 0;
  12798. }
  12799. _ACEOF
  12800. rm -f conftest.$ac_objext conftest$ac_exeext
  12801. if { (ac_try="$ac_link"
  12802. case "(($ac_try" in
  12803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12804. *) ac_try_echo=$ac_try;;
  12805. esac
  12806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12807. $as_echo "$ac_try_echo") >&5
  12808. (eval "$ac_link") 2>conftest.er1
  12809. ac_status=$?
  12810. grep -v '^ *+' conftest.er1 >conftest.err
  12811. rm -f conftest.er1
  12812. cat conftest.err >&5
  12813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12814. (exit $ac_status); } && {
  12815. test -z "$ac_cxx_werror_flag" ||
  12816. test ! -s conftest.err
  12817. } && test -s conftest$ac_exeext && {
  12818. test "$cross_compiling" = yes ||
  12819. $as_test_x conftest$ac_exeext
  12820. }; then
  12821. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  12822. shlibpath_overrides_runpath=yes
  12823. fi
  12824. else
  12825. $as_echo "$as_me: failed program was:" >&5
  12826. sed 's/^/| /' conftest.$ac_ext >&5
  12827. fi
  12828. rm -rf conftest.dSYM
  12829. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12830. conftest$ac_exeext conftest.$ac_ext
  12831. LDFLAGS=$save_LDFLAGS
  12832. libdir=$save_libdir
  12833. # This implies no fast_install, which is unacceptable.
  12834. # Some rework will be needed to allow for fast_install
  12835. # before this can be enabled.
  12836. hardcode_into_libs=yes
  12837. # Append ld.so.conf contents to the search path
  12838. if test -f /etc/ld.so.conf; then
  12839. 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' ' '`
  12840. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12841. fi
  12842. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12843. # powerpc, because MkLinux only supported shared libraries with the
  12844. # GNU dynamic linker. Since this was broken with cross compilers,
  12845. # most powerpc-linux boxes support dynamic linking these days and
  12846. # people can always --disable-shared, the test was removed, and we
  12847. # assume the GNU/Linux dynamic linker is in use.
  12848. dynamic_linker='GNU/Linux ld.so'
  12849. ;;
  12850. netbsdelf*-gnu)
  12851. version_type=linux
  12852. need_lib_prefix=no
  12853. need_version=no
  12854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12855. soname_spec='${libname}${release}${shared_ext}$major'
  12856. shlibpath_var=LD_LIBRARY_PATH
  12857. shlibpath_overrides_runpath=no
  12858. hardcode_into_libs=yes
  12859. dynamic_linker='NetBSD ld.elf_so'
  12860. ;;
  12861. netbsd*)
  12862. version_type=sunos
  12863. need_lib_prefix=no
  12864. need_version=no
  12865. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12866. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12867. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12868. dynamic_linker='NetBSD (a.out) ld.so'
  12869. else
  12870. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12871. soname_spec='${libname}${release}${shared_ext}$major'
  12872. dynamic_linker='NetBSD ld.elf_so'
  12873. fi
  12874. shlibpath_var=LD_LIBRARY_PATH
  12875. shlibpath_overrides_runpath=yes
  12876. hardcode_into_libs=yes
  12877. ;;
  12878. newsos6)
  12879. version_type=linux
  12880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12881. shlibpath_var=LD_LIBRARY_PATH
  12882. shlibpath_overrides_runpath=yes
  12883. ;;
  12884. *nto* | *qnx*)
  12885. version_type=qnx
  12886. need_lib_prefix=no
  12887. need_version=no
  12888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12889. soname_spec='${libname}${release}${shared_ext}$major'
  12890. shlibpath_var=LD_LIBRARY_PATH
  12891. shlibpath_overrides_runpath=no
  12892. hardcode_into_libs=yes
  12893. dynamic_linker='ldqnx.so'
  12894. ;;
  12895. openbsd*)
  12896. version_type=sunos
  12897. sys_lib_dlsearch_path_spec="/usr/lib"
  12898. need_lib_prefix=no
  12899. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12900. case $host_os in
  12901. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12902. *) need_version=no ;;
  12903. esac
  12904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12905. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12906. shlibpath_var=LD_LIBRARY_PATH
  12907. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12908. case $host_os in
  12909. openbsd2.[89] | openbsd2.[89].*)
  12910. shlibpath_overrides_runpath=no
  12911. ;;
  12912. *)
  12913. shlibpath_overrides_runpath=yes
  12914. ;;
  12915. esac
  12916. else
  12917. shlibpath_overrides_runpath=yes
  12918. fi
  12919. ;;
  12920. os2*)
  12921. libname_spec='$name'
  12922. shrext_cmds=".dll"
  12923. need_lib_prefix=no
  12924. library_names_spec='$libname${shared_ext} $libname.a'
  12925. dynamic_linker='OS/2 ld.exe'
  12926. shlibpath_var=LIBPATH
  12927. ;;
  12928. osf3* | osf4* | osf5*)
  12929. version_type=osf
  12930. need_lib_prefix=no
  12931. need_version=no
  12932. soname_spec='${libname}${release}${shared_ext}$major'
  12933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12934. shlibpath_var=LD_LIBRARY_PATH
  12935. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12936. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12937. ;;
  12938. rdos*)
  12939. dynamic_linker=no
  12940. ;;
  12941. solaris*)
  12942. version_type=linux
  12943. need_lib_prefix=no
  12944. need_version=no
  12945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12946. soname_spec='${libname}${release}${shared_ext}$major'
  12947. shlibpath_var=LD_LIBRARY_PATH
  12948. shlibpath_overrides_runpath=yes
  12949. hardcode_into_libs=yes
  12950. # ldd complains unless libraries are executable
  12951. postinstall_cmds='chmod +x $lib'
  12952. ;;
  12953. sunos4*)
  12954. version_type=sunos
  12955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12956. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12957. shlibpath_var=LD_LIBRARY_PATH
  12958. shlibpath_overrides_runpath=yes
  12959. if test "$with_gnu_ld" = yes; then
  12960. need_lib_prefix=no
  12961. fi
  12962. need_version=yes
  12963. ;;
  12964. sysv4 | sysv4.3*)
  12965. version_type=linux
  12966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12967. soname_spec='${libname}${release}${shared_ext}$major'
  12968. shlibpath_var=LD_LIBRARY_PATH
  12969. case $host_vendor in
  12970. sni)
  12971. shlibpath_overrides_runpath=no
  12972. need_lib_prefix=no
  12973. runpath_var=LD_RUN_PATH
  12974. ;;
  12975. siemens)
  12976. need_lib_prefix=no
  12977. ;;
  12978. motorola)
  12979. need_lib_prefix=no
  12980. need_version=no
  12981. shlibpath_overrides_runpath=no
  12982. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12983. ;;
  12984. esac
  12985. ;;
  12986. sysv4*MP*)
  12987. if test -d /usr/nec ;then
  12988. version_type=linux
  12989. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12990. soname_spec='$libname${shared_ext}.$major'
  12991. shlibpath_var=LD_LIBRARY_PATH
  12992. fi
  12993. ;;
  12994. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12995. version_type=freebsd-elf
  12996. need_lib_prefix=no
  12997. need_version=no
  12998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12999. soname_spec='${libname}${release}${shared_ext}$major'
  13000. shlibpath_var=LD_LIBRARY_PATH
  13001. shlibpath_overrides_runpath=yes
  13002. hardcode_into_libs=yes
  13003. if test "$with_gnu_ld" = yes; then
  13004. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13005. else
  13006. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13007. case $host_os in
  13008. sco3.2v5*)
  13009. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13010. ;;
  13011. esac
  13012. fi
  13013. sys_lib_dlsearch_path_spec='/usr/lib'
  13014. ;;
  13015. tpf*)
  13016. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13017. version_type=linux
  13018. need_lib_prefix=no
  13019. need_version=no
  13020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13021. shlibpath_var=LD_LIBRARY_PATH
  13022. shlibpath_overrides_runpath=no
  13023. hardcode_into_libs=yes
  13024. ;;
  13025. uts4*)
  13026. version_type=linux
  13027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13028. soname_spec='${libname}${release}${shared_ext}$major'
  13029. shlibpath_var=LD_LIBRARY_PATH
  13030. ;;
  13031. *)
  13032. dynamic_linker=no
  13033. ;;
  13034. esac
  13035. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13036. $as_echo "$dynamic_linker" >&6; }
  13037. test "$dynamic_linker" = no && can_build_shared=no
  13038. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13039. if test "$GCC" = yes; then
  13040. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13041. fi
  13042. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13043. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13044. fi
  13045. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13046. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13047. fi
  13048. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13049. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13050. hardcode_action_CXX=
  13051. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13052. test -n "$runpath_var_CXX" ||
  13053. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13054. # We can hardcode non-existent directories.
  13055. if test "$hardcode_direct_CXX" != no &&
  13056. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13057. # have to relink, otherwise we might link with an installed library
  13058. # when we should be linking with a yet-to-be-installed one
  13059. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13060. test "$hardcode_minus_L_CXX" != no; then
  13061. # Linking always hardcodes the temporary library directory.
  13062. hardcode_action_CXX=relink
  13063. else
  13064. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13065. hardcode_action_CXX=immediate
  13066. fi
  13067. else
  13068. # We cannot hardcode anything, or else we can only hardcode existing
  13069. # directories.
  13070. hardcode_action_CXX=unsupported
  13071. fi
  13072. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13073. $as_echo "$hardcode_action_CXX" >&6; }
  13074. if test "$hardcode_action_CXX" = relink ||
  13075. test "$inherit_rpath_CXX" = yes; then
  13076. # Fast installation is not supported
  13077. enable_fast_install=no
  13078. elif test "$shlibpath_overrides_runpath" = yes ||
  13079. test "$enable_shared" = no; then
  13080. # Fast installation is not necessary
  13081. enable_fast_install=needless
  13082. fi
  13083. fi # test -n "$compiler"
  13084. CC=$lt_save_CC
  13085. LDCXX=$LD
  13086. LD=$lt_save_LD
  13087. GCC=$lt_save_GCC
  13088. with_gnu_ld=$lt_save_with_gnu_ld
  13089. lt_cv_path_LDCXX=$lt_cv_path_LD
  13090. lt_cv_path_LD=$lt_save_path_LD
  13091. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13092. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13093. fi # test "$_lt_caught_CXX_error" != yes
  13094. ac_ext=cpp
  13095. ac_cpp='$CXXCPP $CPPFLAGS'
  13096. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13097. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13098. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13099. ac_config_commands="$ac_config_commands libtool"
  13100. # Only expand once:
  13101. # Check whether --enable-debug was given.
  13102. if test "${enable_debug+set}" = set; then
  13103. enableval=$enable_debug; if test x$enableval = xyes ; then
  13104. enable_debug="yes"
  13105. else
  13106. enable_debug="no"
  13107. fi
  13108. else
  13109. enable_debug="yes"
  13110. fi
  13111. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  13112. CXXFLAGS="-O0 -ggdb -Wall -Wcast-align -Wmissing-declarations -Wpointer-arith"
  13113. fi
  13114. # Check for Boost libraries
  13115. # Check whether --with-boost was given.
  13116. if test "${with_boost+set}" = set; then
  13117. withval=$with_boost;
  13118. if test "$withval" = "no"; then
  13119. want_boost="no"
  13120. elif test "$withval" = "yes"; then
  13121. want_boost="yes"
  13122. ac_boost_path=""
  13123. else
  13124. want_boost="yes"
  13125. ac_boost_path="$withval"
  13126. fi
  13127. else
  13128. want_boost="yes"
  13129. fi
  13130. # Check whether --with-boost-libdir was given.
  13131. if test "${with_boost_libdir+set}" = set; then
  13132. withval=$with_boost_libdir;
  13133. if test -d $withval
  13134. then
  13135. ac_boost_lib_path="$withval"
  13136. else
  13137. { { $as_echo "$as_me:$LINENO: error: --with-boost-libdir expected directory name" >&5
  13138. $as_echo "$as_me: error: --with-boost-libdir expected directory name" >&2;}
  13139. { (exit 1); exit 1; }; }
  13140. fi
  13141. else
  13142. ac_boost_lib_path=""
  13143. fi
  13144. if test "x$want_boost" = "xyes"; then
  13145. boost_lib_version_req=1.36
  13146. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  13147. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  13148. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  13149. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  13150. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  13151. boost_lib_version_req_sub_minor="0"
  13152. fi
  13153. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  13154. { $as_echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
  13155. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  13156. succeeded=no
  13157. if test "$ac_boost_path" != ""; then
  13158. BOOST_LDFLAGS="-L$ac_boost_path/lib"
  13159. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  13160. else
  13161. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  13162. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  13163. BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
  13164. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  13165. break;
  13166. fi
  13167. done
  13168. fi
  13169. if test "$ac_boost_lib_path" != ""; then
  13170. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  13171. fi
  13172. CPPFLAGS_SAVED="$CPPFLAGS"
  13173. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13174. export CPPFLAGS
  13175. LDFLAGS_SAVED="$LDFLAGS"
  13176. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13177. export LDFLAGS
  13178. ac_ext=cpp
  13179. ac_cpp='$CXXCPP $CPPFLAGS'
  13180. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13181. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13182. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13183. cat >conftest.$ac_ext <<_ACEOF
  13184. /* confdefs.h. */
  13185. _ACEOF
  13186. cat confdefs.h >>conftest.$ac_ext
  13187. cat >>conftest.$ac_ext <<_ACEOF
  13188. /* end confdefs.h. */
  13189. #include <boost/version.hpp>
  13190. int
  13191. main ()
  13192. {
  13193. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13194. // Everything is okay
  13195. #else
  13196. # error Boost version is too old
  13197. #endif
  13198. ;
  13199. return 0;
  13200. }
  13201. _ACEOF
  13202. rm -f conftest.$ac_objext
  13203. if { (ac_try="$ac_compile"
  13204. case "(($ac_try" in
  13205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13206. *) ac_try_echo=$ac_try;;
  13207. esac
  13208. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13209. $as_echo "$ac_try_echo") >&5
  13210. (eval "$ac_compile") 2>conftest.er1
  13211. ac_status=$?
  13212. grep -v '^ *+' conftest.er1 >conftest.err
  13213. rm -f conftest.er1
  13214. cat conftest.err >&5
  13215. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13216. (exit $ac_status); } && {
  13217. test -z "$ac_cxx_werror_flag" ||
  13218. test ! -s conftest.err
  13219. } && test -s conftest.$ac_objext; then
  13220. { $as_echo "$as_me:$LINENO: result: yes" >&5
  13221. $as_echo "yes" >&6; }
  13222. succeeded=yes
  13223. found_system=yes
  13224. else
  13225. $as_echo "$as_me: failed program was:" >&5
  13226. sed 's/^/| /' conftest.$ac_ext >&5
  13227. fi
  13228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13229. ac_ext=cpp
  13230. ac_cpp='$CXXCPP $CPPFLAGS'
  13231. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13232. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13233. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13234. if test "x$succeeded" != "xyes"; then
  13235. _version=0
  13236. if test "$ac_boost_path" != ""; then
  13237. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13238. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13239. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13240. V_CHECK=`expr $_version_tmp \> $_version`
  13241. if test "$V_CHECK" = "1" ; then
  13242. _version=$_version_tmp
  13243. fi
  13244. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13245. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  13246. done
  13247. fi
  13248. else
  13249. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  13250. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13251. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13252. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13253. V_CHECK=`expr $_version_tmp \> $_version`
  13254. if test "$V_CHECK" = "1" ; then
  13255. _version=$_version_tmp
  13256. best_path=$ac_boost_path
  13257. fi
  13258. done
  13259. fi
  13260. done
  13261. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13262. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  13263. if test "$ac_boost_lib_path" = ""
  13264. then
  13265. BOOST_LDFLAGS="-L$best_path/lib"
  13266. fi
  13267. if test "x$BOOST_ROOT" != "x"; then
  13268. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
  13269. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  13270. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  13271. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  13272. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  13273. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  13274. { $as_echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
  13275. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  13276. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  13277. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
  13278. fi
  13279. fi
  13280. fi
  13281. fi
  13282. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13283. export CPPFLAGS
  13284. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13285. export LDFLAGS
  13286. ac_ext=cpp
  13287. ac_cpp='$CXXCPP $CPPFLAGS'
  13288. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13289. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13290. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13291. cat >conftest.$ac_ext <<_ACEOF
  13292. /* confdefs.h. */
  13293. _ACEOF
  13294. cat confdefs.h >>conftest.$ac_ext
  13295. cat >>conftest.$ac_ext <<_ACEOF
  13296. /* end confdefs.h. */
  13297. #include <boost/version.hpp>
  13298. int
  13299. main ()
  13300. {
  13301. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13302. // Everything is okay
  13303. #else
  13304. # error Boost version is too old
  13305. #endif
  13306. ;
  13307. return 0;
  13308. }
  13309. _ACEOF
  13310. rm -f conftest.$ac_objext
  13311. if { (ac_try="$ac_compile"
  13312. case "(($ac_try" in
  13313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13314. *) ac_try_echo=$ac_try;;
  13315. esac
  13316. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13317. $as_echo "$ac_try_echo") >&5
  13318. (eval "$ac_compile") 2>conftest.er1
  13319. ac_status=$?
  13320. grep -v '^ *+' conftest.er1 >conftest.err
  13321. rm -f conftest.er1
  13322. cat conftest.err >&5
  13323. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13324. (exit $ac_status); } && {
  13325. test -z "$ac_cxx_werror_flag" ||
  13326. test ! -s conftest.err
  13327. } && test -s conftest.$ac_objext; then
  13328. { $as_echo "$as_me:$LINENO: result: yes" >&5
  13329. $as_echo "yes" >&6; }
  13330. succeeded=yes
  13331. found_system=yes
  13332. else
  13333. $as_echo "$as_me: failed program was:" >&5
  13334. sed 's/^/| /' conftest.$ac_ext >&5
  13335. fi
  13336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13337. ac_ext=cpp
  13338. ac_cpp='$CXXCPP $CPPFLAGS'
  13339. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13340. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13341. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13342. fi
  13343. if test "$succeeded" != "yes" ; then
  13344. if test "$_version" = "0" ; then
  13345. { { $as_echo "$as_me:$LINENO: 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." >&5
  13346. $as_echo "$as_me: 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." >&2;}
  13347. { (exit 1); exit 1; }; }
  13348. else
  13349. { $as_echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
  13350. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  13351. fi
  13352. else
  13353. cat >>confdefs.h <<\_ACEOF
  13354. #define HAVE_BOOST /**/
  13355. _ACEOF
  13356. fi
  13357. CPPFLAGS="$CPPFLAGS_SAVED"
  13358. LDFLAGS="$LDFLAGS_SAVED"
  13359. fi
  13360. # Check whether --with-boost-system was given.
  13361. if test "${with_boost_system+set}" = set; then
  13362. withval=$with_boost_system;
  13363. if test "$withval" = "no"; then
  13364. want_boost="no"
  13365. elif test "$withval" = "yes"; then
  13366. want_boost="yes"
  13367. ax_boost_user_system_lib=""
  13368. else
  13369. want_boost="yes"
  13370. ax_boost_user_system_lib="$withval"
  13371. fi
  13372. else
  13373. want_boost="yes"
  13374. fi
  13375. if test "x$want_boost" = "xyes"; then
  13376. CPPFLAGS_SAVED="$CPPFLAGS"
  13377. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13378. export CPPFLAGS
  13379. LDFLAGS_SAVED="$LDFLAGS"
  13380. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13381. export LDFLAGS
  13382. { $as_echo "$as_me:$LINENO: checking whether the Boost::System library is available" >&5
  13383. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  13384. if test "${ax_cv_boost_system+set}" = set; then
  13385. $as_echo_n "(cached) " >&6
  13386. else
  13387. ac_ext=cpp
  13388. ac_cpp='$CXXCPP $CPPFLAGS'
  13389. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13390. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13391. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13392. CXXFLAGS_SAVE=$CXXFLAGS
  13393. cat >conftest.$ac_ext <<_ACEOF
  13394. /* confdefs.h. */
  13395. _ACEOF
  13396. cat confdefs.h >>conftest.$ac_ext
  13397. cat >>conftest.$ac_ext <<_ACEOF
  13398. /* end confdefs.h. */
  13399. #include <boost/system/error_code.hpp>
  13400. int
  13401. main ()
  13402. {
  13403. boost::system::system_category
  13404. ;
  13405. return 0;
  13406. }
  13407. _ACEOF
  13408. rm -f conftest.$ac_objext
  13409. if { (ac_try="$ac_compile"
  13410. case "(($ac_try" in
  13411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13412. *) ac_try_echo=$ac_try;;
  13413. esac
  13414. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13415. $as_echo "$ac_try_echo") >&5
  13416. (eval "$ac_compile") 2>conftest.er1
  13417. ac_status=$?
  13418. grep -v '^ *+' conftest.er1 >conftest.err
  13419. rm -f conftest.er1
  13420. cat conftest.err >&5
  13421. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13422. (exit $ac_status); } && {
  13423. test -z "$ac_cxx_werror_flag" ||
  13424. test ! -s conftest.err
  13425. } && test -s conftest.$ac_objext; then
  13426. ax_cv_boost_system=yes
  13427. else
  13428. $as_echo "$as_me: failed program was:" >&5
  13429. sed 's/^/| /' conftest.$ac_ext >&5
  13430. ax_cv_boost_system=no
  13431. fi
  13432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13433. CXXFLAGS=$CXXFLAGS_SAVE
  13434. ac_ext=cpp
  13435. ac_cpp='$CXXCPP $CPPFLAGS'
  13436. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13437. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13438. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13439. fi
  13440. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_system" >&5
  13441. $as_echo "$ax_cv_boost_system" >&6; }
  13442. if test "x$ax_cv_boost_system" = "xyes"; then
  13443. cat >>confdefs.h <<\_ACEOF
  13444. #define HAVE_BOOST_SYSTEM /**/
  13445. _ACEOF
  13446. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13447. LDFLAGS_SAVE=$LDFLAGS
  13448. if test "x$ax_boost_user_system_lib" = "x"; then
  13449. 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
  13450. ax_lib=${libextension}
  13451. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13452. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13453. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13454. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13455. $as_echo_n "(cached) " >&6
  13456. else
  13457. ac_check_lib_save_LIBS=$LIBS
  13458. LIBS="-l$ax_lib $LIBS"
  13459. cat >conftest.$ac_ext <<_ACEOF
  13460. /* confdefs.h. */
  13461. _ACEOF
  13462. cat confdefs.h >>conftest.$ac_ext
  13463. cat >>conftest.$ac_ext <<_ACEOF
  13464. /* end confdefs.h. */
  13465. /* Override any GCC internal prototype to avoid an error.
  13466. Use char because int might match the return type of a GCC
  13467. builtin and then its argument prototype would still apply. */
  13468. #ifdef __cplusplus
  13469. extern "C"
  13470. #endif
  13471. char exit ();
  13472. int
  13473. main ()
  13474. {
  13475. return exit ();
  13476. ;
  13477. return 0;
  13478. }
  13479. _ACEOF
  13480. rm -f conftest.$ac_objext conftest$ac_exeext
  13481. if { (ac_try="$ac_link"
  13482. case "(($ac_try" in
  13483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13484. *) ac_try_echo=$ac_try;;
  13485. esac
  13486. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13487. $as_echo "$ac_try_echo") >&5
  13488. (eval "$ac_link") 2>conftest.er1
  13489. ac_status=$?
  13490. grep -v '^ *+' conftest.er1 >conftest.err
  13491. rm -f conftest.er1
  13492. cat conftest.err >&5
  13493. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13494. (exit $ac_status); } && {
  13495. test -z "$ac_cxx_werror_flag" ||
  13496. test ! -s conftest.err
  13497. } && test -s conftest$ac_exeext && {
  13498. test "$cross_compiling" = yes ||
  13499. $as_test_x conftest$ac_exeext
  13500. }; then
  13501. eval "$as_ac_Lib=yes"
  13502. else
  13503. $as_echo "$as_me: failed program was:" >&5
  13504. sed 's/^/| /' conftest.$ac_ext >&5
  13505. eval "$as_ac_Lib=no"
  13506. fi
  13507. rm -rf conftest.dSYM
  13508. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13509. conftest$ac_exeext conftest.$ac_ext
  13510. LIBS=$ac_check_lib_save_LIBS
  13511. fi
  13512. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13513. $as_echo "$as_val"'`
  13514. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13515. $as_echo "$ac_res" >&6; }
  13516. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13517. $as_echo "$as_val"'`
  13518. if test "x$as_val" = x""yes; then
  13519. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13520. else
  13521. link_system="no"
  13522. fi
  13523. done
  13524. if test "x$link_system" != "xyes"; then
  13525. 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
  13526. ax_lib=${libextension}
  13527. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13528. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13529. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13530. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13531. $as_echo_n "(cached) " >&6
  13532. else
  13533. ac_check_lib_save_LIBS=$LIBS
  13534. LIBS="-l$ax_lib $LIBS"
  13535. cat >conftest.$ac_ext <<_ACEOF
  13536. /* confdefs.h. */
  13537. _ACEOF
  13538. cat confdefs.h >>conftest.$ac_ext
  13539. cat >>conftest.$ac_ext <<_ACEOF
  13540. /* end confdefs.h. */
  13541. /* Override any GCC internal prototype to avoid an error.
  13542. Use char because int might match the return type of a GCC
  13543. builtin and then its argument prototype would still apply. */
  13544. #ifdef __cplusplus
  13545. extern "C"
  13546. #endif
  13547. char exit ();
  13548. int
  13549. main ()
  13550. {
  13551. return exit ();
  13552. ;
  13553. return 0;
  13554. }
  13555. _ACEOF
  13556. rm -f conftest.$ac_objext conftest$ac_exeext
  13557. if { (ac_try="$ac_link"
  13558. case "(($ac_try" in
  13559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13560. *) ac_try_echo=$ac_try;;
  13561. esac
  13562. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13563. $as_echo "$ac_try_echo") >&5
  13564. (eval "$ac_link") 2>conftest.er1
  13565. ac_status=$?
  13566. grep -v '^ *+' conftest.er1 >conftest.err
  13567. rm -f conftest.er1
  13568. cat conftest.err >&5
  13569. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13570. (exit $ac_status); } && {
  13571. test -z "$ac_cxx_werror_flag" ||
  13572. test ! -s conftest.err
  13573. } && test -s conftest$ac_exeext && {
  13574. test "$cross_compiling" = yes ||
  13575. $as_test_x conftest$ac_exeext
  13576. }; then
  13577. eval "$as_ac_Lib=yes"
  13578. else
  13579. $as_echo "$as_me: failed program was:" >&5
  13580. sed 's/^/| /' conftest.$ac_ext >&5
  13581. eval "$as_ac_Lib=no"
  13582. fi
  13583. rm -rf conftest.dSYM
  13584. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13585. conftest$ac_exeext conftest.$ac_ext
  13586. LIBS=$ac_check_lib_save_LIBS
  13587. fi
  13588. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13589. $as_echo "$as_val"'`
  13590. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13591. $as_echo "$ac_res" >&6; }
  13592. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13593. $as_echo "$as_val"'`
  13594. if test "x$as_val" = x""yes; then
  13595. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13596. else
  13597. link_system="no"
  13598. fi
  13599. done
  13600. fi
  13601. else
  13602. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  13603. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13604. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13605. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13606. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13607. $as_echo_n "(cached) " >&6
  13608. else
  13609. ac_check_lib_save_LIBS=$LIBS
  13610. LIBS="-l$ax_lib $LIBS"
  13611. cat >conftest.$ac_ext <<_ACEOF
  13612. /* confdefs.h. */
  13613. _ACEOF
  13614. cat confdefs.h >>conftest.$ac_ext
  13615. cat >>conftest.$ac_ext <<_ACEOF
  13616. /* end confdefs.h. */
  13617. /* Override any GCC internal prototype to avoid an error.
  13618. Use char because int might match the return type of a GCC
  13619. builtin and then its argument prototype would still apply. */
  13620. #ifdef __cplusplus
  13621. extern "C"
  13622. #endif
  13623. char exit ();
  13624. int
  13625. main ()
  13626. {
  13627. return exit ();
  13628. ;
  13629. return 0;
  13630. }
  13631. _ACEOF
  13632. rm -f conftest.$ac_objext conftest$ac_exeext
  13633. if { (ac_try="$ac_link"
  13634. case "(($ac_try" in
  13635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13636. *) ac_try_echo=$ac_try;;
  13637. esac
  13638. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13639. $as_echo "$ac_try_echo") >&5
  13640. (eval "$ac_link") 2>conftest.er1
  13641. ac_status=$?
  13642. grep -v '^ *+' conftest.er1 >conftest.err
  13643. rm -f conftest.er1
  13644. cat conftest.err >&5
  13645. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13646. (exit $ac_status); } && {
  13647. test -z "$ac_cxx_werror_flag" ||
  13648. test ! -s conftest.err
  13649. } && test -s conftest$ac_exeext && {
  13650. test "$cross_compiling" = yes ||
  13651. $as_test_x conftest$ac_exeext
  13652. }; then
  13653. eval "$as_ac_Lib=yes"
  13654. else
  13655. $as_echo "$as_me: failed program was:" >&5
  13656. sed 's/^/| /' conftest.$ac_ext >&5
  13657. eval "$as_ac_Lib=no"
  13658. fi
  13659. rm -rf conftest.dSYM
  13660. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13661. conftest$ac_exeext conftest.$ac_ext
  13662. LIBS=$ac_check_lib_save_LIBS
  13663. fi
  13664. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13665. $as_echo "$as_val"'`
  13666. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13667. $as_echo "$ac_res" >&6; }
  13668. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13669. $as_echo "$as_val"'`
  13670. if test "x$as_val" = x""yes; then
  13671. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13672. else
  13673. link_system="no"
  13674. fi
  13675. done
  13676. fi
  13677. if test "x$link_system" = "xno"; then
  13678. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  13679. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  13680. { (exit 1); exit 1; }; }
  13681. fi
  13682. fi
  13683. CPPFLAGS="$CPPFLAGS_SAVED"
  13684. LDFLAGS="$LDFLAGS_SAVED"
  13685. fi
  13686. # Check whether --with-boost-filesystem was given.
  13687. if test "${with_boost_filesystem+set}" = set; then
  13688. withval=$with_boost_filesystem;
  13689. if test "$withval" = "no"; then
  13690. want_boost="no"
  13691. elif test "$withval" = "yes"; then
  13692. want_boost="yes"
  13693. ax_boost_user_filesystem_lib=""
  13694. else
  13695. want_boost="yes"
  13696. ax_boost_user_filesystem_lib="$withval"
  13697. fi
  13698. else
  13699. want_boost="yes"
  13700. fi
  13701. if test "x$want_boost" = "xyes"; then
  13702. CPPFLAGS_SAVED="$CPPFLAGS"
  13703. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13704. export CPPFLAGS
  13705. LDFLAGS_SAVED="$LDFLAGS"
  13706. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13707. export LDFLAGS
  13708. { $as_echo "$as_me:$LINENO: checking whether the Boost::Filesystem library is available" >&5
  13709. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  13710. if test "${ax_cv_boost_filesystem+set}" = set; then
  13711. $as_echo_n "(cached) " >&6
  13712. else
  13713. ac_ext=cpp
  13714. ac_cpp='$CXXCPP $CPPFLAGS'
  13715. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13716. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13717. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13718. cat >conftest.$ac_ext <<_ACEOF
  13719. /* confdefs.h. */
  13720. _ACEOF
  13721. cat confdefs.h >>conftest.$ac_ext
  13722. cat >>conftest.$ac_ext <<_ACEOF
  13723. /* end confdefs.h. */
  13724. #include <boost/filesystem/path.hpp>
  13725. int
  13726. main ()
  13727. {
  13728. using namespace boost::filesystem;
  13729. path my_path( "foo/bar/data.txt" );
  13730. return 0;
  13731. ;
  13732. return 0;
  13733. }
  13734. _ACEOF
  13735. rm -f conftest.$ac_objext
  13736. if { (ac_try="$ac_compile"
  13737. case "(($ac_try" in
  13738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13739. *) ac_try_echo=$ac_try;;
  13740. esac
  13741. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13742. $as_echo "$ac_try_echo") >&5
  13743. (eval "$ac_compile") 2>conftest.er1
  13744. ac_status=$?
  13745. grep -v '^ *+' conftest.er1 >conftest.err
  13746. rm -f conftest.er1
  13747. cat conftest.err >&5
  13748. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13749. (exit $ac_status); } && {
  13750. test -z "$ac_cxx_werror_flag" ||
  13751. test ! -s conftest.err
  13752. } && test -s conftest.$ac_objext; then
  13753. ax_cv_boost_filesystem=yes
  13754. else
  13755. $as_echo "$as_me: failed program was:" >&5
  13756. sed 's/^/| /' conftest.$ac_ext >&5
  13757. ax_cv_boost_filesystem=no
  13758. fi
  13759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13760. ac_ext=cpp
  13761. ac_cpp='$CXXCPP $CPPFLAGS'
  13762. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13763. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13764. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13765. fi
  13766. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_filesystem" >&5
  13767. $as_echo "$ax_cv_boost_filesystem" >&6; }
  13768. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  13769. cat >>confdefs.h <<\_ACEOF
  13770. #define HAVE_BOOST_FILESYSTEM /**/
  13771. _ACEOF
  13772. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13773. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  13774. 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
  13775. ax_lib=${libextension}
  13776. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13777. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13778. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13779. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13780. $as_echo_n "(cached) " >&6
  13781. else
  13782. ac_check_lib_save_LIBS=$LIBS
  13783. LIBS="-l$ax_lib $LIBS"
  13784. cat >conftest.$ac_ext <<_ACEOF
  13785. /* confdefs.h. */
  13786. _ACEOF
  13787. cat confdefs.h >>conftest.$ac_ext
  13788. cat >>conftest.$ac_ext <<_ACEOF
  13789. /* end confdefs.h. */
  13790. /* Override any GCC internal prototype to avoid an error.
  13791. Use char because int might match the return type of a GCC
  13792. builtin and then its argument prototype would still apply. */
  13793. #ifdef __cplusplus
  13794. extern "C"
  13795. #endif
  13796. char exit ();
  13797. int
  13798. main ()
  13799. {
  13800. return exit ();
  13801. ;
  13802. return 0;
  13803. }
  13804. _ACEOF
  13805. rm -f conftest.$ac_objext conftest$ac_exeext
  13806. if { (ac_try="$ac_link"
  13807. case "(($ac_try" in
  13808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13809. *) ac_try_echo=$ac_try;;
  13810. esac
  13811. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13812. $as_echo "$ac_try_echo") >&5
  13813. (eval "$ac_link") 2>conftest.er1
  13814. ac_status=$?
  13815. grep -v '^ *+' conftest.er1 >conftest.err
  13816. rm -f conftest.er1
  13817. cat conftest.err >&5
  13818. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13819. (exit $ac_status); } && {
  13820. test -z "$ac_cxx_werror_flag" ||
  13821. test ! -s conftest.err
  13822. } && test -s conftest$ac_exeext && {
  13823. test "$cross_compiling" = yes ||
  13824. $as_test_x conftest$ac_exeext
  13825. }; then
  13826. eval "$as_ac_Lib=yes"
  13827. else
  13828. $as_echo "$as_me: failed program was:" >&5
  13829. sed 's/^/| /' conftest.$ac_ext >&5
  13830. eval "$as_ac_Lib=no"
  13831. fi
  13832. rm -rf conftest.dSYM
  13833. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13834. conftest$ac_exeext conftest.$ac_ext
  13835. LIBS=$ac_check_lib_save_LIBS
  13836. fi
  13837. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13838. $as_echo "$as_val"'`
  13839. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13840. $as_echo "$ac_res" >&6; }
  13841. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13842. $as_echo "$as_val"'`
  13843. if test "x$as_val" = x""yes; then
  13844. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13845. else
  13846. link_filesystem="no"
  13847. fi
  13848. done
  13849. if test "x$link_program_options" != "xyes"; then
  13850. 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
  13851. ax_lib=${libextension}
  13852. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13853. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13854. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13855. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13856. $as_echo_n "(cached) " >&6
  13857. else
  13858. ac_check_lib_save_LIBS=$LIBS
  13859. LIBS="-l$ax_lib $LIBS"
  13860. cat >conftest.$ac_ext <<_ACEOF
  13861. /* confdefs.h. */
  13862. _ACEOF
  13863. cat confdefs.h >>conftest.$ac_ext
  13864. cat >>conftest.$ac_ext <<_ACEOF
  13865. /* end confdefs.h. */
  13866. /* Override any GCC internal prototype to avoid an error.
  13867. Use char because int might match the return type of a GCC
  13868. builtin and then its argument prototype would still apply. */
  13869. #ifdef __cplusplus
  13870. extern "C"
  13871. #endif
  13872. char exit ();
  13873. int
  13874. main ()
  13875. {
  13876. return exit ();
  13877. ;
  13878. return 0;
  13879. }
  13880. _ACEOF
  13881. rm -f conftest.$ac_objext conftest$ac_exeext
  13882. if { (ac_try="$ac_link"
  13883. case "(($ac_try" in
  13884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13885. *) ac_try_echo=$ac_try;;
  13886. esac
  13887. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13888. $as_echo "$ac_try_echo") >&5
  13889. (eval "$ac_link") 2>conftest.er1
  13890. ac_status=$?
  13891. grep -v '^ *+' conftest.er1 >conftest.err
  13892. rm -f conftest.er1
  13893. cat conftest.err >&5
  13894. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13895. (exit $ac_status); } && {
  13896. test -z "$ac_cxx_werror_flag" ||
  13897. test ! -s conftest.err
  13898. } && test -s conftest$ac_exeext && {
  13899. test "$cross_compiling" = yes ||
  13900. $as_test_x conftest$ac_exeext
  13901. }; then
  13902. eval "$as_ac_Lib=yes"
  13903. else
  13904. $as_echo "$as_me: failed program was:" >&5
  13905. sed 's/^/| /' conftest.$ac_ext >&5
  13906. eval "$as_ac_Lib=no"
  13907. fi
  13908. rm -rf conftest.dSYM
  13909. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13910. conftest$ac_exeext conftest.$ac_ext
  13911. LIBS=$ac_check_lib_save_LIBS
  13912. fi
  13913. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13914. $as_echo "$as_val"'`
  13915. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13916. $as_echo "$ac_res" >&6; }
  13917. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13918. $as_echo "$as_val"'`
  13919. if test "x$as_val" = x""yes; then
  13920. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13921. else
  13922. link_filesystem="no"
  13923. fi
  13924. done
  13925. fi
  13926. else
  13927. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13928. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13929. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13930. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13931. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13932. $as_echo_n "(cached) " >&6
  13933. else
  13934. ac_check_lib_save_LIBS=$LIBS
  13935. LIBS="-l$ax_lib $LIBS"
  13936. cat >conftest.$ac_ext <<_ACEOF
  13937. /* confdefs.h. */
  13938. _ACEOF
  13939. cat confdefs.h >>conftest.$ac_ext
  13940. cat >>conftest.$ac_ext <<_ACEOF
  13941. /* end confdefs.h. */
  13942. /* Override any GCC internal prototype to avoid an error.
  13943. Use char because int might match the return type of a GCC
  13944. builtin and then its argument prototype would still apply. */
  13945. #ifdef __cplusplus
  13946. extern "C"
  13947. #endif
  13948. char exit ();
  13949. int
  13950. main ()
  13951. {
  13952. return exit ();
  13953. ;
  13954. return 0;
  13955. }
  13956. _ACEOF
  13957. rm -f conftest.$ac_objext conftest$ac_exeext
  13958. if { (ac_try="$ac_link"
  13959. case "(($ac_try" in
  13960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13961. *) ac_try_echo=$ac_try;;
  13962. esac
  13963. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13964. $as_echo "$ac_try_echo") >&5
  13965. (eval "$ac_link") 2>conftest.er1
  13966. ac_status=$?
  13967. grep -v '^ *+' conftest.er1 >conftest.err
  13968. rm -f conftest.er1
  13969. cat conftest.err >&5
  13970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13971. (exit $ac_status); } && {
  13972. test -z "$ac_cxx_werror_flag" ||
  13973. test ! -s conftest.err
  13974. } && test -s conftest$ac_exeext && {
  13975. test "$cross_compiling" = yes ||
  13976. $as_test_x conftest$ac_exeext
  13977. }; then
  13978. eval "$as_ac_Lib=yes"
  13979. else
  13980. $as_echo "$as_me: failed program was:" >&5
  13981. sed 's/^/| /' conftest.$ac_ext >&5
  13982. eval "$as_ac_Lib=no"
  13983. fi
  13984. rm -rf conftest.dSYM
  13985. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13986. conftest$ac_exeext conftest.$ac_ext
  13987. LIBS=$ac_check_lib_save_LIBS
  13988. fi
  13989. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13990. $as_echo "$as_val"'`
  13991. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13992. $as_echo "$ac_res" >&6; }
  13993. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13994. $as_echo "$as_val"'`
  13995. if test "x$as_val" = x""yes; then
  13996. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13997. else
  13998. link_filesystem="no"
  13999. fi
  14000. done
  14001. fi
  14002. if test "x$link_filesystem" != "xyes"; then
  14003. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14004. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14005. { (exit 1); exit 1; }; }
  14006. fi
  14007. fi
  14008. CPPFLAGS="$CPPFLAGS_SAVED"
  14009. LDFLAGS="$LDFLAGS_SAVED"
  14010. fi
  14011. # Check whether --with-boost-thread was given.
  14012. if test "${with_boost_thread+set}" = set; then
  14013. withval=$with_boost_thread;
  14014. if test "$withval" = "no"; then
  14015. want_boost="no"
  14016. elif test "$withval" = "yes"; then
  14017. want_boost="yes"
  14018. ax_boost_user_thread_lib=""
  14019. else
  14020. want_boost="yes"
  14021. ax_boost_user_thread_lib="$withval"
  14022. fi
  14023. else
  14024. want_boost="yes"
  14025. fi
  14026. if test "x$want_boost" = "xyes"; then
  14027. CPPFLAGS_SAVED="$CPPFLAGS"
  14028. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14029. export CPPFLAGS
  14030. LDFLAGS_SAVED="$LDFLAGS"
  14031. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14032. export LDFLAGS
  14033. { $as_echo "$as_me:$LINENO: checking whether the Boost::Thread library is available" >&5
  14034. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  14035. if test "${ax_cv_boost_thread+set}" = set; then
  14036. $as_echo_n "(cached) " >&6
  14037. else
  14038. ac_ext=cpp
  14039. ac_cpp='$CXXCPP $CPPFLAGS'
  14040. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14041. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14042. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14043. CXXFLAGS_SAVE=$CXXFLAGS
  14044. if test "x$build_os" = "xsolaris" ; then
  14045. CXXFLAGS="-pthreads $CXXFLAGS"
  14046. elif test "x$build_os" = "xming32" ; then
  14047. CXXFLAGS="-mthreads $CXXFLAGS"
  14048. else
  14049. CXXFLAGS="-pthread $CXXFLAGS"
  14050. fi
  14051. cat >conftest.$ac_ext <<_ACEOF
  14052. /* confdefs.h. */
  14053. _ACEOF
  14054. cat confdefs.h >>conftest.$ac_ext
  14055. cat >>conftest.$ac_ext <<_ACEOF
  14056. /* end confdefs.h. */
  14057. #include <boost/thread/thread.hpp>
  14058. int
  14059. main ()
  14060. {
  14061. boost::thread_group thrds;
  14062. return 0;
  14063. ;
  14064. return 0;
  14065. }
  14066. _ACEOF
  14067. rm -f conftest.$ac_objext
  14068. if { (ac_try="$ac_compile"
  14069. case "(($ac_try" in
  14070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14071. *) ac_try_echo=$ac_try;;
  14072. esac
  14073. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14074. $as_echo "$ac_try_echo") >&5
  14075. (eval "$ac_compile") 2>conftest.er1
  14076. ac_status=$?
  14077. grep -v '^ *+' conftest.er1 >conftest.err
  14078. rm -f conftest.er1
  14079. cat conftest.err >&5
  14080. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14081. (exit $ac_status); } && {
  14082. test -z "$ac_cxx_werror_flag" ||
  14083. test ! -s conftest.err
  14084. } && test -s conftest.$ac_objext; then
  14085. ax_cv_boost_thread=yes
  14086. else
  14087. $as_echo "$as_me: failed program was:" >&5
  14088. sed 's/^/| /' conftest.$ac_ext >&5
  14089. ax_cv_boost_thread=no
  14090. fi
  14091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14092. CXXFLAGS=$CXXFLAGS_SAVE
  14093. ac_ext=cpp
  14094. ac_cpp='$CXXCPP $CPPFLAGS'
  14095. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14096. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14097. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14098. fi
  14099. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_thread" >&5
  14100. $as_echo "$ax_cv_boost_thread" >&6; }
  14101. if test "x$ax_cv_boost_thread" = "xyes"; then
  14102. if test "x$build_os" = "xsolaris" ; then
  14103. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  14104. elif test "x$build_os" = "xming32" ; then
  14105. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  14106. else
  14107. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  14108. fi
  14109. cat >>confdefs.h <<\_ACEOF
  14110. #define HAVE_BOOST_THREAD /**/
  14111. _ACEOF
  14112. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14113. LDFLAGS_SAVE=$LDFLAGS
  14114. case "x$build_os" in
  14115. *bsd* )
  14116. LDFLAGS="-pthread $LDFLAGS"
  14117. break;
  14118. ;;
  14119. esac
  14120. if test "x$ax_boost_user_thread_lib" = "x"; then
  14121. 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
  14122. ax_lib=${libextension}
  14123. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14124. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14125. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14126. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14127. $as_echo_n "(cached) " >&6
  14128. else
  14129. ac_check_lib_save_LIBS=$LIBS
  14130. LIBS="-l$ax_lib $LIBS"
  14131. cat >conftest.$ac_ext <<_ACEOF
  14132. /* confdefs.h. */
  14133. _ACEOF
  14134. cat confdefs.h >>conftest.$ac_ext
  14135. cat >>conftest.$ac_ext <<_ACEOF
  14136. /* end confdefs.h. */
  14137. /* Override any GCC internal prototype to avoid an error.
  14138. Use char because int might match the return type of a GCC
  14139. builtin and then its argument prototype would still apply. */
  14140. #ifdef __cplusplus
  14141. extern "C"
  14142. #endif
  14143. char exit ();
  14144. int
  14145. main ()
  14146. {
  14147. return exit ();
  14148. ;
  14149. return 0;
  14150. }
  14151. _ACEOF
  14152. rm -f conftest.$ac_objext conftest$ac_exeext
  14153. if { (ac_try="$ac_link"
  14154. case "(($ac_try" in
  14155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14156. *) ac_try_echo=$ac_try;;
  14157. esac
  14158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14159. $as_echo "$ac_try_echo") >&5
  14160. (eval "$ac_link") 2>conftest.er1
  14161. ac_status=$?
  14162. grep -v '^ *+' conftest.er1 >conftest.err
  14163. rm -f conftest.er1
  14164. cat conftest.err >&5
  14165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14166. (exit $ac_status); } && {
  14167. test -z "$ac_cxx_werror_flag" ||
  14168. test ! -s conftest.err
  14169. } && test -s conftest$ac_exeext && {
  14170. test "$cross_compiling" = yes ||
  14171. $as_test_x conftest$ac_exeext
  14172. }; then
  14173. eval "$as_ac_Lib=yes"
  14174. else
  14175. $as_echo "$as_me: failed program was:" >&5
  14176. sed 's/^/| /' conftest.$ac_ext >&5
  14177. eval "$as_ac_Lib=no"
  14178. fi
  14179. rm -rf conftest.dSYM
  14180. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14181. conftest$ac_exeext conftest.$ac_ext
  14182. LIBS=$ac_check_lib_save_LIBS
  14183. fi
  14184. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14185. $as_echo "$as_val"'`
  14186. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14187. $as_echo "$ac_res" >&6; }
  14188. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14189. $as_echo "$as_val"'`
  14190. if test "x$as_val" = x""yes; then
  14191. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14192. else
  14193. link_thread="no"
  14194. fi
  14195. done
  14196. if test "x$link_thread" != "xyes"; then
  14197. 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
  14198. ax_lib=${libextension}
  14199. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14200. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14201. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14202. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14203. $as_echo_n "(cached) " >&6
  14204. else
  14205. ac_check_lib_save_LIBS=$LIBS
  14206. LIBS="-l$ax_lib $LIBS"
  14207. cat >conftest.$ac_ext <<_ACEOF
  14208. /* confdefs.h. */
  14209. _ACEOF
  14210. cat confdefs.h >>conftest.$ac_ext
  14211. cat >>conftest.$ac_ext <<_ACEOF
  14212. /* end confdefs.h. */
  14213. /* Override any GCC internal prototype to avoid an error.
  14214. Use char because int might match the return type of a GCC
  14215. builtin and then its argument prototype would still apply. */
  14216. #ifdef __cplusplus
  14217. extern "C"
  14218. #endif
  14219. char exit ();
  14220. int
  14221. main ()
  14222. {
  14223. return exit ();
  14224. ;
  14225. return 0;
  14226. }
  14227. _ACEOF
  14228. rm -f conftest.$ac_objext conftest$ac_exeext
  14229. if { (ac_try="$ac_link"
  14230. case "(($ac_try" in
  14231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14232. *) ac_try_echo=$ac_try;;
  14233. esac
  14234. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14235. $as_echo "$ac_try_echo") >&5
  14236. (eval "$ac_link") 2>conftest.er1
  14237. ac_status=$?
  14238. grep -v '^ *+' conftest.er1 >conftest.err
  14239. rm -f conftest.er1
  14240. cat conftest.err >&5
  14241. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14242. (exit $ac_status); } && {
  14243. test -z "$ac_cxx_werror_flag" ||
  14244. test ! -s conftest.err
  14245. } && test -s conftest$ac_exeext && {
  14246. test "$cross_compiling" = yes ||
  14247. $as_test_x conftest$ac_exeext
  14248. }; then
  14249. eval "$as_ac_Lib=yes"
  14250. else
  14251. $as_echo "$as_me: failed program was:" >&5
  14252. sed 's/^/| /' conftest.$ac_ext >&5
  14253. eval "$as_ac_Lib=no"
  14254. fi
  14255. rm -rf conftest.dSYM
  14256. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14257. conftest$ac_exeext conftest.$ac_ext
  14258. LIBS=$ac_check_lib_save_LIBS
  14259. fi
  14260. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14261. $as_echo "$as_val"'`
  14262. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14263. $as_echo "$ac_res" >&6; }
  14264. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14265. $as_echo "$as_val"'`
  14266. if test "x$as_val" = x""yes; then
  14267. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14268. else
  14269. link_thread="no"
  14270. fi
  14271. done
  14272. fi
  14273. else
  14274. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  14275. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14276. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14277. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14278. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14279. $as_echo_n "(cached) " >&6
  14280. else
  14281. ac_check_lib_save_LIBS=$LIBS
  14282. LIBS="-l$ax_lib $LIBS"
  14283. cat >conftest.$ac_ext <<_ACEOF
  14284. /* confdefs.h. */
  14285. _ACEOF
  14286. cat confdefs.h >>conftest.$ac_ext
  14287. cat >>conftest.$ac_ext <<_ACEOF
  14288. /* end confdefs.h. */
  14289. /* Override any GCC internal prototype to avoid an error.
  14290. Use char because int might match the return type of a GCC
  14291. builtin and then its argument prototype would still apply. */
  14292. #ifdef __cplusplus
  14293. extern "C"
  14294. #endif
  14295. char exit ();
  14296. int
  14297. main ()
  14298. {
  14299. return exit ();
  14300. ;
  14301. return 0;
  14302. }
  14303. _ACEOF
  14304. rm -f conftest.$ac_objext conftest$ac_exeext
  14305. if { (ac_try="$ac_link"
  14306. case "(($ac_try" in
  14307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14308. *) ac_try_echo=$ac_try;;
  14309. esac
  14310. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14311. $as_echo "$ac_try_echo") >&5
  14312. (eval "$ac_link") 2>conftest.er1
  14313. ac_status=$?
  14314. grep -v '^ *+' conftest.er1 >conftest.err
  14315. rm -f conftest.er1
  14316. cat conftest.err >&5
  14317. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14318. (exit $ac_status); } && {
  14319. test -z "$ac_cxx_werror_flag" ||
  14320. test ! -s conftest.err
  14321. } && test -s conftest$ac_exeext && {
  14322. test "$cross_compiling" = yes ||
  14323. $as_test_x conftest$ac_exeext
  14324. }; then
  14325. eval "$as_ac_Lib=yes"
  14326. else
  14327. $as_echo "$as_me: failed program was:" >&5
  14328. sed 's/^/| /' conftest.$ac_ext >&5
  14329. eval "$as_ac_Lib=no"
  14330. fi
  14331. rm -rf conftest.dSYM
  14332. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14333. conftest$ac_exeext conftest.$ac_ext
  14334. LIBS=$ac_check_lib_save_LIBS
  14335. fi
  14336. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14337. $as_echo "$as_val"'`
  14338. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14339. $as_echo "$ac_res" >&6; }
  14340. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14341. $as_echo "$as_val"'`
  14342. if test "x$as_val" = x""yes; then
  14343. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14344. else
  14345. link_thread="no"
  14346. fi
  14347. done
  14348. fi
  14349. if test "x$link_thread" = "xno"; then
  14350. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14351. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14352. { (exit 1); exit 1; }; }
  14353. else
  14354. case "x$build_os" in
  14355. *bsd* )
  14356. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  14357. break;
  14358. ;;
  14359. esac
  14360. fi
  14361. fi
  14362. CPPFLAGS="$CPPFLAGS_SAVED"
  14363. LDFLAGS="$LDFLAGS_SAVED"
  14364. fi
  14365. # Check whether --with-boost-iostreams was given.
  14366. if test "${with_boost_iostreams+set}" = set; then
  14367. withval=$with_boost_iostreams;
  14368. if test "$withval" = "no"; then
  14369. want_boost="no"
  14370. elif test "$withval" = "yes"; then
  14371. want_boost="yes"
  14372. ax_boost_user_iostreams_lib=""
  14373. else
  14374. want_boost="yes"
  14375. ax_boost_user_iostreams_lib="$withval"
  14376. fi
  14377. else
  14378. want_boost="yes"
  14379. fi
  14380. if test "x$want_boost" = "xyes"; then
  14381. CPPFLAGS_SAVED="$CPPFLAGS"
  14382. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14383. export CPPFLAGS
  14384. LDFLAGS_SAVED="$LDFLAGS"
  14385. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14386. export LDFLAGS
  14387. { $as_echo "$as_me:$LINENO: checking whether the Boost::IOStreams library is available" >&5
  14388. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  14389. if test "${ax_cv_boost_iostreams+set}" = set; then
  14390. $as_echo_n "(cached) " >&6
  14391. else
  14392. ac_ext=cpp
  14393. ac_cpp='$CXXCPP $CPPFLAGS'
  14394. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14395. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14396. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14397. cat >conftest.$ac_ext <<_ACEOF
  14398. /* confdefs.h. */
  14399. _ACEOF
  14400. cat confdefs.h >>conftest.$ac_ext
  14401. cat >>conftest.$ac_ext <<_ACEOF
  14402. /* end confdefs.h. */
  14403. #include <boost/iostreams/filtering_stream.hpp>
  14404. #include <boost/range/iterator_range.hpp>
  14405. int
  14406. main ()
  14407. {
  14408. std::string input = "Hello World!";
  14409. namespace io = boost::iostreams;
  14410. io::filtering_istream in(boost::make_iterator_range(input));
  14411. return 0;
  14412. ;
  14413. return 0;
  14414. }
  14415. _ACEOF
  14416. rm -f conftest.$ac_objext
  14417. if { (ac_try="$ac_compile"
  14418. case "(($ac_try" in
  14419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14420. *) ac_try_echo=$ac_try;;
  14421. esac
  14422. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14423. $as_echo "$ac_try_echo") >&5
  14424. (eval "$ac_compile") 2>conftest.er1
  14425. ac_status=$?
  14426. grep -v '^ *+' conftest.er1 >conftest.err
  14427. rm -f conftest.er1
  14428. cat conftest.err >&5
  14429. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14430. (exit $ac_status); } && {
  14431. test -z "$ac_cxx_werror_flag" ||
  14432. test ! -s conftest.err
  14433. } && test -s conftest.$ac_objext; then
  14434. ax_cv_boost_iostreams=yes
  14435. else
  14436. $as_echo "$as_me: failed program was:" >&5
  14437. sed 's/^/| /' conftest.$ac_ext >&5
  14438. ax_cv_boost_iostreams=no
  14439. fi
  14440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14441. ac_ext=cpp
  14442. ac_cpp='$CXXCPP $CPPFLAGS'
  14443. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14444. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14445. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14446. fi
  14447. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_iostreams" >&5
  14448. $as_echo "$ax_cv_boost_iostreams" >&6; }
  14449. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  14450. cat >>confdefs.h <<\_ACEOF
  14451. #define HAVE_BOOST_IOSTREAMS /**/
  14452. _ACEOF
  14453. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14454. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  14455. 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
  14456. ax_lib=${libextension}
  14457. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14458. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14459. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14460. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14461. $as_echo_n "(cached) " >&6
  14462. else
  14463. ac_check_lib_save_LIBS=$LIBS
  14464. LIBS="-l$ax_lib $LIBS"
  14465. cat >conftest.$ac_ext <<_ACEOF
  14466. /* confdefs.h. */
  14467. _ACEOF
  14468. cat confdefs.h >>conftest.$ac_ext
  14469. cat >>conftest.$ac_ext <<_ACEOF
  14470. /* end confdefs.h. */
  14471. /* Override any GCC internal prototype to avoid an error.
  14472. Use char because int might match the return type of a GCC
  14473. builtin and then its argument prototype would still apply. */
  14474. #ifdef __cplusplus
  14475. extern "C"
  14476. #endif
  14477. char exit ();
  14478. int
  14479. main ()
  14480. {
  14481. return exit ();
  14482. ;
  14483. return 0;
  14484. }
  14485. _ACEOF
  14486. rm -f conftest.$ac_objext conftest$ac_exeext
  14487. if { (ac_try="$ac_link"
  14488. case "(($ac_try" in
  14489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14490. *) ac_try_echo=$ac_try;;
  14491. esac
  14492. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14493. $as_echo "$ac_try_echo") >&5
  14494. (eval "$ac_link") 2>conftest.er1
  14495. ac_status=$?
  14496. grep -v '^ *+' conftest.er1 >conftest.err
  14497. rm -f conftest.er1
  14498. cat conftest.err >&5
  14499. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14500. (exit $ac_status); } && {
  14501. test -z "$ac_cxx_werror_flag" ||
  14502. test ! -s conftest.err
  14503. } && test -s conftest$ac_exeext && {
  14504. test "$cross_compiling" = yes ||
  14505. $as_test_x conftest$ac_exeext
  14506. }; then
  14507. eval "$as_ac_Lib=yes"
  14508. else
  14509. $as_echo "$as_me: failed program was:" >&5
  14510. sed 's/^/| /' conftest.$ac_ext >&5
  14511. eval "$as_ac_Lib=no"
  14512. fi
  14513. rm -rf conftest.dSYM
  14514. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14515. conftest$ac_exeext conftest.$ac_ext
  14516. LIBS=$ac_check_lib_save_LIBS
  14517. fi
  14518. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14519. $as_echo "$as_val"'`
  14520. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14521. $as_echo "$ac_res" >&6; }
  14522. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14523. $as_echo "$as_val"'`
  14524. if test "x$as_val" = x""yes; then
  14525. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14526. else
  14527. link_iostreams="no"
  14528. fi
  14529. done
  14530. if test "x$link_iostreams" != "xyes"; then
  14531. 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
  14532. ax_lib=${libextension}
  14533. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14534. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14535. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14536. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14537. $as_echo_n "(cached) " >&6
  14538. else
  14539. ac_check_lib_save_LIBS=$LIBS
  14540. LIBS="-l$ax_lib $LIBS"
  14541. cat >conftest.$ac_ext <<_ACEOF
  14542. /* confdefs.h. */
  14543. _ACEOF
  14544. cat confdefs.h >>conftest.$ac_ext
  14545. cat >>conftest.$ac_ext <<_ACEOF
  14546. /* end confdefs.h. */
  14547. /* Override any GCC internal prototype to avoid an error.
  14548. Use char because int might match the return type of a GCC
  14549. builtin and then its argument prototype would still apply. */
  14550. #ifdef __cplusplus
  14551. extern "C"
  14552. #endif
  14553. char exit ();
  14554. int
  14555. main ()
  14556. {
  14557. return exit ();
  14558. ;
  14559. return 0;
  14560. }
  14561. _ACEOF
  14562. rm -f conftest.$ac_objext conftest$ac_exeext
  14563. if { (ac_try="$ac_link"
  14564. case "(($ac_try" in
  14565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14566. *) ac_try_echo=$ac_try;;
  14567. esac
  14568. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14569. $as_echo "$ac_try_echo") >&5
  14570. (eval "$ac_link") 2>conftest.er1
  14571. ac_status=$?
  14572. grep -v '^ *+' conftest.er1 >conftest.err
  14573. rm -f conftest.er1
  14574. cat conftest.err >&5
  14575. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14576. (exit $ac_status); } && {
  14577. test -z "$ac_cxx_werror_flag" ||
  14578. test ! -s conftest.err
  14579. } && test -s conftest$ac_exeext && {
  14580. test "$cross_compiling" = yes ||
  14581. $as_test_x conftest$ac_exeext
  14582. }; then
  14583. eval "$as_ac_Lib=yes"
  14584. else
  14585. $as_echo "$as_me: failed program was:" >&5
  14586. sed 's/^/| /' conftest.$ac_ext >&5
  14587. eval "$as_ac_Lib=no"
  14588. fi
  14589. rm -rf conftest.dSYM
  14590. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14591. conftest$ac_exeext conftest.$ac_ext
  14592. LIBS=$ac_check_lib_save_LIBS
  14593. fi
  14594. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14595. $as_echo "$as_val"'`
  14596. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14597. $as_echo "$ac_res" >&6; }
  14598. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14599. $as_echo "$as_val"'`
  14600. if test "x$as_val" = x""yes; then
  14601. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14602. else
  14603. link_iostreams="no"
  14604. fi
  14605. done
  14606. fi
  14607. else
  14608. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  14609. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14610. { $as_echo "$as_me:$LINENO: checking for main in -l$ax_lib" >&5
  14611. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14612. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14613. $as_echo_n "(cached) " >&6
  14614. else
  14615. ac_check_lib_save_LIBS=$LIBS
  14616. LIBS="-l$ax_lib $LIBS"
  14617. cat >conftest.$ac_ext <<_ACEOF
  14618. /* confdefs.h. */
  14619. _ACEOF
  14620. cat confdefs.h >>conftest.$ac_ext
  14621. cat >>conftest.$ac_ext <<_ACEOF
  14622. /* end confdefs.h. */
  14623. int
  14624. main ()
  14625. {
  14626. return main ();
  14627. ;
  14628. return 0;
  14629. }
  14630. _ACEOF
  14631. rm -f conftest.$ac_objext conftest$ac_exeext
  14632. if { (ac_try="$ac_link"
  14633. case "(($ac_try" in
  14634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14635. *) ac_try_echo=$ac_try;;
  14636. esac
  14637. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14638. $as_echo "$ac_try_echo") >&5
  14639. (eval "$ac_link") 2>conftest.er1
  14640. ac_status=$?
  14641. grep -v '^ *+' conftest.er1 >conftest.err
  14642. rm -f conftest.er1
  14643. cat conftest.err >&5
  14644. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14645. (exit $ac_status); } && {
  14646. test -z "$ac_cxx_werror_flag" ||
  14647. test ! -s conftest.err
  14648. } && test -s conftest$ac_exeext && {
  14649. test "$cross_compiling" = yes ||
  14650. $as_test_x conftest$ac_exeext
  14651. }; then
  14652. eval "$as_ac_Lib=yes"
  14653. else
  14654. $as_echo "$as_me: failed program was:" >&5
  14655. sed 's/^/| /' conftest.$ac_ext >&5
  14656. eval "$as_ac_Lib=no"
  14657. fi
  14658. rm -rf conftest.dSYM
  14659. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14660. conftest$ac_exeext conftest.$ac_ext
  14661. LIBS=$ac_check_lib_save_LIBS
  14662. fi
  14663. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14664. $as_echo "$as_val"'`
  14665. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14666. $as_echo "$ac_res" >&6; }
  14667. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14668. $as_echo "$as_val"'`
  14669. if test "x$as_val" = x""yes; then
  14670. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14671. else
  14672. link_iostreams="no"
  14673. fi
  14674. done
  14675. fi
  14676. if test "x$link_iostreams" != "xyes"; then
  14677. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14678. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14679. { (exit 1); exit 1; }; }
  14680. fi
  14681. fi
  14682. CPPFLAGS="$CPPFLAGS_SAVED"
  14683. LDFLAGS="$LDFLAGS_SAVED"
  14684. fi
  14685. # Check for SDL libraries
  14686. saved_LIBS=$LIBS
  14687. # Extract the first word of "sdl-config", so it can be a program name with args.
  14688. set dummy sdl-config; ac_word=$2
  14689. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14690. $as_echo_n "checking for $ac_word... " >&6; }
  14691. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then
  14692. $as_echo_n "(cached) " >&6
  14693. else
  14694. if test -n "$HAVE_SDL_CONFIG"; then
  14695. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  14696. else
  14697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14698. for as_dir in $PATH
  14699. do
  14700. IFS=$as_save_IFS
  14701. test -z "$as_dir" && as_dir=.
  14702. for ac_exec_ext in '' $ac_executable_extensions; do
  14703. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14704. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  14705. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14706. break 2
  14707. fi
  14708. done
  14709. done
  14710. IFS=$as_save_IFS
  14711. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  14712. fi
  14713. fi
  14714. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  14715. if test -n "$HAVE_SDL_CONFIG"; then
  14716. { $as_echo "$as_me:$LINENO: result: $HAVE_SDL_CONFIG" >&5
  14717. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  14718. else
  14719. { $as_echo "$as_me:$LINENO: result: no" >&5
  14720. $as_echo "no" >&6; }
  14721. fi
  14722. if test "$HAVE_SDL_CONFIG" = no; then
  14723. { { $as_echo "$as_me:$LINENO: error: sdl-config doesn't exist. Try to check the PATH enviroment." >&5
  14724. $as_echo "$as_me: error: sdl-config doesn't exist. Try to check the PATH enviroment." >&2;}
  14725. { (exit 1); exit 1; }; }
  14726. fi
  14727. { $as_echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
  14728. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  14729. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
  14730. $as_echo_n "(cached) " >&6
  14731. else
  14732. ac_check_lib_save_LIBS=$LIBS
  14733. LIBS="-lSDL $LIBS"
  14734. cat >conftest.$ac_ext <<_ACEOF
  14735. /* confdefs.h. */
  14736. _ACEOF
  14737. cat confdefs.h >>conftest.$ac_ext
  14738. cat >>conftest.$ac_ext <<_ACEOF
  14739. /* end confdefs.h. */
  14740. /* Override any GCC internal prototype to avoid an error.
  14741. Use char because int might match the return type of a GCC
  14742. builtin and then its argument prototype would still apply. */
  14743. #ifdef __cplusplus
  14744. extern "C"
  14745. #endif
  14746. char SDL_Init ();
  14747. int
  14748. main ()
  14749. {
  14750. return SDL_Init ();
  14751. ;
  14752. return 0;
  14753. }
  14754. _ACEOF
  14755. rm -f conftest.$ac_objext conftest$ac_exeext
  14756. if { (ac_try="$ac_link"
  14757. case "(($ac_try" in
  14758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14759. *) ac_try_echo=$ac_try;;
  14760. esac
  14761. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14762. $as_echo "$ac_try_echo") >&5
  14763. (eval "$ac_link") 2>conftest.er1
  14764. ac_status=$?
  14765. grep -v '^ *+' conftest.er1 >conftest.err
  14766. rm -f conftest.er1
  14767. cat conftest.err >&5
  14768. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14769. (exit $ac_status); } && {
  14770. test -z "$ac_cxx_werror_flag" ||
  14771. test ! -s conftest.err
  14772. } && test -s conftest$ac_exeext && {
  14773. test "$cross_compiling" = yes ||
  14774. $as_test_x conftest$ac_exeext
  14775. }; then
  14776. ac_cv_lib_SDL_SDL_Init=yes
  14777. else
  14778. $as_echo "$as_me: failed program was:" >&5
  14779. sed 's/^/| /' conftest.$ac_ext >&5
  14780. ac_cv_lib_SDL_SDL_Init=no
  14781. fi
  14782. rm -rf conftest.dSYM
  14783. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14784. conftest$ac_exeext conftest.$ac_ext
  14785. LIBS=$ac_check_lib_save_LIBS
  14786. fi
  14787. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5
  14788. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  14789. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then
  14790. cat >>confdefs.h <<_ACEOF
  14791. #define HAVE_LIBSDL 1
  14792. _ACEOF
  14793. LIBS="-lSDL $LIBS"
  14794. else
  14795. { { $as_echo "$as_me:$LINENO: error: SDL library not found. Please install it." >&5
  14796. $as_echo "$as_me: error: SDL library not found. Please install it." >&2;}
  14797. { (exit 1); exit 1; }; }
  14798. fi
  14799. { $as_echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
  14800. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  14801. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
  14802. $as_echo_n "(cached) " >&6
  14803. else
  14804. ac_check_lib_save_LIBS=$LIBS
  14805. LIBS="-lSDL_mixer $LIBS"
  14806. cat >conftest.$ac_ext <<_ACEOF
  14807. /* confdefs.h. */
  14808. _ACEOF
  14809. cat confdefs.h >>conftest.$ac_ext
  14810. cat >>conftest.$ac_ext <<_ACEOF
  14811. /* end confdefs.h. */
  14812. int
  14813. main ()
  14814. {
  14815. return main ();
  14816. ;
  14817. return 0;
  14818. }
  14819. _ACEOF
  14820. rm -f conftest.$ac_objext conftest$ac_exeext
  14821. if { (ac_try="$ac_link"
  14822. case "(($ac_try" in
  14823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14824. *) ac_try_echo=$ac_try;;
  14825. esac
  14826. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14827. $as_echo "$ac_try_echo") >&5
  14828. (eval "$ac_link") 2>conftest.er1
  14829. ac_status=$?
  14830. grep -v '^ *+' conftest.er1 >conftest.err
  14831. rm -f conftest.er1
  14832. cat conftest.err >&5
  14833. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14834. (exit $ac_status); } && {
  14835. test -z "$ac_cxx_werror_flag" ||
  14836. test ! -s conftest.err
  14837. } && test -s conftest$ac_exeext && {
  14838. test "$cross_compiling" = yes ||
  14839. $as_test_x conftest$ac_exeext
  14840. }; then
  14841. ac_cv_lib_SDL_mixer_main=yes
  14842. else
  14843. $as_echo "$as_me: failed program was:" >&5
  14844. sed 's/^/| /' conftest.$ac_ext >&5
  14845. ac_cv_lib_SDL_mixer_main=no
  14846. fi
  14847. rm -rf conftest.dSYM
  14848. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14849. conftest$ac_exeext conftest.$ac_ext
  14850. LIBS=$ac_check_lib_save_LIBS
  14851. fi
  14852. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
  14853. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  14854. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then
  14855. cat >>confdefs.h <<_ACEOF
  14856. #define HAVE_LIBSDL_MIXER 1
  14857. _ACEOF
  14858. LIBS="-lSDL_mixer $LIBS"
  14859. else
  14860. { { $as_echo "$as_me:$LINENO: error: SDL_mixer library not found. Please install it." >&5
  14861. $as_echo "$as_me: error: SDL_mixer library not found. Please install it." >&2;}
  14862. { (exit 1); exit 1; }; }
  14863. fi
  14864. { $as_echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5
  14865. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  14866. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then
  14867. $as_echo_n "(cached) " >&6
  14868. else
  14869. ac_check_lib_save_LIBS=$LIBS
  14870. LIBS="-lSDL_image $LIBS"
  14871. cat >conftest.$ac_ext <<_ACEOF
  14872. /* confdefs.h. */
  14873. _ACEOF
  14874. cat confdefs.h >>conftest.$ac_ext
  14875. cat >>conftest.$ac_ext <<_ACEOF
  14876. /* end confdefs.h. */
  14877. /* Override any GCC internal prototype to avoid an error.
  14878. Use char because int might match the return type of a GCC
  14879. builtin and then its argument prototype would still apply. */
  14880. #ifdef __cplusplus
  14881. extern "C"
  14882. #endif
  14883. char IMG_Load ();
  14884. int
  14885. main ()
  14886. {
  14887. return IMG_Load ();
  14888. ;
  14889. return 0;
  14890. }
  14891. _ACEOF
  14892. rm -f conftest.$ac_objext conftest$ac_exeext
  14893. if { (ac_try="$ac_link"
  14894. case "(($ac_try" in
  14895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14896. *) ac_try_echo=$ac_try;;
  14897. esac
  14898. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14899. $as_echo "$ac_try_echo") >&5
  14900. (eval "$ac_link") 2>conftest.er1
  14901. ac_status=$?
  14902. grep -v '^ *+' conftest.er1 >conftest.err
  14903. rm -f conftest.er1
  14904. cat conftest.err >&5
  14905. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14906. (exit $ac_status); } && {
  14907. test -z "$ac_cxx_werror_flag" ||
  14908. test ! -s conftest.err
  14909. } && test -s conftest$ac_exeext && {
  14910. test "$cross_compiling" = yes ||
  14911. $as_test_x conftest$ac_exeext
  14912. }; then
  14913. ac_cv_lib_SDL_image_IMG_Load=yes
  14914. else
  14915. $as_echo "$as_me: failed program was:" >&5
  14916. sed 's/^/| /' conftest.$ac_ext >&5
  14917. ac_cv_lib_SDL_image_IMG_Load=no
  14918. fi
  14919. rm -rf conftest.dSYM
  14920. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14921. conftest$ac_exeext conftest.$ac_ext
  14922. LIBS=$ac_check_lib_save_LIBS
  14923. fi
  14924. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  14925. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  14926. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then
  14927. cat >>confdefs.h <<_ACEOF
  14928. #define HAVE_LIBSDL_IMAGE 1
  14929. _ACEOF
  14930. LIBS="-lSDL_image $LIBS"
  14931. else
  14932. { { $as_echo "$as_me:$LINENO: error: SDL_image library not found. Please install it." >&5
  14933. $as_echo "$as_me: error: SDL_image library not found. Please install it." >&2;}
  14934. { (exit 1); exit 1; }; }
  14935. fi
  14936. { $as_echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5
  14937. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  14938. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then
  14939. $as_echo_n "(cached) " >&6
  14940. else
  14941. ac_check_lib_save_LIBS=$LIBS
  14942. LIBS="-lSDL_ttf $LIBS"
  14943. cat >conftest.$ac_ext <<_ACEOF
  14944. /* confdefs.h. */
  14945. _ACEOF
  14946. cat confdefs.h >>conftest.$ac_ext
  14947. cat >>conftest.$ac_ext <<_ACEOF
  14948. /* end confdefs.h. */
  14949. int
  14950. main ()
  14951. {
  14952. return main ();
  14953. ;
  14954. return 0;
  14955. }
  14956. _ACEOF
  14957. rm -f conftest.$ac_objext conftest$ac_exeext
  14958. if { (ac_try="$ac_link"
  14959. case "(($ac_try" in
  14960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14961. *) ac_try_echo=$ac_try;;
  14962. esac
  14963. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14964. $as_echo "$ac_try_echo") >&5
  14965. (eval "$ac_link") 2>conftest.er1
  14966. ac_status=$?
  14967. grep -v '^ *+' conftest.er1 >conftest.err
  14968. rm -f conftest.er1
  14969. cat conftest.err >&5
  14970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14971. (exit $ac_status); } && {
  14972. test -z "$ac_cxx_werror_flag" ||
  14973. test ! -s conftest.err
  14974. } && test -s conftest$ac_exeext && {
  14975. test "$cross_compiling" = yes ||
  14976. $as_test_x conftest$ac_exeext
  14977. }; then
  14978. ac_cv_lib_SDL_ttf_main=yes
  14979. else
  14980. $as_echo "$as_me: failed program was:" >&5
  14981. sed 's/^/| /' conftest.$ac_ext >&5
  14982. ac_cv_lib_SDL_ttf_main=no
  14983. fi
  14984. rm -rf conftest.dSYM
  14985. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14986. conftest$ac_exeext conftest.$ac_ext
  14987. LIBS=$ac_check_lib_save_LIBS
  14988. fi
  14989. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5
  14990. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  14991. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then
  14992. cat >>confdefs.h <<_ACEOF
  14993. #define HAVE_LIBSDL_TTF 1
  14994. _ACEOF
  14995. LIBS="-lSDL_ttf $LIBS"
  14996. else
  14997. { { $as_echo "$as_me:$LINENO: error: SDL_ttf library not found. Please install it." >&5
  14998. $as_echo "$as_me: error: SDL_ttf library not found. Please install it." >&2;}
  14999. { (exit 1); exit 1; }; }
  15000. fi
  15001. SDL_CXXFLAGS=`sdl-config --cflags`
  15002. SDL_LIBS="`sdl-config --libs` $LIBS"
  15003. LIBS=$saved_LIBS
  15004. # Check for ffmpeg libraries
  15005. saved_LIBS=$LIBS
  15006. { $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&5
  15007. $as_echo_n "checking for main in -lavformat... " >&6; }
  15008. if test "${ac_cv_lib_avformat_main+set}" = set; then
  15009. $as_echo_n "(cached) " >&6
  15010. else
  15011. ac_check_lib_save_LIBS=$LIBS
  15012. LIBS="-lavformat $LIBS"
  15013. cat >conftest.$ac_ext <<_ACEOF
  15014. /* confdefs.h. */
  15015. _ACEOF
  15016. cat confdefs.h >>conftest.$ac_ext
  15017. cat >>conftest.$ac_ext <<_ACEOF
  15018. /* end confdefs.h. */
  15019. int
  15020. main ()
  15021. {
  15022. return main ();
  15023. ;
  15024. return 0;
  15025. }
  15026. _ACEOF
  15027. rm -f conftest.$ac_objext conftest$ac_exeext
  15028. if { (ac_try="$ac_link"
  15029. case "(($ac_try" in
  15030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15031. *) ac_try_echo=$ac_try;;
  15032. esac
  15033. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15034. $as_echo "$ac_try_echo") >&5
  15035. (eval "$ac_link") 2>conftest.er1
  15036. ac_status=$?
  15037. grep -v '^ *+' conftest.er1 >conftest.err
  15038. rm -f conftest.er1
  15039. cat conftest.err >&5
  15040. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15041. (exit $ac_status); } && {
  15042. test -z "$ac_cxx_werror_flag" ||
  15043. test ! -s conftest.err
  15044. } && test -s conftest$ac_exeext && {
  15045. test "$cross_compiling" = yes ||
  15046. $as_test_x conftest$ac_exeext
  15047. }; then
  15048. ac_cv_lib_avformat_main=yes
  15049. else
  15050. $as_echo "$as_me: failed program was:" >&5
  15051. sed 's/^/| /' conftest.$ac_ext >&5
  15052. ac_cv_lib_avformat_main=no
  15053. fi
  15054. rm -rf conftest.dSYM
  15055. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15056. conftest$ac_exeext conftest.$ac_ext
  15057. LIBS=$ac_check_lib_save_LIBS
  15058. fi
  15059. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_main" >&5
  15060. $as_echo "$ac_cv_lib_avformat_main" >&6; }
  15061. if test "x$ac_cv_lib_avformat_main" = x""yes; then
  15062. cat >>confdefs.h <<_ACEOF
  15063. #define HAVE_LIBAVFORMAT 1
  15064. _ACEOF
  15065. LIBS="-lavformat $LIBS"
  15066. else
  15067. { { $as_echo "$as_me:$LINENO: error: FFMpeg avformat library not found. Please install it." >&5
  15068. $as_echo "$as_me: error: FFMpeg avformat library not found. Please install it." >&2;}
  15069. { (exit 1); exit 1; }; }
  15070. fi
  15071. { $as_echo "$as_me:$LINENO: checking for main in -lswscale" >&5
  15072. $as_echo_n "checking for main in -lswscale... " >&6; }
  15073. if test "${ac_cv_lib_swscale_main+set}" = set; then
  15074. $as_echo_n "(cached) " >&6
  15075. else
  15076. ac_check_lib_save_LIBS=$LIBS
  15077. LIBS="-lswscale $LIBS"
  15078. cat >conftest.$ac_ext <<_ACEOF
  15079. /* confdefs.h. */
  15080. _ACEOF
  15081. cat confdefs.h >>conftest.$ac_ext
  15082. cat >>conftest.$ac_ext <<_ACEOF
  15083. /* end confdefs.h. */
  15084. int
  15085. main ()
  15086. {
  15087. return main ();
  15088. ;
  15089. return 0;
  15090. }
  15091. _ACEOF
  15092. rm -f conftest.$ac_objext conftest$ac_exeext
  15093. if { (ac_try="$ac_link"
  15094. case "(($ac_try" in
  15095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15096. *) ac_try_echo=$ac_try;;
  15097. esac
  15098. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15099. $as_echo "$ac_try_echo") >&5
  15100. (eval "$ac_link") 2>conftest.er1
  15101. ac_status=$?
  15102. grep -v '^ *+' conftest.er1 >conftest.err
  15103. rm -f conftest.er1
  15104. cat conftest.err >&5
  15105. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15106. (exit $ac_status); } && {
  15107. test -z "$ac_cxx_werror_flag" ||
  15108. test ! -s conftest.err
  15109. } && test -s conftest$ac_exeext && {
  15110. test "$cross_compiling" = yes ||
  15111. $as_test_x conftest$ac_exeext
  15112. }; then
  15113. ac_cv_lib_swscale_main=yes
  15114. else
  15115. $as_echo "$as_me: failed program was:" >&5
  15116. sed 's/^/| /' conftest.$ac_ext >&5
  15117. ac_cv_lib_swscale_main=no
  15118. fi
  15119. rm -rf conftest.dSYM
  15120. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15121. conftest$ac_exeext conftest.$ac_ext
  15122. LIBS=$ac_check_lib_save_LIBS
  15123. fi
  15124. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&5
  15125. $as_echo "$ac_cv_lib_swscale_main" >&6; }
  15126. if test "x$ac_cv_lib_swscale_main" = x""yes; then
  15127. cat >>confdefs.h <<_ACEOF
  15128. #define HAVE_LIBSWSCALE 1
  15129. _ACEOF
  15130. LIBS="-lswscale $LIBS"
  15131. else
  15132. { { $as_echo "$as_me:$LINENO: error: FFMpeg swscale library not found. Please install it." >&5
  15133. $as_echo "$as_me: error: FFMpeg swscale library not found. Please install it." >&2;}
  15134. { (exit 1); exit 1; }; }
  15135. fi
  15136. FFMPEG_CXXFLAGS=`pkg-config --cflags libavformat libswscale`
  15137. FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
  15138. LIBS=$saved_LIBS
  15139. # Checks for header files.
  15140. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  15141. $as_echo_n "checking for ANSI C header files... " >&6; }
  15142. if test "${ac_cv_header_stdc+set}" = set; then
  15143. $as_echo_n "(cached) " >&6
  15144. else
  15145. cat >conftest.$ac_ext <<_ACEOF
  15146. /* confdefs.h. */
  15147. _ACEOF
  15148. cat confdefs.h >>conftest.$ac_ext
  15149. cat >>conftest.$ac_ext <<_ACEOF
  15150. /* end confdefs.h. */
  15151. #include <stdlib.h>
  15152. #include <stdarg.h>
  15153. #include <string.h>
  15154. #include <float.h>
  15155. int
  15156. main ()
  15157. {
  15158. ;
  15159. return 0;
  15160. }
  15161. _ACEOF
  15162. rm -f conftest.$ac_objext
  15163. if { (ac_try="$ac_compile"
  15164. case "(($ac_try" in
  15165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15166. *) ac_try_echo=$ac_try;;
  15167. esac
  15168. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15169. $as_echo "$ac_try_echo") >&5
  15170. (eval "$ac_compile") 2>conftest.er1
  15171. ac_status=$?
  15172. grep -v '^ *+' conftest.er1 >conftest.err
  15173. rm -f conftest.er1
  15174. cat conftest.err >&5
  15175. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15176. (exit $ac_status); } && {
  15177. test -z "$ac_cxx_werror_flag" ||
  15178. test ! -s conftest.err
  15179. } && test -s conftest.$ac_objext; then
  15180. ac_cv_header_stdc=yes
  15181. else
  15182. $as_echo "$as_me: failed program was:" >&5
  15183. sed 's/^/| /' conftest.$ac_ext >&5
  15184. ac_cv_header_stdc=no
  15185. fi
  15186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15187. if test $ac_cv_header_stdc = yes; then
  15188. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15189. cat >conftest.$ac_ext <<_ACEOF
  15190. /* confdefs.h. */
  15191. _ACEOF
  15192. cat confdefs.h >>conftest.$ac_ext
  15193. cat >>conftest.$ac_ext <<_ACEOF
  15194. /* end confdefs.h. */
  15195. #include <string.h>
  15196. _ACEOF
  15197. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15198. $EGREP "memchr" >/dev/null 2>&1; then
  15199. :
  15200. else
  15201. ac_cv_header_stdc=no
  15202. fi
  15203. rm -f conftest*
  15204. fi
  15205. if test $ac_cv_header_stdc = yes; then
  15206. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15207. cat >conftest.$ac_ext <<_ACEOF
  15208. /* confdefs.h. */
  15209. _ACEOF
  15210. cat confdefs.h >>conftest.$ac_ext
  15211. cat >>conftest.$ac_ext <<_ACEOF
  15212. /* end confdefs.h. */
  15213. #include <stdlib.h>
  15214. _ACEOF
  15215. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15216. $EGREP "free" >/dev/null 2>&1; then
  15217. :
  15218. else
  15219. ac_cv_header_stdc=no
  15220. fi
  15221. rm -f conftest*
  15222. fi
  15223. if test $ac_cv_header_stdc = yes; then
  15224. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15225. if test "$cross_compiling" = yes; then
  15226. :
  15227. else
  15228. cat >conftest.$ac_ext <<_ACEOF
  15229. /* confdefs.h. */
  15230. _ACEOF
  15231. cat confdefs.h >>conftest.$ac_ext
  15232. cat >>conftest.$ac_ext <<_ACEOF
  15233. /* end confdefs.h. */
  15234. #include <ctype.h>
  15235. #include <stdlib.h>
  15236. #if ((' ' & 0x0FF) == 0x020)
  15237. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15238. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15239. #else
  15240. # define ISLOWER(c) \
  15241. (('a' <= (c) && (c) <= 'i') \
  15242. || ('j' <= (c) && (c) <= 'r') \
  15243. || ('s' <= (c) && (c) <= 'z'))
  15244. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15245. #endif
  15246. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15247. int
  15248. main ()
  15249. {
  15250. int i;
  15251. for (i = 0; i < 256; i++)
  15252. if (XOR (islower (i), ISLOWER (i))
  15253. || toupper (i) != TOUPPER (i))
  15254. return 2;
  15255. return 0;
  15256. }
  15257. _ACEOF
  15258. rm -f conftest$ac_exeext
  15259. if { (ac_try="$ac_link"
  15260. case "(($ac_try" in
  15261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15262. *) ac_try_echo=$ac_try;;
  15263. esac
  15264. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15265. $as_echo "$ac_try_echo") >&5
  15266. (eval "$ac_link") 2>&5
  15267. ac_status=$?
  15268. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15269. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15270. { (case "(($ac_try" in
  15271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15272. *) ac_try_echo=$ac_try;;
  15273. esac
  15274. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15275. $as_echo "$ac_try_echo") >&5
  15276. (eval "$ac_try") 2>&5
  15277. ac_status=$?
  15278. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15279. (exit $ac_status); }; }; then
  15280. :
  15281. else
  15282. $as_echo "$as_me: program exited with status $ac_status" >&5
  15283. $as_echo "$as_me: failed program was:" >&5
  15284. sed 's/^/| /' conftest.$ac_ext >&5
  15285. ( exit $ac_status )
  15286. ac_cv_header_stdc=no
  15287. fi
  15288. rm -rf conftest.dSYM
  15289. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15290. fi
  15291. fi
  15292. fi
  15293. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  15294. $as_echo "$ac_cv_header_stdc" >&6; }
  15295. if test $ac_cv_header_stdc = yes; then
  15296. cat >>confdefs.h <<\_ACEOF
  15297. #define STDC_HEADERS 1
  15298. _ACEOF
  15299. fi
  15300. for ac_header in fcntl.h stdlib.h string.h
  15301. do
  15302. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15303. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15304. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15305. $as_echo_n "checking for $ac_header... " >&6; }
  15306. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15307. $as_echo_n "(cached) " >&6
  15308. fi
  15309. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15310. $as_echo "$as_val"'`
  15311. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15312. $as_echo "$ac_res" >&6; }
  15313. else
  15314. # Is the header compilable?
  15315. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15316. $as_echo_n "checking $ac_header usability... " >&6; }
  15317. cat >conftest.$ac_ext <<_ACEOF
  15318. /* confdefs.h. */
  15319. _ACEOF
  15320. cat confdefs.h >>conftest.$ac_ext
  15321. cat >>conftest.$ac_ext <<_ACEOF
  15322. /* end confdefs.h. */
  15323. $ac_includes_default
  15324. #include <$ac_header>
  15325. _ACEOF
  15326. rm -f conftest.$ac_objext
  15327. if { (ac_try="$ac_compile"
  15328. case "(($ac_try" in
  15329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15330. *) ac_try_echo=$ac_try;;
  15331. esac
  15332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15333. $as_echo "$ac_try_echo") >&5
  15334. (eval "$ac_compile") 2>conftest.er1
  15335. ac_status=$?
  15336. grep -v '^ *+' conftest.er1 >conftest.err
  15337. rm -f conftest.er1
  15338. cat conftest.err >&5
  15339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15340. (exit $ac_status); } && {
  15341. test -z "$ac_cxx_werror_flag" ||
  15342. test ! -s conftest.err
  15343. } && test -s conftest.$ac_objext; then
  15344. ac_header_compiler=yes
  15345. else
  15346. $as_echo "$as_me: failed program was:" >&5
  15347. sed 's/^/| /' conftest.$ac_ext >&5
  15348. ac_header_compiler=no
  15349. fi
  15350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15351. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15352. $as_echo "$ac_header_compiler" >&6; }
  15353. # Is the header present?
  15354. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15355. $as_echo_n "checking $ac_header presence... " >&6; }
  15356. cat >conftest.$ac_ext <<_ACEOF
  15357. /* confdefs.h. */
  15358. _ACEOF
  15359. cat confdefs.h >>conftest.$ac_ext
  15360. cat >>conftest.$ac_ext <<_ACEOF
  15361. /* end confdefs.h. */
  15362. #include <$ac_header>
  15363. _ACEOF
  15364. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15365. case "(($ac_try" in
  15366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15367. *) ac_try_echo=$ac_try;;
  15368. esac
  15369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15370. $as_echo "$ac_try_echo") >&5
  15371. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15372. ac_status=$?
  15373. grep -v '^ *+' conftest.er1 >conftest.err
  15374. rm -f conftest.er1
  15375. cat conftest.err >&5
  15376. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15377. (exit $ac_status); } >/dev/null && {
  15378. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15379. test ! -s conftest.err
  15380. }; then
  15381. ac_header_preproc=yes
  15382. else
  15383. $as_echo "$as_me: failed program was:" >&5
  15384. sed 's/^/| /' conftest.$ac_ext >&5
  15385. ac_header_preproc=no
  15386. fi
  15387. rm -f conftest.err conftest.$ac_ext
  15388. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15389. $as_echo "$ac_header_preproc" >&6; }
  15390. # So? What about this header?
  15391. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15392. yes:no: )
  15393. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15394. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15395. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15396. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15397. ac_header_preproc=yes
  15398. ;;
  15399. no:yes:* )
  15400. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15401. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15402. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15403. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15404. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15405. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15406. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15407. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15408. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15409. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15410. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15411. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15412. ;;
  15413. esac
  15414. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15415. $as_echo_n "checking for $ac_header... " >&6; }
  15416. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15417. $as_echo_n "(cached) " >&6
  15418. else
  15419. eval "$as_ac_Header=\$ac_header_preproc"
  15420. fi
  15421. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15422. $as_echo "$as_val"'`
  15423. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15424. $as_echo "$ac_res" >&6; }
  15425. fi
  15426. as_val=`eval 'as_val=${'$as_ac_Header'}
  15427. $as_echo "$as_val"'`
  15428. if test "x$as_val" = x""yes; then
  15429. cat >>confdefs.h <<_ACEOF
  15430. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15431. _ACEOF
  15432. fi
  15433. done
  15434. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  15435. 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
  15436. do
  15437. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15438. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15439. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15440. $as_echo_n "checking for $ac_header... " >&6; }
  15441. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15442. $as_echo_n "(cached) " >&6
  15443. fi
  15444. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15445. $as_echo "$as_val"'`
  15446. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15447. $as_echo "$ac_res" >&6; }
  15448. else
  15449. # Is the header compilable?
  15450. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15451. $as_echo_n "checking $ac_header usability... " >&6; }
  15452. cat >conftest.$ac_ext <<_ACEOF
  15453. /* confdefs.h. */
  15454. _ACEOF
  15455. cat confdefs.h >>conftest.$ac_ext
  15456. cat >>conftest.$ac_ext <<_ACEOF
  15457. /* end confdefs.h. */
  15458. $ac_includes_default
  15459. #include <$ac_header>
  15460. _ACEOF
  15461. rm -f conftest.$ac_objext
  15462. if { (ac_try="$ac_compile"
  15463. case "(($ac_try" in
  15464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15465. *) ac_try_echo=$ac_try;;
  15466. esac
  15467. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15468. $as_echo "$ac_try_echo") >&5
  15469. (eval "$ac_compile") 2>conftest.er1
  15470. ac_status=$?
  15471. grep -v '^ *+' conftest.er1 >conftest.err
  15472. rm -f conftest.er1
  15473. cat conftest.err >&5
  15474. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15475. (exit $ac_status); } && {
  15476. test -z "$ac_cxx_werror_flag" ||
  15477. test ! -s conftest.err
  15478. } && test -s conftest.$ac_objext; then
  15479. ac_header_compiler=yes
  15480. else
  15481. $as_echo "$as_me: failed program was:" >&5
  15482. sed 's/^/| /' conftest.$ac_ext >&5
  15483. ac_header_compiler=no
  15484. fi
  15485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15486. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15487. $as_echo "$ac_header_compiler" >&6; }
  15488. # Is the header present?
  15489. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15490. $as_echo_n "checking $ac_header presence... " >&6; }
  15491. cat >conftest.$ac_ext <<_ACEOF
  15492. /* confdefs.h. */
  15493. _ACEOF
  15494. cat confdefs.h >>conftest.$ac_ext
  15495. cat >>conftest.$ac_ext <<_ACEOF
  15496. /* end confdefs.h. */
  15497. #include <$ac_header>
  15498. _ACEOF
  15499. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15500. case "(($ac_try" in
  15501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15502. *) ac_try_echo=$ac_try;;
  15503. esac
  15504. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15505. $as_echo "$ac_try_echo") >&5
  15506. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15507. ac_status=$?
  15508. grep -v '^ *+' conftest.er1 >conftest.err
  15509. rm -f conftest.er1
  15510. cat conftest.err >&5
  15511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15512. (exit $ac_status); } >/dev/null && {
  15513. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15514. test ! -s conftest.err
  15515. }; then
  15516. ac_header_preproc=yes
  15517. else
  15518. $as_echo "$as_me: failed program was:" >&5
  15519. sed 's/^/| /' conftest.$ac_ext >&5
  15520. ac_header_preproc=no
  15521. fi
  15522. rm -f conftest.err conftest.$ac_ext
  15523. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15524. $as_echo "$ac_header_preproc" >&6; }
  15525. # So? What about this header?
  15526. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15527. yes:no: )
  15528. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15529. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15530. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15531. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15532. ac_header_preproc=yes
  15533. ;;
  15534. no:yes:* )
  15535. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15536. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15537. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15538. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15539. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15540. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15541. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15542. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15543. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15544. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15545. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15546. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15547. ;;
  15548. esac
  15549. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15550. $as_echo_n "checking for $ac_header... " >&6; }
  15551. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15552. $as_echo_n "(cached) " >&6
  15553. else
  15554. eval "$as_ac_Header=\$ac_header_preproc"
  15555. fi
  15556. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15557. $as_echo "$as_val"'`
  15558. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15559. $as_echo "$ac_res" >&6; }
  15560. fi
  15561. as_val=`eval 'as_val=${'$as_ac_Header'}
  15562. $as_echo "$as_val"'`
  15563. if test "x$as_val" = x""yes; then
  15564. cat >>confdefs.h <<_ACEOF
  15565. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15566. _ACEOF
  15567. else
  15568. { { $as_echo "$as_me:$LINENO: error: Required boost headers not found. Please install it." >&5
  15569. $as_echo "$as_me: error: Required boost headers not found. Please install it." >&2;}
  15570. { (exit 1); exit 1; }; }
  15571. fi
  15572. done
  15573. # Checks for library functions.
  15574. for ac_func in atexit memset pow select sqrt
  15575. do
  15576. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15577. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15578. $as_echo_n "checking for $ac_func... " >&6; }
  15579. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15580. $as_echo_n "(cached) " >&6
  15581. else
  15582. cat >conftest.$ac_ext <<_ACEOF
  15583. /* confdefs.h. */
  15584. _ACEOF
  15585. cat confdefs.h >>conftest.$ac_ext
  15586. cat >>conftest.$ac_ext <<_ACEOF
  15587. /* end confdefs.h. */
  15588. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15589. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15590. #define $ac_func innocuous_$ac_func
  15591. /* System header to define __stub macros and hopefully few prototypes,
  15592. which can conflict with char $ac_func (); below.
  15593. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15594. <limits.h> exists even on freestanding compilers. */
  15595. #ifdef __STDC__
  15596. # include <limits.h>
  15597. #else
  15598. # include <assert.h>
  15599. #endif
  15600. #undef $ac_func
  15601. /* Override any GCC internal prototype to avoid an error.
  15602. Use char because int might match the return type of a GCC
  15603. builtin and then its argument prototype would still apply. */
  15604. #ifdef __cplusplus
  15605. extern "C"
  15606. #endif
  15607. char $ac_func ();
  15608. /* The GNU C library defines this for functions which it implements
  15609. to always fail with ENOSYS. Some functions are actually named
  15610. something starting with __ and the normal name is an alias. */
  15611. #if defined __stub_$ac_func || defined __stub___$ac_func
  15612. choke me
  15613. #endif
  15614. int
  15615. main ()
  15616. {
  15617. return $ac_func ();
  15618. ;
  15619. return 0;
  15620. }
  15621. _ACEOF
  15622. rm -f conftest.$ac_objext conftest$ac_exeext
  15623. if { (ac_try="$ac_link"
  15624. case "(($ac_try" in
  15625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15626. *) ac_try_echo=$ac_try;;
  15627. esac
  15628. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15629. $as_echo "$ac_try_echo") >&5
  15630. (eval "$ac_link") 2>conftest.er1
  15631. ac_status=$?
  15632. grep -v '^ *+' conftest.er1 >conftest.err
  15633. rm -f conftest.er1
  15634. cat conftest.err >&5
  15635. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15636. (exit $ac_status); } && {
  15637. test -z "$ac_cxx_werror_flag" ||
  15638. test ! -s conftest.err
  15639. } && test -s conftest$ac_exeext && {
  15640. test "$cross_compiling" = yes ||
  15641. $as_test_x conftest$ac_exeext
  15642. }; then
  15643. eval "$as_ac_var=yes"
  15644. else
  15645. $as_echo "$as_me: failed program was:" >&5
  15646. sed 's/^/| /' conftest.$ac_ext >&5
  15647. eval "$as_ac_var=no"
  15648. fi
  15649. rm -rf conftest.dSYM
  15650. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15651. conftest$ac_exeext conftest.$ac_ext
  15652. fi
  15653. ac_res=`eval 'as_val=${'$as_ac_var'}
  15654. $as_echo "$as_val"'`
  15655. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15656. $as_echo "$ac_res" >&6; }
  15657. as_val=`eval 'as_val=${'$as_ac_var'}
  15658. $as_echo "$as_val"'`
  15659. if test "x$as_val" = x""yes; then
  15660. cat >>confdefs.h <<_ACEOF
  15661. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15662. _ACEOF
  15663. fi
  15664. done
  15665. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile"
  15666. cat >confcache <<\_ACEOF
  15667. # This file is a shell script that caches the results of configure
  15668. # tests run on this system so they can be shared between configure
  15669. # scripts and configure runs, see configure's option --config-cache.
  15670. # It is not useful on other systems. If it contains results you don't
  15671. # want to keep, you may remove or edit it.
  15672. #
  15673. # config.status only pays attention to the cache file if you give it
  15674. # the --recheck option to rerun configure.
  15675. #
  15676. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15677. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15678. # following values.
  15679. _ACEOF
  15680. # The following way of writing the cache mishandles newlines in values,
  15681. # but we know of no workaround that is simple, portable, and efficient.
  15682. # So, we kill variables containing newlines.
  15683. # Ultrix sh set writes to stderr and can't be redirected directly,
  15684. # and sets the high bit in the cache file unless we assign to the vars.
  15685. (
  15686. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15687. eval ac_val=\$$ac_var
  15688. case $ac_val in #(
  15689. *${as_nl}*)
  15690. case $ac_var in #(
  15691. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  15692. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15693. esac
  15694. case $ac_var in #(
  15695. _ | IFS | as_nl) ;; #(
  15696. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15697. *) $as_unset $ac_var ;;
  15698. esac ;;
  15699. esac
  15700. done
  15701. (set) 2>&1 |
  15702. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15703. *${as_nl}ac_space=\ *)
  15704. # `set' does not quote correctly, so add quotes (double-quote
  15705. # substitution turns \\\\ into \\, and sed turns \\ into \).
  15706. sed -n \
  15707. "s/'/'\\\\''/g;
  15708. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15709. ;; #(
  15710. *)
  15711. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15712. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15713. ;;
  15714. esac |
  15715. sort
  15716. ) |
  15717. sed '
  15718. /^ac_cv_env_/b end
  15719. t clear
  15720. :clear
  15721. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15722. t end
  15723. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15724. :end' >>confcache
  15725. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15726. if test -w "$cache_file"; then
  15727. test "x$cache_file" != "x/dev/null" &&
  15728. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  15729. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15730. cat confcache >$cache_file
  15731. else
  15732. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  15733. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15734. fi
  15735. fi
  15736. rm -f confcache
  15737. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15738. # Let make expand exec_prefix.
  15739. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15740. # Transform confdefs.h into DEFS.
  15741. # Protect against shell expansion while executing Makefile rules.
  15742. # Protect against Makefile macro expansion.
  15743. #
  15744. # If the first sed substitution is executed (which looks for macros that
  15745. # take arguments), then branch to the quote section. Otherwise,
  15746. # look for a macro that doesn't take arguments.
  15747. ac_script='
  15748. :mline
  15749. /\\$/{
  15750. N
  15751. s,\\\n,,
  15752. b mline
  15753. }
  15754. t clear
  15755. :clear
  15756. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  15757. t quote
  15758. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  15759. t quote
  15760. b any
  15761. :quote
  15762. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  15763. s/\[/\\&/g
  15764. s/\]/\\&/g
  15765. s/\$/$$/g
  15766. H
  15767. :any
  15768. ${
  15769. g
  15770. s/^\n//
  15771. s/\n/ /g
  15772. p
  15773. }
  15774. '
  15775. DEFS=`sed -n "$ac_script" confdefs.h`
  15776. ac_libobjs=
  15777. ac_ltlibobjs=
  15778. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15779. # 1. Remove the extension, and $U if already installed.
  15780. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15781. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15782. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15783. # will be set to the directory where LIBOBJS objects are built.
  15784. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15785. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  15786. done
  15787. LIBOBJS=$ac_libobjs
  15788. LTLIBOBJS=$ac_ltlibobjs
  15789. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15790. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  15791. Usually this means the macro was only invoked conditionally." >&5
  15792. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  15793. Usually this means the macro was only invoked conditionally." >&2;}
  15794. { (exit 1); exit 1; }; }
  15795. fi
  15796. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15797. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  15798. Usually this means the macro was only invoked conditionally." >&5
  15799. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  15800. Usually this means the macro was only invoked conditionally." >&2;}
  15801. { (exit 1); exit 1; }; }
  15802. fi
  15803. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15804. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  15805. Usually this means the macro was only invoked conditionally." >&5
  15806. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  15807. Usually this means the macro was only invoked conditionally." >&2;}
  15808. { (exit 1); exit 1; }; }
  15809. fi
  15810. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15811. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  15812. Usually this means the macro was only invoked conditionally." >&5
  15813. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  15814. Usually this means the macro was only invoked conditionally." >&2;}
  15815. { (exit 1); exit 1; }; }
  15816. fi
  15817. : ${CONFIG_STATUS=./config.status}
  15818. ac_write_fail=0
  15819. ac_clean_files_save=$ac_clean_files
  15820. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15821. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  15822. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15823. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15824. #! $SHELL
  15825. # Generated by $as_me.
  15826. # Run this file to recreate the current configuration.
  15827. # Compiler output produced by configure, useful for debugging
  15828. # configure, is in config.log if it exists.
  15829. debug=false
  15830. ac_cs_recheck=false
  15831. ac_cs_silent=false
  15832. SHELL=\${CONFIG_SHELL-$SHELL}
  15833. _ACEOF
  15834. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15835. ## --------------------- ##
  15836. ## M4sh Initialization. ##
  15837. ## --------------------- ##
  15838. # Be more Bourne compatible
  15839. DUALCASE=1; export DUALCASE # for MKS sh
  15840. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15841. emulate sh
  15842. NULLCMD=:
  15843. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15844. # is contrary to our usage. Disable this feature.
  15845. alias -g '${1+"$@"}'='"$@"'
  15846. setopt NO_GLOB_SUBST
  15847. else
  15848. case `(set -o) 2>/dev/null` in
  15849. *posix*) set -o posix ;;
  15850. esac
  15851. fi
  15852. # PATH needs CR
  15853. # Avoid depending upon Character Ranges.
  15854. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15855. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15856. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15857. as_cr_digits='0123456789'
  15858. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15859. as_nl='
  15860. '
  15861. export as_nl
  15862. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15863. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15864. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15865. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15866. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15867. as_echo='printf %s\n'
  15868. as_echo_n='printf %s'
  15869. else
  15870. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15871. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15872. as_echo_n='/usr/ucb/echo -n'
  15873. else
  15874. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15875. as_echo_n_body='eval
  15876. arg=$1;
  15877. case $arg in
  15878. *"$as_nl"*)
  15879. expr "X$arg" : "X\\(.*\\)$as_nl";
  15880. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15881. esac;
  15882. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15883. '
  15884. export as_echo_n_body
  15885. as_echo_n='sh -c $as_echo_n_body as_echo'
  15886. fi
  15887. export as_echo_body
  15888. as_echo='sh -c $as_echo_body as_echo'
  15889. fi
  15890. # The user is always right.
  15891. if test "${PATH_SEPARATOR+set}" != set; then
  15892. PATH_SEPARATOR=:
  15893. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15894. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15895. PATH_SEPARATOR=';'
  15896. }
  15897. fi
  15898. # Support unset when possible.
  15899. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  15900. as_unset=unset
  15901. else
  15902. as_unset=false
  15903. fi
  15904. # IFS
  15905. # We need space, tab and new line, in precisely that order. Quoting is
  15906. # there to prevent editors from complaining about space-tab.
  15907. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15908. # splitting by setting IFS to empty value.)
  15909. IFS=" "" $as_nl"
  15910. # Find who we are. Look in the path if we contain no directory separator.
  15911. case $0 in
  15912. *[\\/]* ) as_myself=$0 ;;
  15913. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15914. for as_dir in $PATH
  15915. do
  15916. IFS=$as_save_IFS
  15917. test -z "$as_dir" && as_dir=.
  15918. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15919. done
  15920. IFS=$as_save_IFS
  15921. ;;
  15922. esac
  15923. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15924. # in which case we are not to be found in the path.
  15925. if test "x$as_myself" = x; then
  15926. as_myself=$0
  15927. fi
  15928. if test ! -f "$as_myself"; then
  15929. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15930. { (exit 1); exit 1; }
  15931. fi
  15932. # Work around bugs in pre-3.0 UWIN ksh.
  15933. for as_var in ENV MAIL MAILPATH
  15934. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15935. done
  15936. PS1='$ '
  15937. PS2='> '
  15938. PS4='+ '
  15939. # NLS nuisances.
  15940. LC_ALL=C
  15941. export LC_ALL
  15942. LANGUAGE=C
  15943. export LANGUAGE
  15944. # Required to use basename.
  15945. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15946. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15947. as_expr=expr
  15948. else
  15949. as_expr=false
  15950. fi
  15951. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15952. as_basename=basename
  15953. else
  15954. as_basename=false
  15955. fi
  15956. # Name of the executable.
  15957. as_me=`$as_basename -- "$0" ||
  15958. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15959. X"$0" : 'X\(//\)$' \| \
  15960. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15961. $as_echo X/"$0" |
  15962. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15963. s//\1/
  15964. q
  15965. }
  15966. /^X\/\(\/\/\)$/{
  15967. s//\1/
  15968. q
  15969. }
  15970. /^X\/\(\/\).*/{
  15971. s//\1/
  15972. q
  15973. }
  15974. s/.*/./; q'`
  15975. # CDPATH.
  15976. $as_unset CDPATH
  15977. as_lineno_1=$LINENO
  15978. as_lineno_2=$LINENO
  15979. test "x$as_lineno_1" != "x$as_lineno_2" &&
  15980. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  15981. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  15982. # uniformly replaced by the line number. The first 'sed' inserts a
  15983. # line-number line after each line using $LINENO; the second 'sed'
  15984. # does the real work. The second script uses 'N' to pair each
  15985. # line-number line with the line containing $LINENO, and appends
  15986. # trailing '-' during substitution so that $LINENO is not a special
  15987. # case at line end.
  15988. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  15989. # scripts with optimization help from Paolo Bonzini. Blame Lee
  15990. # E. McMahon (1931-1989) for sed's syntax. :-)
  15991. sed -n '
  15992. p
  15993. /[$]LINENO/=
  15994. ' <$as_myself |
  15995. sed '
  15996. s/[$]LINENO.*/&-/
  15997. t lineno
  15998. b
  15999. :lineno
  16000. N
  16001. :loop
  16002. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  16003. t loop
  16004. s/-\n.*//
  16005. ' >$as_me.lineno &&
  16006. chmod +x "$as_me.lineno" ||
  16007. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  16008. { (exit 1); exit 1; }; }
  16009. # Don't try to exec as it changes $[0], causing all sort of problems
  16010. # (the dirname of $[0] is not the place where we might find the
  16011. # original and so on. Autoconf is especially sensitive to this).
  16012. . "./$as_me.lineno"
  16013. # Exit status is that of the last command.
  16014. exit
  16015. }
  16016. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16017. as_dirname=dirname
  16018. else
  16019. as_dirname=false
  16020. fi
  16021. ECHO_C= ECHO_N= ECHO_T=
  16022. case `echo -n x` in
  16023. -n*)
  16024. case `echo 'x\c'` in
  16025. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16026. *) ECHO_C='\c';;
  16027. esac;;
  16028. *)
  16029. ECHO_N='-n';;
  16030. esac
  16031. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16032. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16033. as_expr=expr
  16034. else
  16035. as_expr=false
  16036. fi
  16037. rm -f conf$$ conf$$.exe conf$$.file
  16038. if test -d conf$$.dir; then
  16039. rm -f conf$$.dir/conf$$.file
  16040. else
  16041. rm -f conf$$.dir
  16042. mkdir conf$$.dir 2>/dev/null
  16043. fi
  16044. if (echo >conf$$.file) 2>/dev/null; then
  16045. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16046. as_ln_s='ln -s'
  16047. # ... but there are two gotchas:
  16048. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16049. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16050. # In both cases, we have to default to `cp -p'.
  16051. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16052. as_ln_s='cp -p'
  16053. elif ln conf$$.file conf$$ 2>/dev/null; then
  16054. as_ln_s=ln
  16055. else
  16056. as_ln_s='cp -p'
  16057. fi
  16058. else
  16059. as_ln_s='cp -p'
  16060. fi
  16061. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16062. rmdir conf$$.dir 2>/dev/null
  16063. if mkdir -p . 2>/dev/null; then
  16064. as_mkdir_p=:
  16065. else
  16066. test -d ./-p && rmdir ./-p
  16067. as_mkdir_p=false
  16068. fi
  16069. if test -x / >/dev/null 2>&1; then
  16070. as_test_x='test -x'
  16071. else
  16072. if ls -dL / >/dev/null 2>&1; then
  16073. as_ls_L_option=L
  16074. else
  16075. as_ls_L_option=
  16076. fi
  16077. as_test_x='
  16078. eval sh -c '\''
  16079. if test -d "$1"; then
  16080. test -d "$1/.";
  16081. else
  16082. case $1 in
  16083. -*)set "./$1";;
  16084. esac;
  16085. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  16086. ???[sx]*):;;*)false;;esac;fi
  16087. '\'' sh
  16088. '
  16089. fi
  16090. as_executable_p=$as_test_x
  16091. # Sed expression to map a string onto a valid CPP name.
  16092. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16093. # Sed expression to map a string onto a valid variable name.
  16094. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16095. exec 6>&1
  16096. # Save the log message, to keep $[0] and so on meaningful, and to
  16097. # report actual input values of CONFIG_FILES etc. instead of their
  16098. # values after options handling.
  16099. ac_log="
  16100. This file was extended by vcmi $as_me VERSION, which was
  16101. generated by GNU Autoconf 2.63. Invocation command line was
  16102. CONFIG_FILES = $CONFIG_FILES
  16103. CONFIG_HEADERS = $CONFIG_HEADERS
  16104. CONFIG_LINKS = $CONFIG_LINKS
  16105. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16106. $ $0 $@
  16107. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16108. "
  16109. _ACEOF
  16110. case $ac_config_files in *"
  16111. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16112. esac
  16113. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16114. # Files that config.status was made for.
  16115. config_files="$ac_config_files"
  16116. config_commands="$ac_config_commands"
  16117. _ACEOF
  16118. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16119. ac_cs_usage="\
  16120. \`$as_me' instantiates files from templates according to the
  16121. current configuration.
  16122. Usage: $0 [OPTION]... [FILE]...
  16123. -h, --help print this help, then exit
  16124. -V, --version print version number and configuration settings, then exit
  16125. -q, --quiet, --silent
  16126. do not print progress messages
  16127. -d, --debug don't remove temporary files
  16128. --recheck update $as_me by reconfiguring in the same conditions
  16129. --file=FILE[:TEMPLATE]
  16130. instantiate the configuration file FILE
  16131. Configuration files:
  16132. $config_files
  16133. Configuration commands:
  16134. $config_commands
  16135. Report bugs to <[email protected]>."
  16136. _ACEOF
  16137. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16138. ac_cs_version="\\
  16139. vcmi config.status VERSION
  16140. configured by $0, generated by GNU Autoconf 2.63,
  16141. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  16142. Copyright (C) 2008 Free Software Foundation, Inc.
  16143. This config.status script is free software; the Free Software Foundation
  16144. gives unlimited permission to copy, distribute and modify it."
  16145. ac_pwd='$ac_pwd'
  16146. srcdir='$srcdir'
  16147. INSTALL='$INSTALL'
  16148. MKDIR_P='$MKDIR_P'
  16149. AWK='$AWK'
  16150. test -n "\$AWK" || AWK=awk
  16151. _ACEOF
  16152. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16153. # The default lists apply if the user does not specify any file.
  16154. ac_need_defaults=:
  16155. while test $# != 0
  16156. do
  16157. case $1 in
  16158. --*=*)
  16159. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16160. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16161. ac_shift=:
  16162. ;;
  16163. *)
  16164. ac_option=$1
  16165. ac_optarg=$2
  16166. ac_shift=shift
  16167. ;;
  16168. esac
  16169. case $ac_option in
  16170. # Handling of the options.
  16171. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16172. ac_cs_recheck=: ;;
  16173. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16174. $as_echo "$ac_cs_version"; exit ;;
  16175. --debug | --debu | --deb | --de | --d | -d )
  16176. debug=: ;;
  16177. --file | --fil | --fi | --f )
  16178. $ac_shift
  16179. case $ac_optarg in
  16180. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16181. esac
  16182. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  16183. ac_need_defaults=false;;
  16184. --he | --h | --help | --hel | -h )
  16185. $as_echo "$ac_cs_usage"; exit ;;
  16186. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16187. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16188. ac_cs_silent=: ;;
  16189. # This is an error.
  16190. -*) { $as_echo "$as_me: error: unrecognized option: $1
  16191. Try \`$0 --help' for more information." >&2
  16192. { (exit 1); exit 1; }; } ;;
  16193. *) ac_config_targets="$ac_config_targets $1"
  16194. ac_need_defaults=false ;;
  16195. esac
  16196. shift
  16197. done
  16198. ac_configure_extra_args=
  16199. if $ac_cs_silent; then
  16200. exec 6>/dev/null
  16201. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16202. fi
  16203. _ACEOF
  16204. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16205. if \$ac_cs_recheck; then
  16206. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16207. shift
  16208. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16209. CONFIG_SHELL='$SHELL'
  16210. export CONFIG_SHELL
  16211. exec "\$@"
  16212. fi
  16213. _ACEOF
  16214. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16215. exec 5>>config.log
  16216. {
  16217. echo
  16218. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16219. ## Running $as_me. ##
  16220. _ASBOX
  16221. $as_echo "$ac_log"
  16222. } >&5
  16223. _ACEOF
  16224. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16225. #
  16226. # INIT-COMMANDS
  16227. #
  16228. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16229. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16230. # if CDPATH is set.
  16231. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16232. sed_quote_subst='$sed_quote_subst'
  16233. double_quote_subst='$double_quote_subst'
  16234. delay_variable_subst='$delay_variable_subst'
  16235. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  16236. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  16237. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  16238. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  16239. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  16240. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  16241. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  16242. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  16243. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  16244. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  16245. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  16246. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  16247. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  16248. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  16249. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  16250. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  16251. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  16252. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  16253. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  16254. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  16255. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  16256. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  16257. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  16258. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  16259. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  16260. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  16261. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16262. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16263. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  16264. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  16265. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  16266. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  16267. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  16268. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  16269. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  16270. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16271. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16272. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16273. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  16274. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  16275. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  16276. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  16277. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  16278. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  16279. 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"`'
  16280. 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"`'
  16281. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  16282. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  16283. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  16284. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  16285. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16286. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  16287. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  16288. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  16289. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  16290. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  16291. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  16292. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  16293. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  16294. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  16295. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  16296. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  16297. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16298. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16299. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  16300. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  16301. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16302. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16303. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  16304. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16305. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16306. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16307. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16308. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16309. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16310. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  16311. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16312. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16313. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16314. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  16315. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  16316. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  16317. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  16318. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  16319. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16320. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  16321. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  16322. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  16323. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  16324. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  16325. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16326. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  16327. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  16328. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16329. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16330. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  16331. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  16332. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  16333. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  16334. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16335. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16336. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  16337. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16338. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16339. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16340. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16341. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16342. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16343. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  16344. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  16345. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16346. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16347. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  16348. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  16349. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  16350. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  16351. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  16352. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  16353. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  16354. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  16355. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  16356. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  16357. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  16358. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  16359. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16360. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16361. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16362. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16363. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16364. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16365. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16366. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16367. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16368. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16369. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16370. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16371. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16372. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16373. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16374. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16375. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16376. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16377. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16378. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16379. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16380. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16381. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16382. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16383. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16384. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16385. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16386. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16387. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16388. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16389. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16390. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16391. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16392. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16393. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16394. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16395. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16396. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16397. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16398. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16399. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16400. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16401. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16402. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16403. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16404. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16405. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16406. LTCC='$LTCC'
  16407. LTCFLAGS='$LTCFLAGS'
  16408. compiler='$compiler_DEFAULT'
  16409. # Quote evaled strings.
  16410. for var in SED \
  16411. GREP \
  16412. EGREP \
  16413. FGREP \
  16414. LD \
  16415. NM \
  16416. LN_S \
  16417. lt_SP2NL \
  16418. lt_NL2SP \
  16419. reload_flag \
  16420. OBJDUMP \
  16421. deplibs_check_method \
  16422. file_magic_cmd \
  16423. AR \
  16424. AR_FLAGS \
  16425. STRIP \
  16426. RANLIB \
  16427. CC \
  16428. CFLAGS \
  16429. compiler \
  16430. lt_cv_sys_global_symbol_pipe \
  16431. lt_cv_sys_global_symbol_to_cdecl \
  16432. lt_cv_sys_global_symbol_to_c_name_address \
  16433. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16434. SHELL \
  16435. ECHO \
  16436. lt_prog_compiler_no_builtin_flag \
  16437. lt_prog_compiler_wl \
  16438. lt_prog_compiler_pic \
  16439. lt_prog_compiler_static \
  16440. lt_cv_prog_compiler_c_o \
  16441. need_locks \
  16442. DSYMUTIL \
  16443. NMEDIT \
  16444. LIPO \
  16445. OTOOL \
  16446. OTOOL64 \
  16447. shrext_cmds \
  16448. export_dynamic_flag_spec \
  16449. whole_archive_flag_spec \
  16450. compiler_needs_object \
  16451. with_gnu_ld \
  16452. allow_undefined_flag \
  16453. no_undefined_flag \
  16454. hardcode_libdir_flag_spec \
  16455. hardcode_libdir_flag_spec_ld \
  16456. hardcode_libdir_separator \
  16457. fix_srcfile_path \
  16458. exclude_expsyms \
  16459. include_expsyms \
  16460. file_list_spec \
  16461. variables_saved_for_relink \
  16462. libname_spec \
  16463. library_names_spec \
  16464. soname_spec \
  16465. finish_eval \
  16466. old_striplib \
  16467. striplib \
  16468. compiler_lib_search_dirs \
  16469. predep_objects \
  16470. postdep_objects \
  16471. predeps \
  16472. postdeps \
  16473. compiler_lib_search_path \
  16474. LD_CXX \
  16475. compiler_CXX \
  16476. lt_prog_compiler_no_builtin_flag_CXX \
  16477. lt_prog_compiler_wl_CXX \
  16478. lt_prog_compiler_pic_CXX \
  16479. lt_prog_compiler_static_CXX \
  16480. lt_cv_prog_compiler_c_o_CXX \
  16481. export_dynamic_flag_spec_CXX \
  16482. whole_archive_flag_spec_CXX \
  16483. compiler_needs_object_CXX \
  16484. with_gnu_ld_CXX \
  16485. allow_undefined_flag_CXX \
  16486. no_undefined_flag_CXX \
  16487. hardcode_libdir_flag_spec_CXX \
  16488. hardcode_libdir_flag_spec_ld_CXX \
  16489. hardcode_libdir_separator_CXX \
  16490. fix_srcfile_path_CXX \
  16491. exclude_expsyms_CXX \
  16492. include_expsyms_CXX \
  16493. file_list_spec_CXX \
  16494. compiler_lib_search_dirs_CXX \
  16495. predep_objects_CXX \
  16496. postdep_objects_CXX \
  16497. predeps_CXX \
  16498. postdeps_CXX \
  16499. compiler_lib_search_path_CXX; do
  16500. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  16501. *[\\\\\\\`\\"\\\$]*)
  16502. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16503. ;;
  16504. *)
  16505. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16506. ;;
  16507. esac
  16508. done
  16509. # Double-quote double-evaled strings.
  16510. for var in reload_cmds \
  16511. old_postinstall_cmds \
  16512. old_postuninstall_cmds \
  16513. old_archive_cmds \
  16514. extract_expsyms_cmds \
  16515. old_archive_from_new_cmds \
  16516. old_archive_from_expsyms_cmds \
  16517. archive_cmds \
  16518. archive_expsym_cmds \
  16519. module_cmds \
  16520. module_expsym_cmds \
  16521. export_symbols_cmds \
  16522. prelink_cmds \
  16523. postinstall_cmds \
  16524. postuninstall_cmds \
  16525. finish_cmds \
  16526. sys_lib_search_path_spec \
  16527. sys_lib_dlsearch_path_spec \
  16528. old_archive_cmds_CXX \
  16529. old_archive_from_new_cmds_CXX \
  16530. old_archive_from_expsyms_cmds_CXX \
  16531. archive_cmds_CXX \
  16532. archive_expsym_cmds_CXX \
  16533. module_cmds_CXX \
  16534. module_expsym_cmds_CXX \
  16535. export_symbols_cmds_CXX \
  16536. prelink_cmds_CXX; do
  16537. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  16538. *[\\\\\\\`\\"\\\$]*)
  16539. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16540. ;;
  16541. *)
  16542. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16543. ;;
  16544. esac
  16545. done
  16546. # Fix-up fallback echo if it was mangled by the above quoting rules.
  16547. case \$lt_ECHO in
  16548. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  16549. ;;
  16550. esac
  16551. ac_aux_dir='$ac_aux_dir'
  16552. xsi_shell='$xsi_shell'
  16553. lt_shell_append='$lt_shell_append'
  16554. # See if we are running on zsh, and set the options which allow our
  16555. # commands through without removal of \ escapes INIT.
  16556. if test -n "\${ZSH_VERSION+set}" ; then
  16557. setopt NO_GLOB_SUBST
  16558. fi
  16559. PACKAGE='$PACKAGE'
  16560. VERSION='$VERSION'
  16561. TIMESTAMP='$TIMESTAMP'
  16562. RM='$RM'
  16563. ofile='$ofile'
  16564. _ACEOF
  16565. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16566. # Handling of arguments.
  16567. for ac_config_target in $ac_config_targets
  16568. do
  16569. case $ac_config_target in
  16570. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16571. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16572. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16573. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  16574. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  16575. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  16576. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  16577. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  16578. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  16579. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  16580. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  16581. { (exit 1); exit 1; }; };;
  16582. esac
  16583. done
  16584. # If the user did not use the arguments to specify the items to instantiate,
  16585. # then the envvar interface is used. Set only those that are not.
  16586. # We use the long form for the default assignment because of an extremely
  16587. # bizarre bug on SunOS 4.1.3.
  16588. if $ac_need_defaults; then
  16589. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16590. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16591. fi
  16592. # Have a temporary directory for convenience. Make it in the build tree
  16593. # simply because there is no reason against having it here, and in addition,
  16594. # creating and moving files from /tmp can sometimes cause problems.
  16595. # Hook for its removal unless debugging.
  16596. # Note that there is a small window in which the directory will not be cleaned:
  16597. # after its creation but before its name has been assigned to `$tmp'.
  16598. $debug ||
  16599. {
  16600. tmp=
  16601. trap 'exit_status=$?
  16602. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  16603. ' 0
  16604. trap '{ (exit 1); exit 1; }' 1 2 13 15
  16605. }
  16606. # Create a (secure) tmp directory for tmp files.
  16607. {
  16608. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16609. test -n "$tmp" && test -d "$tmp"
  16610. } ||
  16611. {
  16612. tmp=./conf$$-$RANDOM
  16613. (umask 077 && mkdir "$tmp")
  16614. } ||
  16615. {
  16616. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  16617. { (exit 1); exit 1; }
  16618. }
  16619. # Set up the scripts for CONFIG_FILES section.
  16620. # No need to generate them if there are no CONFIG_FILES.
  16621. # This happens for instance with `./config.status config.h'.
  16622. if test -n "$CONFIG_FILES"; then
  16623. ac_cr=' '
  16624. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16625. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16626. ac_cs_awk_cr='\\r'
  16627. else
  16628. ac_cs_awk_cr=$ac_cr
  16629. fi
  16630. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  16631. _ACEOF
  16632. {
  16633. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16634. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16635. echo "_ACEOF"
  16636. } >conf$$subs.sh ||
  16637. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16638. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16639. { (exit 1); exit 1; }; }
  16640. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  16641. ac_delim='%!_!# '
  16642. for ac_last_try in false false false false false :; do
  16643. . ./conf$$subs.sh ||
  16644. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16645. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16646. { (exit 1); exit 1; }; }
  16647. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16648. if test $ac_delim_n = $ac_delim_num; then
  16649. break
  16650. elif $ac_last_try; then
  16651. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16652. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16653. { (exit 1); exit 1; }; }
  16654. else
  16655. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16656. fi
  16657. done
  16658. rm -f conf$$subs.sh
  16659. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16660. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  16661. _ACEOF
  16662. sed -n '
  16663. h
  16664. s/^/S["/; s/!.*/"]=/
  16665. p
  16666. g
  16667. s/^[^!]*!//
  16668. :repl
  16669. t repl
  16670. s/'"$ac_delim"'$//
  16671. t delim
  16672. :nl
  16673. h
  16674. s/\(.\{148\}\).*/\1/
  16675. t more1
  16676. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16677. p
  16678. n
  16679. b repl
  16680. :more1
  16681. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16682. p
  16683. g
  16684. s/.\{148\}//
  16685. t nl
  16686. :delim
  16687. h
  16688. s/\(.\{148\}\).*/\1/
  16689. t more2
  16690. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16691. p
  16692. b
  16693. :more2
  16694. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16695. p
  16696. g
  16697. s/.\{148\}//
  16698. t delim
  16699. ' <conf$$subs.awk | sed '
  16700. /^[^""]/{
  16701. N
  16702. s/\n//
  16703. }
  16704. ' >>$CONFIG_STATUS || ac_write_fail=1
  16705. rm -f conf$$subs.awk
  16706. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16707. _ACAWK
  16708. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  16709. for (key in S) S_is_set[key] = 1
  16710. FS = ""
  16711. }
  16712. {
  16713. line = $ 0
  16714. nfields = split(line, field, "@")
  16715. substed = 0
  16716. len = length(field[1])
  16717. for (i = 2; i < nfields; i++) {
  16718. key = field[i]
  16719. keylen = length(key)
  16720. if (S_is_set[key]) {
  16721. value = S[key]
  16722. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16723. len += length(value) + length(field[++i])
  16724. substed = 1
  16725. } else
  16726. len += 1 + keylen
  16727. }
  16728. print line
  16729. }
  16730. _ACAWK
  16731. _ACEOF
  16732. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16733. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16734. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16735. else
  16736. cat
  16737. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  16738. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  16739. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  16740. { (exit 1); exit 1; }; }
  16741. _ACEOF
  16742. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  16743. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  16744. # trailing colons and then remove the whole line if VPATH becomes empty
  16745. # (actually we leave an empty line to preserve line numbers).
  16746. if test "x$srcdir" = x.; then
  16747. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  16748. s/:*\$(srcdir):*/:/
  16749. s/:*\${srcdir}:*/:/
  16750. s/:*@srcdir@:*/:/
  16751. s/^\([^=]*=[ ]*\):*/\1/
  16752. s/:*$//
  16753. s/^[^=]*=[ ]*$//
  16754. }'
  16755. fi
  16756. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16757. fi # test -n "$CONFIG_FILES"
  16758. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  16759. shift
  16760. for ac_tag
  16761. do
  16762. case $ac_tag in
  16763. :[FHLC]) ac_mode=$ac_tag; continue;;
  16764. esac
  16765. case $ac_mode$ac_tag in
  16766. :[FHL]*:*);;
  16767. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  16768. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  16769. { (exit 1); exit 1; }; };;
  16770. :[FH]-) ac_tag=-:-;;
  16771. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16772. esac
  16773. ac_save_IFS=$IFS
  16774. IFS=:
  16775. set x $ac_tag
  16776. IFS=$ac_save_IFS
  16777. shift
  16778. ac_file=$1
  16779. shift
  16780. case $ac_mode in
  16781. :L) ac_source=$1;;
  16782. :[FH])
  16783. ac_file_inputs=
  16784. for ac_f
  16785. do
  16786. case $ac_f in
  16787. -) ac_f="$tmp/stdin";;
  16788. *) # Look for the file first in the build tree, then in the source tree
  16789. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16790. # because $ac_f cannot contain `:'.
  16791. test -f "$ac_f" ||
  16792. case $ac_f in
  16793. [\\/$]*) false;;
  16794. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16795. esac ||
  16796. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  16797. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  16798. { (exit 1); exit 1; }; };;
  16799. esac
  16800. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16801. ac_file_inputs="$ac_file_inputs '$ac_f'"
  16802. done
  16803. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16804. # use $as_me), people would be surprised to read:
  16805. # /* config.h. Generated by config.status. */
  16806. configure_input='Generated from '`
  16807. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16808. `' by configure.'
  16809. if test x"$ac_file" != x-; then
  16810. configure_input="$ac_file. $configure_input"
  16811. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  16812. $as_echo "$as_me: creating $ac_file" >&6;}
  16813. fi
  16814. # Neutralize special characters interpreted by sed in replacement strings.
  16815. case $configure_input in #(
  16816. *\&* | *\|* | *\\* )
  16817. ac_sed_conf_input=`$as_echo "$configure_input" |
  16818. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16819. *) ac_sed_conf_input=$configure_input;;
  16820. esac
  16821. case $ac_tag in
  16822. *:-:* | *:-) cat >"$tmp/stdin" \
  16823. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  16824. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  16825. { (exit 1); exit 1; }; } ;;
  16826. esac
  16827. ;;
  16828. esac
  16829. ac_dir=`$as_dirname -- "$ac_file" ||
  16830. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16831. X"$ac_file" : 'X\(//\)[^/]' \| \
  16832. X"$ac_file" : 'X\(//\)$' \| \
  16833. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16834. $as_echo X"$ac_file" |
  16835. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16836. s//\1/
  16837. q
  16838. }
  16839. /^X\(\/\/\)[^/].*/{
  16840. s//\1/
  16841. q
  16842. }
  16843. /^X\(\/\/\)$/{
  16844. s//\1/
  16845. q
  16846. }
  16847. /^X\(\/\).*/{
  16848. s//\1/
  16849. q
  16850. }
  16851. s/.*/./; q'`
  16852. { as_dir="$ac_dir"
  16853. case $as_dir in #(
  16854. -*) as_dir=./$as_dir;;
  16855. esac
  16856. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  16857. as_dirs=
  16858. while :; do
  16859. case $as_dir in #(
  16860. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16861. *) as_qdir=$as_dir;;
  16862. esac
  16863. as_dirs="'$as_qdir' $as_dirs"
  16864. as_dir=`$as_dirname -- "$as_dir" ||
  16865. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16866. X"$as_dir" : 'X\(//\)[^/]' \| \
  16867. X"$as_dir" : 'X\(//\)$' \| \
  16868. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16869. $as_echo X"$as_dir" |
  16870. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16871. s//\1/
  16872. q
  16873. }
  16874. /^X\(\/\/\)[^/].*/{
  16875. s//\1/
  16876. q
  16877. }
  16878. /^X\(\/\/\)$/{
  16879. s//\1/
  16880. q
  16881. }
  16882. /^X\(\/\).*/{
  16883. s//\1/
  16884. q
  16885. }
  16886. s/.*/./; q'`
  16887. test -d "$as_dir" && break
  16888. done
  16889. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16890. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  16891. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  16892. { (exit 1); exit 1; }; }; }
  16893. ac_builddir=.
  16894. case "$ac_dir" in
  16895. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16896. *)
  16897. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16898. # A ".." for each directory in $ac_dir_suffix.
  16899. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16900. case $ac_top_builddir_sub in
  16901. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16902. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16903. esac ;;
  16904. esac
  16905. ac_abs_top_builddir=$ac_pwd
  16906. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16907. # for backward compatibility:
  16908. ac_top_builddir=$ac_top_build_prefix
  16909. case $srcdir in
  16910. .) # We are building in place.
  16911. ac_srcdir=.
  16912. ac_top_srcdir=$ac_top_builddir_sub
  16913. ac_abs_top_srcdir=$ac_pwd ;;
  16914. [\\/]* | ?:[\\/]* ) # Absolute name.
  16915. ac_srcdir=$srcdir$ac_dir_suffix;
  16916. ac_top_srcdir=$srcdir
  16917. ac_abs_top_srcdir=$srcdir ;;
  16918. *) # Relative name.
  16919. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16920. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16921. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16922. esac
  16923. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16924. case $ac_mode in
  16925. :F)
  16926. #
  16927. # CONFIG_FILE
  16928. #
  16929. case $INSTALL in
  16930. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16931. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16932. esac
  16933. ac_MKDIR_P=$MKDIR_P
  16934. case $MKDIR_P in
  16935. [\\/$]* | ?:[\\/]* ) ;;
  16936. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16937. esac
  16938. _ACEOF
  16939. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16940. # If the template does not know about datarootdir, expand it.
  16941. # FIXME: This hack should be removed a few years after 2.60.
  16942. ac_datarootdir_hack=; ac_datarootdir_seen=
  16943. ac_sed_dataroot='
  16944. /datarootdir/ {
  16945. p
  16946. q
  16947. }
  16948. /@datadir@/p
  16949. /@docdir@/p
  16950. /@infodir@/p
  16951. /@localedir@/p
  16952. /@mandir@/p
  16953. '
  16954. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16955. *datarootdir*) ac_datarootdir_seen=yes;;
  16956. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16957. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16958. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16959. _ACEOF
  16960. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16961. ac_datarootdir_hack='
  16962. s&@datadir@&$datadir&g
  16963. s&@docdir@&$docdir&g
  16964. s&@infodir@&$infodir&g
  16965. s&@localedir@&$localedir&g
  16966. s&@mandir@&$mandir&g
  16967. s&\\\${datarootdir}&$datarootdir&g' ;;
  16968. esac
  16969. _ACEOF
  16970. # Neutralize VPATH when `$srcdir' = `.'.
  16971. # Shell code in configure.ac might set extrasub.
  16972. # FIXME: do we really want to maintain this feature?
  16973. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16974. ac_sed_extra="$ac_vpsub
  16975. $extrasub
  16976. _ACEOF
  16977. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16978. :t
  16979. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16980. s|@configure_input@|$ac_sed_conf_input|;t t
  16981. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16982. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16983. s&@srcdir@&$ac_srcdir&;t t
  16984. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16985. s&@top_srcdir@&$ac_top_srcdir&;t t
  16986. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16987. s&@builddir@&$ac_builddir&;t t
  16988. s&@abs_builddir@&$ac_abs_builddir&;t t
  16989. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16990. s&@INSTALL@&$ac_INSTALL&;t t
  16991. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16992. $ac_datarootdir_hack
  16993. "
  16994. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  16995. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  16996. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  16997. { (exit 1); exit 1; }; }
  16998. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16999. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  17000. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  17001. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17002. which seems to be undefined. Please make sure it is defined." >&5
  17003. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17004. which seems to be undefined. Please make sure it is defined." >&2;}
  17005. rm -f "$tmp/stdin"
  17006. case $ac_file in
  17007. -) cat "$tmp/out" && rm -f "$tmp/out";;
  17008. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  17009. esac \
  17010. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  17011. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  17012. { (exit 1); exit 1; }; }
  17013. ;;
  17014. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  17015. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17016. ;;
  17017. esac
  17018. case $ac_file$ac_mode in
  17019. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17020. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  17021. # are listed without --file. Let's play safe and only enable the eval
  17022. # if we detect the quoting.
  17023. case $CONFIG_FILES in
  17024. *\'*) eval set x "$CONFIG_FILES" ;;
  17025. *) set x $CONFIG_FILES ;;
  17026. esac
  17027. shift
  17028. for mf
  17029. do
  17030. # Strip MF so we end up with the name of the file.
  17031. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17032. # Check whether this is an Automake generated Makefile or not.
  17033. # We used to match only the files named `Makefile.in', but
  17034. # some people rename them; so instead we look at the file content.
  17035. # Grep'ing the first line is not enough: some people post-process
  17036. # each Makefile.in and add a new line on top of each file to say so.
  17037. # Grep'ing the whole file is not good either: AIX grep has a line
  17038. # limit of 2048, but all sed's we know have understand at least 4000.
  17039. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  17040. dirpart=`$as_dirname -- "$mf" ||
  17041. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17042. X"$mf" : 'X\(//\)[^/]' \| \
  17043. X"$mf" : 'X\(//\)$' \| \
  17044. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17045. $as_echo X"$mf" |
  17046. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17047. s//\1/
  17048. q
  17049. }
  17050. /^X\(\/\/\)[^/].*/{
  17051. s//\1/
  17052. q
  17053. }
  17054. /^X\(\/\/\)$/{
  17055. s//\1/
  17056. q
  17057. }
  17058. /^X\(\/\).*/{
  17059. s//\1/
  17060. q
  17061. }
  17062. s/.*/./; q'`
  17063. else
  17064. continue
  17065. fi
  17066. # Extract the definition of DEPDIR, am__include, and am__quote
  17067. # from the Makefile without running `make'.
  17068. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17069. test -z "$DEPDIR" && continue
  17070. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17071. test -z "am__include" && continue
  17072. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17073. # When using ansi2knr, U may be empty or an underscore; expand it
  17074. U=`sed -n 's/^U = //p' < "$mf"`
  17075. # Find all dependency output files, they are included files with
  17076. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17077. # simplest approach to changing $(DEPDIR) to its actual value in the
  17078. # expansion.
  17079. for file in `sed -n "
  17080. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17081. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  17082. # Make sure the directory exists.
  17083. test -f "$dirpart/$file" && continue
  17084. fdir=`$as_dirname -- "$file" ||
  17085. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17086. X"$file" : 'X\(//\)[^/]' \| \
  17087. X"$file" : 'X\(//\)$' \| \
  17088. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17089. $as_echo X"$file" |
  17090. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17091. s//\1/
  17092. q
  17093. }
  17094. /^X\(\/\/\)[^/].*/{
  17095. s//\1/
  17096. q
  17097. }
  17098. /^X\(\/\/\)$/{
  17099. s//\1/
  17100. q
  17101. }
  17102. /^X\(\/\).*/{
  17103. s//\1/
  17104. q
  17105. }
  17106. s/.*/./; q'`
  17107. { as_dir=$dirpart/$fdir
  17108. case $as_dir in #(
  17109. -*) as_dir=./$as_dir;;
  17110. esac
  17111. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  17112. as_dirs=
  17113. while :; do
  17114. case $as_dir in #(
  17115. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17116. *) as_qdir=$as_dir;;
  17117. esac
  17118. as_dirs="'$as_qdir' $as_dirs"
  17119. as_dir=`$as_dirname -- "$as_dir" ||
  17120. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17121. X"$as_dir" : 'X\(//\)[^/]' \| \
  17122. X"$as_dir" : 'X\(//\)$' \| \
  17123. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17124. $as_echo X"$as_dir" |
  17125. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17126. s//\1/
  17127. q
  17128. }
  17129. /^X\(\/\/\)[^/].*/{
  17130. s//\1/
  17131. q
  17132. }
  17133. /^X\(\/\/\)$/{
  17134. s//\1/
  17135. q
  17136. }
  17137. /^X\(\/\).*/{
  17138. s//\1/
  17139. q
  17140. }
  17141. s/.*/./; q'`
  17142. test -d "$as_dir" && break
  17143. done
  17144. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17145. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  17146. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  17147. { (exit 1); exit 1; }; }; }
  17148. # echo "creating $dirpart/$file"
  17149. echo '# dummy' > "$dirpart/$file"
  17150. done
  17151. done
  17152. }
  17153. ;;
  17154. "libtool":C)
  17155. # See if we are running on zsh, and set the options which allow our
  17156. # commands through without removal of \ escapes.
  17157. if test -n "${ZSH_VERSION+set}" ; then
  17158. setopt NO_GLOB_SUBST
  17159. fi
  17160. cfgfile="${ofile}T"
  17161. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17162. $RM "$cfgfile"
  17163. cat <<_LT_EOF >> "$cfgfile"
  17164. #! $SHELL
  17165. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  17166. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  17167. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17168. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17169. #
  17170. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  17171. # 2006, 2007, 2008 Free Software Foundation, Inc.
  17172. # Written by Gordon Matzigkeit, 1996
  17173. #
  17174. # This file is part of GNU Libtool.
  17175. #
  17176. # GNU Libtool is free software; you can redistribute it and/or
  17177. # modify it under the terms of the GNU General Public License as
  17178. # published by the Free Software Foundation; either version 2 of
  17179. # the License, or (at your option) any later version.
  17180. #
  17181. # As a special exception to the GNU General Public License,
  17182. # if you distribute this file as part of a program or library that
  17183. # is built using GNU Libtool, you may include this file under the
  17184. # same distribution terms that you use for the rest of that program.
  17185. #
  17186. # GNU Libtool is distributed in the hope that it will be useful,
  17187. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17188. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17189. # GNU General Public License for more details.
  17190. #
  17191. # You should have received a copy of the GNU General Public License
  17192. # along with GNU Libtool; see the file COPYING. If not, a copy
  17193. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  17194. # obtained by writing to the Free Software Foundation, Inc.,
  17195. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17196. # The names of the tagged configurations supported by this script.
  17197. available_tags="CXX "
  17198. # ### BEGIN LIBTOOL CONFIG
  17199. # Whether or not to build shared libraries.
  17200. build_libtool_libs=$enable_shared
  17201. # Whether or not to build static libraries.
  17202. build_old_libs=$enable_static
  17203. # Which release of libtool.m4 was used?
  17204. macro_version=$macro_version
  17205. macro_revision=$macro_revision
  17206. # What type of objects to build.
  17207. pic_mode=$pic_mode
  17208. # Whether or not to optimize for fast installation.
  17209. fast_install=$enable_fast_install
  17210. # The host system.
  17211. host_alias=$host_alias
  17212. host=$host
  17213. host_os=$host_os
  17214. # The build system.
  17215. build_alias=$build_alias
  17216. build=$build
  17217. build_os=$build_os
  17218. # A sed program that does not truncate output.
  17219. SED=$lt_SED
  17220. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17221. Xsed="\$SED -e 1s/^X//"
  17222. # A grep program that handles long lines.
  17223. GREP=$lt_GREP
  17224. # An ERE matcher.
  17225. EGREP=$lt_EGREP
  17226. # A literal string matcher.
  17227. FGREP=$lt_FGREP
  17228. # A BSD- or MS-compatible name lister.
  17229. NM=$lt_NM
  17230. # Whether we need soft or hard links.
  17231. LN_S=$lt_LN_S
  17232. # What is the maximum length of a command?
  17233. max_cmd_len=$max_cmd_len
  17234. # Object file suffix (normally "o").
  17235. objext=$ac_objext
  17236. # Executable file suffix (normally "").
  17237. exeext=$exeext
  17238. # whether the shell understands "unset".
  17239. lt_unset=$lt_unset
  17240. # turn spaces into newlines.
  17241. SP2NL=$lt_lt_SP2NL
  17242. # turn newlines into spaces.
  17243. NL2SP=$lt_lt_NL2SP
  17244. # How to create reloadable object files.
  17245. reload_flag=$lt_reload_flag
  17246. reload_cmds=$lt_reload_cmds
  17247. # An object symbol dumper.
  17248. OBJDUMP=$lt_OBJDUMP
  17249. # Method to check whether dependent libraries are shared objects.
  17250. deplibs_check_method=$lt_deplibs_check_method
  17251. # Command to use when deplibs_check_method == "file_magic".
  17252. file_magic_cmd=$lt_file_magic_cmd
  17253. # The archiver.
  17254. AR=$lt_AR
  17255. AR_FLAGS=$lt_AR_FLAGS
  17256. # A symbol stripping program.
  17257. STRIP=$lt_STRIP
  17258. # Commands used to install an old-style archive.
  17259. RANLIB=$lt_RANLIB
  17260. old_postinstall_cmds=$lt_old_postinstall_cmds
  17261. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17262. # A C compiler.
  17263. LTCC=$lt_CC
  17264. # LTCC compiler flags.
  17265. LTCFLAGS=$lt_CFLAGS
  17266. # Take the output of nm and produce a listing of raw symbols and C names.
  17267. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17268. # Transform the output of nm in a proper C declaration.
  17269. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17270. # Transform the output of nm in a C name address pair.
  17271. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17272. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17273. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17274. # The name of the directory that contains temporary libtool files.
  17275. objdir=$objdir
  17276. # Shell to use when invoking shell scripts.
  17277. SHELL=$lt_SHELL
  17278. # An echo program that does not interpret backslashes.
  17279. ECHO=$lt_ECHO
  17280. # Used to examine libraries when file_magic_cmd begins with "file".
  17281. MAGIC_CMD=$MAGIC_CMD
  17282. # Must we lock files when doing compilation?
  17283. need_locks=$lt_need_locks
  17284. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17285. DSYMUTIL=$lt_DSYMUTIL
  17286. # Tool to change global to local symbols on Mac OS X.
  17287. NMEDIT=$lt_NMEDIT
  17288. # Tool to manipulate fat objects and archives on Mac OS X.
  17289. LIPO=$lt_LIPO
  17290. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17291. OTOOL=$lt_OTOOL
  17292. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17293. OTOOL64=$lt_OTOOL64
  17294. # Old archive suffix (normally "a").
  17295. libext=$libext
  17296. # Shared library suffix (normally ".so").
  17297. shrext_cmds=$lt_shrext_cmds
  17298. # The commands to extract the exported symbol list from a shared archive.
  17299. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17300. # Variables whose values should be saved in libtool wrapper scripts and
  17301. # restored at link time.
  17302. variables_saved_for_relink=$lt_variables_saved_for_relink
  17303. # Do we need the "lib" prefix for modules?
  17304. need_lib_prefix=$need_lib_prefix
  17305. # Do we need a version for libraries?
  17306. need_version=$need_version
  17307. # Library versioning type.
  17308. version_type=$version_type
  17309. # Shared library runtime path variable.
  17310. runpath_var=$runpath_var
  17311. # Shared library path variable.
  17312. shlibpath_var=$shlibpath_var
  17313. # Is shlibpath searched before the hard-coded library search path?
  17314. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17315. # Format of library name prefix.
  17316. libname_spec=$lt_libname_spec
  17317. # List of archive names. First name is the real one, the rest are links.
  17318. # The last name is the one that the linker finds with -lNAME
  17319. library_names_spec=$lt_library_names_spec
  17320. # The coded name of the library, if different from the real name.
  17321. soname_spec=$lt_soname_spec
  17322. # Command to use after installation of a shared archive.
  17323. postinstall_cmds=$lt_postinstall_cmds
  17324. # Command to use after uninstallation of a shared archive.
  17325. postuninstall_cmds=$lt_postuninstall_cmds
  17326. # Commands used to finish a libtool library installation in a directory.
  17327. finish_cmds=$lt_finish_cmds
  17328. # As "finish_cmds", except a single script fragment to be evaled but
  17329. # not shown.
  17330. finish_eval=$lt_finish_eval
  17331. # Whether we should hardcode library paths into libraries.
  17332. hardcode_into_libs=$hardcode_into_libs
  17333. # Compile-time system search path for libraries.
  17334. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17335. # Run-time system search path for libraries.
  17336. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17337. # Whether dlopen is supported.
  17338. dlopen_support=$enable_dlopen
  17339. # Whether dlopen of programs is supported.
  17340. dlopen_self=$enable_dlopen_self
  17341. # Whether dlopen of statically linked programs is supported.
  17342. dlopen_self_static=$enable_dlopen_self_static
  17343. # Commands to strip libraries.
  17344. old_striplib=$lt_old_striplib
  17345. striplib=$lt_striplib
  17346. # The linker used to build libraries.
  17347. LD=$lt_LD
  17348. # Commands used to build an old-style archive.
  17349. old_archive_cmds=$lt_old_archive_cmds
  17350. # A language specific compiler.
  17351. CC=$lt_compiler
  17352. # Is the compiler the GNU compiler?
  17353. with_gcc=$GCC
  17354. # Compiler flag to turn off builtin functions.
  17355. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17356. # How to pass a linker flag through the compiler.
  17357. wl=$lt_lt_prog_compiler_wl
  17358. # Additional compiler flags for building library objects.
  17359. pic_flag=$lt_lt_prog_compiler_pic
  17360. # Compiler flag to prevent dynamic linking.
  17361. link_static_flag=$lt_lt_prog_compiler_static
  17362. # Does compiler simultaneously support -c and -o options?
  17363. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17364. # Whether or not to add -lc for building shared libraries.
  17365. build_libtool_need_lc=$archive_cmds_need_lc
  17366. # Whether or not to disallow shared libs when runtime libs are static.
  17367. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17368. # Compiler flag to allow reflexive dlopens.
  17369. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17370. # Compiler flag to generate shared objects directly from archives.
  17371. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17372. # Whether the compiler copes with passing no objects directly.
  17373. compiler_needs_object=$lt_compiler_needs_object
  17374. # Create an old-style archive from a shared archive.
  17375. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17376. # Create a temporary old-style archive to link instead of a shared archive.
  17377. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17378. # Commands used to build a shared archive.
  17379. archive_cmds=$lt_archive_cmds
  17380. archive_expsym_cmds=$lt_archive_expsym_cmds
  17381. # Commands used to build a loadable module if different from building
  17382. # a shared archive.
  17383. module_cmds=$lt_module_cmds
  17384. module_expsym_cmds=$lt_module_expsym_cmds
  17385. # Whether we are building with GNU ld or not.
  17386. with_gnu_ld=$lt_with_gnu_ld
  17387. # Flag that allows shared libraries with undefined symbols to be built.
  17388. allow_undefined_flag=$lt_allow_undefined_flag
  17389. # Flag that enforces no undefined symbols.
  17390. no_undefined_flag=$lt_no_undefined_flag
  17391. # Flag to hardcode \$libdir into a binary during linking.
  17392. # This must work even if \$libdir does not exist
  17393. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17394. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17395. # during linking. This must work even if \$libdir does not exist.
  17396. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  17397. # Whether we need a single "-rpath" flag with a separated argument.
  17398. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17399. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17400. # DIR into the resulting binary.
  17401. hardcode_direct=$hardcode_direct
  17402. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17403. # DIR into the resulting binary and the resulting library dependency is
  17404. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17405. # library is relocated.
  17406. hardcode_direct_absolute=$hardcode_direct_absolute
  17407. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17408. # into the resulting binary.
  17409. hardcode_minus_L=$hardcode_minus_L
  17410. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17411. # into the resulting binary.
  17412. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17413. # Set to "yes" if building a shared library automatically hardcodes DIR
  17414. # into the library and all subsequent libraries and executables linked
  17415. # against it.
  17416. hardcode_automatic=$hardcode_automatic
  17417. # Set to yes if linker adds runtime paths of dependent libraries
  17418. # to runtime path list.
  17419. inherit_rpath=$inherit_rpath
  17420. # Whether libtool must link a program against all its dependency libraries.
  17421. link_all_deplibs=$link_all_deplibs
  17422. # Fix the shell variable \$srcfile for the compiler.
  17423. fix_srcfile_path=$lt_fix_srcfile_path
  17424. # Set to "yes" if exported symbols are required.
  17425. always_export_symbols=$always_export_symbols
  17426. # The commands to list exported symbols.
  17427. export_symbols_cmds=$lt_export_symbols_cmds
  17428. # Symbols that should not be listed in the preloaded symbols.
  17429. exclude_expsyms=$lt_exclude_expsyms
  17430. # Symbols that must always be exported.
  17431. include_expsyms=$lt_include_expsyms
  17432. # Commands necessary for linking programs (against libraries) with templates.
  17433. prelink_cmds=$lt_prelink_cmds
  17434. # Specify filename containing input files.
  17435. file_list_spec=$lt_file_list_spec
  17436. # How to hardcode a shared library path into an executable.
  17437. hardcode_action=$hardcode_action
  17438. # The directories searched by this compiler when creating a shared library.
  17439. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17440. # Dependencies to place before and after the objects being linked to
  17441. # create a shared library.
  17442. predep_objects=$lt_predep_objects
  17443. postdep_objects=$lt_postdep_objects
  17444. predeps=$lt_predeps
  17445. postdeps=$lt_postdeps
  17446. # The library search path used internally by the compiler when linking
  17447. # a shared library.
  17448. compiler_lib_search_path=$lt_compiler_lib_search_path
  17449. # ### END LIBTOOL CONFIG
  17450. _LT_EOF
  17451. case $host_os in
  17452. aix3*)
  17453. cat <<\_LT_EOF >> "$cfgfile"
  17454. # AIX sometimes has problems with the GCC collect2 program. For some
  17455. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17456. # vanish in a puff of smoke.
  17457. if test "X${COLLECT_NAMES+set}" != Xset; then
  17458. COLLECT_NAMES=
  17459. export COLLECT_NAMES
  17460. fi
  17461. _LT_EOF
  17462. ;;
  17463. esac
  17464. ltmain="$ac_aux_dir/ltmain.sh"
  17465. # We use sed instead of cat because bash on DJGPP gets confused if
  17466. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17467. # text mode, it properly converts lines to CR/LF. This bash problem
  17468. # is reportedly fixed, but why not run on old versions too?
  17469. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  17470. || (rm -f "$cfgfile"; exit 1)
  17471. case $xsi_shell in
  17472. yes)
  17473. cat << \_LT_EOF >> "$cfgfile"
  17474. # func_dirname file append nondir_replacement
  17475. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17476. # otherwise set result to NONDIR_REPLACEMENT.
  17477. func_dirname ()
  17478. {
  17479. case ${1} in
  17480. */*) func_dirname_result="${1%/*}${2}" ;;
  17481. * ) func_dirname_result="${3}" ;;
  17482. esac
  17483. }
  17484. # func_basename file
  17485. func_basename ()
  17486. {
  17487. func_basename_result="${1##*/}"
  17488. }
  17489. # func_dirname_and_basename file append nondir_replacement
  17490. # perform func_basename and func_dirname in a single function
  17491. # call:
  17492. # dirname: Compute the dirname of FILE. If nonempty,
  17493. # add APPEND to the result, otherwise set result
  17494. # to NONDIR_REPLACEMENT.
  17495. # value returned in "$func_dirname_result"
  17496. # basename: Compute filename of FILE.
  17497. # value retuned in "$func_basename_result"
  17498. # Implementation must be kept synchronized with func_dirname
  17499. # and func_basename. For efficiency, we do not delegate to
  17500. # those functions but instead duplicate the functionality here.
  17501. func_dirname_and_basename ()
  17502. {
  17503. case ${1} in
  17504. */*) func_dirname_result="${1%/*}${2}" ;;
  17505. * ) func_dirname_result="${3}" ;;
  17506. esac
  17507. func_basename_result="${1##*/}"
  17508. }
  17509. # func_stripname prefix suffix name
  17510. # strip PREFIX and SUFFIX off of NAME.
  17511. # PREFIX and SUFFIX must not contain globbing or regex special
  17512. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17513. # dot (in which case that matches only a dot).
  17514. func_stripname ()
  17515. {
  17516. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  17517. # positional parameters, so assign one to ordinary parameter first.
  17518. func_stripname_result=${3}
  17519. func_stripname_result=${func_stripname_result#"${1}"}
  17520. func_stripname_result=${func_stripname_result%"${2}"}
  17521. }
  17522. # func_opt_split
  17523. func_opt_split ()
  17524. {
  17525. func_opt_split_opt=${1%%=*}
  17526. func_opt_split_arg=${1#*=}
  17527. }
  17528. # func_lo2o object
  17529. func_lo2o ()
  17530. {
  17531. case ${1} in
  17532. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  17533. *) func_lo2o_result=${1} ;;
  17534. esac
  17535. }
  17536. # func_xform libobj-or-source
  17537. func_xform ()
  17538. {
  17539. func_xform_result=${1%.*}.lo
  17540. }
  17541. # func_arith arithmetic-term...
  17542. func_arith ()
  17543. {
  17544. func_arith_result=$(( $* ))
  17545. }
  17546. # func_len string
  17547. # STRING may not start with a hyphen.
  17548. func_len ()
  17549. {
  17550. func_len_result=${#1}
  17551. }
  17552. _LT_EOF
  17553. ;;
  17554. *) # Bourne compatible functions.
  17555. cat << \_LT_EOF >> "$cfgfile"
  17556. # func_dirname file append nondir_replacement
  17557. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17558. # otherwise set result to NONDIR_REPLACEMENT.
  17559. func_dirname ()
  17560. {
  17561. # Extract subdirectory from the argument.
  17562. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  17563. if test "X$func_dirname_result" = "X${1}"; then
  17564. func_dirname_result="${3}"
  17565. else
  17566. func_dirname_result="$func_dirname_result${2}"
  17567. fi
  17568. }
  17569. # func_basename file
  17570. func_basename ()
  17571. {
  17572. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  17573. }
  17574. # func_stripname prefix suffix name
  17575. # strip PREFIX and SUFFIX off of NAME.
  17576. # PREFIX and SUFFIX must not contain globbing or regex special
  17577. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17578. # dot (in which case that matches only a dot).
  17579. # func_strip_suffix prefix name
  17580. func_stripname ()
  17581. {
  17582. case ${2} in
  17583. .*) func_stripname_result=`$ECHO "X${3}" \
  17584. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  17585. *) func_stripname_result=`$ECHO "X${3}" \
  17586. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  17587. esac
  17588. }
  17589. # sed scripts:
  17590. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  17591. my_sed_long_arg='1s/^-[^=]*=//'
  17592. # func_opt_split
  17593. func_opt_split ()
  17594. {
  17595. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  17596. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  17597. }
  17598. # func_lo2o object
  17599. func_lo2o ()
  17600. {
  17601. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  17602. }
  17603. # func_xform libobj-or-source
  17604. func_xform ()
  17605. {
  17606. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  17607. }
  17608. # func_arith arithmetic-term...
  17609. func_arith ()
  17610. {
  17611. func_arith_result=`expr "$@"`
  17612. }
  17613. # func_len string
  17614. # STRING may not start with a hyphen.
  17615. func_len ()
  17616. {
  17617. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  17618. }
  17619. _LT_EOF
  17620. esac
  17621. case $lt_shell_append in
  17622. yes)
  17623. cat << \_LT_EOF >> "$cfgfile"
  17624. # func_append var value
  17625. # Append VALUE to the end of shell variable VAR.
  17626. func_append ()
  17627. {
  17628. eval "$1+=\$2"
  17629. }
  17630. _LT_EOF
  17631. ;;
  17632. *)
  17633. cat << \_LT_EOF >> "$cfgfile"
  17634. # func_append var value
  17635. # Append VALUE to the end of shell variable VAR.
  17636. func_append ()
  17637. {
  17638. eval "$1=\$$1\$2"
  17639. }
  17640. _LT_EOF
  17641. ;;
  17642. esac
  17643. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  17644. || (rm -f "$cfgfile"; exit 1)
  17645. mv -f "$cfgfile" "$ofile" ||
  17646. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17647. chmod +x "$ofile"
  17648. cat <<_LT_EOF >> "$ofile"
  17649. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17650. # The linker used to build libraries.
  17651. LD=$lt_LD_CXX
  17652. # Commands used to build an old-style archive.
  17653. old_archive_cmds=$lt_old_archive_cmds_CXX
  17654. # A language specific compiler.
  17655. CC=$lt_compiler_CXX
  17656. # Is the compiler the GNU compiler?
  17657. with_gcc=$GCC_CXX
  17658. # Compiler flag to turn off builtin functions.
  17659. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17660. # How to pass a linker flag through the compiler.
  17661. wl=$lt_lt_prog_compiler_wl_CXX
  17662. # Additional compiler flags for building library objects.
  17663. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17664. # Compiler flag to prevent dynamic linking.
  17665. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17666. # Does compiler simultaneously support -c and -o options?
  17667. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17668. # Whether or not to add -lc for building shared libraries.
  17669. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17670. # Whether or not to disallow shared libs when runtime libs are static.
  17671. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17672. # Compiler flag to allow reflexive dlopens.
  17673. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17674. # Compiler flag to generate shared objects directly from archives.
  17675. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17676. # Whether the compiler copes with passing no objects directly.
  17677. compiler_needs_object=$lt_compiler_needs_object_CXX
  17678. # Create an old-style archive from a shared archive.
  17679. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17680. # Create a temporary old-style archive to link instead of a shared archive.
  17681. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17682. # Commands used to build a shared archive.
  17683. archive_cmds=$lt_archive_cmds_CXX
  17684. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17685. # Commands used to build a loadable module if different from building
  17686. # a shared archive.
  17687. module_cmds=$lt_module_cmds_CXX
  17688. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17689. # Whether we are building with GNU ld or not.
  17690. with_gnu_ld=$lt_with_gnu_ld_CXX
  17691. # Flag that allows shared libraries with undefined symbols to be built.
  17692. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17693. # Flag that enforces no undefined symbols.
  17694. no_undefined_flag=$lt_no_undefined_flag_CXX
  17695. # Flag to hardcode \$libdir into a binary during linking.
  17696. # This must work even if \$libdir does not exist
  17697. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17698. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17699. # during linking. This must work even if \$libdir does not exist.
  17700. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  17701. # Whether we need a single "-rpath" flag with a separated argument.
  17702. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17703. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17704. # DIR into the resulting binary.
  17705. hardcode_direct=$hardcode_direct_CXX
  17706. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17707. # DIR into the resulting binary and the resulting library dependency is
  17708. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17709. # library is relocated.
  17710. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17711. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17712. # into the resulting binary.
  17713. hardcode_minus_L=$hardcode_minus_L_CXX
  17714. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17715. # into the resulting binary.
  17716. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17717. # Set to "yes" if building a shared library automatically hardcodes DIR
  17718. # into the library and all subsequent libraries and executables linked
  17719. # against it.
  17720. hardcode_automatic=$hardcode_automatic_CXX
  17721. # Set to yes if linker adds runtime paths of dependent libraries
  17722. # to runtime path list.
  17723. inherit_rpath=$inherit_rpath_CXX
  17724. # Whether libtool must link a program against all its dependency libraries.
  17725. link_all_deplibs=$link_all_deplibs_CXX
  17726. # Fix the shell variable \$srcfile for the compiler.
  17727. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  17728. # Set to "yes" if exported symbols are required.
  17729. always_export_symbols=$always_export_symbols_CXX
  17730. # The commands to list exported symbols.
  17731. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17732. # Symbols that should not be listed in the preloaded symbols.
  17733. exclude_expsyms=$lt_exclude_expsyms_CXX
  17734. # Symbols that must always be exported.
  17735. include_expsyms=$lt_include_expsyms_CXX
  17736. # Commands necessary for linking programs (against libraries) with templates.
  17737. prelink_cmds=$lt_prelink_cmds_CXX
  17738. # Specify filename containing input files.
  17739. file_list_spec=$lt_file_list_spec_CXX
  17740. # How to hardcode a shared library path into an executable.
  17741. hardcode_action=$hardcode_action_CXX
  17742. # The directories searched by this compiler when creating a shared library.
  17743. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17744. # Dependencies to place before and after the objects being linked to
  17745. # create a shared library.
  17746. predep_objects=$lt_predep_objects_CXX
  17747. postdep_objects=$lt_postdep_objects_CXX
  17748. predeps=$lt_predeps_CXX
  17749. postdeps=$lt_postdeps_CXX
  17750. # The library search path used internally by the compiler when linking
  17751. # a shared library.
  17752. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17753. # ### END LIBTOOL TAG CONFIG: CXX
  17754. _LT_EOF
  17755. ;;
  17756. esac
  17757. done # for ac_tag
  17758. { (exit 0); exit 0; }
  17759. _ACEOF
  17760. chmod +x $CONFIG_STATUS
  17761. ac_clean_files=$ac_clean_files_save
  17762. test $ac_write_fail = 0 ||
  17763. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  17764. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  17765. { (exit 1); exit 1; }; }
  17766. # configure is writing to config.log, and then calls config.status.
  17767. # config.status does its own redirection, appending to config.log.
  17768. # Unfortunately, on DOS this fails, as config.log is still kept open
  17769. # by configure, so config.status won't be able to write to it; its
  17770. # output is simply discarded. So we exec the FD to /dev/null,
  17771. # effectively closing config.log, so it can be properly (re)opened and
  17772. # appended to by config.status. When coming back to configure, we
  17773. # need to make the FD available again.
  17774. if test "$no_create" != yes; then
  17775. ac_cs_success=:
  17776. ac_config_status_args=
  17777. test "$silent" = yes &&
  17778. ac_config_status_args="$ac_config_status_args --quiet"
  17779. exec 5>/dev/null
  17780. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17781. exec 5>>config.log
  17782. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17783. # would make configure fail if this is the last instruction.
  17784. $ac_cs_success || { (exit 1); exit 1; }
  17785. fi
  17786. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17787. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17788. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17789. fi