configure 601 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for vcmi 0.74b.
  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='0.74b'
  649. PACKAGE_STRING='vcmi 0.74b'
  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 0.74b 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 0.74b:";;
  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 0.74b
  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 0.74b, 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. # Follow NAME_VER in global.h
  1819. am__api_version='1.10'
  1820. ac_aux_dir=
  1821. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1822. if test -f "$ac_dir/install-sh"; then
  1823. ac_aux_dir=$ac_dir
  1824. ac_install_sh="$ac_aux_dir/install-sh -c"
  1825. break
  1826. elif test -f "$ac_dir/install.sh"; then
  1827. ac_aux_dir=$ac_dir
  1828. ac_install_sh="$ac_aux_dir/install.sh -c"
  1829. break
  1830. elif test -f "$ac_dir/shtool"; then
  1831. ac_aux_dir=$ac_dir
  1832. ac_install_sh="$ac_aux_dir/shtool install -c"
  1833. break
  1834. fi
  1835. done
  1836. if test -z "$ac_aux_dir"; then
  1837. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1838. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1839. { (exit 1); exit 1; }; }
  1840. fi
  1841. # These three variables are undocumented and unsupported,
  1842. # and are intended to be withdrawn in a future Autoconf release.
  1843. # They can cause serious problems if a builder's source tree is in a directory
  1844. # whose full name contains unusual characters.
  1845. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1846. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1847. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1848. # Find a good install program. We prefer a C program (faster),
  1849. # so one script is as good as another. But avoid the broken or
  1850. # incompatible versions:
  1851. # SysV /etc/install, /usr/sbin/install
  1852. # SunOS /usr/etc/install
  1853. # IRIX /sbin/install
  1854. # AIX /bin/install
  1855. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1856. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1857. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1858. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1859. # OS/2's system install, which has a completely different semantic
  1860. # ./install, which can be erroneously created by make from ./install.sh.
  1861. # Reject install programs that cannot install multiple files.
  1862. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1863. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1864. if test -z "$INSTALL"; then
  1865. if test "${ac_cv_path_install+set}" = set; then
  1866. $as_echo_n "(cached) " >&6
  1867. else
  1868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1869. for as_dir in $PATH
  1870. do
  1871. IFS=$as_save_IFS
  1872. test -z "$as_dir" && as_dir=.
  1873. # Account for people who put trailing slashes in PATH elements.
  1874. case $as_dir/ in
  1875. ./ | .// | /cC/* | \
  1876. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1877. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1878. /usr/ucb/* ) ;;
  1879. *)
  1880. # OSF1 and SCO ODT 3.0 have their own names for install.
  1881. # Don't use installbsd from OSF since it installs stuff as root
  1882. # by default.
  1883. for ac_prog in ginstall scoinst install; do
  1884. for ac_exec_ext in '' $ac_executable_extensions; do
  1885. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1886. if test $ac_prog = install &&
  1887. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1888. # AIX install. It has an incompatible calling convention.
  1889. :
  1890. elif test $ac_prog = install &&
  1891. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1892. # program-specific install script used by HP pwplus--don't use.
  1893. :
  1894. else
  1895. rm -rf conftest.one conftest.two conftest.dir
  1896. echo one > conftest.one
  1897. echo two > conftest.two
  1898. mkdir conftest.dir
  1899. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1900. test -s conftest.one && test -s conftest.two &&
  1901. test -s conftest.dir/conftest.one &&
  1902. test -s conftest.dir/conftest.two
  1903. then
  1904. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1905. break 3
  1906. fi
  1907. fi
  1908. fi
  1909. done
  1910. done
  1911. ;;
  1912. esac
  1913. done
  1914. IFS=$as_save_IFS
  1915. rm -rf conftest.one conftest.two conftest.dir
  1916. fi
  1917. if test "${ac_cv_path_install+set}" = set; then
  1918. INSTALL=$ac_cv_path_install
  1919. else
  1920. # As a last resort, use the slow shell script. Don't cache a
  1921. # value for INSTALL within a source directory, because that will
  1922. # break other packages using the cache if that directory is
  1923. # removed, or if the value is a relative name.
  1924. INSTALL=$ac_install_sh
  1925. fi
  1926. fi
  1927. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1928. $as_echo "$INSTALL" >&6; }
  1929. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1930. # It thinks the first close brace ends the variable substitution.
  1931. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1932. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1933. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1934. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1935. $as_echo_n "checking whether build environment is sane... " >&6; }
  1936. # Just in case
  1937. sleep 1
  1938. echo timestamp > conftest.file
  1939. # Do `set' in a subshell so we don't clobber the current shell's
  1940. # arguments. Must try -L first in case configure is actually a
  1941. # symlink; some systems play weird games with the mod time of symlinks
  1942. # (eg FreeBSD returns the mod time of the symlink's containing
  1943. # directory).
  1944. if (
  1945. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1946. if test "$*" = "X"; then
  1947. # -L didn't work.
  1948. set X `ls -t $srcdir/configure conftest.file`
  1949. fi
  1950. rm -f conftest.file
  1951. if test "$*" != "X $srcdir/configure conftest.file" \
  1952. && test "$*" != "X conftest.file $srcdir/configure"; then
  1953. # If neither matched, then we have a broken ls. This can happen
  1954. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1955. # broken ls alias from the environment. This has actually
  1956. # happened. Such a system could not be considered "sane".
  1957. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1958. alias in your environment" >&5
  1959. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1960. alias in your environment" >&2;}
  1961. { (exit 1); exit 1; }; }
  1962. fi
  1963. test "$2" = conftest.file
  1964. )
  1965. then
  1966. # Ok.
  1967. :
  1968. else
  1969. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1970. Check your system clock" >&5
  1971. $as_echo "$as_me: error: newly created file is older than distributed files!
  1972. Check your system clock" >&2;}
  1973. { (exit 1); exit 1; }; }
  1974. fi
  1975. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1976. $as_echo "yes" >&6; }
  1977. test "$program_prefix" != NONE &&
  1978. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1979. # Use a double $ so make ignores it.
  1980. test "$program_suffix" != NONE &&
  1981. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1982. # Double any \ or $.
  1983. # By default was `s,x,x', remove it if useless.
  1984. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1985. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1986. # expand $ac_aux_dir to an absolute path
  1987. am_aux_dir=`cd $ac_aux_dir && pwd`
  1988. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1989. # Use eval to expand $SHELL
  1990. if eval "$MISSING --run true"; then
  1991. am_missing_run="$MISSING --run "
  1992. else
  1993. am_missing_run=
  1994. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1995. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1996. fi
  1997. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1998. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  1999. if test -z "$MKDIR_P"; then
  2000. if test "${ac_cv_path_mkdir+set}" = set; then
  2001. $as_echo_n "(cached) " >&6
  2002. else
  2003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2004. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2005. do
  2006. IFS=$as_save_IFS
  2007. test -z "$as_dir" && as_dir=.
  2008. for ac_prog in mkdir gmkdir; do
  2009. for ac_exec_ext in '' $ac_executable_extensions; do
  2010. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2011. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2012. 'mkdir (GNU coreutils) '* | \
  2013. 'mkdir (coreutils) '* | \
  2014. 'mkdir (fileutils) '4.1*)
  2015. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2016. break 3;;
  2017. esac
  2018. done
  2019. done
  2020. done
  2021. IFS=$as_save_IFS
  2022. fi
  2023. if test "${ac_cv_path_mkdir+set}" = set; then
  2024. MKDIR_P="$ac_cv_path_mkdir -p"
  2025. else
  2026. # As a last resort, use the slow shell script. Don't cache a
  2027. # value for MKDIR_P within a source directory, because that will
  2028. # break other packages using the cache if that directory is
  2029. # removed, or if the value is a relative name.
  2030. test -d ./--version && rmdir ./--version
  2031. MKDIR_P="$ac_install_sh -d"
  2032. fi
  2033. fi
  2034. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2035. $as_echo "$MKDIR_P" >&6; }
  2036. mkdir_p="$MKDIR_P"
  2037. case $mkdir_p in
  2038. [\\/$]* | ?:[\\/]*) ;;
  2039. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2040. esac
  2041. for ac_prog in gawk mawk nawk awk
  2042. do
  2043. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2044. set dummy $ac_prog; ac_word=$2
  2045. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2046. $as_echo_n "checking for $ac_word... " >&6; }
  2047. if test "${ac_cv_prog_AWK+set}" = set; then
  2048. $as_echo_n "(cached) " >&6
  2049. else
  2050. if test -n "$AWK"; then
  2051. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2052. else
  2053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2054. for as_dir in $PATH
  2055. do
  2056. IFS=$as_save_IFS
  2057. test -z "$as_dir" && as_dir=.
  2058. for ac_exec_ext in '' $ac_executable_extensions; do
  2059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2060. ac_cv_prog_AWK="$ac_prog"
  2061. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2062. break 2
  2063. fi
  2064. done
  2065. done
  2066. IFS=$as_save_IFS
  2067. fi
  2068. fi
  2069. AWK=$ac_cv_prog_AWK
  2070. if test -n "$AWK"; then
  2071. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2072. $as_echo "$AWK" >&6; }
  2073. else
  2074. { $as_echo "$as_me:$LINENO: result: no" >&5
  2075. $as_echo "no" >&6; }
  2076. fi
  2077. test -n "$AWK" && break
  2078. done
  2079. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2080. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2081. set x ${MAKE-make}
  2082. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2083. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2084. $as_echo_n "(cached) " >&6
  2085. else
  2086. cat >conftest.make <<\_ACEOF
  2087. SHELL = /bin/sh
  2088. all:
  2089. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2090. _ACEOF
  2091. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2092. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2093. *@@@%%%=?*=@@@%%%*)
  2094. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2095. *)
  2096. eval ac_cv_prog_make_${ac_make}_set=no;;
  2097. esac
  2098. rm -f conftest.make
  2099. fi
  2100. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2101. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2102. $as_echo "yes" >&6; }
  2103. SET_MAKE=
  2104. else
  2105. { $as_echo "$as_me:$LINENO: result: no" >&5
  2106. $as_echo "no" >&6; }
  2107. SET_MAKE="MAKE=${MAKE-make}"
  2108. fi
  2109. rm -rf .tst 2>/dev/null
  2110. mkdir .tst 2>/dev/null
  2111. if test -d .tst; then
  2112. am__leading_dot=.
  2113. else
  2114. am__leading_dot=_
  2115. fi
  2116. rmdir .tst 2>/dev/null
  2117. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2118. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2119. # is not polluted with repeated "-I."
  2120. am__isrc=' -I$(srcdir)'
  2121. # test to see if srcdir already configured
  2122. if test -f $srcdir/config.status; then
  2123. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2124. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2125. { (exit 1); exit 1; }; }
  2126. fi
  2127. fi
  2128. # test whether we have cygpath
  2129. if test -z "$CYGPATH_W"; then
  2130. if (cygpath --version) >/dev/null 2>/dev/null; then
  2131. CYGPATH_W='cygpath -w'
  2132. else
  2133. CYGPATH_W=echo
  2134. fi
  2135. fi
  2136. # Define the identity of the package.
  2137. PACKAGE='vcmi'
  2138. VERSION='0.74b'
  2139. cat >>confdefs.h <<_ACEOF
  2140. #define PACKAGE "$PACKAGE"
  2141. _ACEOF
  2142. cat >>confdefs.h <<_ACEOF
  2143. #define VERSION "$VERSION"
  2144. _ACEOF
  2145. # Some tools Automake needs.
  2146. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2147. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2148. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2149. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2150. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2151. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2152. # Installed binaries are usually stripped using `strip' when the user
  2153. # run `make install-strip'. However `strip' might not be the right
  2154. # tool to use in cross-compilation environments, therefore Automake
  2155. # will honor the `STRIP' environment variable to overrule this program.
  2156. if test "$cross_compiling" != no; then
  2157. if test -n "$ac_tool_prefix"; then
  2158. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2159. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2160. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2161. $as_echo_n "checking for $ac_word... " >&6; }
  2162. if test "${ac_cv_prog_STRIP+set}" = set; then
  2163. $as_echo_n "(cached) " >&6
  2164. else
  2165. if test -n "$STRIP"; then
  2166. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2167. else
  2168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2169. for as_dir in $PATH
  2170. do
  2171. IFS=$as_save_IFS
  2172. test -z "$as_dir" && as_dir=.
  2173. for ac_exec_ext in '' $ac_executable_extensions; do
  2174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2175. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2176. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2177. break 2
  2178. fi
  2179. done
  2180. done
  2181. IFS=$as_save_IFS
  2182. fi
  2183. fi
  2184. STRIP=$ac_cv_prog_STRIP
  2185. if test -n "$STRIP"; then
  2186. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2187. $as_echo "$STRIP" >&6; }
  2188. else
  2189. { $as_echo "$as_me:$LINENO: result: no" >&5
  2190. $as_echo "no" >&6; }
  2191. fi
  2192. fi
  2193. if test -z "$ac_cv_prog_STRIP"; then
  2194. ac_ct_STRIP=$STRIP
  2195. # Extract the first word of "strip", so it can be a program name with args.
  2196. set dummy strip; ac_word=$2
  2197. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2198. $as_echo_n "checking for $ac_word... " >&6; }
  2199. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2200. $as_echo_n "(cached) " >&6
  2201. else
  2202. if test -n "$ac_ct_STRIP"; then
  2203. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2204. else
  2205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2206. for as_dir in $PATH
  2207. do
  2208. IFS=$as_save_IFS
  2209. test -z "$as_dir" && as_dir=.
  2210. for ac_exec_ext in '' $ac_executable_extensions; do
  2211. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2212. ac_cv_prog_ac_ct_STRIP="strip"
  2213. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2214. break 2
  2215. fi
  2216. done
  2217. done
  2218. IFS=$as_save_IFS
  2219. fi
  2220. fi
  2221. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2222. if test -n "$ac_ct_STRIP"; then
  2223. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2224. $as_echo "$ac_ct_STRIP" >&6; }
  2225. else
  2226. { $as_echo "$as_me:$LINENO: result: no" >&5
  2227. $as_echo "no" >&6; }
  2228. fi
  2229. if test "x$ac_ct_STRIP" = x; then
  2230. STRIP=":"
  2231. else
  2232. case $cross_compiling:$ac_tool_warned in
  2233. yes:)
  2234. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2235. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2236. ac_tool_warned=yes ;;
  2237. esac
  2238. STRIP=$ac_ct_STRIP
  2239. fi
  2240. else
  2241. STRIP="$ac_cv_prog_STRIP"
  2242. fi
  2243. fi
  2244. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2245. # We need awk for the "check" target. The system "awk" is bad on
  2246. # some platforms.
  2247. # Always define AMTAR for backward compatibility.
  2248. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2249. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2250. # Checks for build toolchain
  2251. ac_ext=cpp
  2252. ac_cpp='$CXXCPP $CPPFLAGS'
  2253. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2254. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2255. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2256. ac_ext=cpp
  2257. ac_cpp='$CXXCPP $CPPFLAGS'
  2258. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2259. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2260. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2261. if test -z "$CXX"; then
  2262. if test -n "$CCC"; then
  2263. CXX=$CCC
  2264. else
  2265. if test -n "$ac_tool_prefix"; then
  2266. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2267. do
  2268. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2269. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2270. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2271. $as_echo_n "checking for $ac_word... " >&6; }
  2272. if test "${ac_cv_prog_CXX+set}" = set; then
  2273. $as_echo_n "(cached) " >&6
  2274. else
  2275. if test -n "$CXX"; then
  2276. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2277. else
  2278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2279. for as_dir in $PATH
  2280. do
  2281. IFS=$as_save_IFS
  2282. test -z "$as_dir" && as_dir=.
  2283. for ac_exec_ext in '' $ac_executable_extensions; do
  2284. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2285. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2286. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2287. break 2
  2288. fi
  2289. done
  2290. done
  2291. IFS=$as_save_IFS
  2292. fi
  2293. fi
  2294. CXX=$ac_cv_prog_CXX
  2295. if test -n "$CXX"; then
  2296. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2297. $as_echo "$CXX" >&6; }
  2298. else
  2299. { $as_echo "$as_me:$LINENO: result: no" >&5
  2300. $as_echo "no" >&6; }
  2301. fi
  2302. test -n "$CXX" && break
  2303. done
  2304. fi
  2305. if test -z "$CXX"; then
  2306. ac_ct_CXX=$CXX
  2307. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2308. do
  2309. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2310. set dummy $ac_prog; ac_word=$2
  2311. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2312. $as_echo_n "checking for $ac_word... " >&6; }
  2313. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2314. $as_echo_n "(cached) " >&6
  2315. else
  2316. if test -n "$ac_ct_CXX"; then
  2317. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2318. else
  2319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2320. for as_dir in $PATH
  2321. do
  2322. IFS=$as_save_IFS
  2323. test -z "$as_dir" && as_dir=.
  2324. for ac_exec_ext in '' $ac_executable_extensions; do
  2325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2326. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2327. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2328. break 2
  2329. fi
  2330. done
  2331. done
  2332. IFS=$as_save_IFS
  2333. fi
  2334. fi
  2335. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2336. if test -n "$ac_ct_CXX"; then
  2337. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2338. $as_echo "$ac_ct_CXX" >&6; }
  2339. else
  2340. { $as_echo "$as_me:$LINENO: result: no" >&5
  2341. $as_echo "no" >&6; }
  2342. fi
  2343. test -n "$ac_ct_CXX" && break
  2344. done
  2345. if test "x$ac_ct_CXX" = x; then
  2346. CXX="g++"
  2347. else
  2348. case $cross_compiling:$ac_tool_warned in
  2349. yes:)
  2350. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2351. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2352. ac_tool_warned=yes ;;
  2353. esac
  2354. CXX=$ac_ct_CXX
  2355. fi
  2356. fi
  2357. fi
  2358. fi
  2359. # Provide some information about the compiler.
  2360. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2361. set X $ac_compile
  2362. ac_compiler=$2
  2363. { (ac_try="$ac_compiler --version >&5"
  2364. case "(($ac_try" in
  2365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2366. *) ac_try_echo=$ac_try;;
  2367. esac
  2368. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2369. $as_echo "$ac_try_echo") >&5
  2370. (eval "$ac_compiler --version >&5") 2>&5
  2371. ac_status=$?
  2372. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2373. (exit $ac_status); }
  2374. { (ac_try="$ac_compiler -v >&5"
  2375. case "(($ac_try" in
  2376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2377. *) ac_try_echo=$ac_try;;
  2378. esac
  2379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2380. $as_echo "$ac_try_echo") >&5
  2381. (eval "$ac_compiler -v >&5") 2>&5
  2382. ac_status=$?
  2383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2384. (exit $ac_status); }
  2385. { (ac_try="$ac_compiler -V >&5"
  2386. case "(($ac_try" in
  2387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2388. *) ac_try_echo=$ac_try;;
  2389. esac
  2390. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2391. $as_echo "$ac_try_echo") >&5
  2392. (eval "$ac_compiler -V >&5") 2>&5
  2393. ac_status=$?
  2394. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2395. (exit $ac_status); }
  2396. cat >conftest.$ac_ext <<_ACEOF
  2397. /* confdefs.h. */
  2398. _ACEOF
  2399. cat confdefs.h >>conftest.$ac_ext
  2400. cat >>conftest.$ac_ext <<_ACEOF
  2401. /* end confdefs.h. */
  2402. int
  2403. main ()
  2404. {
  2405. ;
  2406. return 0;
  2407. }
  2408. _ACEOF
  2409. ac_clean_files_save=$ac_clean_files
  2410. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2411. # Try to create an executable without -o first, disregard a.out.
  2412. # It will help us diagnose broken compilers, and finding out an intuition
  2413. # of exeext.
  2414. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2415. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2416. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2417. # The possible output files:
  2418. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2419. ac_rmfiles=
  2420. for ac_file in $ac_files
  2421. do
  2422. case $ac_file in
  2423. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2424. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2425. esac
  2426. done
  2427. rm -f $ac_rmfiles
  2428. if { (ac_try="$ac_link_default"
  2429. case "(($ac_try" in
  2430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2431. *) ac_try_echo=$ac_try;;
  2432. esac
  2433. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2434. $as_echo "$ac_try_echo") >&5
  2435. (eval "$ac_link_default") 2>&5
  2436. ac_status=$?
  2437. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2438. (exit $ac_status); }; then
  2439. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2440. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2441. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2442. # so that the user can short-circuit this test for compilers unknown to
  2443. # Autoconf.
  2444. for ac_file in $ac_files ''
  2445. do
  2446. test -f "$ac_file" || continue
  2447. case $ac_file in
  2448. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2449. ;;
  2450. [ab].out )
  2451. # We found the default executable, but exeext='' is most
  2452. # certainly right.
  2453. break;;
  2454. *.* )
  2455. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2456. then :; else
  2457. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2458. fi
  2459. # We set ac_cv_exeext here because the later test for it is not
  2460. # safe: cross compilers may not add the suffix if given an `-o'
  2461. # argument, so we may need to know it at that point already.
  2462. # Even if this section looks crufty: it has the advantage of
  2463. # actually working.
  2464. break;;
  2465. * )
  2466. break;;
  2467. esac
  2468. done
  2469. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2470. else
  2471. ac_file=''
  2472. fi
  2473. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2474. $as_echo "$ac_file" >&6; }
  2475. if test -z "$ac_file"; then
  2476. $as_echo "$as_me: failed program was:" >&5
  2477. sed 's/^/| /' conftest.$ac_ext >&5
  2478. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2480. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2481. See \`config.log' for more details." >&5
  2482. $as_echo "$as_me: error: C++ compiler cannot create executables
  2483. See \`config.log' for more details." >&2;}
  2484. { (exit 77); exit 77; }; }; }
  2485. fi
  2486. ac_exeext=$ac_cv_exeext
  2487. # Check that the compiler produces executables we can run. If not, either
  2488. # the compiler is broken, or we cross compile.
  2489. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2490. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2491. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2492. # If not cross compiling, check that we can run a simple program.
  2493. if test "$cross_compiling" != yes; then
  2494. if { ac_try='./$ac_file'
  2495. { (case "(($ac_try" in
  2496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2497. *) ac_try_echo=$ac_try;;
  2498. esac
  2499. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2500. $as_echo "$ac_try_echo") >&5
  2501. (eval "$ac_try") 2>&5
  2502. ac_status=$?
  2503. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2504. (exit $ac_status); }; }; then
  2505. cross_compiling=no
  2506. else
  2507. if test "$cross_compiling" = maybe; then
  2508. cross_compiling=yes
  2509. else
  2510. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2511. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2512. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2513. If you meant to cross compile, use \`--host'.
  2514. See \`config.log' for more details." >&5
  2515. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2516. If you meant to cross compile, use \`--host'.
  2517. See \`config.log' for more details." >&2;}
  2518. { (exit 1); exit 1; }; }; }
  2519. fi
  2520. fi
  2521. fi
  2522. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2523. $as_echo "yes" >&6; }
  2524. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2525. ac_clean_files=$ac_clean_files_save
  2526. # Check that the compiler produces executables we can run. If not, either
  2527. # the compiler is broken, or we cross compile.
  2528. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2529. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2530. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2531. $as_echo "$cross_compiling" >&6; }
  2532. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2533. $as_echo_n "checking for suffix of executables... " >&6; }
  2534. if { (ac_try="$ac_link"
  2535. case "(($ac_try" in
  2536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2537. *) ac_try_echo=$ac_try;;
  2538. esac
  2539. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2540. $as_echo "$ac_try_echo") >&5
  2541. (eval "$ac_link") 2>&5
  2542. ac_status=$?
  2543. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2544. (exit $ac_status); }; then
  2545. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2546. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2547. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2548. # `rm'.
  2549. for ac_file in conftest.exe conftest conftest.*; do
  2550. test -f "$ac_file" || continue
  2551. case $ac_file in
  2552. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2553. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2554. break;;
  2555. * ) break;;
  2556. esac
  2557. done
  2558. else
  2559. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2560. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2561. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2562. See \`config.log' for more details." >&5
  2563. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2564. See \`config.log' for more details." >&2;}
  2565. { (exit 1); exit 1; }; }; }
  2566. fi
  2567. rm -f conftest$ac_cv_exeext
  2568. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2569. $as_echo "$ac_cv_exeext" >&6; }
  2570. rm -f conftest.$ac_ext
  2571. EXEEXT=$ac_cv_exeext
  2572. ac_exeext=$EXEEXT
  2573. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2574. $as_echo_n "checking for suffix of object files... " >&6; }
  2575. if test "${ac_cv_objext+set}" = set; then
  2576. $as_echo_n "(cached) " >&6
  2577. else
  2578. cat >conftest.$ac_ext <<_ACEOF
  2579. /* confdefs.h. */
  2580. _ACEOF
  2581. cat confdefs.h >>conftest.$ac_ext
  2582. cat >>conftest.$ac_ext <<_ACEOF
  2583. /* end confdefs.h. */
  2584. int
  2585. main ()
  2586. {
  2587. ;
  2588. return 0;
  2589. }
  2590. _ACEOF
  2591. rm -f conftest.o conftest.obj
  2592. if { (ac_try="$ac_compile"
  2593. case "(($ac_try" in
  2594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2595. *) ac_try_echo=$ac_try;;
  2596. esac
  2597. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2598. $as_echo "$ac_try_echo") >&5
  2599. (eval "$ac_compile") 2>&5
  2600. ac_status=$?
  2601. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2602. (exit $ac_status); }; then
  2603. for ac_file in conftest.o conftest.obj conftest.*; do
  2604. test -f "$ac_file" || continue;
  2605. case $ac_file in
  2606. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2607. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2608. break;;
  2609. esac
  2610. done
  2611. else
  2612. $as_echo "$as_me: failed program was:" >&5
  2613. sed 's/^/| /' conftest.$ac_ext >&5
  2614. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2615. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2616. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2617. See \`config.log' for more details." >&5
  2618. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2619. See \`config.log' for more details." >&2;}
  2620. { (exit 1); exit 1; }; }; }
  2621. fi
  2622. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2623. fi
  2624. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2625. $as_echo "$ac_cv_objext" >&6; }
  2626. OBJEXT=$ac_cv_objext
  2627. ac_objext=$OBJEXT
  2628. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2629. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2630. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2631. $as_echo_n "(cached) " >&6
  2632. else
  2633. cat >conftest.$ac_ext <<_ACEOF
  2634. /* confdefs.h. */
  2635. _ACEOF
  2636. cat confdefs.h >>conftest.$ac_ext
  2637. cat >>conftest.$ac_ext <<_ACEOF
  2638. /* end confdefs.h. */
  2639. int
  2640. main ()
  2641. {
  2642. #ifndef __GNUC__
  2643. choke me
  2644. #endif
  2645. ;
  2646. return 0;
  2647. }
  2648. _ACEOF
  2649. rm -f conftest.$ac_objext
  2650. if { (ac_try="$ac_compile"
  2651. case "(($ac_try" in
  2652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2653. *) ac_try_echo=$ac_try;;
  2654. esac
  2655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2656. $as_echo "$ac_try_echo") >&5
  2657. (eval "$ac_compile") 2>conftest.er1
  2658. ac_status=$?
  2659. grep -v '^ *+' conftest.er1 >conftest.err
  2660. rm -f conftest.er1
  2661. cat conftest.err >&5
  2662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2663. (exit $ac_status); } && {
  2664. test -z "$ac_cxx_werror_flag" ||
  2665. test ! -s conftest.err
  2666. } && test -s conftest.$ac_objext; then
  2667. ac_compiler_gnu=yes
  2668. else
  2669. $as_echo "$as_me: failed program was:" >&5
  2670. sed 's/^/| /' conftest.$ac_ext >&5
  2671. ac_compiler_gnu=no
  2672. fi
  2673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2674. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2675. fi
  2676. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2677. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2678. if test $ac_compiler_gnu = yes; then
  2679. GXX=yes
  2680. else
  2681. GXX=
  2682. fi
  2683. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2684. ac_save_CXXFLAGS=$CXXFLAGS
  2685. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2686. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2687. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2688. $as_echo_n "(cached) " >&6
  2689. else
  2690. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2691. ac_cxx_werror_flag=yes
  2692. ac_cv_prog_cxx_g=no
  2693. CXXFLAGS="-g"
  2694. cat >conftest.$ac_ext <<_ACEOF
  2695. /* confdefs.h. */
  2696. _ACEOF
  2697. cat confdefs.h >>conftest.$ac_ext
  2698. cat >>conftest.$ac_ext <<_ACEOF
  2699. /* end confdefs.h. */
  2700. int
  2701. main ()
  2702. {
  2703. ;
  2704. return 0;
  2705. }
  2706. _ACEOF
  2707. rm -f conftest.$ac_objext
  2708. if { (ac_try="$ac_compile"
  2709. case "(($ac_try" in
  2710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2711. *) ac_try_echo=$ac_try;;
  2712. esac
  2713. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2714. $as_echo "$ac_try_echo") >&5
  2715. (eval "$ac_compile") 2>conftest.er1
  2716. ac_status=$?
  2717. grep -v '^ *+' conftest.er1 >conftest.err
  2718. rm -f conftest.er1
  2719. cat conftest.err >&5
  2720. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2721. (exit $ac_status); } && {
  2722. test -z "$ac_cxx_werror_flag" ||
  2723. test ! -s conftest.err
  2724. } && test -s conftest.$ac_objext; then
  2725. ac_cv_prog_cxx_g=yes
  2726. else
  2727. $as_echo "$as_me: failed program was:" >&5
  2728. sed 's/^/| /' conftest.$ac_ext >&5
  2729. CXXFLAGS=""
  2730. cat >conftest.$ac_ext <<_ACEOF
  2731. /* confdefs.h. */
  2732. _ACEOF
  2733. cat confdefs.h >>conftest.$ac_ext
  2734. cat >>conftest.$ac_ext <<_ACEOF
  2735. /* end confdefs.h. */
  2736. int
  2737. main ()
  2738. {
  2739. ;
  2740. return 0;
  2741. }
  2742. _ACEOF
  2743. rm -f conftest.$ac_objext
  2744. if { (ac_try="$ac_compile"
  2745. case "(($ac_try" in
  2746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2747. *) ac_try_echo=$ac_try;;
  2748. esac
  2749. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2750. $as_echo "$ac_try_echo") >&5
  2751. (eval "$ac_compile") 2>conftest.er1
  2752. ac_status=$?
  2753. grep -v '^ *+' conftest.er1 >conftest.err
  2754. rm -f conftest.er1
  2755. cat conftest.err >&5
  2756. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2757. (exit $ac_status); } && {
  2758. test -z "$ac_cxx_werror_flag" ||
  2759. test ! -s conftest.err
  2760. } && test -s conftest.$ac_objext; then
  2761. :
  2762. else
  2763. $as_echo "$as_me: failed program was:" >&5
  2764. sed 's/^/| /' conftest.$ac_ext >&5
  2765. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2766. CXXFLAGS="-g"
  2767. cat >conftest.$ac_ext <<_ACEOF
  2768. /* confdefs.h. */
  2769. _ACEOF
  2770. cat confdefs.h >>conftest.$ac_ext
  2771. cat >>conftest.$ac_ext <<_ACEOF
  2772. /* end confdefs.h. */
  2773. int
  2774. main ()
  2775. {
  2776. ;
  2777. return 0;
  2778. }
  2779. _ACEOF
  2780. rm -f conftest.$ac_objext
  2781. if { (ac_try="$ac_compile"
  2782. case "(($ac_try" in
  2783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2784. *) ac_try_echo=$ac_try;;
  2785. esac
  2786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2787. $as_echo "$ac_try_echo") >&5
  2788. (eval "$ac_compile") 2>conftest.er1
  2789. ac_status=$?
  2790. grep -v '^ *+' conftest.er1 >conftest.err
  2791. rm -f conftest.er1
  2792. cat conftest.err >&5
  2793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2794. (exit $ac_status); } && {
  2795. test -z "$ac_cxx_werror_flag" ||
  2796. test ! -s conftest.err
  2797. } && test -s conftest.$ac_objext; then
  2798. ac_cv_prog_cxx_g=yes
  2799. else
  2800. $as_echo "$as_me: failed program was:" >&5
  2801. sed 's/^/| /' conftest.$ac_ext >&5
  2802. fi
  2803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2804. fi
  2805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2806. fi
  2807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2808. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2809. fi
  2810. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2811. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2812. if test "$ac_test_CXXFLAGS" = set; then
  2813. CXXFLAGS=$ac_save_CXXFLAGS
  2814. elif test $ac_cv_prog_cxx_g = yes; then
  2815. if test "$GXX" = yes; then
  2816. CXXFLAGS="-g -O2"
  2817. else
  2818. CXXFLAGS="-g"
  2819. fi
  2820. else
  2821. if test "$GXX" = yes; then
  2822. CXXFLAGS="-O2"
  2823. else
  2824. CXXFLAGS=
  2825. fi
  2826. fi
  2827. ac_ext=cpp
  2828. ac_cpp='$CXXCPP $CPPFLAGS'
  2829. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2830. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2831. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2832. DEPDIR="${am__leading_dot}deps"
  2833. ac_config_commands="$ac_config_commands depfiles"
  2834. am_make=${MAKE-make}
  2835. cat > confinc << 'END'
  2836. am__doit:
  2837. @echo done
  2838. .PHONY: am__doit
  2839. END
  2840. # If we don't find an include directive, just comment out the code.
  2841. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2842. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2843. am__include="#"
  2844. am__quote=
  2845. _am_result=none
  2846. # First try GNU make style include.
  2847. echo "include confinc" > confmf
  2848. # We grep out `Entering directory' and `Leaving directory'
  2849. # messages which can occur if `w' ends up in MAKEFLAGS.
  2850. # In particular we don't look at `^make:' because GNU make might
  2851. # be invoked under some other name (usually "gmake"), in which
  2852. # case it prints its new name instead of `make'.
  2853. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2854. am__include=include
  2855. am__quote=
  2856. _am_result=GNU
  2857. fi
  2858. # Now try BSD make style include.
  2859. if test "$am__include" = "#"; then
  2860. echo '.include "confinc"' > confmf
  2861. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2862. am__include=.include
  2863. am__quote="\""
  2864. _am_result=BSD
  2865. fi
  2866. fi
  2867. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2868. $as_echo "$_am_result" >&6; }
  2869. rm -f confinc confmf
  2870. # Check whether --enable-dependency-tracking was given.
  2871. if test "${enable_dependency_tracking+set}" = set; then
  2872. enableval=$enable_dependency_tracking;
  2873. fi
  2874. if test "x$enable_dependency_tracking" != xno; then
  2875. am_depcomp="$ac_aux_dir/depcomp"
  2876. AMDEPBACKSLASH='\'
  2877. fi
  2878. if test "x$enable_dependency_tracking" != xno; then
  2879. AMDEP_TRUE=
  2880. AMDEP_FALSE='#'
  2881. else
  2882. AMDEP_TRUE='#'
  2883. AMDEP_FALSE=
  2884. fi
  2885. depcc="$CXX" am_compiler_list=
  2886. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2887. $as_echo_n "checking dependency style of $depcc... " >&6; }
  2888. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2889. $as_echo_n "(cached) " >&6
  2890. else
  2891. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2892. # We make a subdir and do the tests there. Otherwise we can end up
  2893. # making bogus files that we don't know about and never remove. For
  2894. # instance it was reported that on HP-UX the gcc test will end up
  2895. # making a dummy file named `D' -- because `-MD' means `put the output
  2896. # in D'.
  2897. mkdir conftest.dir
  2898. # Copy depcomp to subdir because otherwise we won't find it if we're
  2899. # using a relative directory.
  2900. cp "$am_depcomp" conftest.dir
  2901. cd conftest.dir
  2902. # We will build objects and dependencies in a subdirectory because
  2903. # it helps to detect inapplicable dependency modes. For instance
  2904. # both Tru64's cc and ICC support -MD to output dependencies as a
  2905. # side effect of compilation, but ICC will put the dependencies in
  2906. # the current directory while Tru64 will put them in the object
  2907. # directory.
  2908. mkdir sub
  2909. am_cv_CXX_dependencies_compiler_type=none
  2910. if test "$am_compiler_list" = ""; then
  2911. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2912. fi
  2913. for depmode in $am_compiler_list; do
  2914. # Setup a source with many dependencies, because some compilers
  2915. # like to wrap large dependency lists on column 80 (with \), and
  2916. # we should not choose a depcomp mode which is confused by this.
  2917. #
  2918. # We need to recreate these files for each test, as the compiler may
  2919. # overwrite some of them when testing with obscure command lines.
  2920. # This happens at least with the AIX C compiler.
  2921. : > sub/conftest.c
  2922. for i in 1 2 3 4 5 6; do
  2923. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2924. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2925. # Solaris 8's {/usr,}/bin/sh.
  2926. touch sub/conftst$i.h
  2927. done
  2928. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2929. case $depmode in
  2930. nosideeffect)
  2931. # after this tag, mechanisms are not by side-effect, so they'll
  2932. # only be used when explicitly requested
  2933. if test "x$enable_dependency_tracking" = xyes; then
  2934. continue
  2935. else
  2936. break
  2937. fi
  2938. ;;
  2939. none) break ;;
  2940. esac
  2941. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2942. # mode. It turns out that the SunPro C++ compiler does not properly
  2943. # handle `-M -o', and we need to detect this.
  2944. if depmode=$depmode \
  2945. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2946. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2947. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2948. >/dev/null 2>conftest.err &&
  2949. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  2950. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2951. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2952. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2953. # icc doesn't choke on unknown options, it will just issue warnings
  2954. # or remarks (even with -Werror). So we grep stderr for any message
  2955. # that says an option was ignored or not supported.
  2956. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2957. # icc: Command line warning: ignoring option '-M'; no argument required
  2958. # The diagnosis changed in icc 8.0:
  2959. # icc: Command line remark: option '-MP' not supported
  2960. if (grep 'ignoring option' conftest.err ||
  2961. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2962. am_cv_CXX_dependencies_compiler_type=$depmode
  2963. break
  2964. fi
  2965. fi
  2966. done
  2967. cd ..
  2968. rm -rf conftest.dir
  2969. else
  2970. am_cv_CXX_dependencies_compiler_type=none
  2971. fi
  2972. fi
  2973. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2974. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  2975. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2976. if
  2977. test "x$enable_dependency_tracking" != xno \
  2978. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2979. am__fastdepCXX_TRUE=
  2980. am__fastdepCXX_FALSE='#'
  2981. else
  2982. am__fastdepCXX_TRUE='#'
  2983. am__fastdepCXX_FALSE=
  2984. fi
  2985. # Check whether --enable-shared was given.
  2986. if test "${enable_shared+set}" = set; then
  2987. enableval=$enable_shared; p=${PACKAGE-default}
  2988. case $enableval in
  2989. yes) enable_shared=yes ;;
  2990. no) enable_shared=no ;;
  2991. *)
  2992. enable_shared=no
  2993. # Look at the argument we got. We use all the common list separators.
  2994. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2995. for pkg in $enableval; do
  2996. IFS="$lt_save_ifs"
  2997. if test "X$pkg" = "X$p"; then
  2998. enable_shared=yes
  2999. fi
  3000. done
  3001. IFS="$lt_save_ifs"
  3002. ;;
  3003. esac
  3004. else
  3005. enable_shared=yes
  3006. fi
  3007. # Check whether --enable-static was given.
  3008. if test "${enable_static+set}" = set; then
  3009. enableval=$enable_static; p=${PACKAGE-default}
  3010. case $enableval in
  3011. yes) enable_static=yes ;;
  3012. no) enable_static=no ;;
  3013. *)
  3014. enable_static=no
  3015. # Look at the argument we got. We use all the common list separators.
  3016. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3017. for pkg in $enableval; do
  3018. IFS="$lt_save_ifs"
  3019. if test "X$pkg" = "X$p"; then
  3020. enable_static=yes
  3021. fi
  3022. done
  3023. IFS="$lt_save_ifs"
  3024. ;;
  3025. esac
  3026. else
  3027. enable_static=no
  3028. fi
  3029. case `pwd` in
  3030. *\ * | *\ *)
  3031. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3032. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3033. esac
  3034. macro_version='2.2.6'
  3035. macro_revision='1.3012'
  3036. ltmain="$ac_aux_dir/ltmain.sh"
  3037. # Make sure we can run config.sub.
  3038. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3039. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3040. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3041. { (exit 1); exit 1; }; }
  3042. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  3043. $as_echo_n "checking build system type... " >&6; }
  3044. if test "${ac_cv_build+set}" = set; then
  3045. $as_echo_n "(cached) " >&6
  3046. else
  3047. ac_build_alias=$build_alias
  3048. test "x$ac_build_alias" = x &&
  3049. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3050. test "x$ac_build_alias" = x &&
  3051. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3052. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3053. { (exit 1); exit 1; }; }
  3054. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3055. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3056. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3057. { (exit 1); exit 1; }; }
  3058. fi
  3059. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3060. $as_echo "$ac_cv_build" >&6; }
  3061. case $ac_cv_build in
  3062. *-*-*) ;;
  3063. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3064. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  3065. { (exit 1); exit 1; }; };;
  3066. esac
  3067. build=$ac_cv_build
  3068. ac_save_IFS=$IFS; IFS='-'
  3069. set x $ac_cv_build
  3070. shift
  3071. build_cpu=$1
  3072. build_vendor=$2
  3073. shift; shift
  3074. # Remember, the first character of IFS is used to create $*,
  3075. # except with old shells:
  3076. build_os=$*
  3077. IFS=$ac_save_IFS
  3078. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3079. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  3080. $as_echo_n "checking host system type... " >&6; }
  3081. if test "${ac_cv_host+set}" = set; then
  3082. $as_echo_n "(cached) " >&6
  3083. else
  3084. if test "x$host_alias" = x; then
  3085. ac_cv_host=$ac_cv_build
  3086. else
  3087. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3088. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3089. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3090. { (exit 1); exit 1; }; }
  3091. fi
  3092. fi
  3093. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3094. $as_echo "$ac_cv_host" >&6; }
  3095. case $ac_cv_host in
  3096. *-*-*) ;;
  3097. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3098. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  3099. { (exit 1); exit 1; }; };;
  3100. esac
  3101. host=$ac_cv_host
  3102. ac_save_IFS=$IFS; IFS='-'
  3103. set x $ac_cv_host
  3104. shift
  3105. host_cpu=$1
  3106. host_vendor=$2
  3107. shift; shift
  3108. # Remember, the first character of IFS is used to create $*,
  3109. # except with old shells:
  3110. host_os=$*
  3111. IFS=$ac_save_IFS
  3112. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3113. ac_ext=c
  3114. ac_cpp='$CPP $CPPFLAGS'
  3115. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3116. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3117. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3118. if test -n "$ac_tool_prefix"; then
  3119. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3120. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3121. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3122. $as_echo_n "checking for $ac_word... " >&6; }
  3123. if test "${ac_cv_prog_CC+set}" = set; then
  3124. $as_echo_n "(cached) " >&6
  3125. else
  3126. if test -n "$CC"; then
  3127. ac_cv_prog_CC="$CC" # Let the user override the test.
  3128. else
  3129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3130. for as_dir in $PATH
  3131. do
  3132. IFS=$as_save_IFS
  3133. test -z "$as_dir" && as_dir=.
  3134. for ac_exec_ext in '' $ac_executable_extensions; do
  3135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3136. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3137. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3138. break 2
  3139. fi
  3140. done
  3141. done
  3142. IFS=$as_save_IFS
  3143. fi
  3144. fi
  3145. CC=$ac_cv_prog_CC
  3146. if test -n "$CC"; then
  3147. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3148. $as_echo "$CC" >&6; }
  3149. else
  3150. { $as_echo "$as_me:$LINENO: result: no" >&5
  3151. $as_echo "no" >&6; }
  3152. fi
  3153. fi
  3154. if test -z "$ac_cv_prog_CC"; then
  3155. ac_ct_CC=$CC
  3156. # Extract the first word of "gcc", so it can be a program name with args.
  3157. set dummy gcc; ac_word=$2
  3158. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3159. $as_echo_n "checking for $ac_word... " >&6; }
  3160. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3161. $as_echo_n "(cached) " >&6
  3162. else
  3163. if test -n "$ac_ct_CC"; then
  3164. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3165. else
  3166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3167. for as_dir in $PATH
  3168. do
  3169. IFS=$as_save_IFS
  3170. test -z "$as_dir" && as_dir=.
  3171. for ac_exec_ext in '' $ac_executable_extensions; do
  3172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3173. ac_cv_prog_ac_ct_CC="gcc"
  3174. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3175. break 2
  3176. fi
  3177. done
  3178. done
  3179. IFS=$as_save_IFS
  3180. fi
  3181. fi
  3182. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3183. if test -n "$ac_ct_CC"; then
  3184. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3185. $as_echo "$ac_ct_CC" >&6; }
  3186. else
  3187. { $as_echo "$as_me:$LINENO: result: no" >&5
  3188. $as_echo "no" >&6; }
  3189. fi
  3190. if test "x$ac_ct_CC" = x; then
  3191. CC=""
  3192. else
  3193. case $cross_compiling:$ac_tool_warned in
  3194. yes:)
  3195. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3196. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3197. ac_tool_warned=yes ;;
  3198. esac
  3199. CC=$ac_ct_CC
  3200. fi
  3201. else
  3202. CC="$ac_cv_prog_CC"
  3203. fi
  3204. if test -z "$CC"; then
  3205. if test -n "$ac_tool_prefix"; then
  3206. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3207. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3208. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3209. $as_echo_n "checking for $ac_word... " >&6; }
  3210. if test "${ac_cv_prog_CC+set}" = set; then
  3211. $as_echo_n "(cached) " >&6
  3212. else
  3213. if test -n "$CC"; then
  3214. ac_cv_prog_CC="$CC" # Let the user override the test.
  3215. else
  3216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3217. for as_dir in $PATH
  3218. do
  3219. IFS=$as_save_IFS
  3220. test -z "$as_dir" && as_dir=.
  3221. for ac_exec_ext in '' $ac_executable_extensions; do
  3222. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3223. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3224. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3225. break 2
  3226. fi
  3227. done
  3228. done
  3229. IFS=$as_save_IFS
  3230. fi
  3231. fi
  3232. CC=$ac_cv_prog_CC
  3233. if test -n "$CC"; then
  3234. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3235. $as_echo "$CC" >&6; }
  3236. else
  3237. { $as_echo "$as_me:$LINENO: result: no" >&5
  3238. $as_echo "no" >&6; }
  3239. fi
  3240. fi
  3241. fi
  3242. if test -z "$CC"; then
  3243. # Extract the first word of "cc", so it can be a program name with args.
  3244. set dummy cc; ac_word=$2
  3245. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3246. $as_echo_n "checking for $ac_word... " >&6; }
  3247. if test "${ac_cv_prog_CC+set}" = set; then
  3248. $as_echo_n "(cached) " >&6
  3249. else
  3250. if test -n "$CC"; then
  3251. ac_cv_prog_CC="$CC" # Let the user override the test.
  3252. else
  3253. ac_prog_rejected=no
  3254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3255. for as_dir in $PATH
  3256. do
  3257. IFS=$as_save_IFS
  3258. test -z "$as_dir" && as_dir=.
  3259. for ac_exec_ext in '' $ac_executable_extensions; do
  3260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3261. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3262. ac_prog_rejected=yes
  3263. continue
  3264. fi
  3265. ac_cv_prog_CC="cc"
  3266. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3267. break 2
  3268. fi
  3269. done
  3270. done
  3271. IFS=$as_save_IFS
  3272. if test $ac_prog_rejected = yes; then
  3273. # We found a bogon in the path, so make sure we never use it.
  3274. set dummy $ac_cv_prog_CC
  3275. shift
  3276. if test $# != 0; then
  3277. # We chose a different compiler from the bogus one.
  3278. # However, it has the same basename, so the bogon will be chosen
  3279. # first if we set CC to just the basename; use the full file name.
  3280. shift
  3281. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3282. fi
  3283. fi
  3284. fi
  3285. fi
  3286. CC=$ac_cv_prog_CC
  3287. if test -n "$CC"; then
  3288. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3289. $as_echo "$CC" >&6; }
  3290. else
  3291. { $as_echo "$as_me:$LINENO: result: no" >&5
  3292. $as_echo "no" >&6; }
  3293. fi
  3294. fi
  3295. if test -z "$CC"; then
  3296. if test -n "$ac_tool_prefix"; then
  3297. for ac_prog in cl.exe
  3298. do
  3299. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3300. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3301. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3302. $as_echo_n "checking for $ac_word... " >&6; }
  3303. if test "${ac_cv_prog_CC+set}" = set; then
  3304. $as_echo_n "(cached) " >&6
  3305. else
  3306. if test -n "$CC"; then
  3307. ac_cv_prog_CC="$CC" # Let the user override the test.
  3308. else
  3309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3310. for as_dir in $PATH
  3311. do
  3312. IFS=$as_save_IFS
  3313. test -z "$as_dir" && as_dir=.
  3314. for ac_exec_ext in '' $ac_executable_extensions; do
  3315. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3316. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3317. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3318. break 2
  3319. fi
  3320. done
  3321. done
  3322. IFS=$as_save_IFS
  3323. fi
  3324. fi
  3325. CC=$ac_cv_prog_CC
  3326. if test -n "$CC"; then
  3327. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3328. $as_echo "$CC" >&6; }
  3329. else
  3330. { $as_echo "$as_me:$LINENO: result: no" >&5
  3331. $as_echo "no" >&6; }
  3332. fi
  3333. test -n "$CC" && break
  3334. done
  3335. fi
  3336. if test -z "$CC"; then
  3337. ac_ct_CC=$CC
  3338. for ac_prog in cl.exe
  3339. do
  3340. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3341. set dummy $ac_prog; ac_word=$2
  3342. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3343. $as_echo_n "checking for $ac_word... " >&6; }
  3344. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3345. $as_echo_n "(cached) " >&6
  3346. else
  3347. if test -n "$ac_ct_CC"; then
  3348. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3349. else
  3350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3351. for as_dir in $PATH
  3352. do
  3353. IFS=$as_save_IFS
  3354. test -z "$as_dir" && as_dir=.
  3355. for ac_exec_ext in '' $ac_executable_extensions; do
  3356. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3357. ac_cv_prog_ac_ct_CC="$ac_prog"
  3358. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3359. break 2
  3360. fi
  3361. done
  3362. done
  3363. IFS=$as_save_IFS
  3364. fi
  3365. fi
  3366. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3367. if test -n "$ac_ct_CC"; then
  3368. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3369. $as_echo "$ac_ct_CC" >&6; }
  3370. else
  3371. { $as_echo "$as_me:$LINENO: result: no" >&5
  3372. $as_echo "no" >&6; }
  3373. fi
  3374. test -n "$ac_ct_CC" && break
  3375. done
  3376. if test "x$ac_ct_CC" = x; then
  3377. CC=""
  3378. else
  3379. case $cross_compiling:$ac_tool_warned in
  3380. yes:)
  3381. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3382. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3383. ac_tool_warned=yes ;;
  3384. esac
  3385. CC=$ac_ct_CC
  3386. fi
  3387. fi
  3388. fi
  3389. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3390. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3391. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3392. See \`config.log' for more details." >&5
  3393. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3394. See \`config.log' for more details." >&2;}
  3395. { (exit 1); exit 1; }; }; }
  3396. # Provide some information about the compiler.
  3397. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3398. set X $ac_compile
  3399. ac_compiler=$2
  3400. { (ac_try="$ac_compiler --version >&5"
  3401. case "(($ac_try" in
  3402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3403. *) ac_try_echo=$ac_try;;
  3404. esac
  3405. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3406. $as_echo "$ac_try_echo") >&5
  3407. (eval "$ac_compiler --version >&5") 2>&5
  3408. ac_status=$?
  3409. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3410. (exit $ac_status); }
  3411. { (ac_try="$ac_compiler -v >&5"
  3412. case "(($ac_try" in
  3413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3414. *) ac_try_echo=$ac_try;;
  3415. esac
  3416. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3417. $as_echo "$ac_try_echo") >&5
  3418. (eval "$ac_compiler -v >&5") 2>&5
  3419. ac_status=$?
  3420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3421. (exit $ac_status); }
  3422. { (ac_try="$ac_compiler -V >&5"
  3423. case "(($ac_try" in
  3424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3425. *) ac_try_echo=$ac_try;;
  3426. esac
  3427. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3428. $as_echo "$ac_try_echo") >&5
  3429. (eval "$ac_compiler -V >&5") 2>&5
  3430. ac_status=$?
  3431. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3432. (exit $ac_status); }
  3433. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3434. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3435. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3436. $as_echo_n "(cached) " >&6
  3437. else
  3438. cat >conftest.$ac_ext <<_ACEOF
  3439. /* confdefs.h. */
  3440. _ACEOF
  3441. cat confdefs.h >>conftest.$ac_ext
  3442. cat >>conftest.$ac_ext <<_ACEOF
  3443. /* end confdefs.h. */
  3444. int
  3445. main ()
  3446. {
  3447. #ifndef __GNUC__
  3448. choke me
  3449. #endif
  3450. ;
  3451. return 0;
  3452. }
  3453. _ACEOF
  3454. rm -f conftest.$ac_objext
  3455. if { (ac_try="$ac_compile"
  3456. case "(($ac_try" in
  3457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3458. *) ac_try_echo=$ac_try;;
  3459. esac
  3460. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3461. $as_echo "$ac_try_echo") >&5
  3462. (eval "$ac_compile") 2>conftest.er1
  3463. ac_status=$?
  3464. grep -v '^ *+' conftest.er1 >conftest.err
  3465. rm -f conftest.er1
  3466. cat conftest.err >&5
  3467. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3468. (exit $ac_status); } && {
  3469. test -z "$ac_c_werror_flag" ||
  3470. test ! -s conftest.err
  3471. } && test -s conftest.$ac_objext; then
  3472. ac_compiler_gnu=yes
  3473. else
  3474. $as_echo "$as_me: failed program was:" >&5
  3475. sed 's/^/| /' conftest.$ac_ext >&5
  3476. ac_compiler_gnu=no
  3477. fi
  3478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3479. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3480. fi
  3481. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3482. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3483. if test $ac_compiler_gnu = yes; then
  3484. GCC=yes
  3485. else
  3486. GCC=
  3487. fi
  3488. ac_test_CFLAGS=${CFLAGS+set}
  3489. ac_save_CFLAGS=$CFLAGS
  3490. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3491. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3492. if test "${ac_cv_prog_cc_g+set}" = set; then
  3493. $as_echo_n "(cached) " >&6
  3494. else
  3495. ac_save_c_werror_flag=$ac_c_werror_flag
  3496. ac_c_werror_flag=yes
  3497. ac_cv_prog_cc_g=no
  3498. CFLAGS="-g"
  3499. cat >conftest.$ac_ext <<_ACEOF
  3500. /* confdefs.h. */
  3501. _ACEOF
  3502. cat confdefs.h >>conftest.$ac_ext
  3503. cat >>conftest.$ac_ext <<_ACEOF
  3504. /* end confdefs.h. */
  3505. int
  3506. main ()
  3507. {
  3508. ;
  3509. return 0;
  3510. }
  3511. _ACEOF
  3512. rm -f conftest.$ac_objext
  3513. if { (ac_try="$ac_compile"
  3514. case "(($ac_try" in
  3515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3516. *) ac_try_echo=$ac_try;;
  3517. esac
  3518. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3519. $as_echo "$ac_try_echo") >&5
  3520. (eval "$ac_compile") 2>conftest.er1
  3521. ac_status=$?
  3522. grep -v '^ *+' conftest.er1 >conftest.err
  3523. rm -f conftest.er1
  3524. cat conftest.err >&5
  3525. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3526. (exit $ac_status); } && {
  3527. test -z "$ac_c_werror_flag" ||
  3528. test ! -s conftest.err
  3529. } && test -s conftest.$ac_objext; then
  3530. ac_cv_prog_cc_g=yes
  3531. else
  3532. $as_echo "$as_me: failed program was:" >&5
  3533. sed 's/^/| /' conftest.$ac_ext >&5
  3534. CFLAGS=""
  3535. cat >conftest.$ac_ext <<_ACEOF
  3536. /* confdefs.h. */
  3537. _ACEOF
  3538. cat confdefs.h >>conftest.$ac_ext
  3539. cat >>conftest.$ac_ext <<_ACEOF
  3540. /* end confdefs.h. */
  3541. int
  3542. main ()
  3543. {
  3544. ;
  3545. return 0;
  3546. }
  3547. _ACEOF
  3548. rm -f conftest.$ac_objext
  3549. if { (ac_try="$ac_compile"
  3550. case "(($ac_try" in
  3551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3552. *) ac_try_echo=$ac_try;;
  3553. esac
  3554. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3555. $as_echo "$ac_try_echo") >&5
  3556. (eval "$ac_compile") 2>conftest.er1
  3557. ac_status=$?
  3558. grep -v '^ *+' conftest.er1 >conftest.err
  3559. rm -f conftest.er1
  3560. cat conftest.err >&5
  3561. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3562. (exit $ac_status); } && {
  3563. test -z "$ac_c_werror_flag" ||
  3564. test ! -s conftest.err
  3565. } && test -s conftest.$ac_objext; then
  3566. :
  3567. else
  3568. $as_echo "$as_me: failed program was:" >&5
  3569. sed 's/^/| /' conftest.$ac_ext >&5
  3570. ac_c_werror_flag=$ac_save_c_werror_flag
  3571. CFLAGS="-g"
  3572. cat >conftest.$ac_ext <<_ACEOF
  3573. /* confdefs.h. */
  3574. _ACEOF
  3575. cat confdefs.h >>conftest.$ac_ext
  3576. cat >>conftest.$ac_ext <<_ACEOF
  3577. /* end confdefs.h. */
  3578. int
  3579. main ()
  3580. {
  3581. ;
  3582. return 0;
  3583. }
  3584. _ACEOF
  3585. rm -f conftest.$ac_objext
  3586. if { (ac_try="$ac_compile"
  3587. case "(($ac_try" in
  3588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3589. *) ac_try_echo=$ac_try;;
  3590. esac
  3591. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3592. $as_echo "$ac_try_echo") >&5
  3593. (eval "$ac_compile") 2>conftest.er1
  3594. ac_status=$?
  3595. grep -v '^ *+' conftest.er1 >conftest.err
  3596. rm -f conftest.er1
  3597. cat conftest.err >&5
  3598. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3599. (exit $ac_status); } && {
  3600. test -z "$ac_c_werror_flag" ||
  3601. test ! -s conftest.err
  3602. } && test -s conftest.$ac_objext; then
  3603. ac_cv_prog_cc_g=yes
  3604. else
  3605. $as_echo "$as_me: failed program was:" >&5
  3606. sed 's/^/| /' conftest.$ac_ext >&5
  3607. fi
  3608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3609. fi
  3610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3611. fi
  3612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3613. ac_c_werror_flag=$ac_save_c_werror_flag
  3614. fi
  3615. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3616. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3617. if test "$ac_test_CFLAGS" = set; then
  3618. CFLAGS=$ac_save_CFLAGS
  3619. elif test $ac_cv_prog_cc_g = yes; then
  3620. if test "$GCC" = yes; then
  3621. CFLAGS="-g -O2"
  3622. else
  3623. CFLAGS="-g"
  3624. fi
  3625. else
  3626. if test "$GCC" = yes; then
  3627. CFLAGS="-O2"
  3628. else
  3629. CFLAGS=
  3630. fi
  3631. fi
  3632. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3633. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3634. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. ac_cv_prog_cc_c89=no
  3638. ac_save_CC=$CC
  3639. cat >conftest.$ac_ext <<_ACEOF
  3640. /* confdefs.h. */
  3641. _ACEOF
  3642. cat confdefs.h >>conftest.$ac_ext
  3643. cat >>conftest.$ac_ext <<_ACEOF
  3644. /* end confdefs.h. */
  3645. #include <stdarg.h>
  3646. #include <stdio.h>
  3647. #include <sys/types.h>
  3648. #include <sys/stat.h>
  3649. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3650. struct buf { int x; };
  3651. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3652. static char *e (p, i)
  3653. char **p;
  3654. int i;
  3655. {
  3656. return p[i];
  3657. }
  3658. static char *f (char * (*g) (char **, int), char **p, ...)
  3659. {
  3660. char *s;
  3661. va_list v;
  3662. va_start (v,p);
  3663. s = g (p, va_arg (v,int));
  3664. va_end (v);
  3665. return s;
  3666. }
  3667. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3668. function prototypes and stuff, but not '\xHH' hex character constants.
  3669. These don't provoke an error unfortunately, instead are silently treated
  3670. as 'x'. The following induces an error, until -std is added to get
  3671. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3672. array size at least. It's necessary to write '\x00'==0 to get something
  3673. that's true only with -std. */
  3674. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3675. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3676. inside strings and character constants. */
  3677. #define FOO(x) 'x'
  3678. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3679. int test (int i, double x);
  3680. struct s1 {int (*f) (int a);};
  3681. struct s2 {int (*f) (double a);};
  3682. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3683. int argc;
  3684. char **argv;
  3685. int
  3686. main ()
  3687. {
  3688. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3689. ;
  3690. return 0;
  3691. }
  3692. _ACEOF
  3693. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3694. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3695. do
  3696. CC="$ac_save_CC $ac_arg"
  3697. rm -f conftest.$ac_objext
  3698. if { (ac_try="$ac_compile"
  3699. case "(($ac_try" in
  3700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3701. *) ac_try_echo=$ac_try;;
  3702. esac
  3703. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3704. $as_echo "$ac_try_echo") >&5
  3705. (eval "$ac_compile") 2>conftest.er1
  3706. ac_status=$?
  3707. grep -v '^ *+' conftest.er1 >conftest.err
  3708. rm -f conftest.er1
  3709. cat conftest.err >&5
  3710. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3711. (exit $ac_status); } && {
  3712. test -z "$ac_c_werror_flag" ||
  3713. test ! -s conftest.err
  3714. } && test -s conftest.$ac_objext; then
  3715. ac_cv_prog_cc_c89=$ac_arg
  3716. else
  3717. $as_echo "$as_me: failed program was:" >&5
  3718. sed 's/^/| /' conftest.$ac_ext >&5
  3719. fi
  3720. rm -f core conftest.err conftest.$ac_objext
  3721. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3722. done
  3723. rm -f conftest.$ac_ext
  3724. CC=$ac_save_CC
  3725. fi
  3726. # AC_CACHE_VAL
  3727. case "x$ac_cv_prog_cc_c89" in
  3728. x)
  3729. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3730. $as_echo "none needed" >&6; } ;;
  3731. xno)
  3732. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3733. $as_echo "unsupported" >&6; } ;;
  3734. *)
  3735. CC="$CC $ac_cv_prog_cc_c89"
  3736. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3737. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3738. esac
  3739. ac_ext=cpp
  3740. ac_cpp='$CXXCPP $CPPFLAGS'
  3741. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3742. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3743. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3744. depcc="$CC" am_compiler_list=
  3745. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3746. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3747. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3748. $as_echo_n "(cached) " >&6
  3749. else
  3750. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3751. # We make a subdir and do the tests there. Otherwise we can end up
  3752. # making bogus files that we don't know about and never remove. For
  3753. # instance it was reported that on HP-UX the gcc test will end up
  3754. # making a dummy file named `D' -- because `-MD' means `put the output
  3755. # in D'.
  3756. mkdir conftest.dir
  3757. # Copy depcomp to subdir because otherwise we won't find it if we're
  3758. # using a relative directory.
  3759. cp "$am_depcomp" conftest.dir
  3760. cd conftest.dir
  3761. # We will build objects and dependencies in a subdirectory because
  3762. # it helps to detect inapplicable dependency modes. For instance
  3763. # both Tru64's cc and ICC support -MD to output dependencies as a
  3764. # side effect of compilation, but ICC will put the dependencies in
  3765. # the current directory while Tru64 will put them in the object
  3766. # directory.
  3767. mkdir sub
  3768. am_cv_CC_dependencies_compiler_type=none
  3769. if test "$am_compiler_list" = ""; then
  3770. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3771. fi
  3772. for depmode in $am_compiler_list; do
  3773. # Setup a source with many dependencies, because some compilers
  3774. # like to wrap large dependency lists on column 80 (with \), and
  3775. # we should not choose a depcomp mode which is confused by this.
  3776. #
  3777. # We need to recreate these files for each test, as the compiler may
  3778. # overwrite some of them when testing with obscure command lines.
  3779. # This happens at least with the AIX C compiler.
  3780. : > sub/conftest.c
  3781. for i in 1 2 3 4 5 6; do
  3782. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3783. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3784. # Solaris 8's {/usr,}/bin/sh.
  3785. touch sub/conftst$i.h
  3786. done
  3787. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3788. case $depmode in
  3789. nosideeffect)
  3790. # after this tag, mechanisms are not by side-effect, so they'll
  3791. # only be used when explicitly requested
  3792. if test "x$enable_dependency_tracking" = xyes; then
  3793. continue
  3794. else
  3795. break
  3796. fi
  3797. ;;
  3798. none) break ;;
  3799. esac
  3800. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3801. # mode. It turns out that the SunPro C++ compiler does not properly
  3802. # handle `-M -o', and we need to detect this.
  3803. if depmode=$depmode \
  3804. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3805. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3806. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3807. >/dev/null 2>conftest.err &&
  3808. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3809. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3810. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3811. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3812. # icc doesn't choke on unknown options, it will just issue warnings
  3813. # or remarks (even with -Werror). So we grep stderr for any message
  3814. # that says an option was ignored or not supported.
  3815. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3816. # icc: Command line warning: ignoring option '-M'; no argument required
  3817. # The diagnosis changed in icc 8.0:
  3818. # icc: Command line remark: option '-MP' not supported
  3819. if (grep 'ignoring option' conftest.err ||
  3820. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3821. am_cv_CC_dependencies_compiler_type=$depmode
  3822. break
  3823. fi
  3824. fi
  3825. done
  3826. cd ..
  3827. rm -rf conftest.dir
  3828. else
  3829. am_cv_CC_dependencies_compiler_type=none
  3830. fi
  3831. fi
  3832. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3833. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3834. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3835. if
  3836. test "x$enable_dependency_tracking" != xno \
  3837. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3838. am__fastdepCC_TRUE=
  3839. am__fastdepCC_FALSE='#'
  3840. else
  3841. am__fastdepCC_TRUE='#'
  3842. am__fastdepCC_FALSE=
  3843. fi
  3844. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3845. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3846. if test "${ac_cv_path_SED+set}" = set; then
  3847. $as_echo_n "(cached) " >&6
  3848. else
  3849. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3850. for ac_i in 1 2 3 4 5 6 7; do
  3851. ac_script="$ac_script$as_nl$ac_script"
  3852. done
  3853. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3854. $as_unset ac_script || ac_script=
  3855. if test -z "$SED"; then
  3856. ac_path_SED_found=false
  3857. # Loop through the user's path and test for each of PROGNAME-LIST
  3858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3859. for as_dir in $PATH
  3860. do
  3861. IFS=$as_save_IFS
  3862. test -z "$as_dir" && as_dir=.
  3863. for ac_prog in sed gsed; do
  3864. for ac_exec_ext in '' $ac_executable_extensions; do
  3865. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3866. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3867. # Check for GNU ac_path_SED and select it if it is found.
  3868. # Check for GNU $ac_path_SED
  3869. case `"$ac_path_SED" --version 2>&1` in
  3870. *GNU*)
  3871. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3872. *)
  3873. ac_count=0
  3874. $as_echo_n 0123456789 >"conftest.in"
  3875. while :
  3876. do
  3877. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3878. mv "conftest.tmp" "conftest.in"
  3879. cp "conftest.in" "conftest.nl"
  3880. $as_echo '' >> "conftest.nl"
  3881. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3882. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3883. ac_count=`expr $ac_count + 1`
  3884. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3885. # Best one so far, save it but keep looking for a better one
  3886. ac_cv_path_SED="$ac_path_SED"
  3887. ac_path_SED_max=$ac_count
  3888. fi
  3889. # 10*(2^10) chars as input seems more than enough
  3890. test $ac_count -gt 10 && break
  3891. done
  3892. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3893. esac
  3894. $ac_path_SED_found && break 3
  3895. done
  3896. done
  3897. done
  3898. IFS=$as_save_IFS
  3899. if test -z "$ac_cv_path_SED"; then
  3900. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3901. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3902. { (exit 1); exit 1; }; }
  3903. fi
  3904. else
  3905. ac_cv_path_SED=$SED
  3906. fi
  3907. fi
  3908. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3909. $as_echo "$ac_cv_path_SED" >&6; }
  3910. SED="$ac_cv_path_SED"
  3911. rm -f conftest.sed
  3912. test -z "$SED" && SED=sed
  3913. Xsed="$SED -e 1s/^X//"
  3914. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3915. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3916. if test "${ac_cv_path_GREP+set}" = set; then
  3917. $as_echo_n "(cached) " >&6
  3918. else
  3919. if test -z "$GREP"; then
  3920. ac_path_GREP_found=false
  3921. # Loop through the user's path and test for each of PROGNAME-LIST
  3922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3923. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3924. do
  3925. IFS=$as_save_IFS
  3926. test -z "$as_dir" && as_dir=.
  3927. for ac_prog in grep ggrep; do
  3928. for ac_exec_ext in '' $ac_executable_extensions; do
  3929. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3930. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3931. # Check for GNU ac_path_GREP and select it if it is found.
  3932. # Check for GNU $ac_path_GREP
  3933. case `"$ac_path_GREP" --version 2>&1` in
  3934. *GNU*)
  3935. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3936. *)
  3937. ac_count=0
  3938. $as_echo_n 0123456789 >"conftest.in"
  3939. while :
  3940. do
  3941. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3942. mv "conftest.tmp" "conftest.in"
  3943. cp "conftest.in" "conftest.nl"
  3944. $as_echo 'GREP' >> "conftest.nl"
  3945. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3946. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3947. ac_count=`expr $ac_count + 1`
  3948. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3949. # Best one so far, save it but keep looking for a better one
  3950. ac_cv_path_GREP="$ac_path_GREP"
  3951. ac_path_GREP_max=$ac_count
  3952. fi
  3953. # 10*(2^10) chars as input seems more than enough
  3954. test $ac_count -gt 10 && break
  3955. done
  3956. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3957. esac
  3958. $ac_path_GREP_found && break 3
  3959. done
  3960. done
  3961. done
  3962. IFS=$as_save_IFS
  3963. if test -z "$ac_cv_path_GREP"; then
  3964. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3965. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3966. { (exit 1); exit 1; }; }
  3967. fi
  3968. else
  3969. ac_cv_path_GREP=$GREP
  3970. fi
  3971. fi
  3972. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3973. $as_echo "$ac_cv_path_GREP" >&6; }
  3974. GREP="$ac_cv_path_GREP"
  3975. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3976. $as_echo_n "checking for egrep... " >&6; }
  3977. if test "${ac_cv_path_EGREP+set}" = set; then
  3978. $as_echo_n "(cached) " >&6
  3979. else
  3980. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3981. then ac_cv_path_EGREP="$GREP -E"
  3982. else
  3983. if test -z "$EGREP"; then
  3984. ac_path_EGREP_found=false
  3985. # Loop through the user's path and test for each of PROGNAME-LIST
  3986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3987. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3988. do
  3989. IFS=$as_save_IFS
  3990. test -z "$as_dir" && as_dir=.
  3991. for ac_prog in egrep; do
  3992. for ac_exec_ext in '' $ac_executable_extensions; do
  3993. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3994. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3995. # Check for GNU ac_path_EGREP and select it if it is found.
  3996. # Check for GNU $ac_path_EGREP
  3997. case `"$ac_path_EGREP" --version 2>&1` in
  3998. *GNU*)
  3999. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4000. *)
  4001. ac_count=0
  4002. $as_echo_n 0123456789 >"conftest.in"
  4003. while :
  4004. do
  4005. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4006. mv "conftest.tmp" "conftest.in"
  4007. cp "conftest.in" "conftest.nl"
  4008. $as_echo 'EGREP' >> "conftest.nl"
  4009. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4010. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4011. ac_count=`expr $ac_count + 1`
  4012. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4013. # Best one so far, save it but keep looking for a better one
  4014. ac_cv_path_EGREP="$ac_path_EGREP"
  4015. ac_path_EGREP_max=$ac_count
  4016. fi
  4017. # 10*(2^10) chars as input seems more than enough
  4018. test $ac_count -gt 10 && break
  4019. done
  4020. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4021. esac
  4022. $ac_path_EGREP_found && break 3
  4023. done
  4024. done
  4025. done
  4026. IFS=$as_save_IFS
  4027. if test -z "$ac_cv_path_EGREP"; then
  4028. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4029. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4030. { (exit 1); exit 1; }; }
  4031. fi
  4032. else
  4033. ac_cv_path_EGREP=$EGREP
  4034. fi
  4035. fi
  4036. fi
  4037. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4038. $as_echo "$ac_cv_path_EGREP" >&6; }
  4039. EGREP="$ac_cv_path_EGREP"
  4040. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4041. $as_echo_n "checking for fgrep... " >&6; }
  4042. if test "${ac_cv_path_FGREP+set}" = set; then
  4043. $as_echo_n "(cached) " >&6
  4044. else
  4045. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4046. then ac_cv_path_FGREP="$GREP -F"
  4047. else
  4048. if test -z "$FGREP"; then
  4049. ac_path_FGREP_found=false
  4050. # Loop through the user's path and test for each of PROGNAME-LIST
  4051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4052. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4053. do
  4054. IFS=$as_save_IFS
  4055. test -z "$as_dir" && as_dir=.
  4056. for ac_prog in fgrep; do
  4057. for ac_exec_ext in '' $ac_executable_extensions; do
  4058. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4059. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4060. # Check for GNU ac_path_FGREP and select it if it is found.
  4061. # Check for GNU $ac_path_FGREP
  4062. case `"$ac_path_FGREP" --version 2>&1` in
  4063. *GNU*)
  4064. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4065. *)
  4066. ac_count=0
  4067. $as_echo_n 0123456789 >"conftest.in"
  4068. while :
  4069. do
  4070. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4071. mv "conftest.tmp" "conftest.in"
  4072. cp "conftest.in" "conftest.nl"
  4073. $as_echo 'FGREP' >> "conftest.nl"
  4074. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4075. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4076. ac_count=`expr $ac_count + 1`
  4077. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4078. # Best one so far, save it but keep looking for a better one
  4079. ac_cv_path_FGREP="$ac_path_FGREP"
  4080. ac_path_FGREP_max=$ac_count
  4081. fi
  4082. # 10*(2^10) chars as input seems more than enough
  4083. test $ac_count -gt 10 && break
  4084. done
  4085. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4086. esac
  4087. $ac_path_FGREP_found && break 3
  4088. done
  4089. done
  4090. done
  4091. IFS=$as_save_IFS
  4092. if test -z "$ac_cv_path_FGREP"; then
  4093. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4094. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4095. { (exit 1); exit 1; }; }
  4096. fi
  4097. else
  4098. ac_cv_path_FGREP=$FGREP
  4099. fi
  4100. fi
  4101. fi
  4102. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4103. $as_echo "$ac_cv_path_FGREP" >&6; }
  4104. FGREP="$ac_cv_path_FGREP"
  4105. test -z "$GREP" && GREP=grep
  4106. # Check whether --with-gnu-ld was given.
  4107. if test "${with_gnu_ld+set}" = set; then
  4108. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4109. else
  4110. with_gnu_ld=no
  4111. fi
  4112. ac_prog=ld
  4113. if test "$GCC" = yes; then
  4114. # Check if gcc -print-prog-name=ld gives a path.
  4115. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4116. $as_echo_n "checking for ld used by $CC... " >&6; }
  4117. case $host in
  4118. *-*-mingw*)
  4119. # gcc leaves a trailing carriage return which upsets mingw
  4120. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4121. *)
  4122. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4123. esac
  4124. case $ac_prog in
  4125. # Accept absolute paths.
  4126. [\\/]* | ?:[\\/]*)
  4127. re_direlt='/[^/][^/]*/\.\./'
  4128. # Canonicalize the pathname of ld
  4129. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4130. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4131. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4132. done
  4133. test -z "$LD" && LD="$ac_prog"
  4134. ;;
  4135. "")
  4136. # If it fails, then pretend we aren't using GCC.
  4137. ac_prog=ld
  4138. ;;
  4139. *)
  4140. # If it is relative, then search for the first ld in PATH.
  4141. with_gnu_ld=unknown
  4142. ;;
  4143. esac
  4144. elif test "$with_gnu_ld" = yes; then
  4145. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4146. $as_echo_n "checking for GNU ld... " >&6; }
  4147. else
  4148. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4149. $as_echo_n "checking for non-GNU ld... " >&6; }
  4150. fi
  4151. if test "${lt_cv_path_LD+set}" = set; then
  4152. $as_echo_n "(cached) " >&6
  4153. else
  4154. if test -z "$LD"; then
  4155. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4156. for ac_dir in $PATH; do
  4157. IFS="$lt_save_ifs"
  4158. test -z "$ac_dir" && ac_dir=.
  4159. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4160. lt_cv_path_LD="$ac_dir/$ac_prog"
  4161. # Check to see if the program is GNU ld. I'd rather use --version,
  4162. # but apparently some variants of GNU ld only accept -v.
  4163. # Break only if it was the GNU/non-GNU ld that we prefer.
  4164. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4165. *GNU* | *'with BFD'*)
  4166. test "$with_gnu_ld" != no && break
  4167. ;;
  4168. *)
  4169. test "$with_gnu_ld" != yes && break
  4170. ;;
  4171. esac
  4172. fi
  4173. done
  4174. IFS="$lt_save_ifs"
  4175. else
  4176. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4177. fi
  4178. fi
  4179. LD="$lt_cv_path_LD"
  4180. if test -n "$LD"; then
  4181. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4182. $as_echo "$LD" >&6; }
  4183. else
  4184. { $as_echo "$as_me:$LINENO: result: no" >&5
  4185. $as_echo "no" >&6; }
  4186. fi
  4187. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4188. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4189. { (exit 1); exit 1; }; }
  4190. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4191. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4192. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4193. $as_echo_n "(cached) " >&6
  4194. else
  4195. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4196. case `$LD -v 2>&1 </dev/null` in
  4197. *GNU* | *'with BFD'*)
  4198. lt_cv_prog_gnu_ld=yes
  4199. ;;
  4200. *)
  4201. lt_cv_prog_gnu_ld=no
  4202. ;;
  4203. esac
  4204. fi
  4205. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4206. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4207. with_gnu_ld=$lt_cv_prog_gnu_ld
  4208. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4209. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4210. if test "${lt_cv_path_NM+set}" = set; then
  4211. $as_echo_n "(cached) " >&6
  4212. else
  4213. if test -n "$NM"; then
  4214. # Let the user override the test.
  4215. lt_cv_path_NM="$NM"
  4216. else
  4217. lt_nm_to_check="${ac_tool_prefix}nm"
  4218. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4219. lt_nm_to_check="$lt_nm_to_check nm"
  4220. fi
  4221. for lt_tmp_nm in $lt_nm_to_check; do
  4222. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4223. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4224. IFS="$lt_save_ifs"
  4225. test -z "$ac_dir" && ac_dir=.
  4226. tmp_nm="$ac_dir/$lt_tmp_nm"
  4227. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4228. # Check to see if the nm accepts a BSD-compat flag.
  4229. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4230. # nm: unknown option "B" ignored
  4231. # Tru64's nm complains that /dev/null is an invalid object file
  4232. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4233. */dev/null* | *'Invalid file or object type'*)
  4234. lt_cv_path_NM="$tmp_nm -B"
  4235. break
  4236. ;;
  4237. *)
  4238. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4239. */dev/null*)
  4240. lt_cv_path_NM="$tmp_nm -p"
  4241. break
  4242. ;;
  4243. *)
  4244. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4245. continue # so that we can try to find one that supports BSD flags
  4246. ;;
  4247. esac
  4248. ;;
  4249. esac
  4250. fi
  4251. done
  4252. IFS="$lt_save_ifs"
  4253. done
  4254. : ${lt_cv_path_NM=no}
  4255. fi
  4256. fi
  4257. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4258. $as_echo "$lt_cv_path_NM" >&6; }
  4259. if test "$lt_cv_path_NM" != "no"; then
  4260. NM="$lt_cv_path_NM"
  4261. else
  4262. # Didn't find any BSD compatible name lister, look for dumpbin.
  4263. if test -n "$ac_tool_prefix"; then
  4264. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4265. do
  4266. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4267. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4268. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4269. $as_echo_n "checking for $ac_word... " >&6; }
  4270. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4271. $as_echo_n "(cached) " >&6
  4272. else
  4273. if test -n "$DUMPBIN"; then
  4274. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4275. else
  4276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4277. for as_dir in $PATH
  4278. do
  4279. IFS=$as_save_IFS
  4280. test -z "$as_dir" && as_dir=.
  4281. for ac_exec_ext in '' $ac_executable_extensions; do
  4282. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4283. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4284. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4285. break 2
  4286. fi
  4287. done
  4288. done
  4289. IFS=$as_save_IFS
  4290. fi
  4291. fi
  4292. DUMPBIN=$ac_cv_prog_DUMPBIN
  4293. if test -n "$DUMPBIN"; then
  4294. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4295. $as_echo "$DUMPBIN" >&6; }
  4296. else
  4297. { $as_echo "$as_me:$LINENO: result: no" >&5
  4298. $as_echo "no" >&6; }
  4299. fi
  4300. test -n "$DUMPBIN" && break
  4301. done
  4302. fi
  4303. if test -z "$DUMPBIN"; then
  4304. ac_ct_DUMPBIN=$DUMPBIN
  4305. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4306. do
  4307. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4308. set dummy $ac_prog; ac_word=$2
  4309. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4310. $as_echo_n "checking for $ac_word... " >&6; }
  4311. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4312. $as_echo_n "(cached) " >&6
  4313. else
  4314. if test -n "$ac_ct_DUMPBIN"; then
  4315. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4316. else
  4317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4318. for as_dir in $PATH
  4319. do
  4320. IFS=$as_save_IFS
  4321. test -z "$as_dir" && as_dir=.
  4322. for ac_exec_ext in '' $ac_executable_extensions; do
  4323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4324. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4325. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4326. break 2
  4327. fi
  4328. done
  4329. done
  4330. IFS=$as_save_IFS
  4331. fi
  4332. fi
  4333. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4334. if test -n "$ac_ct_DUMPBIN"; then
  4335. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4336. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4337. else
  4338. { $as_echo "$as_me:$LINENO: result: no" >&5
  4339. $as_echo "no" >&6; }
  4340. fi
  4341. test -n "$ac_ct_DUMPBIN" && break
  4342. done
  4343. if test "x$ac_ct_DUMPBIN" = x; then
  4344. DUMPBIN=":"
  4345. else
  4346. case $cross_compiling:$ac_tool_warned in
  4347. yes:)
  4348. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4349. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4350. ac_tool_warned=yes ;;
  4351. esac
  4352. DUMPBIN=$ac_ct_DUMPBIN
  4353. fi
  4354. fi
  4355. if test "$DUMPBIN" != ":"; then
  4356. NM="$DUMPBIN"
  4357. fi
  4358. fi
  4359. test -z "$NM" && NM=nm
  4360. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4361. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4362. if test "${lt_cv_nm_interface+set}" = set; then
  4363. $as_echo_n "(cached) " >&6
  4364. else
  4365. lt_cv_nm_interface="BSD nm"
  4366. echo "int some_variable = 0;" > conftest.$ac_ext
  4367. (eval echo "\"\$as_me:4918: $ac_compile\"" >&5)
  4368. (eval "$ac_compile" 2>conftest.err)
  4369. cat conftest.err >&5
  4370. (eval echo "\"\$as_me:4921: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4371. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4372. cat conftest.err >&5
  4373. (eval echo "\"\$as_me:4924: output\"" >&5)
  4374. cat conftest.out >&5
  4375. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4376. lt_cv_nm_interface="MS dumpbin"
  4377. fi
  4378. rm -f conftest*
  4379. fi
  4380. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4381. $as_echo "$lt_cv_nm_interface" >&6; }
  4382. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4383. $as_echo_n "checking whether ln -s works... " >&6; }
  4384. LN_S=$as_ln_s
  4385. if test "$LN_S" = "ln -s"; then
  4386. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4387. $as_echo "yes" >&6; }
  4388. else
  4389. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4390. $as_echo "no, using $LN_S" >&6; }
  4391. fi
  4392. # find the maximum length of command line arguments
  4393. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4394. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4395. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4396. $as_echo_n "(cached) " >&6
  4397. else
  4398. i=0
  4399. teststring="ABCD"
  4400. case $build_os in
  4401. msdosdjgpp*)
  4402. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4403. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4404. # during glob expansion). Even if it were fixed, the result of this
  4405. # check would be larger than it should be.
  4406. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4407. ;;
  4408. gnu*)
  4409. # Under GNU Hurd, this test is not required because there is
  4410. # no limit to the length of command line arguments.
  4411. # Libtool will interpret -1 as no limit whatsoever
  4412. lt_cv_sys_max_cmd_len=-1;
  4413. ;;
  4414. cygwin* | mingw* | cegcc*)
  4415. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4416. # about 5 minutes as the teststring grows exponentially.
  4417. # Worse, since 9x/ME are not pre-emptively multitasking,
  4418. # you end up with a "frozen" computer, even though with patience
  4419. # the test eventually succeeds (with a max line length of 256k).
  4420. # Instead, let's just punt: use the minimum linelength reported by
  4421. # all of the supported platforms: 8192 (on NT/2K/XP).
  4422. lt_cv_sys_max_cmd_len=8192;
  4423. ;;
  4424. amigaos*)
  4425. # On AmigaOS with pdksh, this test takes hours, literally.
  4426. # So we just punt and use a minimum line length of 8192.
  4427. lt_cv_sys_max_cmd_len=8192;
  4428. ;;
  4429. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4430. # This has been around since 386BSD, at least. Likely further.
  4431. if test -x /sbin/sysctl; then
  4432. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4433. elif test -x /usr/sbin/sysctl; then
  4434. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4435. else
  4436. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4437. fi
  4438. # And add a safety zone
  4439. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4440. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4441. ;;
  4442. interix*)
  4443. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4444. lt_cv_sys_max_cmd_len=196608
  4445. ;;
  4446. osf*)
  4447. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4448. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4449. # nice to cause kernel panics so lets avoid the loop below.
  4450. # First set a reasonable default.
  4451. lt_cv_sys_max_cmd_len=16384
  4452. #
  4453. if test -x /sbin/sysconfig; then
  4454. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4455. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4456. esac
  4457. fi
  4458. ;;
  4459. sco3.2v5*)
  4460. lt_cv_sys_max_cmd_len=102400
  4461. ;;
  4462. sysv5* | sco5v6* | sysv4.2uw2*)
  4463. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4464. if test -n "$kargmax"; then
  4465. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4466. else
  4467. lt_cv_sys_max_cmd_len=32768
  4468. fi
  4469. ;;
  4470. *)
  4471. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4472. if test -n "$lt_cv_sys_max_cmd_len"; then
  4473. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4474. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4475. else
  4476. # Make teststring a little bigger before we do anything with it.
  4477. # a 1K string should be a reasonable start.
  4478. for i in 1 2 3 4 5 6 7 8 ; do
  4479. teststring=$teststring$teststring
  4480. done
  4481. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4482. # If test is not a shell built-in, we'll probably end up computing a
  4483. # maximum length that is only half of the actual maximum length, but
  4484. # we can't tell.
  4485. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4486. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4487. test $i != 17 # 1/2 MB should be enough
  4488. do
  4489. i=`expr $i + 1`
  4490. teststring=$teststring$teststring
  4491. done
  4492. # Only check the string length outside the loop.
  4493. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4494. teststring=
  4495. # Add a significant safety factor because C++ compilers can tack on
  4496. # massive amounts of additional arguments before passing them to the
  4497. # linker. It appears as though 1/2 is a usable value.
  4498. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4499. fi
  4500. ;;
  4501. esac
  4502. fi
  4503. if test -n $lt_cv_sys_max_cmd_len ; then
  4504. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4505. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4506. else
  4507. { $as_echo "$as_me:$LINENO: result: none" >&5
  4508. $as_echo "none" >&6; }
  4509. fi
  4510. max_cmd_len=$lt_cv_sys_max_cmd_len
  4511. : ${CP="cp -f"}
  4512. : ${MV="mv -f"}
  4513. : ${RM="rm -f"}
  4514. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4515. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4516. # Try some XSI features
  4517. xsi_shell=no
  4518. ( _lt_dummy="a/b/c"
  4519. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4520. = c,a/b,, \
  4521. && eval 'test $(( 1 + 1 )) -eq 2 \
  4522. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4523. && xsi_shell=yes
  4524. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4525. $as_echo "$xsi_shell" >&6; }
  4526. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4527. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4528. lt_shell_append=no
  4529. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4530. >/dev/null 2>&1 \
  4531. && lt_shell_append=yes
  4532. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4533. $as_echo "$lt_shell_append" >&6; }
  4534. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4535. lt_unset=unset
  4536. else
  4537. lt_unset=false
  4538. fi
  4539. # test EBCDIC or ASCII
  4540. case `echo X|tr X '\101'` in
  4541. A) # ASCII based system
  4542. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4543. lt_SP2NL='tr \040 \012'
  4544. lt_NL2SP='tr \015\012 \040\040'
  4545. ;;
  4546. *) # EBCDIC based system
  4547. lt_SP2NL='tr \100 \n'
  4548. lt_NL2SP='tr \r\n \100\100'
  4549. ;;
  4550. esac
  4551. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4552. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4553. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4554. $as_echo_n "(cached) " >&6
  4555. else
  4556. lt_cv_ld_reload_flag='-r'
  4557. fi
  4558. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4559. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4560. reload_flag=$lt_cv_ld_reload_flag
  4561. case $reload_flag in
  4562. "" | " "*) ;;
  4563. *) reload_flag=" $reload_flag" ;;
  4564. esac
  4565. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4566. case $host_os in
  4567. darwin*)
  4568. if test "$GCC" = yes; then
  4569. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4570. else
  4571. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4572. fi
  4573. ;;
  4574. esac
  4575. if test -n "$ac_tool_prefix"; then
  4576. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4577. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4578. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4579. $as_echo_n "checking for $ac_word... " >&6; }
  4580. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4581. $as_echo_n "(cached) " >&6
  4582. else
  4583. if test -n "$OBJDUMP"; then
  4584. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4585. else
  4586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4587. for as_dir in $PATH
  4588. do
  4589. IFS=$as_save_IFS
  4590. test -z "$as_dir" && as_dir=.
  4591. for ac_exec_ext in '' $ac_executable_extensions; do
  4592. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4593. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4594. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4595. break 2
  4596. fi
  4597. done
  4598. done
  4599. IFS=$as_save_IFS
  4600. fi
  4601. fi
  4602. OBJDUMP=$ac_cv_prog_OBJDUMP
  4603. if test -n "$OBJDUMP"; then
  4604. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4605. $as_echo "$OBJDUMP" >&6; }
  4606. else
  4607. { $as_echo "$as_me:$LINENO: result: no" >&5
  4608. $as_echo "no" >&6; }
  4609. fi
  4610. fi
  4611. if test -z "$ac_cv_prog_OBJDUMP"; then
  4612. ac_ct_OBJDUMP=$OBJDUMP
  4613. # Extract the first word of "objdump", so it can be a program name with args.
  4614. set dummy objdump; ac_word=$2
  4615. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4616. $as_echo_n "checking for $ac_word... " >&6; }
  4617. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4618. $as_echo_n "(cached) " >&6
  4619. else
  4620. if test -n "$ac_ct_OBJDUMP"; then
  4621. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4622. else
  4623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4624. for as_dir in $PATH
  4625. do
  4626. IFS=$as_save_IFS
  4627. test -z "$as_dir" && as_dir=.
  4628. for ac_exec_ext in '' $ac_executable_extensions; do
  4629. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4630. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4631. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4632. break 2
  4633. fi
  4634. done
  4635. done
  4636. IFS=$as_save_IFS
  4637. fi
  4638. fi
  4639. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4640. if test -n "$ac_ct_OBJDUMP"; then
  4641. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4642. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4643. else
  4644. { $as_echo "$as_me:$LINENO: result: no" >&5
  4645. $as_echo "no" >&6; }
  4646. fi
  4647. if test "x$ac_ct_OBJDUMP" = x; then
  4648. OBJDUMP="false"
  4649. else
  4650. case $cross_compiling:$ac_tool_warned in
  4651. yes:)
  4652. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4653. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4654. ac_tool_warned=yes ;;
  4655. esac
  4656. OBJDUMP=$ac_ct_OBJDUMP
  4657. fi
  4658. else
  4659. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4660. fi
  4661. test -z "$OBJDUMP" && OBJDUMP=objdump
  4662. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4663. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4664. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4665. $as_echo_n "(cached) " >&6
  4666. else
  4667. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4668. lt_cv_file_magic_test_file=
  4669. lt_cv_deplibs_check_method='unknown'
  4670. # Need to set the preceding variable on all platforms that support
  4671. # interlibrary dependencies.
  4672. # 'none' -- dependencies not supported.
  4673. # `unknown' -- same as none, but documents that we really don't know.
  4674. # 'pass_all' -- all dependencies passed with no checks.
  4675. # 'test_compile' -- check by making test program.
  4676. # 'file_magic [[regex]]' -- check by looking for files in library path
  4677. # which responds to the $file_magic_cmd with a given extended regex.
  4678. # If you have `file' or equivalent on your system and you're not sure
  4679. # whether `pass_all' will *always* work, you probably want this one.
  4680. case $host_os in
  4681. aix[4-9]*)
  4682. lt_cv_deplibs_check_method=pass_all
  4683. ;;
  4684. beos*)
  4685. lt_cv_deplibs_check_method=pass_all
  4686. ;;
  4687. bsdi[45]*)
  4688. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4689. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4690. lt_cv_file_magic_test_file=/shlib/libc.so
  4691. ;;
  4692. cygwin*)
  4693. # func_win32_libid is a shell function defined in ltmain.sh
  4694. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4695. lt_cv_file_magic_cmd='func_win32_libid'
  4696. ;;
  4697. mingw* | pw32*)
  4698. # Base MSYS/MinGW do not provide the 'file' command needed by
  4699. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4700. # unless we find 'file', for example because we are cross-compiling.
  4701. if ( file / ) >/dev/null 2>&1; then
  4702. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4703. lt_cv_file_magic_cmd='func_win32_libid'
  4704. else
  4705. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4706. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4707. fi
  4708. ;;
  4709. cegcc)
  4710. # use the weaker test based on 'objdump'. See mingw*.
  4711. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4712. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4713. ;;
  4714. darwin* | rhapsody*)
  4715. lt_cv_deplibs_check_method=pass_all
  4716. ;;
  4717. freebsd* | dragonfly*)
  4718. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4719. case $host_cpu in
  4720. i*86 )
  4721. # Not sure whether the presence of OpenBSD here was a mistake.
  4722. # Let's accept both of them until this is cleared up.
  4723. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4724. lt_cv_file_magic_cmd=/usr/bin/file
  4725. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4726. ;;
  4727. esac
  4728. else
  4729. lt_cv_deplibs_check_method=pass_all
  4730. fi
  4731. ;;
  4732. gnu*)
  4733. lt_cv_deplibs_check_method=pass_all
  4734. ;;
  4735. hpux10.20* | hpux11*)
  4736. lt_cv_file_magic_cmd=/usr/bin/file
  4737. case $host_cpu in
  4738. ia64*)
  4739. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4740. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4741. ;;
  4742. hppa*64*)
  4743. 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]'
  4744. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4745. ;;
  4746. *)
  4747. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4748. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4749. ;;
  4750. esac
  4751. ;;
  4752. interix[3-9]*)
  4753. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4754. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4755. ;;
  4756. irix5* | irix6* | nonstopux*)
  4757. case $LD in
  4758. *-32|*"-32 ") libmagic=32-bit;;
  4759. *-n32|*"-n32 ") libmagic=N32;;
  4760. *-64|*"-64 ") libmagic=64-bit;;
  4761. *) libmagic=never-match;;
  4762. esac
  4763. lt_cv_deplibs_check_method=pass_all
  4764. ;;
  4765. # This must be Linux ELF.
  4766. linux* | k*bsd*-gnu)
  4767. lt_cv_deplibs_check_method=pass_all
  4768. ;;
  4769. netbsd* | netbsdelf*-gnu)
  4770. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4771. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4772. else
  4773. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4774. fi
  4775. ;;
  4776. newos6*)
  4777. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4778. lt_cv_file_magic_cmd=/usr/bin/file
  4779. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4780. ;;
  4781. *nto* | *qnx*)
  4782. lt_cv_deplibs_check_method=pass_all
  4783. ;;
  4784. openbsd*)
  4785. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4786. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4787. else
  4788. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4789. fi
  4790. ;;
  4791. osf3* | osf4* | osf5*)
  4792. lt_cv_deplibs_check_method=pass_all
  4793. ;;
  4794. rdos*)
  4795. lt_cv_deplibs_check_method=pass_all
  4796. ;;
  4797. solaris*)
  4798. lt_cv_deplibs_check_method=pass_all
  4799. ;;
  4800. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4801. lt_cv_deplibs_check_method=pass_all
  4802. ;;
  4803. sysv4 | sysv4.3*)
  4804. case $host_vendor in
  4805. motorola)
  4806. 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]'
  4807. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4808. ;;
  4809. ncr)
  4810. lt_cv_deplibs_check_method=pass_all
  4811. ;;
  4812. sequent)
  4813. lt_cv_file_magic_cmd='/bin/file'
  4814. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4815. ;;
  4816. sni)
  4817. lt_cv_file_magic_cmd='/bin/file'
  4818. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4819. lt_cv_file_magic_test_file=/lib/libc.so
  4820. ;;
  4821. siemens)
  4822. lt_cv_deplibs_check_method=pass_all
  4823. ;;
  4824. pc)
  4825. lt_cv_deplibs_check_method=pass_all
  4826. ;;
  4827. esac
  4828. ;;
  4829. tpf*)
  4830. lt_cv_deplibs_check_method=pass_all
  4831. ;;
  4832. esac
  4833. fi
  4834. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4835. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4836. file_magic_cmd=$lt_cv_file_magic_cmd
  4837. deplibs_check_method=$lt_cv_deplibs_check_method
  4838. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4839. if test -n "$ac_tool_prefix"; then
  4840. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4841. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4842. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4843. $as_echo_n "checking for $ac_word... " >&6; }
  4844. if test "${ac_cv_prog_AR+set}" = set; then
  4845. $as_echo_n "(cached) " >&6
  4846. else
  4847. if test -n "$AR"; then
  4848. ac_cv_prog_AR="$AR" # Let the user override the test.
  4849. else
  4850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4851. for as_dir in $PATH
  4852. do
  4853. IFS=$as_save_IFS
  4854. test -z "$as_dir" && as_dir=.
  4855. for ac_exec_ext in '' $ac_executable_extensions; do
  4856. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4857. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4858. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4859. break 2
  4860. fi
  4861. done
  4862. done
  4863. IFS=$as_save_IFS
  4864. fi
  4865. fi
  4866. AR=$ac_cv_prog_AR
  4867. if test -n "$AR"; then
  4868. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4869. $as_echo "$AR" >&6; }
  4870. else
  4871. { $as_echo "$as_me:$LINENO: result: no" >&5
  4872. $as_echo "no" >&6; }
  4873. fi
  4874. fi
  4875. if test -z "$ac_cv_prog_AR"; then
  4876. ac_ct_AR=$AR
  4877. # Extract the first word of "ar", so it can be a program name with args.
  4878. set dummy ar; ac_word=$2
  4879. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4880. $as_echo_n "checking for $ac_word... " >&6; }
  4881. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4882. $as_echo_n "(cached) " >&6
  4883. else
  4884. if test -n "$ac_ct_AR"; then
  4885. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4886. else
  4887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4888. for as_dir in $PATH
  4889. do
  4890. IFS=$as_save_IFS
  4891. test -z "$as_dir" && as_dir=.
  4892. for ac_exec_ext in '' $ac_executable_extensions; do
  4893. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4894. ac_cv_prog_ac_ct_AR="ar"
  4895. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4896. break 2
  4897. fi
  4898. done
  4899. done
  4900. IFS=$as_save_IFS
  4901. fi
  4902. fi
  4903. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4904. if test -n "$ac_ct_AR"; then
  4905. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4906. $as_echo "$ac_ct_AR" >&6; }
  4907. else
  4908. { $as_echo "$as_me:$LINENO: result: no" >&5
  4909. $as_echo "no" >&6; }
  4910. fi
  4911. if test "x$ac_ct_AR" = x; then
  4912. AR="false"
  4913. else
  4914. case $cross_compiling:$ac_tool_warned in
  4915. yes:)
  4916. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4918. ac_tool_warned=yes ;;
  4919. esac
  4920. AR=$ac_ct_AR
  4921. fi
  4922. else
  4923. AR="$ac_cv_prog_AR"
  4924. fi
  4925. test -z "$AR" && AR=ar
  4926. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4927. if test -n "$ac_tool_prefix"; then
  4928. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4929. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4930. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4931. $as_echo_n "checking for $ac_word... " >&6; }
  4932. if test "${ac_cv_prog_STRIP+set}" = set; then
  4933. $as_echo_n "(cached) " >&6
  4934. else
  4935. if test -n "$STRIP"; then
  4936. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4937. else
  4938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4939. for as_dir in $PATH
  4940. do
  4941. IFS=$as_save_IFS
  4942. test -z "$as_dir" && as_dir=.
  4943. for ac_exec_ext in '' $ac_executable_extensions; do
  4944. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4945. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4946. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4947. break 2
  4948. fi
  4949. done
  4950. done
  4951. IFS=$as_save_IFS
  4952. fi
  4953. fi
  4954. STRIP=$ac_cv_prog_STRIP
  4955. if test -n "$STRIP"; then
  4956. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4957. $as_echo "$STRIP" >&6; }
  4958. else
  4959. { $as_echo "$as_me:$LINENO: result: no" >&5
  4960. $as_echo "no" >&6; }
  4961. fi
  4962. fi
  4963. if test -z "$ac_cv_prog_STRIP"; then
  4964. ac_ct_STRIP=$STRIP
  4965. # Extract the first word of "strip", so it can be a program name with args.
  4966. set dummy strip; ac_word=$2
  4967. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4968. $as_echo_n "checking for $ac_word... " >&6; }
  4969. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4970. $as_echo_n "(cached) " >&6
  4971. else
  4972. if test -n "$ac_ct_STRIP"; then
  4973. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4974. else
  4975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4976. for as_dir in $PATH
  4977. do
  4978. IFS=$as_save_IFS
  4979. test -z "$as_dir" && as_dir=.
  4980. for ac_exec_ext in '' $ac_executable_extensions; do
  4981. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4982. ac_cv_prog_ac_ct_STRIP="strip"
  4983. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4984. break 2
  4985. fi
  4986. done
  4987. done
  4988. IFS=$as_save_IFS
  4989. fi
  4990. fi
  4991. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4992. if test -n "$ac_ct_STRIP"; then
  4993. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4994. $as_echo "$ac_ct_STRIP" >&6; }
  4995. else
  4996. { $as_echo "$as_me:$LINENO: result: no" >&5
  4997. $as_echo "no" >&6; }
  4998. fi
  4999. if test "x$ac_ct_STRIP" = x; then
  5000. STRIP=":"
  5001. else
  5002. case $cross_compiling:$ac_tool_warned in
  5003. yes:)
  5004. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5005. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5006. ac_tool_warned=yes ;;
  5007. esac
  5008. STRIP=$ac_ct_STRIP
  5009. fi
  5010. else
  5011. STRIP="$ac_cv_prog_STRIP"
  5012. fi
  5013. test -z "$STRIP" && STRIP=:
  5014. if test -n "$ac_tool_prefix"; then
  5015. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5016. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5017. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5018. $as_echo_n "checking for $ac_word... " >&6; }
  5019. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5020. $as_echo_n "(cached) " >&6
  5021. else
  5022. if test -n "$RANLIB"; then
  5023. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5024. else
  5025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5026. for as_dir in $PATH
  5027. do
  5028. IFS=$as_save_IFS
  5029. test -z "$as_dir" && as_dir=.
  5030. for ac_exec_ext in '' $ac_executable_extensions; do
  5031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5032. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5033. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5034. break 2
  5035. fi
  5036. done
  5037. done
  5038. IFS=$as_save_IFS
  5039. fi
  5040. fi
  5041. RANLIB=$ac_cv_prog_RANLIB
  5042. if test -n "$RANLIB"; then
  5043. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5044. $as_echo "$RANLIB" >&6; }
  5045. else
  5046. { $as_echo "$as_me:$LINENO: result: no" >&5
  5047. $as_echo "no" >&6; }
  5048. fi
  5049. fi
  5050. if test -z "$ac_cv_prog_RANLIB"; then
  5051. ac_ct_RANLIB=$RANLIB
  5052. # Extract the first word of "ranlib", so it can be a program name with args.
  5053. set dummy ranlib; ac_word=$2
  5054. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5055. $as_echo_n "checking for $ac_word... " >&6; }
  5056. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5057. $as_echo_n "(cached) " >&6
  5058. else
  5059. if test -n "$ac_ct_RANLIB"; then
  5060. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5061. else
  5062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5063. for as_dir in $PATH
  5064. do
  5065. IFS=$as_save_IFS
  5066. test -z "$as_dir" && as_dir=.
  5067. for ac_exec_ext in '' $ac_executable_extensions; do
  5068. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5069. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5070. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5071. break 2
  5072. fi
  5073. done
  5074. done
  5075. IFS=$as_save_IFS
  5076. fi
  5077. fi
  5078. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5079. if test -n "$ac_ct_RANLIB"; then
  5080. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5081. $as_echo "$ac_ct_RANLIB" >&6; }
  5082. else
  5083. { $as_echo "$as_me:$LINENO: result: no" >&5
  5084. $as_echo "no" >&6; }
  5085. fi
  5086. if test "x$ac_ct_RANLIB" = x; then
  5087. RANLIB=":"
  5088. else
  5089. case $cross_compiling:$ac_tool_warned in
  5090. yes:)
  5091. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5092. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5093. ac_tool_warned=yes ;;
  5094. esac
  5095. RANLIB=$ac_ct_RANLIB
  5096. fi
  5097. else
  5098. RANLIB="$ac_cv_prog_RANLIB"
  5099. fi
  5100. test -z "$RANLIB" && RANLIB=:
  5101. # Determine commands to create old-style static archives.
  5102. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5103. old_postinstall_cmds='chmod 644 $oldlib'
  5104. old_postuninstall_cmds=
  5105. if test -n "$RANLIB"; then
  5106. case $host_os in
  5107. openbsd*)
  5108. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5109. ;;
  5110. *)
  5111. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5112. ;;
  5113. esac
  5114. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5115. fi
  5116. # If no C compiler was specified, use CC.
  5117. LTCC=${LTCC-"$CC"}
  5118. # If no C compiler flags were specified, use CFLAGS.
  5119. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5120. # Allow CC to be a program name with arguments.
  5121. compiler=$CC
  5122. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5123. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5124. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5125. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5126. $as_echo_n "(cached) " >&6
  5127. else
  5128. # These are sane defaults that work on at least a few old systems.
  5129. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5130. # Character class describing NM global symbol codes.
  5131. symcode='[BCDEGRST]'
  5132. # Regexp to match symbols that can be accessed directly from C.
  5133. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5134. # Define system-specific variables.
  5135. case $host_os in
  5136. aix*)
  5137. symcode='[BCDT]'
  5138. ;;
  5139. cygwin* | mingw* | pw32* | cegcc*)
  5140. symcode='[ABCDGISTW]'
  5141. ;;
  5142. hpux*)
  5143. if test "$host_cpu" = ia64; then
  5144. symcode='[ABCDEGRST]'
  5145. fi
  5146. ;;
  5147. irix* | nonstopux*)
  5148. symcode='[BCDEGRST]'
  5149. ;;
  5150. osf*)
  5151. symcode='[BCDEGQRST]'
  5152. ;;
  5153. solaris*)
  5154. symcode='[BDRT]'
  5155. ;;
  5156. sco3.2v5*)
  5157. symcode='[DT]'
  5158. ;;
  5159. sysv4.2uw2*)
  5160. symcode='[DT]'
  5161. ;;
  5162. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5163. symcode='[ABDT]'
  5164. ;;
  5165. sysv4)
  5166. symcode='[DFNSTU]'
  5167. ;;
  5168. esac
  5169. # If we're using GNU nm, then use its standard symbol codes.
  5170. case `$NM -V 2>&1` in
  5171. *GNU* | *'with BFD'*)
  5172. symcode='[ABCDGIRSTW]' ;;
  5173. esac
  5174. # Transform an extracted symbol line into a proper C declaration.
  5175. # Some systems (esp. on ia64) link data and code symbols differently,
  5176. # so use this general approach.
  5177. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5178. # Transform an extracted symbol line into symbol name and symbol address
  5179. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5180. 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'"
  5181. # Handle CRLF in mingw tool chain
  5182. opt_cr=
  5183. case $build_os in
  5184. mingw*)
  5185. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5186. ;;
  5187. esac
  5188. # Try without a prefix underscore, then with it.
  5189. for ac_symprfx in "" "_"; do
  5190. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5191. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5192. # Write the raw and C identifiers.
  5193. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5194. # Fake it for dumpbin and say T for any non-static function
  5195. # and D for any global variable.
  5196. # Also find C++ and __fastcall symbols from MSVC++,
  5197. # which start with @ or ?.
  5198. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5199. " {last_section=section; section=\$ 3};"\
  5200. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5201. " \$ 0!~/External *\|/{next};"\
  5202. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5203. " {if(hide[section]) next};"\
  5204. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5205. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5206. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5207. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5208. " ' prfx=^$ac_symprfx"
  5209. else
  5210. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5211. fi
  5212. # Check to see that the pipe works correctly.
  5213. pipe_works=no
  5214. rm -f conftest*
  5215. cat > conftest.$ac_ext <<_LT_EOF
  5216. #ifdef __cplusplus
  5217. extern "C" {
  5218. #endif
  5219. char nm_test_var;
  5220. void nm_test_func(void);
  5221. void nm_test_func(void){}
  5222. #ifdef __cplusplus
  5223. }
  5224. #endif
  5225. int main(){nm_test_var='a';nm_test_func();return(0);}
  5226. _LT_EOF
  5227. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5228. (eval $ac_compile) 2>&5
  5229. ac_status=$?
  5230. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5231. (exit $ac_status); }; then
  5232. # Now try to grab the symbols.
  5233. nlist=conftest.nm
  5234. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5235. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5236. ac_status=$?
  5237. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5238. (exit $ac_status); } && test -s "$nlist"; then
  5239. # Try sorting and uniquifying the output.
  5240. if sort "$nlist" | uniq > "$nlist"T; then
  5241. mv -f "$nlist"T "$nlist"
  5242. else
  5243. rm -f "$nlist"T
  5244. fi
  5245. # Make sure that we snagged all the symbols we need.
  5246. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5247. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5248. cat <<_LT_EOF > conftest.$ac_ext
  5249. #ifdef __cplusplus
  5250. extern "C" {
  5251. #endif
  5252. _LT_EOF
  5253. # Now generate the symbol file.
  5254. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5255. cat <<_LT_EOF >> conftest.$ac_ext
  5256. /* The mapping between symbol names and symbols. */
  5257. const struct {
  5258. const char *name;
  5259. void *address;
  5260. }
  5261. lt__PROGRAM__LTX_preloaded_symbols[] =
  5262. {
  5263. { "@PROGRAM@", (void *) 0 },
  5264. _LT_EOF
  5265. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5266. cat <<\_LT_EOF >> conftest.$ac_ext
  5267. {0, (void *) 0}
  5268. };
  5269. /* This works around a problem in FreeBSD linker */
  5270. #ifdef FREEBSD_WORKAROUND
  5271. static const void *lt_preloaded_setup() {
  5272. return lt__PROGRAM__LTX_preloaded_symbols;
  5273. }
  5274. #endif
  5275. #ifdef __cplusplus
  5276. }
  5277. #endif
  5278. _LT_EOF
  5279. # Now try linking the two files.
  5280. mv conftest.$ac_objext conftstm.$ac_objext
  5281. lt_save_LIBS="$LIBS"
  5282. lt_save_CFLAGS="$CFLAGS"
  5283. LIBS="conftstm.$ac_objext"
  5284. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5285. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5286. (eval $ac_link) 2>&5
  5287. ac_status=$?
  5288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5289. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5290. pipe_works=yes
  5291. fi
  5292. LIBS="$lt_save_LIBS"
  5293. CFLAGS="$lt_save_CFLAGS"
  5294. else
  5295. echo "cannot find nm_test_func in $nlist" >&5
  5296. fi
  5297. else
  5298. echo "cannot find nm_test_var in $nlist" >&5
  5299. fi
  5300. else
  5301. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5302. fi
  5303. else
  5304. echo "$progname: failed program was:" >&5
  5305. cat conftest.$ac_ext >&5
  5306. fi
  5307. rm -rf conftest* conftst*
  5308. # Do not use the global_symbol_pipe unless it works.
  5309. if test "$pipe_works" = yes; then
  5310. break
  5311. else
  5312. lt_cv_sys_global_symbol_pipe=
  5313. fi
  5314. done
  5315. fi
  5316. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5317. lt_cv_sys_global_symbol_to_cdecl=
  5318. fi
  5319. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5320. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5321. $as_echo "failed" >&6; }
  5322. else
  5323. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5324. $as_echo "ok" >&6; }
  5325. fi
  5326. # Check whether --enable-libtool-lock was given.
  5327. if test "${enable_libtool_lock+set}" = set; then
  5328. enableval=$enable_libtool_lock;
  5329. fi
  5330. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5331. # Some flags need to be propagated to the compiler or linker for good
  5332. # libtool support.
  5333. case $host in
  5334. ia64-*-hpux*)
  5335. # Find out which ABI we are using.
  5336. echo 'int i;' > conftest.$ac_ext
  5337. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5338. (eval $ac_compile) 2>&5
  5339. ac_status=$?
  5340. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5341. (exit $ac_status); }; then
  5342. case `/usr/bin/file conftest.$ac_objext` in
  5343. *ELF-32*)
  5344. HPUX_IA64_MODE="32"
  5345. ;;
  5346. *ELF-64*)
  5347. HPUX_IA64_MODE="64"
  5348. ;;
  5349. esac
  5350. fi
  5351. rm -rf conftest*
  5352. ;;
  5353. *-*-irix6*)
  5354. # Find out which ABI we are using.
  5355. echo '#line 6130 "configure"' > conftest.$ac_ext
  5356. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5357. (eval $ac_compile) 2>&5
  5358. ac_status=$?
  5359. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5360. (exit $ac_status); }; then
  5361. if test "$lt_cv_prog_gnu_ld" = yes; then
  5362. case `/usr/bin/file conftest.$ac_objext` in
  5363. *32-bit*)
  5364. LD="${LD-ld} -melf32bsmip"
  5365. ;;
  5366. *N32*)
  5367. LD="${LD-ld} -melf32bmipn32"
  5368. ;;
  5369. *64-bit*)
  5370. LD="${LD-ld} -melf64bmip"
  5371. ;;
  5372. esac
  5373. else
  5374. case `/usr/bin/file conftest.$ac_objext` in
  5375. *32-bit*)
  5376. LD="${LD-ld} -32"
  5377. ;;
  5378. *N32*)
  5379. LD="${LD-ld} -n32"
  5380. ;;
  5381. *64-bit*)
  5382. LD="${LD-ld} -64"
  5383. ;;
  5384. esac
  5385. fi
  5386. fi
  5387. rm -rf conftest*
  5388. ;;
  5389. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5390. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5391. # Find out which ABI we are using.
  5392. echo 'int i;' > conftest.$ac_ext
  5393. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5394. (eval $ac_compile) 2>&5
  5395. ac_status=$?
  5396. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5397. (exit $ac_status); }; then
  5398. case `/usr/bin/file conftest.o` in
  5399. *32-bit*)
  5400. case $host in
  5401. x86_64-*kfreebsd*-gnu)
  5402. LD="${LD-ld} -m elf_i386_fbsd"
  5403. ;;
  5404. x86_64-*linux*)
  5405. LD="${LD-ld} -m elf_i386"
  5406. ;;
  5407. ppc64-*linux*|powerpc64-*linux*)
  5408. LD="${LD-ld} -m elf32ppclinux"
  5409. ;;
  5410. s390x-*linux*)
  5411. LD="${LD-ld} -m elf_s390"
  5412. ;;
  5413. sparc64-*linux*)
  5414. LD="${LD-ld} -m elf32_sparc"
  5415. ;;
  5416. esac
  5417. ;;
  5418. *64-bit*)
  5419. case $host in
  5420. x86_64-*kfreebsd*-gnu)
  5421. LD="${LD-ld} -m elf_x86_64_fbsd"
  5422. ;;
  5423. x86_64-*linux*)
  5424. LD="${LD-ld} -m elf_x86_64"
  5425. ;;
  5426. ppc*-*linux*|powerpc*-*linux*)
  5427. LD="${LD-ld} -m elf64ppc"
  5428. ;;
  5429. s390*-*linux*|s390*-*tpf*)
  5430. LD="${LD-ld} -m elf64_s390"
  5431. ;;
  5432. sparc*-*linux*)
  5433. LD="${LD-ld} -m elf64_sparc"
  5434. ;;
  5435. esac
  5436. ;;
  5437. esac
  5438. fi
  5439. rm -rf conftest*
  5440. ;;
  5441. *-*-sco3.2v5*)
  5442. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5443. SAVE_CFLAGS="$CFLAGS"
  5444. CFLAGS="$CFLAGS -belf"
  5445. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5446. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5447. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5448. $as_echo_n "(cached) " >&6
  5449. else
  5450. ac_ext=c
  5451. ac_cpp='$CPP $CPPFLAGS'
  5452. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5453. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5454. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5455. cat >conftest.$ac_ext <<_ACEOF
  5456. /* confdefs.h. */
  5457. _ACEOF
  5458. cat confdefs.h >>conftest.$ac_ext
  5459. cat >>conftest.$ac_ext <<_ACEOF
  5460. /* end confdefs.h. */
  5461. int
  5462. main ()
  5463. {
  5464. ;
  5465. return 0;
  5466. }
  5467. _ACEOF
  5468. rm -f conftest.$ac_objext conftest$ac_exeext
  5469. if { (ac_try="$ac_link"
  5470. case "(($ac_try" in
  5471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5472. *) ac_try_echo=$ac_try;;
  5473. esac
  5474. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5475. $as_echo "$ac_try_echo") >&5
  5476. (eval "$ac_link") 2>conftest.er1
  5477. ac_status=$?
  5478. grep -v '^ *+' conftest.er1 >conftest.err
  5479. rm -f conftest.er1
  5480. cat conftest.err >&5
  5481. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5482. (exit $ac_status); } && {
  5483. test -z "$ac_c_werror_flag" ||
  5484. test ! -s conftest.err
  5485. } && test -s conftest$ac_exeext && {
  5486. test "$cross_compiling" = yes ||
  5487. $as_test_x conftest$ac_exeext
  5488. }; then
  5489. lt_cv_cc_needs_belf=yes
  5490. else
  5491. $as_echo "$as_me: failed program was:" >&5
  5492. sed 's/^/| /' conftest.$ac_ext >&5
  5493. lt_cv_cc_needs_belf=no
  5494. fi
  5495. rm -rf conftest.dSYM
  5496. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5497. conftest$ac_exeext conftest.$ac_ext
  5498. ac_ext=c
  5499. ac_cpp='$CPP $CPPFLAGS'
  5500. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5501. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5502. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5503. fi
  5504. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5505. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5506. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5507. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5508. CFLAGS="$SAVE_CFLAGS"
  5509. fi
  5510. ;;
  5511. sparc*-*solaris*)
  5512. # Find out which ABI we are using.
  5513. echo 'int i;' > conftest.$ac_ext
  5514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5515. (eval $ac_compile) 2>&5
  5516. ac_status=$?
  5517. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5518. (exit $ac_status); }; then
  5519. case `/usr/bin/file conftest.o` in
  5520. *64-bit*)
  5521. case $lt_cv_prog_gnu_ld in
  5522. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5523. *)
  5524. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5525. LD="${LD-ld} -64"
  5526. fi
  5527. ;;
  5528. esac
  5529. ;;
  5530. esac
  5531. fi
  5532. rm -rf conftest*
  5533. ;;
  5534. esac
  5535. need_locks="$enable_libtool_lock"
  5536. case $host_os in
  5537. rhapsody* | darwin*)
  5538. if test -n "$ac_tool_prefix"; then
  5539. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5540. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5541. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5542. $as_echo_n "checking for $ac_word... " >&6; }
  5543. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5544. $as_echo_n "(cached) " >&6
  5545. else
  5546. if test -n "$DSYMUTIL"; then
  5547. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5548. else
  5549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5550. for as_dir in $PATH
  5551. do
  5552. IFS=$as_save_IFS
  5553. test -z "$as_dir" && as_dir=.
  5554. for ac_exec_ext in '' $ac_executable_extensions; do
  5555. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5556. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5557. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5558. break 2
  5559. fi
  5560. done
  5561. done
  5562. IFS=$as_save_IFS
  5563. fi
  5564. fi
  5565. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5566. if test -n "$DSYMUTIL"; then
  5567. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5568. $as_echo "$DSYMUTIL" >&6; }
  5569. else
  5570. { $as_echo "$as_me:$LINENO: result: no" >&5
  5571. $as_echo "no" >&6; }
  5572. fi
  5573. fi
  5574. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5575. ac_ct_DSYMUTIL=$DSYMUTIL
  5576. # Extract the first word of "dsymutil", so it can be a program name with args.
  5577. set dummy dsymutil; ac_word=$2
  5578. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5579. $as_echo_n "checking for $ac_word... " >&6; }
  5580. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5581. $as_echo_n "(cached) " >&6
  5582. else
  5583. if test -n "$ac_ct_DSYMUTIL"; then
  5584. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5585. else
  5586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5587. for as_dir in $PATH
  5588. do
  5589. IFS=$as_save_IFS
  5590. test -z "$as_dir" && as_dir=.
  5591. for ac_exec_ext in '' $ac_executable_extensions; do
  5592. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5593. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5594. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5595. break 2
  5596. fi
  5597. done
  5598. done
  5599. IFS=$as_save_IFS
  5600. fi
  5601. fi
  5602. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5603. if test -n "$ac_ct_DSYMUTIL"; then
  5604. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5605. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5606. else
  5607. { $as_echo "$as_me:$LINENO: result: no" >&5
  5608. $as_echo "no" >&6; }
  5609. fi
  5610. if test "x$ac_ct_DSYMUTIL" = x; then
  5611. DSYMUTIL=":"
  5612. else
  5613. case $cross_compiling:$ac_tool_warned in
  5614. yes:)
  5615. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5616. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5617. ac_tool_warned=yes ;;
  5618. esac
  5619. DSYMUTIL=$ac_ct_DSYMUTIL
  5620. fi
  5621. else
  5622. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5623. fi
  5624. if test -n "$ac_tool_prefix"; then
  5625. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5626. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5627. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5628. $as_echo_n "checking for $ac_word... " >&6; }
  5629. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5630. $as_echo_n "(cached) " >&6
  5631. else
  5632. if test -n "$NMEDIT"; then
  5633. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5634. else
  5635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5636. for as_dir in $PATH
  5637. do
  5638. IFS=$as_save_IFS
  5639. test -z "$as_dir" && as_dir=.
  5640. for ac_exec_ext in '' $ac_executable_extensions; do
  5641. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5642. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5643. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5644. break 2
  5645. fi
  5646. done
  5647. done
  5648. IFS=$as_save_IFS
  5649. fi
  5650. fi
  5651. NMEDIT=$ac_cv_prog_NMEDIT
  5652. if test -n "$NMEDIT"; then
  5653. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5654. $as_echo "$NMEDIT" >&6; }
  5655. else
  5656. { $as_echo "$as_me:$LINENO: result: no" >&5
  5657. $as_echo "no" >&6; }
  5658. fi
  5659. fi
  5660. if test -z "$ac_cv_prog_NMEDIT"; then
  5661. ac_ct_NMEDIT=$NMEDIT
  5662. # Extract the first word of "nmedit", so it can be a program name with args.
  5663. set dummy nmedit; ac_word=$2
  5664. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5665. $as_echo_n "checking for $ac_word... " >&6; }
  5666. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5667. $as_echo_n "(cached) " >&6
  5668. else
  5669. if test -n "$ac_ct_NMEDIT"; then
  5670. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5671. else
  5672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5673. for as_dir in $PATH
  5674. do
  5675. IFS=$as_save_IFS
  5676. test -z "$as_dir" && as_dir=.
  5677. for ac_exec_ext in '' $ac_executable_extensions; do
  5678. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5679. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5680. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5681. break 2
  5682. fi
  5683. done
  5684. done
  5685. IFS=$as_save_IFS
  5686. fi
  5687. fi
  5688. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5689. if test -n "$ac_ct_NMEDIT"; then
  5690. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5691. $as_echo "$ac_ct_NMEDIT" >&6; }
  5692. else
  5693. { $as_echo "$as_me:$LINENO: result: no" >&5
  5694. $as_echo "no" >&6; }
  5695. fi
  5696. if test "x$ac_ct_NMEDIT" = x; then
  5697. NMEDIT=":"
  5698. else
  5699. case $cross_compiling:$ac_tool_warned in
  5700. yes:)
  5701. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5702. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5703. ac_tool_warned=yes ;;
  5704. esac
  5705. NMEDIT=$ac_ct_NMEDIT
  5706. fi
  5707. else
  5708. NMEDIT="$ac_cv_prog_NMEDIT"
  5709. fi
  5710. if test -n "$ac_tool_prefix"; then
  5711. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5712. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5713. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5714. $as_echo_n "checking for $ac_word... " >&6; }
  5715. if test "${ac_cv_prog_LIPO+set}" = set; then
  5716. $as_echo_n "(cached) " >&6
  5717. else
  5718. if test -n "$LIPO"; then
  5719. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5720. else
  5721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5722. for as_dir in $PATH
  5723. do
  5724. IFS=$as_save_IFS
  5725. test -z "$as_dir" && as_dir=.
  5726. for ac_exec_ext in '' $ac_executable_extensions; do
  5727. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5728. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5729. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5730. break 2
  5731. fi
  5732. done
  5733. done
  5734. IFS=$as_save_IFS
  5735. fi
  5736. fi
  5737. LIPO=$ac_cv_prog_LIPO
  5738. if test -n "$LIPO"; then
  5739. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5740. $as_echo "$LIPO" >&6; }
  5741. else
  5742. { $as_echo "$as_me:$LINENO: result: no" >&5
  5743. $as_echo "no" >&6; }
  5744. fi
  5745. fi
  5746. if test -z "$ac_cv_prog_LIPO"; then
  5747. ac_ct_LIPO=$LIPO
  5748. # Extract the first word of "lipo", so it can be a program name with args.
  5749. set dummy lipo; ac_word=$2
  5750. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5751. $as_echo_n "checking for $ac_word... " >&6; }
  5752. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5753. $as_echo_n "(cached) " >&6
  5754. else
  5755. if test -n "$ac_ct_LIPO"; then
  5756. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5757. else
  5758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5759. for as_dir in $PATH
  5760. do
  5761. IFS=$as_save_IFS
  5762. test -z "$as_dir" && as_dir=.
  5763. for ac_exec_ext in '' $ac_executable_extensions; do
  5764. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5765. ac_cv_prog_ac_ct_LIPO="lipo"
  5766. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5767. break 2
  5768. fi
  5769. done
  5770. done
  5771. IFS=$as_save_IFS
  5772. fi
  5773. fi
  5774. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5775. if test -n "$ac_ct_LIPO"; then
  5776. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5777. $as_echo "$ac_ct_LIPO" >&6; }
  5778. else
  5779. { $as_echo "$as_me:$LINENO: result: no" >&5
  5780. $as_echo "no" >&6; }
  5781. fi
  5782. if test "x$ac_ct_LIPO" = x; then
  5783. LIPO=":"
  5784. else
  5785. case $cross_compiling:$ac_tool_warned in
  5786. yes:)
  5787. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5788. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5789. ac_tool_warned=yes ;;
  5790. esac
  5791. LIPO=$ac_ct_LIPO
  5792. fi
  5793. else
  5794. LIPO="$ac_cv_prog_LIPO"
  5795. fi
  5796. if test -n "$ac_tool_prefix"; then
  5797. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5798. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5799. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5800. $as_echo_n "checking for $ac_word... " >&6; }
  5801. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5802. $as_echo_n "(cached) " >&6
  5803. else
  5804. if test -n "$OTOOL"; then
  5805. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5806. else
  5807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5808. for as_dir in $PATH
  5809. do
  5810. IFS=$as_save_IFS
  5811. test -z "$as_dir" && as_dir=.
  5812. for ac_exec_ext in '' $ac_executable_extensions; do
  5813. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5814. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5815. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5816. break 2
  5817. fi
  5818. done
  5819. done
  5820. IFS=$as_save_IFS
  5821. fi
  5822. fi
  5823. OTOOL=$ac_cv_prog_OTOOL
  5824. if test -n "$OTOOL"; then
  5825. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5826. $as_echo "$OTOOL" >&6; }
  5827. else
  5828. { $as_echo "$as_me:$LINENO: result: no" >&5
  5829. $as_echo "no" >&6; }
  5830. fi
  5831. fi
  5832. if test -z "$ac_cv_prog_OTOOL"; then
  5833. ac_ct_OTOOL=$OTOOL
  5834. # Extract the first word of "otool", so it can be a program name with args.
  5835. set dummy otool; ac_word=$2
  5836. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5837. $as_echo_n "checking for $ac_word... " >&6; }
  5838. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5839. $as_echo_n "(cached) " >&6
  5840. else
  5841. if test -n "$ac_ct_OTOOL"; then
  5842. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5843. else
  5844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5845. for as_dir in $PATH
  5846. do
  5847. IFS=$as_save_IFS
  5848. test -z "$as_dir" && as_dir=.
  5849. for ac_exec_ext in '' $ac_executable_extensions; do
  5850. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5851. ac_cv_prog_ac_ct_OTOOL="otool"
  5852. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5853. break 2
  5854. fi
  5855. done
  5856. done
  5857. IFS=$as_save_IFS
  5858. fi
  5859. fi
  5860. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5861. if test -n "$ac_ct_OTOOL"; then
  5862. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5863. $as_echo "$ac_ct_OTOOL" >&6; }
  5864. else
  5865. { $as_echo "$as_me:$LINENO: result: no" >&5
  5866. $as_echo "no" >&6; }
  5867. fi
  5868. if test "x$ac_ct_OTOOL" = x; then
  5869. OTOOL=":"
  5870. else
  5871. case $cross_compiling:$ac_tool_warned in
  5872. yes:)
  5873. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5874. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5875. ac_tool_warned=yes ;;
  5876. esac
  5877. OTOOL=$ac_ct_OTOOL
  5878. fi
  5879. else
  5880. OTOOL="$ac_cv_prog_OTOOL"
  5881. fi
  5882. if test -n "$ac_tool_prefix"; then
  5883. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5884. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5885. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5886. $as_echo_n "checking for $ac_word... " >&6; }
  5887. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5888. $as_echo_n "(cached) " >&6
  5889. else
  5890. if test -n "$OTOOL64"; then
  5891. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5892. else
  5893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5894. for as_dir in $PATH
  5895. do
  5896. IFS=$as_save_IFS
  5897. test -z "$as_dir" && as_dir=.
  5898. for ac_exec_ext in '' $ac_executable_extensions; do
  5899. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5900. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5901. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5902. break 2
  5903. fi
  5904. done
  5905. done
  5906. IFS=$as_save_IFS
  5907. fi
  5908. fi
  5909. OTOOL64=$ac_cv_prog_OTOOL64
  5910. if test -n "$OTOOL64"; then
  5911. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5912. $as_echo "$OTOOL64" >&6; }
  5913. else
  5914. { $as_echo "$as_me:$LINENO: result: no" >&5
  5915. $as_echo "no" >&6; }
  5916. fi
  5917. fi
  5918. if test -z "$ac_cv_prog_OTOOL64"; then
  5919. ac_ct_OTOOL64=$OTOOL64
  5920. # Extract the first word of "otool64", so it can be a program name with args.
  5921. set dummy otool64; ac_word=$2
  5922. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5923. $as_echo_n "checking for $ac_word... " >&6; }
  5924. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5925. $as_echo_n "(cached) " >&6
  5926. else
  5927. if test -n "$ac_ct_OTOOL64"; then
  5928. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5929. else
  5930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5931. for as_dir in $PATH
  5932. do
  5933. IFS=$as_save_IFS
  5934. test -z "$as_dir" && as_dir=.
  5935. for ac_exec_ext in '' $ac_executable_extensions; do
  5936. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5937. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5938. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5939. break 2
  5940. fi
  5941. done
  5942. done
  5943. IFS=$as_save_IFS
  5944. fi
  5945. fi
  5946. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5947. if test -n "$ac_ct_OTOOL64"; then
  5948. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5949. $as_echo "$ac_ct_OTOOL64" >&6; }
  5950. else
  5951. { $as_echo "$as_me:$LINENO: result: no" >&5
  5952. $as_echo "no" >&6; }
  5953. fi
  5954. if test "x$ac_ct_OTOOL64" = x; then
  5955. OTOOL64=":"
  5956. else
  5957. case $cross_compiling:$ac_tool_warned in
  5958. yes:)
  5959. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5960. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5961. ac_tool_warned=yes ;;
  5962. esac
  5963. OTOOL64=$ac_ct_OTOOL64
  5964. fi
  5965. else
  5966. OTOOL64="$ac_cv_prog_OTOOL64"
  5967. fi
  5968. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5969. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5970. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5971. $as_echo_n "(cached) " >&6
  5972. else
  5973. lt_cv_apple_cc_single_mod=no
  5974. if test -z "${LT_MULTI_MODULE}"; then
  5975. # By default we will add the -single_module flag. You can override
  5976. # by either setting the environment variable LT_MULTI_MODULE
  5977. # non-empty at configure time, or by adding -multi_module to the
  5978. # link flags.
  5979. rm -rf libconftest.dylib*
  5980. echo "int foo(void){return 1;}" > conftest.c
  5981. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5982. -dynamiclib -Wl,-single_module conftest.c" >&5
  5983. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5984. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5985. _lt_result=$?
  5986. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5987. lt_cv_apple_cc_single_mod=yes
  5988. else
  5989. cat conftest.err >&5
  5990. fi
  5991. rm -rf libconftest.dylib*
  5992. rm -f conftest.*
  5993. fi
  5994. fi
  5995. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5996. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5997. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5998. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5999. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6000. $as_echo_n "(cached) " >&6
  6001. else
  6002. lt_cv_ld_exported_symbols_list=no
  6003. save_LDFLAGS=$LDFLAGS
  6004. echo "_main" > conftest.sym
  6005. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6006. cat >conftest.$ac_ext <<_ACEOF
  6007. /* confdefs.h. */
  6008. _ACEOF
  6009. cat confdefs.h >>conftest.$ac_ext
  6010. cat >>conftest.$ac_ext <<_ACEOF
  6011. /* end confdefs.h. */
  6012. int
  6013. main ()
  6014. {
  6015. ;
  6016. return 0;
  6017. }
  6018. _ACEOF
  6019. rm -f conftest.$ac_objext conftest$ac_exeext
  6020. if { (ac_try="$ac_link"
  6021. case "(($ac_try" in
  6022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6023. *) ac_try_echo=$ac_try;;
  6024. esac
  6025. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6026. $as_echo "$ac_try_echo") >&5
  6027. (eval "$ac_link") 2>conftest.er1
  6028. ac_status=$?
  6029. grep -v '^ *+' conftest.er1 >conftest.err
  6030. rm -f conftest.er1
  6031. cat conftest.err >&5
  6032. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6033. (exit $ac_status); } && {
  6034. test -z "$ac_c_werror_flag" ||
  6035. test ! -s conftest.err
  6036. } && test -s conftest$ac_exeext && {
  6037. test "$cross_compiling" = yes ||
  6038. $as_test_x conftest$ac_exeext
  6039. }; then
  6040. lt_cv_ld_exported_symbols_list=yes
  6041. else
  6042. $as_echo "$as_me: failed program was:" >&5
  6043. sed 's/^/| /' conftest.$ac_ext >&5
  6044. lt_cv_ld_exported_symbols_list=no
  6045. fi
  6046. rm -rf conftest.dSYM
  6047. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6048. conftest$ac_exeext conftest.$ac_ext
  6049. LDFLAGS="$save_LDFLAGS"
  6050. fi
  6051. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6052. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6053. case $host_os in
  6054. rhapsody* | darwin1.[012])
  6055. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6056. darwin1.*)
  6057. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6058. darwin*) # darwin 5.x on
  6059. # if running on 10.5 or later, the deployment target defaults
  6060. # to the OS version, if on x86, and 10.4, the deployment
  6061. # target defaults to 10.4. Don't you love it?
  6062. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6063. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6064. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6065. 10.[012]*)
  6066. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6067. 10.*)
  6068. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6069. esac
  6070. ;;
  6071. esac
  6072. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6073. _lt_dar_single_mod='$single_module'
  6074. fi
  6075. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6076. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6077. else
  6078. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6079. fi
  6080. if test "$DSYMUTIL" != ":"; then
  6081. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6082. else
  6083. _lt_dsymutil=
  6084. fi
  6085. ;;
  6086. esac
  6087. ac_ext=c
  6088. ac_cpp='$CPP $CPPFLAGS'
  6089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6092. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6093. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6094. # On Suns, sometimes $CPP names a directory.
  6095. if test -n "$CPP" && test -d "$CPP"; then
  6096. CPP=
  6097. fi
  6098. if test -z "$CPP"; then
  6099. if test "${ac_cv_prog_CPP+set}" = set; then
  6100. $as_echo_n "(cached) " >&6
  6101. else
  6102. # Double quotes because CPP needs to be expanded
  6103. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6104. do
  6105. ac_preproc_ok=false
  6106. for ac_c_preproc_warn_flag in '' yes
  6107. do
  6108. # Use a header file that comes with gcc, so configuring glibc
  6109. # with a fresh cross-compiler works.
  6110. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6111. # <limits.h> exists even on freestanding compilers.
  6112. # On the NeXT, cc -E runs the code through the compiler's parser,
  6113. # not just through cpp. "Syntax error" is here to catch this case.
  6114. cat >conftest.$ac_ext <<_ACEOF
  6115. /* confdefs.h. */
  6116. _ACEOF
  6117. cat confdefs.h >>conftest.$ac_ext
  6118. cat >>conftest.$ac_ext <<_ACEOF
  6119. /* end confdefs.h. */
  6120. #ifdef __STDC__
  6121. # include <limits.h>
  6122. #else
  6123. # include <assert.h>
  6124. #endif
  6125. Syntax error
  6126. _ACEOF
  6127. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6128. case "(($ac_try" in
  6129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6130. *) ac_try_echo=$ac_try;;
  6131. esac
  6132. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6133. $as_echo "$ac_try_echo") >&5
  6134. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6135. ac_status=$?
  6136. grep -v '^ *+' conftest.er1 >conftest.err
  6137. rm -f conftest.er1
  6138. cat conftest.err >&5
  6139. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6140. (exit $ac_status); } >/dev/null && {
  6141. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6142. test ! -s conftest.err
  6143. }; then
  6144. :
  6145. else
  6146. $as_echo "$as_me: failed program was:" >&5
  6147. sed 's/^/| /' conftest.$ac_ext >&5
  6148. # Broken: fails on valid input.
  6149. continue
  6150. fi
  6151. rm -f conftest.err conftest.$ac_ext
  6152. # OK, works on sane cases. Now check whether nonexistent headers
  6153. # can be detected and how.
  6154. cat >conftest.$ac_ext <<_ACEOF
  6155. /* confdefs.h. */
  6156. _ACEOF
  6157. cat confdefs.h >>conftest.$ac_ext
  6158. cat >>conftest.$ac_ext <<_ACEOF
  6159. /* end confdefs.h. */
  6160. #include <ac_nonexistent.h>
  6161. _ACEOF
  6162. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6163. case "(($ac_try" in
  6164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6165. *) ac_try_echo=$ac_try;;
  6166. esac
  6167. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6168. $as_echo "$ac_try_echo") >&5
  6169. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6170. ac_status=$?
  6171. grep -v '^ *+' conftest.er1 >conftest.err
  6172. rm -f conftest.er1
  6173. cat conftest.err >&5
  6174. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6175. (exit $ac_status); } >/dev/null && {
  6176. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6177. test ! -s conftest.err
  6178. }; then
  6179. # Broken: success on invalid input.
  6180. continue
  6181. else
  6182. $as_echo "$as_me: failed program was:" >&5
  6183. sed 's/^/| /' conftest.$ac_ext >&5
  6184. # Passes both tests.
  6185. ac_preproc_ok=:
  6186. break
  6187. fi
  6188. rm -f conftest.err conftest.$ac_ext
  6189. done
  6190. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6191. rm -f conftest.err conftest.$ac_ext
  6192. if $ac_preproc_ok; then
  6193. break
  6194. fi
  6195. done
  6196. ac_cv_prog_CPP=$CPP
  6197. fi
  6198. CPP=$ac_cv_prog_CPP
  6199. else
  6200. ac_cv_prog_CPP=$CPP
  6201. fi
  6202. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6203. $as_echo "$CPP" >&6; }
  6204. ac_preproc_ok=false
  6205. for ac_c_preproc_warn_flag in '' yes
  6206. do
  6207. # Use a header file that comes with gcc, so configuring glibc
  6208. # with a fresh cross-compiler works.
  6209. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6210. # <limits.h> exists even on freestanding compilers.
  6211. # On the NeXT, cc -E runs the code through the compiler's parser,
  6212. # not just through cpp. "Syntax error" is here to catch this case.
  6213. cat >conftest.$ac_ext <<_ACEOF
  6214. /* confdefs.h. */
  6215. _ACEOF
  6216. cat confdefs.h >>conftest.$ac_ext
  6217. cat >>conftest.$ac_ext <<_ACEOF
  6218. /* end confdefs.h. */
  6219. #ifdef __STDC__
  6220. # include <limits.h>
  6221. #else
  6222. # include <assert.h>
  6223. #endif
  6224. Syntax error
  6225. _ACEOF
  6226. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6227. case "(($ac_try" in
  6228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6229. *) ac_try_echo=$ac_try;;
  6230. esac
  6231. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6232. $as_echo "$ac_try_echo") >&5
  6233. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6234. ac_status=$?
  6235. grep -v '^ *+' conftest.er1 >conftest.err
  6236. rm -f conftest.er1
  6237. cat conftest.err >&5
  6238. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6239. (exit $ac_status); } >/dev/null && {
  6240. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6241. test ! -s conftest.err
  6242. }; then
  6243. :
  6244. else
  6245. $as_echo "$as_me: failed program was:" >&5
  6246. sed 's/^/| /' conftest.$ac_ext >&5
  6247. # Broken: fails on valid input.
  6248. continue
  6249. fi
  6250. rm -f conftest.err conftest.$ac_ext
  6251. # OK, works on sane cases. Now check whether nonexistent headers
  6252. # can be detected and how.
  6253. cat >conftest.$ac_ext <<_ACEOF
  6254. /* confdefs.h. */
  6255. _ACEOF
  6256. cat confdefs.h >>conftest.$ac_ext
  6257. cat >>conftest.$ac_ext <<_ACEOF
  6258. /* end confdefs.h. */
  6259. #include <ac_nonexistent.h>
  6260. _ACEOF
  6261. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6262. case "(($ac_try" in
  6263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6264. *) ac_try_echo=$ac_try;;
  6265. esac
  6266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6267. $as_echo "$ac_try_echo") >&5
  6268. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6269. ac_status=$?
  6270. grep -v '^ *+' conftest.er1 >conftest.err
  6271. rm -f conftest.er1
  6272. cat conftest.err >&5
  6273. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6274. (exit $ac_status); } >/dev/null && {
  6275. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6276. test ! -s conftest.err
  6277. }; then
  6278. # Broken: success on invalid input.
  6279. continue
  6280. else
  6281. $as_echo "$as_me: failed program was:" >&5
  6282. sed 's/^/| /' conftest.$ac_ext >&5
  6283. # Passes both tests.
  6284. ac_preproc_ok=:
  6285. break
  6286. fi
  6287. rm -f conftest.err conftest.$ac_ext
  6288. done
  6289. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6290. rm -f conftest.err conftest.$ac_ext
  6291. if $ac_preproc_ok; then
  6292. :
  6293. else
  6294. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6295. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6296. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6297. See \`config.log' for more details." >&5
  6298. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6299. See \`config.log' for more details." >&2;}
  6300. { (exit 1); exit 1; }; }; }
  6301. fi
  6302. ac_ext=c
  6303. ac_cpp='$CPP $CPPFLAGS'
  6304. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6305. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6306. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6307. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6308. $as_echo_n "checking for ANSI C header files... " >&6; }
  6309. if test "${ac_cv_header_stdc+set}" = set; then
  6310. $as_echo_n "(cached) " >&6
  6311. else
  6312. cat >conftest.$ac_ext <<_ACEOF
  6313. /* confdefs.h. */
  6314. _ACEOF
  6315. cat confdefs.h >>conftest.$ac_ext
  6316. cat >>conftest.$ac_ext <<_ACEOF
  6317. /* end confdefs.h. */
  6318. #include <stdlib.h>
  6319. #include <stdarg.h>
  6320. #include <string.h>
  6321. #include <float.h>
  6322. int
  6323. main ()
  6324. {
  6325. ;
  6326. return 0;
  6327. }
  6328. _ACEOF
  6329. rm -f conftest.$ac_objext
  6330. if { (ac_try="$ac_compile"
  6331. case "(($ac_try" in
  6332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6333. *) ac_try_echo=$ac_try;;
  6334. esac
  6335. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6336. $as_echo "$ac_try_echo") >&5
  6337. (eval "$ac_compile") 2>conftest.er1
  6338. ac_status=$?
  6339. grep -v '^ *+' conftest.er1 >conftest.err
  6340. rm -f conftest.er1
  6341. cat conftest.err >&5
  6342. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6343. (exit $ac_status); } && {
  6344. test -z "$ac_c_werror_flag" ||
  6345. test ! -s conftest.err
  6346. } && test -s conftest.$ac_objext; then
  6347. ac_cv_header_stdc=yes
  6348. else
  6349. $as_echo "$as_me: failed program was:" >&5
  6350. sed 's/^/| /' conftest.$ac_ext >&5
  6351. ac_cv_header_stdc=no
  6352. fi
  6353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6354. if test $ac_cv_header_stdc = yes; then
  6355. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6356. cat >conftest.$ac_ext <<_ACEOF
  6357. /* confdefs.h. */
  6358. _ACEOF
  6359. cat confdefs.h >>conftest.$ac_ext
  6360. cat >>conftest.$ac_ext <<_ACEOF
  6361. /* end confdefs.h. */
  6362. #include <string.h>
  6363. _ACEOF
  6364. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6365. $EGREP "memchr" >/dev/null 2>&1; then
  6366. :
  6367. else
  6368. ac_cv_header_stdc=no
  6369. fi
  6370. rm -f conftest*
  6371. fi
  6372. if test $ac_cv_header_stdc = yes; then
  6373. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6374. cat >conftest.$ac_ext <<_ACEOF
  6375. /* confdefs.h. */
  6376. _ACEOF
  6377. cat confdefs.h >>conftest.$ac_ext
  6378. cat >>conftest.$ac_ext <<_ACEOF
  6379. /* end confdefs.h. */
  6380. #include <stdlib.h>
  6381. _ACEOF
  6382. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6383. $EGREP "free" >/dev/null 2>&1; then
  6384. :
  6385. else
  6386. ac_cv_header_stdc=no
  6387. fi
  6388. rm -f conftest*
  6389. fi
  6390. if test $ac_cv_header_stdc = yes; then
  6391. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6392. if test "$cross_compiling" = yes; then
  6393. :
  6394. else
  6395. cat >conftest.$ac_ext <<_ACEOF
  6396. /* confdefs.h. */
  6397. _ACEOF
  6398. cat confdefs.h >>conftest.$ac_ext
  6399. cat >>conftest.$ac_ext <<_ACEOF
  6400. /* end confdefs.h. */
  6401. #include <ctype.h>
  6402. #include <stdlib.h>
  6403. #if ((' ' & 0x0FF) == 0x020)
  6404. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6405. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6406. #else
  6407. # define ISLOWER(c) \
  6408. (('a' <= (c) && (c) <= 'i') \
  6409. || ('j' <= (c) && (c) <= 'r') \
  6410. || ('s' <= (c) && (c) <= 'z'))
  6411. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6412. #endif
  6413. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6414. int
  6415. main ()
  6416. {
  6417. int i;
  6418. for (i = 0; i < 256; i++)
  6419. if (XOR (islower (i), ISLOWER (i))
  6420. || toupper (i) != TOUPPER (i))
  6421. return 2;
  6422. return 0;
  6423. }
  6424. _ACEOF
  6425. rm -f conftest$ac_exeext
  6426. if { (ac_try="$ac_link"
  6427. case "(($ac_try" in
  6428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6429. *) ac_try_echo=$ac_try;;
  6430. esac
  6431. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6432. $as_echo "$ac_try_echo") >&5
  6433. (eval "$ac_link") 2>&5
  6434. ac_status=$?
  6435. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6436. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6437. { (case "(($ac_try" in
  6438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6439. *) ac_try_echo=$ac_try;;
  6440. esac
  6441. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6442. $as_echo "$ac_try_echo") >&5
  6443. (eval "$ac_try") 2>&5
  6444. ac_status=$?
  6445. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6446. (exit $ac_status); }; }; then
  6447. :
  6448. else
  6449. $as_echo "$as_me: program exited with status $ac_status" >&5
  6450. $as_echo "$as_me: failed program was:" >&5
  6451. sed 's/^/| /' conftest.$ac_ext >&5
  6452. ( exit $ac_status )
  6453. ac_cv_header_stdc=no
  6454. fi
  6455. rm -rf conftest.dSYM
  6456. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6457. fi
  6458. fi
  6459. fi
  6460. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6461. $as_echo "$ac_cv_header_stdc" >&6; }
  6462. if test $ac_cv_header_stdc = yes; then
  6463. cat >>confdefs.h <<\_ACEOF
  6464. #define STDC_HEADERS 1
  6465. _ACEOF
  6466. fi
  6467. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6468. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6469. inttypes.h stdint.h unistd.h
  6470. do
  6471. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6472. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6473. $as_echo_n "checking for $ac_header... " >&6; }
  6474. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6475. $as_echo_n "(cached) " >&6
  6476. else
  6477. cat >conftest.$ac_ext <<_ACEOF
  6478. /* confdefs.h. */
  6479. _ACEOF
  6480. cat confdefs.h >>conftest.$ac_ext
  6481. cat >>conftest.$ac_ext <<_ACEOF
  6482. /* end confdefs.h. */
  6483. $ac_includes_default
  6484. #include <$ac_header>
  6485. _ACEOF
  6486. rm -f conftest.$ac_objext
  6487. if { (ac_try="$ac_compile"
  6488. case "(($ac_try" in
  6489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6490. *) ac_try_echo=$ac_try;;
  6491. esac
  6492. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6493. $as_echo "$ac_try_echo") >&5
  6494. (eval "$ac_compile") 2>conftest.er1
  6495. ac_status=$?
  6496. grep -v '^ *+' conftest.er1 >conftest.err
  6497. rm -f conftest.er1
  6498. cat conftest.err >&5
  6499. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6500. (exit $ac_status); } && {
  6501. test -z "$ac_c_werror_flag" ||
  6502. test ! -s conftest.err
  6503. } && test -s conftest.$ac_objext; then
  6504. eval "$as_ac_Header=yes"
  6505. else
  6506. $as_echo "$as_me: failed program was:" >&5
  6507. sed 's/^/| /' conftest.$ac_ext >&5
  6508. eval "$as_ac_Header=no"
  6509. fi
  6510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6511. fi
  6512. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6513. $as_echo "$as_val"'`
  6514. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6515. $as_echo "$ac_res" >&6; }
  6516. as_val=`eval 'as_val=${'$as_ac_Header'}
  6517. $as_echo "$as_val"'`
  6518. if test "x$as_val" = x""yes; then
  6519. cat >>confdefs.h <<_ACEOF
  6520. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6521. _ACEOF
  6522. fi
  6523. done
  6524. for ac_header in dlfcn.h
  6525. do
  6526. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6527. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6528. $as_echo_n "checking for $ac_header... " >&6; }
  6529. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6530. $as_echo_n "(cached) " >&6
  6531. else
  6532. cat >conftest.$ac_ext <<_ACEOF
  6533. /* confdefs.h. */
  6534. _ACEOF
  6535. cat confdefs.h >>conftest.$ac_ext
  6536. cat >>conftest.$ac_ext <<_ACEOF
  6537. /* end confdefs.h. */
  6538. $ac_includes_default
  6539. #include <$ac_header>
  6540. _ACEOF
  6541. rm -f conftest.$ac_objext
  6542. if { (ac_try="$ac_compile"
  6543. case "(($ac_try" in
  6544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6545. *) ac_try_echo=$ac_try;;
  6546. esac
  6547. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6548. $as_echo "$ac_try_echo") >&5
  6549. (eval "$ac_compile") 2>conftest.er1
  6550. ac_status=$?
  6551. grep -v '^ *+' conftest.er1 >conftest.err
  6552. rm -f conftest.er1
  6553. cat conftest.err >&5
  6554. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6555. (exit $ac_status); } && {
  6556. test -z "$ac_c_werror_flag" ||
  6557. test ! -s conftest.err
  6558. } && test -s conftest.$ac_objext; then
  6559. eval "$as_ac_Header=yes"
  6560. else
  6561. $as_echo "$as_me: failed program was:" >&5
  6562. sed 's/^/| /' conftest.$ac_ext >&5
  6563. eval "$as_ac_Header=no"
  6564. fi
  6565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6566. fi
  6567. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6568. $as_echo "$as_val"'`
  6569. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6570. $as_echo "$ac_res" >&6; }
  6571. as_val=`eval 'as_val=${'$as_ac_Header'}
  6572. $as_echo "$as_val"'`
  6573. if test "x$as_val" = x""yes; then
  6574. cat >>confdefs.h <<_ACEOF
  6575. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6576. _ACEOF
  6577. fi
  6578. done
  6579. ac_ext=cpp
  6580. ac_cpp='$CXXCPP $CPPFLAGS'
  6581. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6582. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6583. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6584. if test -z "$CXX"; then
  6585. if test -n "$CCC"; then
  6586. CXX=$CCC
  6587. else
  6588. if test -n "$ac_tool_prefix"; then
  6589. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6590. do
  6591. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6592. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6593. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6594. $as_echo_n "checking for $ac_word... " >&6; }
  6595. if test "${ac_cv_prog_CXX+set}" = set; then
  6596. $as_echo_n "(cached) " >&6
  6597. else
  6598. if test -n "$CXX"; then
  6599. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. test -z "$as_dir" && as_dir=.
  6606. for ac_exec_ext in '' $ac_executable_extensions; do
  6607. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6608. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6609. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6610. break 2
  6611. fi
  6612. done
  6613. done
  6614. IFS=$as_save_IFS
  6615. fi
  6616. fi
  6617. CXX=$ac_cv_prog_CXX
  6618. if test -n "$CXX"; then
  6619. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  6620. $as_echo "$CXX" >&6; }
  6621. else
  6622. { $as_echo "$as_me:$LINENO: result: no" >&5
  6623. $as_echo "no" >&6; }
  6624. fi
  6625. test -n "$CXX" && break
  6626. done
  6627. fi
  6628. if test -z "$CXX"; then
  6629. ac_ct_CXX=$CXX
  6630. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6631. do
  6632. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6633. set dummy $ac_prog; ac_word=$2
  6634. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6635. $as_echo_n "checking for $ac_word... " >&6; }
  6636. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  6637. $as_echo_n "(cached) " >&6
  6638. else
  6639. if test -n "$ac_ct_CXX"; then
  6640. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6641. else
  6642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6643. for as_dir in $PATH
  6644. do
  6645. IFS=$as_save_IFS
  6646. test -z "$as_dir" && as_dir=.
  6647. for ac_exec_ext in '' $ac_executable_extensions; do
  6648. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6649. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6650. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6651. break 2
  6652. fi
  6653. done
  6654. done
  6655. IFS=$as_save_IFS
  6656. fi
  6657. fi
  6658. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6659. if test -n "$ac_ct_CXX"; then
  6660. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  6661. $as_echo "$ac_ct_CXX" >&6; }
  6662. else
  6663. { $as_echo "$as_me:$LINENO: result: no" >&5
  6664. $as_echo "no" >&6; }
  6665. fi
  6666. test -n "$ac_ct_CXX" && break
  6667. done
  6668. if test "x$ac_ct_CXX" = x; then
  6669. CXX="g++"
  6670. else
  6671. case $cross_compiling:$ac_tool_warned in
  6672. yes:)
  6673. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6675. ac_tool_warned=yes ;;
  6676. esac
  6677. CXX=$ac_ct_CXX
  6678. fi
  6679. fi
  6680. fi
  6681. fi
  6682. # Provide some information about the compiler.
  6683. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  6684. set X $ac_compile
  6685. ac_compiler=$2
  6686. { (ac_try="$ac_compiler --version >&5"
  6687. case "(($ac_try" in
  6688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6689. *) ac_try_echo=$ac_try;;
  6690. esac
  6691. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6692. $as_echo "$ac_try_echo") >&5
  6693. (eval "$ac_compiler --version >&5") 2>&5
  6694. ac_status=$?
  6695. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6696. (exit $ac_status); }
  6697. { (ac_try="$ac_compiler -v >&5"
  6698. case "(($ac_try" in
  6699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6700. *) ac_try_echo=$ac_try;;
  6701. esac
  6702. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6703. $as_echo "$ac_try_echo") >&5
  6704. (eval "$ac_compiler -v >&5") 2>&5
  6705. ac_status=$?
  6706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6707. (exit $ac_status); }
  6708. { (ac_try="$ac_compiler -V >&5"
  6709. case "(($ac_try" in
  6710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6711. *) ac_try_echo=$ac_try;;
  6712. esac
  6713. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6714. $as_echo "$ac_try_echo") >&5
  6715. (eval "$ac_compiler -V >&5") 2>&5
  6716. ac_status=$?
  6717. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6718. (exit $ac_status); }
  6719. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  6720. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6721. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  6722. $as_echo_n "(cached) " >&6
  6723. else
  6724. cat >conftest.$ac_ext <<_ACEOF
  6725. /* confdefs.h. */
  6726. _ACEOF
  6727. cat confdefs.h >>conftest.$ac_ext
  6728. cat >>conftest.$ac_ext <<_ACEOF
  6729. /* end confdefs.h. */
  6730. int
  6731. main ()
  6732. {
  6733. #ifndef __GNUC__
  6734. choke me
  6735. #endif
  6736. ;
  6737. return 0;
  6738. }
  6739. _ACEOF
  6740. rm -f conftest.$ac_objext
  6741. if { (ac_try="$ac_compile"
  6742. case "(($ac_try" in
  6743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6744. *) ac_try_echo=$ac_try;;
  6745. esac
  6746. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6747. $as_echo "$ac_try_echo") >&5
  6748. (eval "$ac_compile") 2>conftest.er1
  6749. ac_status=$?
  6750. grep -v '^ *+' conftest.er1 >conftest.err
  6751. rm -f conftest.er1
  6752. cat conftest.err >&5
  6753. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6754. (exit $ac_status); } && {
  6755. test -z "$ac_cxx_werror_flag" ||
  6756. test ! -s conftest.err
  6757. } && test -s conftest.$ac_objext; then
  6758. ac_compiler_gnu=yes
  6759. else
  6760. $as_echo "$as_me: failed program was:" >&5
  6761. sed 's/^/| /' conftest.$ac_ext >&5
  6762. ac_compiler_gnu=no
  6763. fi
  6764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6765. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6766. fi
  6767. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  6768. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6769. if test $ac_compiler_gnu = yes; then
  6770. GXX=yes
  6771. else
  6772. GXX=
  6773. fi
  6774. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6775. ac_save_CXXFLAGS=$CXXFLAGS
  6776. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  6777. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6778. if test "${ac_cv_prog_cxx_g+set}" = set; then
  6779. $as_echo_n "(cached) " >&6
  6780. else
  6781. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6782. ac_cxx_werror_flag=yes
  6783. ac_cv_prog_cxx_g=no
  6784. CXXFLAGS="-g"
  6785. cat >conftest.$ac_ext <<_ACEOF
  6786. /* confdefs.h. */
  6787. _ACEOF
  6788. cat confdefs.h >>conftest.$ac_ext
  6789. cat >>conftest.$ac_ext <<_ACEOF
  6790. /* end confdefs.h. */
  6791. int
  6792. main ()
  6793. {
  6794. ;
  6795. return 0;
  6796. }
  6797. _ACEOF
  6798. rm -f conftest.$ac_objext
  6799. if { (ac_try="$ac_compile"
  6800. case "(($ac_try" in
  6801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6802. *) ac_try_echo=$ac_try;;
  6803. esac
  6804. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6805. $as_echo "$ac_try_echo") >&5
  6806. (eval "$ac_compile") 2>conftest.er1
  6807. ac_status=$?
  6808. grep -v '^ *+' conftest.er1 >conftest.err
  6809. rm -f conftest.er1
  6810. cat conftest.err >&5
  6811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6812. (exit $ac_status); } && {
  6813. test -z "$ac_cxx_werror_flag" ||
  6814. test ! -s conftest.err
  6815. } && test -s conftest.$ac_objext; then
  6816. ac_cv_prog_cxx_g=yes
  6817. else
  6818. $as_echo "$as_me: failed program was:" >&5
  6819. sed 's/^/| /' conftest.$ac_ext >&5
  6820. CXXFLAGS=""
  6821. cat >conftest.$ac_ext <<_ACEOF
  6822. /* confdefs.h. */
  6823. _ACEOF
  6824. cat confdefs.h >>conftest.$ac_ext
  6825. cat >>conftest.$ac_ext <<_ACEOF
  6826. /* end confdefs.h. */
  6827. int
  6828. main ()
  6829. {
  6830. ;
  6831. return 0;
  6832. }
  6833. _ACEOF
  6834. rm -f conftest.$ac_objext
  6835. if { (ac_try="$ac_compile"
  6836. case "(($ac_try" in
  6837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6838. *) ac_try_echo=$ac_try;;
  6839. esac
  6840. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6841. $as_echo "$ac_try_echo") >&5
  6842. (eval "$ac_compile") 2>conftest.er1
  6843. ac_status=$?
  6844. grep -v '^ *+' conftest.er1 >conftest.err
  6845. rm -f conftest.er1
  6846. cat conftest.err >&5
  6847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6848. (exit $ac_status); } && {
  6849. test -z "$ac_cxx_werror_flag" ||
  6850. test ! -s conftest.err
  6851. } && test -s conftest.$ac_objext; then
  6852. :
  6853. else
  6854. $as_echo "$as_me: failed program was:" >&5
  6855. sed 's/^/| /' conftest.$ac_ext >&5
  6856. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6857. CXXFLAGS="-g"
  6858. cat >conftest.$ac_ext <<_ACEOF
  6859. /* confdefs.h. */
  6860. _ACEOF
  6861. cat confdefs.h >>conftest.$ac_ext
  6862. cat >>conftest.$ac_ext <<_ACEOF
  6863. /* end confdefs.h. */
  6864. int
  6865. main ()
  6866. {
  6867. ;
  6868. return 0;
  6869. }
  6870. _ACEOF
  6871. rm -f conftest.$ac_objext
  6872. if { (ac_try="$ac_compile"
  6873. case "(($ac_try" in
  6874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6875. *) ac_try_echo=$ac_try;;
  6876. esac
  6877. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6878. $as_echo "$ac_try_echo") >&5
  6879. (eval "$ac_compile") 2>conftest.er1
  6880. ac_status=$?
  6881. grep -v '^ *+' conftest.er1 >conftest.err
  6882. rm -f conftest.er1
  6883. cat conftest.err >&5
  6884. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6885. (exit $ac_status); } && {
  6886. test -z "$ac_cxx_werror_flag" ||
  6887. test ! -s conftest.err
  6888. } && test -s conftest.$ac_objext; then
  6889. ac_cv_prog_cxx_g=yes
  6890. else
  6891. $as_echo "$as_me: failed program was:" >&5
  6892. sed 's/^/| /' conftest.$ac_ext >&5
  6893. fi
  6894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6895. fi
  6896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6897. fi
  6898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6899. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6900. fi
  6901. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  6902. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6903. if test "$ac_test_CXXFLAGS" = set; then
  6904. CXXFLAGS=$ac_save_CXXFLAGS
  6905. elif test $ac_cv_prog_cxx_g = yes; then
  6906. if test "$GXX" = yes; then
  6907. CXXFLAGS="-g -O2"
  6908. else
  6909. CXXFLAGS="-g"
  6910. fi
  6911. else
  6912. if test "$GXX" = yes; then
  6913. CXXFLAGS="-O2"
  6914. else
  6915. CXXFLAGS=
  6916. fi
  6917. fi
  6918. ac_ext=cpp
  6919. ac_cpp='$CXXCPP $CPPFLAGS'
  6920. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6921. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6922. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6923. depcc="$CXX" am_compiler_list=
  6924. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6925. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6926. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  6927. $as_echo_n "(cached) " >&6
  6928. else
  6929. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6930. # We make a subdir and do the tests there. Otherwise we can end up
  6931. # making bogus files that we don't know about and never remove. For
  6932. # instance it was reported that on HP-UX the gcc test will end up
  6933. # making a dummy file named `D' -- because `-MD' means `put the output
  6934. # in D'.
  6935. mkdir conftest.dir
  6936. # Copy depcomp to subdir because otherwise we won't find it if we're
  6937. # using a relative directory.
  6938. cp "$am_depcomp" conftest.dir
  6939. cd conftest.dir
  6940. # We will build objects and dependencies in a subdirectory because
  6941. # it helps to detect inapplicable dependency modes. For instance
  6942. # both Tru64's cc and ICC support -MD to output dependencies as a
  6943. # side effect of compilation, but ICC will put the dependencies in
  6944. # the current directory while Tru64 will put them in the object
  6945. # directory.
  6946. mkdir sub
  6947. am_cv_CXX_dependencies_compiler_type=none
  6948. if test "$am_compiler_list" = ""; then
  6949. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6950. fi
  6951. for depmode in $am_compiler_list; do
  6952. # Setup a source with many dependencies, because some compilers
  6953. # like to wrap large dependency lists on column 80 (with \), and
  6954. # we should not choose a depcomp mode which is confused by this.
  6955. #
  6956. # We need to recreate these files for each test, as the compiler may
  6957. # overwrite some of them when testing with obscure command lines.
  6958. # This happens at least with the AIX C compiler.
  6959. : > sub/conftest.c
  6960. for i in 1 2 3 4 5 6; do
  6961. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6962. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6963. # Solaris 8's {/usr,}/bin/sh.
  6964. touch sub/conftst$i.h
  6965. done
  6966. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6967. case $depmode in
  6968. nosideeffect)
  6969. # after this tag, mechanisms are not by side-effect, so they'll
  6970. # only be used when explicitly requested
  6971. if test "x$enable_dependency_tracking" = xyes; then
  6972. continue
  6973. else
  6974. break
  6975. fi
  6976. ;;
  6977. none) break ;;
  6978. esac
  6979. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6980. # mode. It turns out that the SunPro C++ compiler does not properly
  6981. # handle `-M -o', and we need to detect this.
  6982. if depmode=$depmode \
  6983. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6984. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6985. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6986. >/dev/null 2>conftest.err &&
  6987. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6988. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6989. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6990. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6991. # icc doesn't choke on unknown options, it will just issue warnings
  6992. # or remarks (even with -Werror). So we grep stderr for any message
  6993. # that says an option was ignored or not supported.
  6994. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6995. # icc: Command line warning: ignoring option '-M'; no argument required
  6996. # The diagnosis changed in icc 8.0:
  6997. # icc: Command line remark: option '-MP' not supported
  6998. if (grep 'ignoring option' conftest.err ||
  6999. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7000. am_cv_CXX_dependencies_compiler_type=$depmode
  7001. break
  7002. fi
  7003. fi
  7004. done
  7005. cd ..
  7006. rm -rf conftest.dir
  7007. else
  7008. am_cv_CXX_dependencies_compiler_type=none
  7009. fi
  7010. fi
  7011. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7012. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7013. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7014. if
  7015. test "x$enable_dependency_tracking" != xno \
  7016. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7017. am__fastdepCXX_TRUE=
  7018. am__fastdepCXX_FALSE='#'
  7019. else
  7020. am__fastdepCXX_TRUE='#'
  7021. am__fastdepCXX_FALSE=
  7022. fi
  7023. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7024. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7025. (test "X$CXX" != "Xg++"))) ; then
  7026. ac_ext=cpp
  7027. ac_cpp='$CXXCPP $CPPFLAGS'
  7028. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7029. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7030. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7031. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  7032. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7033. if test -z "$CXXCPP"; then
  7034. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  7035. $as_echo_n "(cached) " >&6
  7036. else
  7037. # Double quotes because CXXCPP needs to be expanded
  7038. for CXXCPP in "$CXX -E" "/lib/cpp"
  7039. do
  7040. ac_preproc_ok=false
  7041. for ac_cxx_preproc_warn_flag in '' yes
  7042. do
  7043. # Use a header file that comes with gcc, so configuring glibc
  7044. # with a fresh cross-compiler works.
  7045. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7046. # <limits.h> exists even on freestanding compilers.
  7047. # On the NeXT, cc -E runs the code through the compiler's parser,
  7048. # not just through cpp. "Syntax error" is here to catch this case.
  7049. cat >conftest.$ac_ext <<_ACEOF
  7050. /* confdefs.h. */
  7051. _ACEOF
  7052. cat confdefs.h >>conftest.$ac_ext
  7053. cat >>conftest.$ac_ext <<_ACEOF
  7054. /* end confdefs.h. */
  7055. #ifdef __STDC__
  7056. # include <limits.h>
  7057. #else
  7058. # include <assert.h>
  7059. #endif
  7060. Syntax error
  7061. _ACEOF
  7062. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7063. case "(($ac_try" in
  7064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7065. *) ac_try_echo=$ac_try;;
  7066. esac
  7067. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7068. $as_echo "$ac_try_echo") >&5
  7069. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7070. ac_status=$?
  7071. grep -v '^ *+' conftest.er1 >conftest.err
  7072. rm -f conftest.er1
  7073. cat conftest.err >&5
  7074. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7075. (exit $ac_status); } >/dev/null && {
  7076. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7077. test ! -s conftest.err
  7078. }; then
  7079. :
  7080. else
  7081. $as_echo "$as_me: failed program was:" >&5
  7082. sed 's/^/| /' conftest.$ac_ext >&5
  7083. # Broken: fails on valid input.
  7084. continue
  7085. fi
  7086. rm -f conftest.err conftest.$ac_ext
  7087. # OK, works on sane cases. Now check whether nonexistent headers
  7088. # can be detected and how.
  7089. cat >conftest.$ac_ext <<_ACEOF
  7090. /* confdefs.h. */
  7091. _ACEOF
  7092. cat confdefs.h >>conftest.$ac_ext
  7093. cat >>conftest.$ac_ext <<_ACEOF
  7094. /* end confdefs.h. */
  7095. #include <ac_nonexistent.h>
  7096. _ACEOF
  7097. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7098. case "(($ac_try" in
  7099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7100. *) ac_try_echo=$ac_try;;
  7101. esac
  7102. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7103. $as_echo "$ac_try_echo") >&5
  7104. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7105. ac_status=$?
  7106. grep -v '^ *+' conftest.er1 >conftest.err
  7107. rm -f conftest.er1
  7108. cat conftest.err >&5
  7109. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7110. (exit $ac_status); } >/dev/null && {
  7111. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7112. test ! -s conftest.err
  7113. }; then
  7114. # Broken: success on invalid input.
  7115. continue
  7116. else
  7117. $as_echo "$as_me: failed program was:" >&5
  7118. sed 's/^/| /' conftest.$ac_ext >&5
  7119. # Passes both tests.
  7120. ac_preproc_ok=:
  7121. break
  7122. fi
  7123. rm -f conftest.err conftest.$ac_ext
  7124. done
  7125. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7126. rm -f conftest.err conftest.$ac_ext
  7127. if $ac_preproc_ok; then
  7128. break
  7129. fi
  7130. done
  7131. ac_cv_prog_CXXCPP=$CXXCPP
  7132. fi
  7133. CXXCPP=$ac_cv_prog_CXXCPP
  7134. else
  7135. ac_cv_prog_CXXCPP=$CXXCPP
  7136. fi
  7137. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  7138. $as_echo "$CXXCPP" >&6; }
  7139. ac_preproc_ok=false
  7140. for ac_cxx_preproc_warn_flag in '' yes
  7141. do
  7142. # Use a header file that comes with gcc, so configuring glibc
  7143. # with a fresh cross-compiler works.
  7144. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7145. # <limits.h> exists even on freestanding compilers.
  7146. # On the NeXT, cc -E runs the code through the compiler's parser,
  7147. # not just through cpp. "Syntax error" is here to catch this case.
  7148. cat >conftest.$ac_ext <<_ACEOF
  7149. /* confdefs.h. */
  7150. _ACEOF
  7151. cat confdefs.h >>conftest.$ac_ext
  7152. cat >>conftest.$ac_ext <<_ACEOF
  7153. /* end confdefs.h. */
  7154. #ifdef __STDC__
  7155. # include <limits.h>
  7156. #else
  7157. # include <assert.h>
  7158. #endif
  7159. Syntax error
  7160. _ACEOF
  7161. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7162. case "(($ac_try" in
  7163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7164. *) ac_try_echo=$ac_try;;
  7165. esac
  7166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7167. $as_echo "$ac_try_echo") >&5
  7168. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7169. ac_status=$?
  7170. grep -v '^ *+' conftest.er1 >conftest.err
  7171. rm -f conftest.er1
  7172. cat conftest.err >&5
  7173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7174. (exit $ac_status); } >/dev/null && {
  7175. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7176. test ! -s conftest.err
  7177. }; then
  7178. :
  7179. else
  7180. $as_echo "$as_me: failed program was:" >&5
  7181. sed 's/^/| /' conftest.$ac_ext >&5
  7182. # Broken: fails on valid input.
  7183. continue
  7184. fi
  7185. rm -f conftest.err conftest.$ac_ext
  7186. # OK, works on sane cases. Now check whether nonexistent headers
  7187. # can be detected and how.
  7188. cat >conftest.$ac_ext <<_ACEOF
  7189. /* confdefs.h. */
  7190. _ACEOF
  7191. cat confdefs.h >>conftest.$ac_ext
  7192. cat >>conftest.$ac_ext <<_ACEOF
  7193. /* end confdefs.h. */
  7194. #include <ac_nonexistent.h>
  7195. _ACEOF
  7196. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7197. case "(($ac_try" in
  7198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7199. *) ac_try_echo=$ac_try;;
  7200. esac
  7201. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7202. $as_echo "$ac_try_echo") >&5
  7203. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7204. ac_status=$?
  7205. grep -v '^ *+' conftest.er1 >conftest.err
  7206. rm -f conftest.er1
  7207. cat conftest.err >&5
  7208. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7209. (exit $ac_status); } >/dev/null && {
  7210. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7211. test ! -s conftest.err
  7212. }; then
  7213. # Broken: success on invalid input.
  7214. continue
  7215. else
  7216. $as_echo "$as_me: failed program was:" >&5
  7217. sed 's/^/| /' conftest.$ac_ext >&5
  7218. # Passes both tests.
  7219. ac_preproc_ok=:
  7220. break
  7221. fi
  7222. rm -f conftest.err conftest.$ac_ext
  7223. done
  7224. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7225. rm -f conftest.err conftest.$ac_ext
  7226. if $ac_preproc_ok; then
  7227. :
  7228. else
  7229. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7230. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7231. _lt_caught_CXX_error=yes; }
  7232. fi
  7233. ac_ext=cpp
  7234. ac_cpp='$CXXCPP $CPPFLAGS'
  7235. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7236. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7237. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7238. else
  7239. _lt_caught_CXX_error=yes
  7240. fi
  7241. # Set options
  7242. enable_dlopen=no
  7243. enable_win32_dll=no
  7244. # Check whether --with-pic was given.
  7245. if test "${with_pic+set}" = set; then
  7246. withval=$with_pic; pic_mode="$withval"
  7247. else
  7248. pic_mode=default
  7249. fi
  7250. test -z "$pic_mode" && pic_mode=default
  7251. # Check whether --enable-fast-install was given.
  7252. if test "${enable_fast_install+set}" = set; then
  7253. enableval=$enable_fast_install; p=${PACKAGE-default}
  7254. case $enableval in
  7255. yes) enable_fast_install=yes ;;
  7256. no) enable_fast_install=no ;;
  7257. *)
  7258. enable_fast_install=no
  7259. # Look at the argument we got. We use all the common list separators.
  7260. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7261. for pkg in $enableval; do
  7262. IFS="$lt_save_ifs"
  7263. if test "X$pkg" = "X$p"; then
  7264. enable_fast_install=yes
  7265. fi
  7266. done
  7267. IFS="$lt_save_ifs"
  7268. ;;
  7269. esac
  7270. else
  7271. enable_fast_install=yes
  7272. fi
  7273. # This can be used to rebuild libtool when needed
  7274. LIBTOOL_DEPS="$ltmain"
  7275. # Always use our own libtool.
  7276. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7277. test -z "$LN_S" && LN_S="ln -s"
  7278. if test -n "${ZSH_VERSION+set}" ; then
  7279. setopt NO_GLOB_SUBST
  7280. fi
  7281. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7282. $as_echo_n "checking for objdir... " >&6; }
  7283. if test "${lt_cv_objdir+set}" = set; then
  7284. $as_echo_n "(cached) " >&6
  7285. else
  7286. rm -f .libs 2>/dev/null
  7287. mkdir .libs 2>/dev/null
  7288. if test -d .libs; then
  7289. lt_cv_objdir=.libs
  7290. else
  7291. # MS-DOS does not allow filenames that begin with a dot.
  7292. lt_cv_objdir=_libs
  7293. fi
  7294. rmdir .libs 2>/dev/null
  7295. fi
  7296. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7297. $as_echo "$lt_cv_objdir" >&6; }
  7298. objdir=$lt_cv_objdir
  7299. cat >>confdefs.h <<_ACEOF
  7300. #define LT_OBJDIR "$lt_cv_objdir/"
  7301. _ACEOF
  7302. case $host_os in
  7303. aix3*)
  7304. # AIX sometimes has problems with the GCC collect2 program. For some
  7305. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7306. # vanish in a puff of smoke.
  7307. if test "X${COLLECT_NAMES+set}" != Xset; then
  7308. COLLECT_NAMES=
  7309. export COLLECT_NAMES
  7310. fi
  7311. ;;
  7312. esac
  7313. # Sed substitution that helps us do robust quoting. It backslashifies
  7314. # metacharacters that are still active within double-quoted strings.
  7315. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7316. # Same as above, but do not quote variable references.
  7317. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7318. # Sed substitution to delay expansion of an escaped shell variable in a
  7319. # double_quote_subst'ed string.
  7320. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7321. # Sed substitution to delay expansion of an escaped single quote.
  7322. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7323. # Sed substitution to avoid accidental globbing in evaled expressions
  7324. no_glob_subst='s/\*/\\\*/g'
  7325. # Global variables:
  7326. ofile=libtool
  7327. can_build_shared=yes
  7328. # All known linkers require a `.a' archive for static linking (except MSVC,
  7329. # which needs '.lib').
  7330. libext=a
  7331. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7332. old_CC="$CC"
  7333. old_CFLAGS="$CFLAGS"
  7334. # Set sane defaults for various variables
  7335. test -z "$CC" && CC=cc
  7336. test -z "$LTCC" && LTCC=$CC
  7337. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7338. test -z "$LD" && LD=ld
  7339. test -z "$ac_objext" && ac_objext=o
  7340. for cc_temp in $compiler""; do
  7341. case $cc_temp in
  7342. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7343. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7344. \-*) ;;
  7345. *) break;;
  7346. esac
  7347. done
  7348. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7349. # Only perform the check for file, if the check method requires it
  7350. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7351. case $deplibs_check_method in
  7352. file_magic*)
  7353. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7354. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7355. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7356. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7357. $as_echo_n "(cached) " >&6
  7358. else
  7359. case $MAGIC_CMD in
  7360. [\\/*] | ?:[\\/]*)
  7361. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7362. ;;
  7363. *)
  7364. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7365. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7366. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7367. for ac_dir in $ac_dummy; do
  7368. IFS="$lt_save_ifs"
  7369. test -z "$ac_dir" && ac_dir=.
  7370. if test -f $ac_dir/${ac_tool_prefix}file; then
  7371. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7372. if test -n "$file_magic_test_file"; then
  7373. case $deplibs_check_method in
  7374. "file_magic "*)
  7375. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7376. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7377. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7378. $EGREP "$file_magic_regex" > /dev/null; then
  7379. :
  7380. else
  7381. cat <<_LT_EOF 1>&2
  7382. *** Warning: the command libtool uses to detect shared libraries,
  7383. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7384. *** The result is that libtool may fail to recognize shared libraries
  7385. *** as such. This will affect the creation of libtool libraries that
  7386. *** depend on shared libraries, but programs linked with such libtool
  7387. *** libraries will work regardless of this problem. Nevertheless, you
  7388. *** may want to report the problem to your system manager and/or to
  7389. *** [email protected]
  7390. _LT_EOF
  7391. fi ;;
  7392. esac
  7393. fi
  7394. break
  7395. fi
  7396. done
  7397. IFS="$lt_save_ifs"
  7398. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7399. ;;
  7400. esac
  7401. fi
  7402. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7403. if test -n "$MAGIC_CMD"; then
  7404. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7405. $as_echo "$MAGIC_CMD" >&6; }
  7406. else
  7407. { $as_echo "$as_me:$LINENO: result: no" >&5
  7408. $as_echo "no" >&6; }
  7409. fi
  7410. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7411. if test -n "$ac_tool_prefix"; then
  7412. { $as_echo "$as_me:$LINENO: checking for file" >&5
  7413. $as_echo_n "checking for file... " >&6; }
  7414. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7415. $as_echo_n "(cached) " >&6
  7416. else
  7417. case $MAGIC_CMD in
  7418. [\\/*] | ?:[\\/]*)
  7419. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7420. ;;
  7421. *)
  7422. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7423. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7424. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7425. for ac_dir in $ac_dummy; do
  7426. IFS="$lt_save_ifs"
  7427. test -z "$ac_dir" && ac_dir=.
  7428. if test -f $ac_dir/file; then
  7429. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7430. if test -n "$file_magic_test_file"; then
  7431. case $deplibs_check_method in
  7432. "file_magic "*)
  7433. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7434. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7435. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7436. $EGREP "$file_magic_regex" > /dev/null; then
  7437. :
  7438. else
  7439. cat <<_LT_EOF 1>&2
  7440. *** Warning: the command libtool uses to detect shared libraries,
  7441. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7442. *** The result is that libtool may fail to recognize shared libraries
  7443. *** as such. This will affect the creation of libtool libraries that
  7444. *** depend on shared libraries, but programs linked with such libtool
  7445. *** libraries will work regardless of this problem. Nevertheless, you
  7446. *** may want to report the problem to your system manager and/or to
  7447. *** [email protected]
  7448. _LT_EOF
  7449. fi ;;
  7450. esac
  7451. fi
  7452. break
  7453. fi
  7454. done
  7455. IFS="$lt_save_ifs"
  7456. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7457. ;;
  7458. esac
  7459. fi
  7460. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7461. if test -n "$MAGIC_CMD"; then
  7462. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7463. $as_echo "$MAGIC_CMD" >&6; }
  7464. else
  7465. { $as_echo "$as_me:$LINENO: result: no" >&5
  7466. $as_echo "no" >&6; }
  7467. fi
  7468. else
  7469. MAGIC_CMD=:
  7470. fi
  7471. fi
  7472. fi
  7473. ;;
  7474. esac
  7475. # Use C for the default configuration in the libtool script
  7476. lt_save_CC="$CC"
  7477. ac_ext=c
  7478. ac_cpp='$CPP $CPPFLAGS'
  7479. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7480. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7481. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7482. # Source file extension for C test sources.
  7483. ac_ext=c
  7484. # Object file extension for compiled C test sources.
  7485. objext=o
  7486. objext=$objext
  7487. # Code to be used in simple compile tests
  7488. lt_simple_compile_test_code="int some_variable = 0;"
  7489. # Code to be used in simple link tests
  7490. lt_simple_link_test_code='int main(){return(0);}'
  7491. # If no C compiler was specified, use CC.
  7492. LTCC=${LTCC-"$CC"}
  7493. # If no C compiler flags were specified, use CFLAGS.
  7494. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7495. # Allow CC to be a program name with arguments.
  7496. compiler=$CC
  7497. # Save the default compiler, since it gets overwritten when the other
  7498. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7499. compiler_DEFAULT=$CC
  7500. # save warnings/boilerplate of simple test code
  7501. ac_outfile=conftest.$ac_objext
  7502. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7503. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7504. _lt_compiler_boilerplate=`cat conftest.err`
  7505. $RM conftest*
  7506. ac_outfile=conftest.$ac_objext
  7507. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7508. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7509. _lt_linker_boilerplate=`cat conftest.err`
  7510. $RM -r conftest*
  7511. ## CAVEAT EMPTOR:
  7512. ## There is no encapsulation within the following macros, do not change
  7513. ## the running order or otherwise move them around unless you know exactly
  7514. ## what you are doing...
  7515. if test -n "$compiler"; then
  7516. lt_prog_compiler_no_builtin_flag=
  7517. if test "$GCC" = yes; then
  7518. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7519. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7520. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7521. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7522. $as_echo_n "(cached) " >&6
  7523. else
  7524. lt_cv_prog_compiler_rtti_exceptions=no
  7525. ac_outfile=conftest.$ac_objext
  7526. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7527. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7528. # Insert the option either (1) after the last *FLAGS variable, or
  7529. # (2) before a word containing "conftest.", or (3) at the end.
  7530. # Note that $ac_compile itself does not contain backslashes and begins
  7531. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7532. # The option is referenced via a variable to avoid confusing sed.
  7533. lt_compile=`echo "$ac_compile" | $SED \
  7534. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7535. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7536. -e 's:$: $lt_compiler_flag:'`
  7537. (eval echo "\"\$as_me:8646: $lt_compile\"" >&5)
  7538. (eval "$lt_compile" 2>conftest.err)
  7539. ac_status=$?
  7540. cat conftest.err >&5
  7541. echo "$as_me:8650: \$? = $ac_status" >&5
  7542. if (exit $ac_status) && test -s "$ac_outfile"; then
  7543. # The compiler can only warn and ignore the option if not recognized
  7544. # So say no if there are warnings other than the usual output.
  7545. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7546. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7547. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7548. lt_cv_prog_compiler_rtti_exceptions=yes
  7549. fi
  7550. fi
  7551. $RM conftest*
  7552. fi
  7553. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7554. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7555. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7556. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7557. else
  7558. :
  7559. fi
  7560. fi
  7561. lt_prog_compiler_wl=
  7562. lt_prog_compiler_pic=
  7563. lt_prog_compiler_static=
  7564. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7565. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7566. if test "$GCC" = yes; then
  7567. lt_prog_compiler_wl='-Wl,'
  7568. lt_prog_compiler_static='-static'
  7569. case $host_os in
  7570. aix*)
  7571. # All AIX code is PIC.
  7572. if test "$host_cpu" = ia64; then
  7573. # AIX 5 now supports IA64 processor
  7574. lt_prog_compiler_static='-Bstatic'
  7575. fi
  7576. ;;
  7577. amigaos*)
  7578. case $host_cpu in
  7579. powerpc)
  7580. # see comment about AmigaOS4 .so support
  7581. lt_prog_compiler_pic='-fPIC'
  7582. ;;
  7583. m68k)
  7584. # FIXME: we need at least 68020 code to build shared libraries, but
  7585. # adding the `-m68020' flag to GCC prevents building anything better,
  7586. # like `-m68040'.
  7587. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7588. ;;
  7589. esac
  7590. ;;
  7591. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7592. # PIC is the default for these OSes.
  7593. ;;
  7594. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7595. # This hack is so that the source file can tell whether it is being
  7596. # built for inclusion in a dll (and should export symbols for example).
  7597. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7598. # (--disable-auto-import) libraries
  7599. lt_prog_compiler_pic='-DDLL_EXPORT'
  7600. ;;
  7601. darwin* | rhapsody*)
  7602. # PIC is the default on this platform
  7603. # Common symbols not allowed in MH_DYLIB files
  7604. lt_prog_compiler_pic='-fno-common'
  7605. ;;
  7606. hpux*)
  7607. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7608. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7609. # sets the default TLS model and affects inlining.
  7610. case $host_cpu in
  7611. hppa*64*)
  7612. # +Z the default
  7613. ;;
  7614. *)
  7615. lt_prog_compiler_pic='-fPIC'
  7616. ;;
  7617. esac
  7618. ;;
  7619. interix[3-9]*)
  7620. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7621. # Instead, we relocate shared libraries at runtime.
  7622. ;;
  7623. msdosdjgpp*)
  7624. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7625. # on systems that don't support them.
  7626. lt_prog_compiler_can_build_shared=no
  7627. enable_shared=no
  7628. ;;
  7629. *nto* | *qnx*)
  7630. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7631. # it will coredump.
  7632. lt_prog_compiler_pic='-fPIC -shared'
  7633. ;;
  7634. sysv4*MP*)
  7635. if test -d /usr/nec; then
  7636. lt_prog_compiler_pic=-Kconform_pic
  7637. fi
  7638. ;;
  7639. *)
  7640. lt_prog_compiler_pic='-fPIC'
  7641. ;;
  7642. esac
  7643. else
  7644. # PORTME Check for flag to pass linker flags through the system compiler.
  7645. case $host_os in
  7646. aix*)
  7647. lt_prog_compiler_wl='-Wl,'
  7648. if test "$host_cpu" = ia64; then
  7649. # AIX 5 now supports IA64 processor
  7650. lt_prog_compiler_static='-Bstatic'
  7651. else
  7652. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7653. fi
  7654. ;;
  7655. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7656. # This hack is so that the source file can tell whether it is being
  7657. # built for inclusion in a dll (and should export symbols for example).
  7658. lt_prog_compiler_pic='-DDLL_EXPORT'
  7659. ;;
  7660. hpux9* | hpux10* | hpux11*)
  7661. lt_prog_compiler_wl='-Wl,'
  7662. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7663. # not for PA HP-UX.
  7664. case $host_cpu in
  7665. hppa*64*|ia64*)
  7666. # +Z the default
  7667. ;;
  7668. *)
  7669. lt_prog_compiler_pic='+Z'
  7670. ;;
  7671. esac
  7672. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7673. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7674. ;;
  7675. irix5* | irix6* | nonstopux*)
  7676. lt_prog_compiler_wl='-Wl,'
  7677. # PIC (with -KPIC) is the default.
  7678. lt_prog_compiler_static='-non_shared'
  7679. ;;
  7680. linux* | k*bsd*-gnu)
  7681. case $cc_basename in
  7682. # old Intel for x86_64 which still supported -KPIC.
  7683. ecc*)
  7684. lt_prog_compiler_wl='-Wl,'
  7685. lt_prog_compiler_pic='-KPIC'
  7686. lt_prog_compiler_static='-static'
  7687. ;;
  7688. # icc used to be incompatible with GCC.
  7689. # ICC 10 doesn't accept -KPIC any more.
  7690. icc* | ifort*)
  7691. lt_prog_compiler_wl='-Wl,'
  7692. lt_prog_compiler_pic='-fPIC'
  7693. lt_prog_compiler_static='-static'
  7694. ;;
  7695. # Lahey Fortran 8.1.
  7696. lf95*)
  7697. lt_prog_compiler_wl='-Wl,'
  7698. lt_prog_compiler_pic='--shared'
  7699. lt_prog_compiler_static='--static'
  7700. ;;
  7701. pgcc* | pgf77* | pgf90* | pgf95*)
  7702. # Portland Group compilers (*not* the Pentium gcc compiler,
  7703. # which looks to be a dead project)
  7704. lt_prog_compiler_wl='-Wl,'
  7705. lt_prog_compiler_pic='-fpic'
  7706. lt_prog_compiler_static='-Bstatic'
  7707. ;;
  7708. ccc*)
  7709. lt_prog_compiler_wl='-Wl,'
  7710. # All Alpha code is PIC.
  7711. lt_prog_compiler_static='-non_shared'
  7712. ;;
  7713. xl*)
  7714. # IBM XL C 8.0/Fortran 10.1 on PPC
  7715. lt_prog_compiler_wl='-Wl,'
  7716. lt_prog_compiler_pic='-qpic'
  7717. lt_prog_compiler_static='-qstaticlink'
  7718. ;;
  7719. *)
  7720. case `$CC -V 2>&1 | sed 5q` in
  7721. *Sun\ C*)
  7722. # Sun C 5.9
  7723. lt_prog_compiler_pic='-KPIC'
  7724. lt_prog_compiler_static='-Bstatic'
  7725. lt_prog_compiler_wl='-Wl,'
  7726. ;;
  7727. *Sun\ F*)
  7728. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7729. lt_prog_compiler_pic='-KPIC'
  7730. lt_prog_compiler_static='-Bstatic'
  7731. lt_prog_compiler_wl=''
  7732. ;;
  7733. esac
  7734. ;;
  7735. esac
  7736. ;;
  7737. newsos6)
  7738. lt_prog_compiler_pic='-KPIC'
  7739. lt_prog_compiler_static='-Bstatic'
  7740. ;;
  7741. *nto* | *qnx*)
  7742. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7743. # it will coredump.
  7744. lt_prog_compiler_pic='-fPIC -shared'
  7745. ;;
  7746. osf3* | osf4* | osf5*)
  7747. lt_prog_compiler_wl='-Wl,'
  7748. # All OSF/1 code is PIC.
  7749. lt_prog_compiler_static='-non_shared'
  7750. ;;
  7751. rdos*)
  7752. lt_prog_compiler_static='-non_shared'
  7753. ;;
  7754. solaris*)
  7755. lt_prog_compiler_pic='-KPIC'
  7756. lt_prog_compiler_static='-Bstatic'
  7757. case $cc_basename in
  7758. f77* | f90* | f95*)
  7759. lt_prog_compiler_wl='-Qoption ld ';;
  7760. *)
  7761. lt_prog_compiler_wl='-Wl,';;
  7762. esac
  7763. ;;
  7764. sunos4*)
  7765. lt_prog_compiler_wl='-Qoption ld '
  7766. lt_prog_compiler_pic='-PIC'
  7767. lt_prog_compiler_static='-Bstatic'
  7768. ;;
  7769. sysv4 | sysv4.2uw2* | sysv4.3*)
  7770. lt_prog_compiler_wl='-Wl,'
  7771. lt_prog_compiler_pic='-KPIC'
  7772. lt_prog_compiler_static='-Bstatic'
  7773. ;;
  7774. sysv4*MP*)
  7775. if test -d /usr/nec ;then
  7776. lt_prog_compiler_pic='-Kconform_pic'
  7777. lt_prog_compiler_static='-Bstatic'
  7778. fi
  7779. ;;
  7780. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7781. lt_prog_compiler_wl='-Wl,'
  7782. lt_prog_compiler_pic='-KPIC'
  7783. lt_prog_compiler_static='-Bstatic'
  7784. ;;
  7785. unicos*)
  7786. lt_prog_compiler_wl='-Wl,'
  7787. lt_prog_compiler_can_build_shared=no
  7788. ;;
  7789. uts4*)
  7790. lt_prog_compiler_pic='-pic'
  7791. lt_prog_compiler_static='-Bstatic'
  7792. ;;
  7793. *)
  7794. lt_prog_compiler_can_build_shared=no
  7795. ;;
  7796. esac
  7797. fi
  7798. case $host_os in
  7799. # For platforms which do not support PIC, -DPIC is meaningless:
  7800. *djgpp*)
  7801. lt_prog_compiler_pic=
  7802. ;;
  7803. *)
  7804. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7805. ;;
  7806. esac
  7807. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7808. $as_echo "$lt_prog_compiler_pic" >&6; }
  7809. #
  7810. # Check to make sure the PIC flag actually works.
  7811. #
  7812. if test -n "$lt_prog_compiler_pic"; then
  7813. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7814. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7815. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7816. $as_echo_n "(cached) " >&6
  7817. else
  7818. lt_cv_prog_compiler_pic_works=no
  7819. ac_outfile=conftest.$ac_objext
  7820. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7821. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7822. # Insert the option either (1) after the last *FLAGS variable, or
  7823. # (2) before a word containing "conftest.", or (3) at the end.
  7824. # Note that $ac_compile itself does not contain backslashes and begins
  7825. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7826. # The option is referenced via a variable to avoid confusing sed.
  7827. lt_compile=`echo "$ac_compile" | $SED \
  7828. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7829. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7830. -e 's:$: $lt_compiler_flag:'`
  7831. (eval echo "\"\$as_me:8985: $lt_compile\"" >&5)
  7832. (eval "$lt_compile" 2>conftest.err)
  7833. ac_status=$?
  7834. cat conftest.err >&5
  7835. echo "$as_me:8989: \$? = $ac_status" >&5
  7836. if (exit $ac_status) && test -s "$ac_outfile"; then
  7837. # The compiler can only warn and ignore the option if not recognized
  7838. # So say no if there are warnings other than the usual output.
  7839. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7840. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7841. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7842. lt_cv_prog_compiler_pic_works=yes
  7843. fi
  7844. fi
  7845. $RM conftest*
  7846. fi
  7847. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  7848. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7849. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7850. case $lt_prog_compiler_pic in
  7851. "" | " "*) ;;
  7852. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7853. esac
  7854. else
  7855. lt_prog_compiler_pic=
  7856. lt_prog_compiler_can_build_shared=no
  7857. fi
  7858. fi
  7859. #
  7860. # Check to make sure the static flag actually works.
  7861. #
  7862. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7863. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7864. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7865. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7866. $as_echo_n "(cached) " >&6
  7867. else
  7868. lt_cv_prog_compiler_static_works=no
  7869. save_LDFLAGS="$LDFLAGS"
  7870. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7871. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7872. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7873. # The linker can only warn and ignore the option if not recognized
  7874. # So say no if there are warnings
  7875. if test -s conftest.err; then
  7876. # Append any errors to the config.log.
  7877. cat conftest.err 1>&5
  7878. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7879. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7880. if diff conftest.exp conftest.er2 >/dev/null; then
  7881. lt_cv_prog_compiler_static_works=yes
  7882. fi
  7883. else
  7884. lt_cv_prog_compiler_static_works=yes
  7885. fi
  7886. fi
  7887. $RM -r conftest*
  7888. LDFLAGS="$save_LDFLAGS"
  7889. fi
  7890. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7891. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7892. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7893. :
  7894. else
  7895. lt_prog_compiler_static=
  7896. fi
  7897. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7898. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7899. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7900. $as_echo_n "(cached) " >&6
  7901. else
  7902. lt_cv_prog_compiler_c_o=no
  7903. $RM -r conftest 2>/dev/null
  7904. mkdir conftest
  7905. cd conftest
  7906. mkdir out
  7907. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7908. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7909. # Insert the option either (1) after the last *FLAGS variable, or
  7910. # (2) before a word containing "conftest.", or (3) at the end.
  7911. # Note that $ac_compile itself does not contain backslashes and begins
  7912. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7913. lt_compile=`echo "$ac_compile" | $SED \
  7914. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7915. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7916. -e 's:$: $lt_compiler_flag:'`
  7917. (eval echo "\"\$as_me:9090: $lt_compile\"" >&5)
  7918. (eval "$lt_compile" 2>out/conftest.err)
  7919. ac_status=$?
  7920. cat out/conftest.err >&5
  7921. echo "$as_me:9094: \$? = $ac_status" >&5
  7922. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7923. then
  7924. # The compiler can only warn and ignore the option if not recognized
  7925. # So say no if there are warnings
  7926. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7927. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7928. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7929. lt_cv_prog_compiler_c_o=yes
  7930. fi
  7931. fi
  7932. chmod u+w . 2>&5
  7933. $RM conftest*
  7934. # SGI C++ compiler will create directory out/ii_files/ for
  7935. # template instantiation
  7936. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7937. $RM out/* && rmdir out
  7938. cd ..
  7939. $RM -r conftest
  7940. $RM conftest*
  7941. fi
  7942. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7943. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7944. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7945. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7946. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7947. $as_echo_n "(cached) " >&6
  7948. else
  7949. lt_cv_prog_compiler_c_o=no
  7950. $RM -r conftest 2>/dev/null
  7951. mkdir conftest
  7952. cd conftest
  7953. mkdir out
  7954. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7955. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7956. # Insert the option either (1) after the last *FLAGS variable, or
  7957. # (2) before a word containing "conftest.", or (3) at the end.
  7958. # Note that $ac_compile itself does not contain backslashes and begins
  7959. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7960. lt_compile=`echo "$ac_compile" | $SED \
  7961. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7962. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7963. -e 's:$: $lt_compiler_flag:'`
  7964. (eval echo "\"\$as_me:9145: $lt_compile\"" >&5)
  7965. (eval "$lt_compile" 2>out/conftest.err)
  7966. ac_status=$?
  7967. cat out/conftest.err >&5
  7968. echo "$as_me:9149: \$? = $ac_status" >&5
  7969. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7970. then
  7971. # The compiler can only warn and ignore the option if not recognized
  7972. # So say no if there are warnings
  7973. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7974. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7975. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7976. lt_cv_prog_compiler_c_o=yes
  7977. fi
  7978. fi
  7979. chmod u+w . 2>&5
  7980. $RM conftest*
  7981. # SGI C++ compiler will create directory out/ii_files/ for
  7982. # template instantiation
  7983. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7984. $RM out/* && rmdir out
  7985. cd ..
  7986. $RM -r conftest
  7987. $RM conftest*
  7988. fi
  7989. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7990. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7991. hard_links="nottested"
  7992. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7993. # do not overwrite the value of need_locks provided by the user
  7994. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7995. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7996. hard_links=yes
  7997. $RM conftest*
  7998. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7999. touch conftest.a
  8000. ln conftest.a conftest.b 2>&5 || hard_links=no
  8001. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8002. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8003. $as_echo "$hard_links" >&6; }
  8004. if test "$hard_links" = no; then
  8005. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8006. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8007. need_locks=warn
  8008. fi
  8009. else
  8010. need_locks=no
  8011. fi
  8012. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8013. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8014. runpath_var=
  8015. allow_undefined_flag=
  8016. always_export_symbols=no
  8017. archive_cmds=
  8018. archive_expsym_cmds=
  8019. compiler_needs_object=no
  8020. enable_shared_with_static_runtimes=no
  8021. export_dynamic_flag_spec=
  8022. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8023. hardcode_automatic=no
  8024. hardcode_direct=no
  8025. hardcode_direct_absolute=no
  8026. hardcode_libdir_flag_spec=
  8027. hardcode_libdir_flag_spec_ld=
  8028. hardcode_libdir_separator=
  8029. hardcode_minus_L=no
  8030. hardcode_shlibpath_var=unsupported
  8031. inherit_rpath=no
  8032. link_all_deplibs=unknown
  8033. module_cmds=
  8034. module_expsym_cmds=
  8035. old_archive_from_new_cmds=
  8036. old_archive_from_expsyms_cmds=
  8037. thread_safe_flag_spec=
  8038. whole_archive_flag_spec=
  8039. # include_expsyms should be a list of space-separated symbols to be *always*
  8040. # included in the symbol list
  8041. include_expsyms=
  8042. # exclude_expsyms can be an extended regexp of symbols to exclude
  8043. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8044. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8045. # as well as any symbol that contains `d'.
  8046. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8047. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8048. # platforms (ab)use it in PIC code, but their linkers get confused if
  8049. # the symbol is explicitly referenced. Since portable code cannot
  8050. # rely on this symbol name, it's probably fine to never include it in
  8051. # preloaded symbol tables.
  8052. # Exclude shared library initialization/finalization symbols.
  8053. extract_expsyms_cmds=
  8054. case $host_os in
  8055. cygwin* | mingw* | pw32* | cegcc*)
  8056. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8057. # When not using gcc, we currently assume that we are using
  8058. # Microsoft Visual C++.
  8059. if test "$GCC" != yes; then
  8060. with_gnu_ld=no
  8061. fi
  8062. ;;
  8063. interix*)
  8064. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8065. with_gnu_ld=yes
  8066. ;;
  8067. openbsd*)
  8068. with_gnu_ld=no
  8069. ;;
  8070. esac
  8071. ld_shlibs=yes
  8072. if test "$with_gnu_ld" = yes; then
  8073. # If archive_cmds runs LD, not CC, wlarc should be empty
  8074. wlarc='${wl}'
  8075. # Set some defaults for GNU ld with shared library support. These
  8076. # are reset later if shared libraries are not supported. Putting them
  8077. # here allows them to be overridden if necessary.
  8078. runpath_var=LD_RUN_PATH
  8079. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8080. export_dynamic_flag_spec='${wl}--export-dynamic'
  8081. # ancient GNU ld didn't support --whole-archive et. al.
  8082. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8083. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8084. else
  8085. whole_archive_flag_spec=
  8086. fi
  8087. supports_anon_versioning=no
  8088. case `$LD -v 2>&1` in
  8089. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8090. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8091. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8092. *\ 2.11.*) ;; # other 2.11 versions
  8093. *) supports_anon_versioning=yes ;;
  8094. esac
  8095. # See if GNU ld supports shared libraries.
  8096. case $host_os in
  8097. aix[3-9]*)
  8098. # On AIX/PPC, the GNU linker is very broken
  8099. if test "$host_cpu" != ia64; then
  8100. ld_shlibs=no
  8101. cat <<_LT_EOF 1>&2
  8102. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8103. *** to be unable to reliably create shared libraries on AIX.
  8104. *** Therefore, libtool is disabling shared libraries support. If you
  8105. *** really care for shared libraries, you may want to modify your PATH
  8106. *** so that a non-GNU linker is found, and then restart.
  8107. _LT_EOF
  8108. fi
  8109. ;;
  8110. amigaos*)
  8111. case $host_cpu in
  8112. powerpc)
  8113. # see comment about AmigaOS4 .so support
  8114. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8115. archive_expsym_cmds=''
  8116. ;;
  8117. m68k)
  8118. 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)'
  8119. hardcode_libdir_flag_spec='-L$libdir'
  8120. hardcode_minus_L=yes
  8121. ;;
  8122. esac
  8123. ;;
  8124. beos*)
  8125. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8126. allow_undefined_flag=unsupported
  8127. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8128. # support --undefined. This deserves some investigation. FIXME
  8129. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8130. else
  8131. ld_shlibs=no
  8132. fi
  8133. ;;
  8134. cygwin* | mingw* | pw32* | cegcc*)
  8135. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8136. # as there is no search path for DLLs.
  8137. hardcode_libdir_flag_spec='-L$libdir'
  8138. allow_undefined_flag=unsupported
  8139. always_export_symbols=no
  8140. enable_shared_with_static_runtimes=yes
  8141. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8142. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8143. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8144. # If the export-symbols file already is a .def file (1st line
  8145. # is EXPORTS), use it as is; otherwise, prepend...
  8146. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8147. cp $export_symbols $output_objdir/$soname.def;
  8148. else
  8149. echo EXPORTS > $output_objdir/$soname.def;
  8150. cat $export_symbols >> $output_objdir/$soname.def;
  8151. fi~
  8152. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8153. else
  8154. ld_shlibs=no
  8155. fi
  8156. ;;
  8157. interix[3-9]*)
  8158. hardcode_direct=no
  8159. hardcode_shlibpath_var=no
  8160. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8161. export_dynamic_flag_spec='${wl}-E'
  8162. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8163. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8164. # default) and relocated if they conflict, which is a slow very memory
  8165. # consuming and fragmenting process. To avoid this, we pick a random,
  8166. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8167. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8168. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8169. 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'
  8170. ;;
  8171. gnu* | linux* | tpf* | k*bsd*-gnu)
  8172. tmp_diet=no
  8173. if test "$host_os" = linux-dietlibc; then
  8174. case $cc_basename in
  8175. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8176. esac
  8177. fi
  8178. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8179. && test "$tmp_diet" = no
  8180. then
  8181. tmp_addflag=
  8182. tmp_sharedflag='-shared'
  8183. case $cc_basename,$host_cpu in
  8184. pgcc*) # Portland Group C compiler
  8185. 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'
  8186. tmp_addflag=' $pic_flag'
  8187. ;;
  8188. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8189. 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'
  8190. tmp_addflag=' $pic_flag -Mnomain' ;;
  8191. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8192. tmp_addflag=' -i_dynamic' ;;
  8193. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8194. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8195. ifc* | ifort*) # Intel Fortran compiler
  8196. tmp_addflag=' -nofor_main' ;;
  8197. lf95*) # Lahey Fortran 8.1
  8198. whole_archive_flag_spec=
  8199. tmp_sharedflag='--shared' ;;
  8200. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8201. tmp_sharedflag='-qmkshrobj'
  8202. tmp_addflag= ;;
  8203. esac
  8204. case `$CC -V 2>&1 | sed 5q` in
  8205. *Sun\ C*) # Sun C 5.9
  8206. 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'
  8207. compiler_needs_object=yes
  8208. tmp_sharedflag='-G' ;;
  8209. *Sun\ F*) # Sun Fortran 8.3
  8210. tmp_sharedflag='-G' ;;
  8211. esac
  8212. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8213. if test "x$supports_anon_versioning" = xyes; then
  8214. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8215. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8216. echo "local: *; };" >> $output_objdir/$libname.ver~
  8217. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8218. fi
  8219. case $cc_basename in
  8220. xlf*)
  8221. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8222. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8223. hardcode_libdir_flag_spec=
  8224. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8225. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8226. if test "x$supports_anon_versioning" = xyes; then
  8227. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8228. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8229. echo "local: *; };" >> $output_objdir/$libname.ver~
  8230. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8231. fi
  8232. ;;
  8233. esac
  8234. else
  8235. ld_shlibs=no
  8236. fi
  8237. ;;
  8238. netbsd* | netbsdelf*-gnu)
  8239. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8240. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8241. wlarc=
  8242. else
  8243. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8244. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8245. fi
  8246. ;;
  8247. solaris*)
  8248. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8249. ld_shlibs=no
  8250. cat <<_LT_EOF 1>&2
  8251. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8252. *** create shared libraries on Solaris systems. Therefore, libtool
  8253. *** is disabling shared libraries support. We urge you to upgrade GNU
  8254. *** binutils to release 2.9.1 or newer. Another option is to modify
  8255. *** your PATH or compiler configuration so that the native linker is
  8256. *** used, and then restart.
  8257. _LT_EOF
  8258. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8259. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8260. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8261. else
  8262. ld_shlibs=no
  8263. fi
  8264. ;;
  8265. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8266. case `$LD -v 2>&1` in
  8267. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8268. ld_shlibs=no
  8269. cat <<_LT_EOF 1>&2
  8270. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8271. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8272. *** is disabling shared libraries support. We urge you to upgrade GNU
  8273. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8274. *** your PATH or compiler configuration so that the native linker is
  8275. *** used, and then restart.
  8276. _LT_EOF
  8277. ;;
  8278. *)
  8279. # For security reasons, it is highly recommended that you always
  8280. # use absolute paths for naming shared libraries, and exclude the
  8281. # DT_RUNPATH tag from executables and libraries. But doing so
  8282. # requires that you compile everything twice, which is a pain.
  8283. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8284. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8285. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8286. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8287. else
  8288. ld_shlibs=no
  8289. fi
  8290. ;;
  8291. esac
  8292. ;;
  8293. sunos4*)
  8294. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8295. wlarc=
  8296. hardcode_direct=yes
  8297. hardcode_shlibpath_var=no
  8298. ;;
  8299. *)
  8300. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8301. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8302. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8303. else
  8304. ld_shlibs=no
  8305. fi
  8306. ;;
  8307. esac
  8308. if test "$ld_shlibs" = no; then
  8309. runpath_var=
  8310. hardcode_libdir_flag_spec=
  8311. export_dynamic_flag_spec=
  8312. whole_archive_flag_spec=
  8313. fi
  8314. else
  8315. # PORTME fill in a description of your system's linker (not GNU ld)
  8316. case $host_os in
  8317. aix3*)
  8318. allow_undefined_flag=unsupported
  8319. always_export_symbols=yes
  8320. 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'
  8321. # Note: this linker hardcodes the directories in LIBPATH if there
  8322. # are no directories specified by -L.
  8323. hardcode_minus_L=yes
  8324. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8325. # Neither direct hardcoding nor static linking is supported with a
  8326. # broken collect2.
  8327. hardcode_direct=unsupported
  8328. fi
  8329. ;;
  8330. aix[4-9]*)
  8331. if test "$host_cpu" = ia64; then
  8332. # On IA64, the linker does run time linking by default, so we don't
  8333. # have to do anything special.
  8334. aix_use_runtimelinking=no
  8335. exp_sym_flag='-Bexport'
  8336. no_entry_flag=""
  8337. else
  8338. # If we're using GNU nm, then we don't want the "-C" option.
  8339. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8340. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8341. 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'
  8342. else
  8343. 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'
  8344. fi
  8345. aix_use_runtimelinking=no
  8346. # Test if we are trying to use run time linking or normal
  8347. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8348. # need to do runtime linking.
  8349. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8350. for ld_flag in $LDFLAGS; do
  8351. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8352. aix_use_runtimelinking=yes
  8353. break
  8354. fi
  8355. done
  8356. ;;
  8357. esac
  8358. exp_sym_flag='-bexport'
  8359. no_entry_flag='-bnoentry'
  8360. fi
  8361. # When large executables or shared objects are built, AIX ld can
  8362. # have problems creating the table of contents. If linking a library
  8363. # or program results in "error TOC overflow" add -mminimal-toc to
  8364. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8365. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8366. archive_cmds=''
  8367. hardcode_direct=yes
  8368. hardcode_direct_absolute=yes
  8369. hardcode_libdir_separator=':'
  8370. link_all_deplibs=yes
  8371. file_list_spec='${wl}-f,'
  8372. if test "$GCC" = yes; then
  8373. case $host_os in aix4.[012]|aix4.[012].*)
  8374. # We only want to do this on AIX 4.2 and lower, the check
  8375. # below for broken collect2 doesn't work under 4.3+
  8376. collect2name=`${CC} -print-prog-name=collect2`
  8377. if test -f "$collect2name" &&
  8378. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8379. then
  8380. # We have reworked collect2
  8381. :
  8382. else
  8383. # We have old collect2
  8384. hardcode_direct=unsupported
  8385. # It fails to find uninstalled libraries when the uninstalled
  8386. # path is not listed in the libpath. Setting hardcode_minus_L
  8387. # to unsupported forces relinking
  8388. hardcode_minus_L=yes
  8389. hardcode_libdir_flag_spec='-L$libdir'
  8390. hardcode_libdir_separator=
  8391. fi
  8392. ;;
  8393. esac
  8394. shared_flag='-shared'
  8395. if test "$aix_use_runtimelinking" = yes; then
  8396. shared_flag="$shared_flag "'${wl}-G'
  8397. fi
  8398. link_all_deplibs=no
  8399. else
  8400. # not using gcc
  8401. if test "$host_cpu" = ia64; then
  8402. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8403. # chokes on -Wl,-G. The following line is correct:
  8404. shared_flag='-G'
  8405. else
  8406. if test "$aix_use_runtimelinking" = yes; then
  8407. shared_flag='${wl}-G'
  8408. else
  8409. shared_flag='${wl}-bM:SRE'
  8410. fi
  8411. fi
  8412. fi
  8413. export_dynamic_flag_spec='${wl}-bexpall'
  8414. # It seems that -bexpall does not export symbols beginning with
  8415. # underscore (_), so it is better to generate a list of symbols to export.
  8416. always_export_symbols=yes
  8417. if test "$aix_use_runtimelinking" = yes; then
  8418. # Warning - without using the other runtime loading flags (-brtl),
  8419. # -berok will link without error, but may produce a broken library.
  8420. allow_undefined_flag='-berok'
  8421. # Determine the default libpath from the value encoded in an
  8422. # empty executable.
  8423. cat >conftest.$ac_ext <<_ACEOF
  8424. /* confdefs.h. */
  8425. _ACEOF
  8426. cat confdefs.h >>conftest.$ac_ext
  8427. cat >>conftest.$ac_ext <<_ACEOF
  8428. /* end confdefs.h. */
  8429. int
  8430. main ()
  8431. {
  8432. ;
  8433. return 0;
  8434. }
  8435. _ACEOF
  8436. rm -f conftest.$ac_objext conftest$ac_exeext
  8437. if { (ac_try="$ac_link"
  8438. case "(($ac_try" in
  8439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8440. *) ac_try_echo=$ac_try;;
  8441. esac
  8442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8443. $as_echo "$ac_try_echo") >&5
  8444. (eval "$ac_link") 2>conftest.er1
  8445. ac_status=$?
  8446. grep -v '^ *+' conftest.er1 >conftest.err
  8447. rm -f conftest.er1
  8448. cat conftest.err >&5
  8449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8450. (exit $ac_status); } && {
  8451. test -z "$ac_c_werror_flag" ||
  8452. test ! -s conftest.err
  8453. } && test -s conftest$ac_exeext && {
  8454. test "$cross_compiling" = yes ||
  8455. $as_test_x conftest$ac_exeext
  8456. }; then
  8457. lt_aix_libpath_sed='
  8458. /Import File Strings/,/^$/ {
  8459. /^0/ {
  8460. s/^0 *\(.*\)$/\1/
  8461. p
  8462. }
  8463. }'
  8464. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8465. # Check for a 64-bit object if we didn't find anything.
  8466. if test -z "$aix_libpath"; then
  8467. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8468. fi
  8469. else
  8470. $as_echo "$as_me: failed program was:" >&5
  8471. sed 's/^/| /' conftest.$ac_ext >&5
  8472. fi
  8473. rm -rf conftest.dSYM
  8474. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8475. conftest$ac_exeext conftest.$ac_ext
  8476. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8477. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8478. 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"
  8479. else
  8480. if test "$host_cpu" = ia64; then
  8481. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8482. allow_undefined_flag="-z nodefs"
  8483. 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"
  8484. else
  8485. # Determine the default libpath from the value encoded in an
  8486. # empty executable.
  8487. cat >conftest.$ac_ext <<_ACEOF
  8488. /* confdefs.h. */
  8489. _ACEOF
  8490. cat confdefs.h >>conftest.$ac_ext
  8491. cat >>conftest.$ac_ext <<_ACEOF
  8492. /* end confdefs.h. */
  8493. int
  8494. main ()
  8495. {
  8496. ;
  8497. return 0;
  8498. }
  8499. _ACEOF
  8500. rm -f conftest.$ac_objext conftest$ac_exeext
  8501. if { (ac_try="$ac_link"
  8502. case "(($ac_try" in
  8503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8504. *) ac_try_echo=$ac_try;;
  8505. esac
  8506. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8507. $as_echo "$ac_try_echo") >&5
  8508. (eval "$ac_link") 2>conftest.er1
  8509. ac_status=$?
  8510. grep -v '^ *+' conftest.er1 >conftest.err
  8511. rm -f conftest.er1
  8512. cat conftest.err >&5
  8513. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8514. (exit $ac_status); } && {
  8515. test -z "$ac_c_werror_flag" ||
  8516. test ! -s conftest.err
  8517. } && test -s conftest$ac_exeext && {
  8518. test "$cross_compiling" = yes ||
  8519. $as_test_x conftest$ac_exeext
  8520. }; then
  8521. lt_aix_libpath_sed='
  8522. /Import File Strings/,/^$/ {
  8523. /^0/ {
  8524. s/^0 *\(.*\)$/\1/
  8525. p
  8526. }
  8527. }'
  8528. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8529. # Check for a 64-bit object if we didn't find anything.
  8530. if test -z "$aix_libpath"; then
  8531. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8532. fi
  8533. else
  8534. $as_echo "$as_me: failed program was:" >&5
  8535. sed 's/^/| /' conftest.$ac_ext >&5
  8536. fi
  8537. rm -rf conftest.dSYM
  8538. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8539. conftest$ac_exeext conftest.$ac_ext
  8540. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8541. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8542. # Warning - without using the other run time loading flags,
  8543. # -berok will link without error, but may produce a broken library.
  8544. no_undefined_flag=' ${wl}-bernotok'
  8545. allow_undefined_flag=' ${wl}-berok'
  8546. # Exported symbols can be pulled into shared objects from archives
  8547. whole_archive_flag_spec='$convenience'
  8548. archive_cmds_need_lc=yes
  8549. # This is similar to how AIX traditionally builds its shared libraries.
  8550. 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'
  8551. fi
  8552. fi
  8553. ;;
  8554. amigaos*)
  8555. case $host_cpu in
  8556. powerpc)
  8557. # see comment about AmigaOS4 .so support
  8558. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8559. archive_expsym_cmds=''
  8560. ;;
  8561. m68k)
  8562. 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)'
  8563. hardcode_libdir_flag_spec='-L$libdir'
  8564. hardcode_minus_L=yes
  8565. ;;
  8566. esac
  8567. ;;
  8568. bsdi[45]*)
  8569. export_dynamic_flag_spec=-rdynamic
  8570. ;;
  8571. cygwin* | mingw* | pw32* | cegcc*)
  8572. # When not using gcc, we currently assume that we are using
  8573. # Microsoft Visual C++.
  8574. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8575. # no search path for DLLs.
  8576. hardcode_libdir_flag_spec=' '
  8577. allow_undefined_flag=unsupported
  8578. # Tell ltmain to make .lib files, not .a files.
  8579. libext=lib
  8580. # Tell ltmain to make .dll files, not .so files.
  8581. shrext_cmds=".dll"
  8582. # FIXME: Setting linknames here is a bad hack.
  8583. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8584. # The linker will automatically build a .lib file if we build a DLL.
  8585. old_archive_from_new_cmds='true'
  8586. # FIXME: Should let the user specify the lib program.
  8587. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8588. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8589. enable_shared_with_static_runtimes=yes
  8590. ;;
  8591. darwin* | rhapsody*)
  8592. archive_cmds_need_lc=no
  8593. hardcode_direct=no
  8594. hardcode_automatic=yes
  8595. hardcode_shlibpath_var=unsupported
  8596. whole_archive_flag_spec=''
  8597. link_all_deplibs=yes
  8598. allow_undefined_flag="$_lt_dar_allow_undefined"
  8599. case $cc_basename in
  8600. ifort*) _lt_dar_can_shared=yes ;;
  8601. *) _lt_dar_can_shared=$GCC ;;
  8602. esac
  8603. if test "$_lt_dar_can_shared" = "yes"; then
  8604. output_verbose_link_cmd=echo
  8605. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8606. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8607. 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}"
  8608. 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}"
  8609. else
  8610. ld_shlibs=no
  8611. fi
  8612. ;;
  8613. dgux*)
  8614. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8615. hardcode_libdir_flag_spec='-L$libdir'
  8616. hardcode_shlibpath_var=no
  8617. ;;
  8618. freebsd1*)
  8619. ld_shlibs=no
  8620. ;;
  8621. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8622. # support. Future versions do this automatically, but an explicit c++rt0.o
  8623. # does not break anything, and helps significantly (at the cost of a little
  8624. # extra space).
  8625. freebsd2.2*)
  8626. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8627. hardcode_libdir_flag_spec='-R$libdir'
  8628. hardcode_direct=yes
  8629. hardcode_shlibpath_var=no
  8630. ;;
  8631. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8632. freebsd2*)
  8633. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8634. hardcode_direct=yes
  8635. hardcode_minus_L=yes
  8636. hardcode_shlibpath_var=no
  8637. ;;
  8638. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8639. freebsd* | dragonfly*)
  8640. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8641. hardcode_libdir_flag_spec='-R$libdir'
  8642. hardcode_direct=yes
  8643. hardcode_shlibpath_var=no
  8644. ;;
  8645. hpux9*)
  8646. if test "$GCC" = yes; then
  8647. 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'
  8648. else
  8649. 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'
  8650. fi
  8651. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8652. hardcode_libdir_separator=:
  8653. hardcode_direct=yes
  8654. # hardcode_minus_L: Not really in the search PATH,
  8655. # but as the default location of the library.
  8656. hardcode_minus_L=yes
  8657. export_dynamic_flag_spec='${wl}-E'
  8658. ;;
  8659. hpux10*)
  8660. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8661. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8662. else
  8663. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8664. fi
  8665. if test "$with_gnu_ld" = no; then
  8666. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8667. hardcode_libdir_flag_spec_ld='+b $libdir'
  8668. hardcode_libdir_separator=:
  8669. hardcode_direct=yes
  8670. hardcode_direct_absolute=yes
  8671. export_dynamic_flag_spec='${wl}-E'
  8672. # hardcode_minus_L: Not really in the search PATH,
  8673. # but as the default location of the library.
  8674. hardcode_minus_L=yes
  8675. fi
  8676. ;;
  8677. hpux11*)
  8678. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8679. case $host_cpu in
  8680. hppa*64*)
  8681. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8682. ;;
  8683. ia64*)
  8684. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8685. ;;
  8686. *)
  8687. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8688. ;;
  8689. esac
  8690. else
  8691. case $host_cpu in
  8692. hppa*64*)
  8693. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8694. ;;
  8695. ia64*)
  8696. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8697. ;;
  8698. *)
  8699. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8700. ;;
  8701. esac
  8702. fi
  8703. if test "$with_gnu_ld" = no; then
  8704. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8705. hardcode_libdir_separator=:
  8706. case $host_cpu in
  8707. hppa*64*|ia64*)
  8708. hardcode_direct=no
  8709. hardcode_shlibpath_var=no
  8710. ;;
  8711. *)
  8712. hardcode_direct=yes
  8713. hardcode_direct_absolute=yes
  8714. export_dynamic_flag_spec='${wl}-E'
  8715. # hardcode_minus_L: Not really in the search PATH,
  8716. # but as the default location of the library.
  8717. hardcode_minus_L=yes
  8718. ;;
  8719. esac
  8720. fi
  8721. ;;
  8722. irix5* | irix6* | nonstopux*)
  8723. if test "$GCC" = yes; then
  8724. 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'
  8725. # Try to use the -exported_symbol ld option, if it does not
  8726. # work, assume that -exports_file does not work either and
  8727. # implicitly export all symbols.
  8728. save_LDFLAGS="$LDFLAGS"
  8729. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8730. cat >conftest.$ac_ext <<_ACEOF
  8731. int foo(void) {}
  8732. _ACEOF
  8733. rm -f conftest.$ac_objext conftest$ac_exeext
  8734. if { (ac_try="$ac_link"
  8735. case "(($ac_try" in
  8736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8737. *) ac_try_echo=$ac_try;;
  8738. esac
  8739. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8740. $as_echo "$ac_try_echo") >&5
  8741. (eval "$ac_link") 2>conftest.er1
  8742. ac_status=$?
  8743. grep -v '^ *+' conftest.er1 >conftest.err
  8744. rm -f conftest.er1
  8745. cat conftest.err >&5
  8746. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8747. (exit $ac_status); } && {
  8748. test -z "$ac_c_werror_flag" ||
  8749. test ! -s conftest.err
  8750. } && test -s conftest$ac_exeext && {
  8751. test "$cross_compiling" = yes ||
  8752. $as_test_x conftest$ac_exeext
  8753. }; then
  8754. 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'
  8755. else
  8756. $as_echo "$as_me: failed program was:" >&5
  8757. sed 's/^/| /' conftest.$ac_ext >&5
  8758. fi
  8759. rm -rf conftest.dSYM
  8760. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8761. conftest$ac_exeext conftest.$ac_ext
  8762. LDFLAGS="$save_LDFLAGS"
  8763. else
  8764. 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'
  8765. 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'
  8766. fi
  8767. archive_cmds_need_lc='no'
  8768. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8769. hardcode_libdir_separator=:
  8770. inherit_rpath=yes
  8771. link_all_deplibs=yes
  8772. ;;
  8773. netbsd* | netbsdelf*-gnu)
  8774. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8775. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8776. else
  8777. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8778. fi
  8779. hardcode_libdir_flag_spec='-R$libdir'
  8780. hardcode_direct=yes
  8781. hardcode_shlibpath_var=no
  8782. ;;
  8783. newsos6)
  8784. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8785. hardcode_direct=yes
  8786. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8787. hardcode_libdir_separator=:
  8788. hardcode_shlibpath_var=no
  8789. ;;
  8790. *nto* | *qnx*)
  8791. ;;
  8792. openbsd*)
  8793. if test -f /usr/libexec/ld.so; then
  8794. hardcode_direct=yes
  8795. hardcode_shlibpath_var=no
  8796. hardcode_direct_absolute=yes
  8797. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8798. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8799. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8800. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8801. export_dynamic_flag_spec='${wl}-E'
  8802. else
  8803. case $host_os in
  8804. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8805. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8806. hardcode_libdir_flag_spec='-R$libdir'
  8807. ;;
  8808. *)
  8809. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8810. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8811. ;;
  8812. esac
  8813. fi
  8814. else
  8815. ld_shlibs=no
  8816. fi
  8817. ;;
  8818. os2*)
  8819. hardcode_libdir_flag_spec='-L$libdir'
  8820. hardcode_minus_L=yes
  8821. allow_undefined_flag=unsupported
  8822. 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'
  8823. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8824. ;;
  8825. osf3*)
  8826. if test "$GCC" = yes; then
  8827. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8828. 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'
  8829. else
  8830. allow_undefined_flag=' -expect_unresolved \*'
  8831. 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'
  8832. fi
  8833. archive_cmds_need_lc='no'
  8834. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8835. hardcode_libdir_separator=:
  8836. ;;
  8837. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8838. if test "$GCC" = yes; then
  8839. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8840. 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'
  8841. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8842. else
  8843. allow_undefined_flag=' -expect_unresolved \*'
  8844. 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'
  8845. 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~
  8846. $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'
  8847. # Both c and cxx compiler support -rpath directly
  8848. hardcode_libdir_flag_spec='-rpath $libdir'
  8849. fi
  8850. archive_cmds_need_lc='no'
  8851. hardcode_libdir_separator=:
  8852. ;;
  8853. solaris*)
  8854. no_undefined_flag=' -z defs'
  8855. if test "$GCC" = yes; then
  8856. wlarc='${wl}'
  8857. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8858. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8859. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8860. else
  8861. case `$CC -V 2>&1` in
  8862. *"Compilers 5.0"*)
  8863. wlarc=''
  8864. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8865. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8866. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8867. ;;
  8868. *)
  8869. wlarc='${wl}'
  8870. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8871. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8872. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8873. ;;
  8874. esac
  8875. fi
  8876. hardcode_libdir_flag_spec='-R$libdir'
  8877. hardcode_shlibpath_var=no
  8878. case $host_os in
  8879. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8880. *)
  8881. # The compiler driver will combine and reorder linker options,
  8882. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8883. # but is careful enough not to reorder.
  8884. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8885. if test "$GCC" = yes; then
  8886. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8887. else
  8888. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8889. fi
  8890. ;;
  8891. esac
  8892. link_all_deplibs=yes
  8893. ;;
  8894. sunos4*)
  8895. if test "x$host_vendor" = xsequent; then
  8896. # Use $CC to link under sequent, because it throws in some extra .o
  8897. # files that make .init and .fini sections work.
  8898. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8899. else
  8900. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8901. fi
  8902. hardcode_libdir_flag_spec='-L$libdir'
  8903. hardcode_direct=yes
  8904. hardcode_minus_L=yes
  8905. hardcode_shlibpath_var=no
  8906. ;;
  8907. sysv4)
  8908. case $host_vendor in
  8909. sni)
  8910. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8911. hardcode_direct=yes # is this really true???
  8912. ;;
  8913. siemens)
  8914. ## LD is ld it makes a PLAMLIB
  8915. ## CC just makes a GrossModule.
  8916. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8917. reload_cmds='$CC -r -o $output$reload_objs'
  8918. hardcode_direct=no
  8919. ;;
  8920. motorola)
  8921. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8922. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8923. ;;
  8924. esac
  8925. runpath_var='LD_RUN_PATH'
  8926. hardcode_shlibpath_var=no
  8927. ;;
  8928. sysv4.3*)
  8929. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8930. hardcode_shlibpath_var=no
  8931. export_dynamic_flag_spec='-Bexport'
  8932. ;;
  8933. sysv4*MP*)
  8934. if test -d /usr/nec; then
  8935. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8936. hardcode_shlibpath_var=no
  8937. runpath_var=LD_RUN_PATH
  8938. hardcode_runpath_var=yes
  8939. ld_shlibs=yes
  8940. fi
  8941. ;;
  8942. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8943. no_undefined_flag='${wl}-z,text'
  8944. archive_cmds_need_lc=no
  8945. hardcode_shlibpath_var=no
  8946. runpath_var='LD_RUN_PATH'
  8947. if test "$GCC" = yes; then
  8948. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8949. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8950. else
  8951. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8952. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8953. fi
  8954. ;;
  8955. sysv5* | sco3.2v5* | sco5v6*)
  8956. # Note: We can NOT use -z defs as we might desire, because we do not
  8957. # link with -lc, and that would cause any symbols used from libc to
  8958. # always be unresolved, which means just about no library would
  8959. # ever link correctly. If we're not using GNU ld we use -z text
  8960. # though, which does catch some bad symbols but isn't as heavy-handed
  8961. # as -z defs.
  8962. no_undefined_flag='${wl}-z,text'
  8963. allow_undefined_flag='${wl}-z,nodefs'
  8964. archive_cmds_need_lc=no
  8965. hardcode_shlibpath_var=no
  8966. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8967. hardcode_libdir_separator=':'
  8968. link_all_deplibs=yes
  8969. export_dynamic_flag_spec='${wl}-Bexport'
  8970. runpath_var='LD_RUN_PATH'
  8971. if test "$GCC" = yes; then
  8972. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8973. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8974. else
  8975. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8976. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8977. fi
  8978. ;;
  8979. uts4*)
  8980. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8981. hardcode_libdir_flag_spec='-L$libdir'
  8982. hardcode_shlibpath_var=no
  8983. ;;
  8984. *)
  8985. ld_shlibs=no
  8986. ;;
  8987. esac
  8988. if test x$host_vendor = xsni; then
  8989. case $host in
  8990. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8991. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8992. ;;
  8993. esac
  8994. fi
  8995. fi
  8996. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8997. $as_echo "$ld_shlibs" >&6; }
  8998. test "$ld_shlibs" = no && can_build_shared=no
  8999. with_gnu_ld=$with_gnu_ld
  9000. #
  9001. # Do we need to explicitly link libc?
  9002. #
  9003. case "x$archive_cmds_need_lc" in
  9004. x|xyes)
  9005. # Assume -lc should be added
  9006. archive_cmds_need_lc=yes
  9007. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9008. case $archive_cmds in
  9009. *'~'*)
  9010. # FIXME: we may have to deal with multi-command sequences.
  9011. ;;
  9012. '$CC '*)
  9013. # Test whether the compiler implicitly links with -lc since on some
  9014. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9015. # to ld, don't add -lc before -lgcc.
  9016. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9017. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9018. $RM conftest*
  9019. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9020. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9021. (eval $ac_compile) 2>&5
  9022. ac_status=$?
  9023. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9024. (exit $ac_status); } 2>conftest.err; then
  9025. soname=conftest
  9026. lib=conftest
  9027. libobjs=conftest.$ac_objext
  9028. deplibs=
  9029. wl=$lt_prog_compiler_wl
  9030. pic_flag=$lt_prog_compiler_pic
  9031. compiler_flags=-v
  9032. linker_flags=-v
  9033. verstring=
  9034. output_objdir=.
  9035. libname=conftest
  9036. lt_save_allow_undefined_flag=$allow_undefined_flag
  9037. allow_undefined_flag=
  9038. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9039. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9040. ac_status=$?
  9041. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9042. (exit $ac_status); }
  9043. then
  9044. archive_cmds_need_lc=no
  9045. else
  9046. archive_cmds_need_lc=yes
  9047. fi
  9048. allow_undefined_flag=$lt_save_allow_undefined_flag
  9049. else
  9050. cat conftest.err 1>&5
  9051. fi
  9052. $RM conftest*
  9053. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9054. $as_echo "$archive_cmds_need_lc" >&6; }
  9055. ;;
  9056. esac
  9057. fi
  9058. ;;
  9059. esac
  9060. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9061. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9062. if test "$GCC" = yes; then
  9063. case $host_os in
  9064. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9065. *) lt_awk_arg="/^libraries:/" ;;
  9066. esac
  9067. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9068. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9069. # if the path contains ";" then we assume it to be the separator
  9070. # otherwise default to the standard path separator (i.e. ":") - it is
  9071. # assumed that no part of a normal pathname contains ";" but that should
  9072. # okay in the real world where ";" in dirpaths is itself problematic.
  9073. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9074. else
  9075. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9076. fi
  9077. # Ok, now we have the path, separated by spaces, we can step through it
  9078. # and add multilib dir if necessary.
  9079. lt_tmp_lt_search_path_spec=
  9080. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9081. for lt_sys_path in $lt_search_path_spec; do
  9082. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9083. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9084. else
  9085. test -d "$lt_sys_path" && \
  9086. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9087. fi
  9088. done
  9089. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9090. BEGIN {RS=" "; FS="/|\n";} {
  9091. lt_foo="";
  9092. lt_count=0;
  9093. for (lt_i = NF; lt_i > 0; lt_i--) {
  9094. if ($lt_i != "" && $lt_i != ".") {
  9095. if ($lt_i == "..") {
  9096. lt_count++;
  9097. } else {
  9098. if (lt_count == 0) {
  9099. lt_foo="/" $lt_i lt_foo;
  9100. } else {
  9101. lt_count--;
  9102. }
  9103. }
  9104. }
  9105. }
  9106. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9107. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9108. }'`
  9109. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9110. else
  9111. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9112. fi
  9113. library_names_spec=
  9114. libname_spec='lib$name'
  9115. soname_spec=
  9116. shrext_cmds=".so"
  9117. postinstall_cmds=
  9118. postuninstall_cmds=
  9119. finish_cmds=
  9120. finish_eval=
  9121. shlibpath_var=
  9122. shlibpath_overrides_runpath=unknown
  9123. version_type=none
  9124. dynamic_linker="$host_os ld.so"
  9125. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9126. need_lib_prefix=unknown
  9127. hardcode_into_libs=no
  9128. # when you set need_version to no, make sure it does not cause -set_version
  9129. # flags to be left without arguments
  9130. need_version=unknown
  9131. case $host_os in
  9132. aix3*)
  9133. version_type=linux
  9134. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9135. shlibpath_var=LIBPATH
  9136. # AIX 3 has no versioning support, so we append a major version to the name.
  9137. soname_spec='${libname}${release}${shared_ext}$major'
  9138. ;;
  9139. aix[4-9]*)
  9140. version_type=linux
  9141. need_lib_prefix=no
  9142. need_version=no
  9143. hardcode_into_libs=yes
  9144. if test "$host_cpu" = ia64; then
  9145. # AIX 5 supports IA64
  9146. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9147. shlibpath_var=LD_LIBRARY_PATH
  9148. else
  9149. # With GCC up to 2.95.x, collect2 would create an import file
  9150. # for dependence libraries. The import file would start with
  9151. # the line `#! .'. This would cause the generated library to
  9152. # depend on `.', always an invalid library. This was fixed in
  9153. # development snapshots of GCC prior to 3.0.
  9154. case $host_os in
  9155. aix4 | aix4.[01] | aix4.[01].*)
  9156. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9157. echo ' yes '
  9158. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9159. :
  9160. else
  9161. can_build_shared=no
  9162. fi
  9163. ;;
  9164. esac
  9165. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9166. # soname into executable. Probably we can add versioning support to
  9167. # collect2, so additional links can be useful in future.
  9168. if test "$aix_use_runtimelinking" = yes; then
  9169. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9170. # instead of lib<name>.a to let people know that these are not
  9171. # typical AIX shared libraries.
  9172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9173. else
  9174. # We preserve .a as extension for shared libraries through AIX4.2
  9175. # and later when we are not doing run time linking.
  9176. library_names_spec='${libname}${release}.a $libname.a'
  9177. soname_spec='${libname}${release}${shared_ext}$major'
  9178. fi
  9179. shlibpath_var=LIBPATH
  9180. fi
  9181. ;;
  9182. amigaos*)
  9183. case $host_cpu in
  9184. powerpc)
  9185. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9186. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9188. ;;
  9189. m68k)
  9190. library_names_spec='$libname.ixlibrary $libname.a'
  9191. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9192. 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'
  9193. ;;
  9194. esac
  9195. ;;
  9196. beos*)
  9197. library_names_spec='${libname}${shared_ext}'
  9198. dynamic_linker="$host_os ld.so"
  9199. shlibpath_var=LIBRARY_PATH
  9200. ;;
  9201. bsdi[45]*)
  9202. version_type=linux
  9203. need_version=no
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9205. soname_spec='${libname}${release}${shared_ext}$major'
  9206. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9207. shlibpath_var=LD_LIBRARY_PATH
  9208. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9209. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9210. # the default ld.so.conf also contains /usr/contrib/lib and
  9211. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9212. # libtool to hard-code these into programs
  9213. ;;
  9214. cygwin* | mingw* | pw32* | cegcc*)
  9215. version_type=windows
  9216. shrext_cmds=".dll"
  9217. need_version=no
  9218. need_lib_prefix=no
  9219. case $GCC,$host_os in
  9220. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9221. library_names_spec='$libname.dll.a'
  9222. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9223. postinstall_cmds='base_file=`basename \${file}`~
  9224. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9225. dldir=$destdir/`dirname \$dlpath`~
  9226. test -d \$dldir || mkdir -p \$dldir~
  9227. $install_prog $dir/$dlname \$dldir/$dlname~
  9228. chmod a+x \$dldir/$dlname~
  9229. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9230. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9231. fi'
  9232. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9233. dlpath=$dir/\$dldll~
  9234. $RM \$dlpath'
  9235. shlibpath_overrides_runpath=yes
  9236. case $host_os in
  9237. cygwin*)
  9238. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9239. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9240. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9241. ;;
  9242. mingw* | cegcc*)
  9243. # MinGW DLLs use traditional 'lib' prefix
  9244. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9245. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9246. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9247. # It is most probably a Windows format PATH printed by
  9248. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9249. # path with ; separators, and with drive letters. We can handle the
  9250. # drive letters (cygwin fileutils understands them), so leave them,
  9251. # especially as we might pass files found there to a mingw objdump,
  9252. # which wouldn't understand a cygwinified path. Ahh.
  9253. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9254. else
  9255. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9256. fi
  9257. ;;
  9258. pw32*)
  9259. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9260. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9261. ;;
  9262. esac
  9263. ;;
  9264. *)
  9265. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9266. ;;
  9267. esac
  9268. dynamic_linker='Win32 ld.exe'
  9269. # FIXME: first we should search . and the directory the executable is in
  9270. shlibpath_var=PATH
  9271. ;;
  9272. darwin* | rhapsody*)
  9273. dynamic_linker="$host_os dyld"
  9274. version_type=darwin
  9275. need_lib_prefix=no
  9276. need_version=no
  9277. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9278. soname_spec='${libname}${release}${major}$shared_ext'
  9279. shlibpath_overrides_runpath=yes
  9280. shlibpath_var=DYLD_LIBRARY_PATH
  9281. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9282. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9283. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9284. ;;
  9285. dgux*)
  9286. version_type=linux
  9287. need_lib_prefix=no
  9288. need_version=no
  9289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9290. soname_spec='${libname}${release}${shared_ext}$major'
  9291. shlibpath_var=LD_LIBRARY_PATH
  9292. ;;
  9293. freebsd1*)
  9294. dynamic_linker=no
  9295. ;;
  9296. freebsd* | dragonfly*)
  9297. # DragonFly does not have aout. When/if they implement a new
  9298. # versioning mechanism, adjust this.
  9299. if test -x /usr/bin/objformat; then
  9300. objformat=`/usr/bin/objformat`
  9301. else
  9302. case $host_os in
  9303. freebsd[123]*) objformat=aout ;;
  9304. *) objformat=elf ;;
  9305. esac
  9306. fi
  9307. version_type=freebsd-$objformat
  9308. case $version_type in
  9309. freebsd-elf*)
  9310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9311. need_version=no
  9312. need_lib_prefix=no
  9313. ;;
  9314. freebsd-*)
  9315. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9316. need_version=yes
  9317. ;;
  9318. esac
  9319. shlibpath_var=LD_LIBRARY_PATH
  9320. case $host_os in
  9321. freebsd2*)
  9322. shlibpath_overrides_runpath=yes
  9323. ;;
  9324. freebsd3.[01]* | freebsdelf3.[01]*)
  9325. shlibpath_overrides_runpath=yes
  9326. hardcode_into_libs=yes
  9327. ;;
  9328. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9329. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9330. shlibpath_overrides_runpath=no
  9331. hardcode_into_libs=yes
  9332. ;;
  9333. *) # from 4.6 on, and DragonFly
  9334. shlibpath_overrides_runpath=yes
  9335. hardcode_into_libs=yes
  9336. ;;
  9337. esac
  9338. ;;
  9339. gnu*)
  9340. version_type=linux
  9341. need_lib_prefix=no
  9342. need_version=no
  9343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9344. soname_spec='${libname}${release}${shared_ext}$major'
  9345. shlibpath_var=LD_LIBRARY_PATH
  9346. hardcode_into_libs=yes
  9347. ;;
  9348. hpux9* | hpux10* | hpux11*)
  9349. # Give a soname corresponding to the major version so that dld.sl refuses to
  9350. # link against other versions.
  9351. version_type=sunos
  9352. need_lib_prefix=no
  9353. need_version=no
  9354. case $host_cpu in
  9355. ia64*)
  9356. shrext_cmds='.so'
  9357. hardcode_into_libs=yes
  9358. dynamic_linker="$host_os dld.so"
  9359. shlibpath_var=LD_LIBRARY_PATH
  9360. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9362. soname_spec='${libname}${release}${shared_ext}$major'
  9363. if test "X$HPUX_IA64_MODE" = X32; then
  9364. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9365. else
  9366. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9367. fi
  9368. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9369. ;;
  9370. hppa*64*)
  9371. shrext_cmds='.sl'
  9372. hardcode_into_libs=yes
  9373. dynamic_linker="$host_os dld.sl"
  9374. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9375. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9377. soname_spec='${libname}${release}${shared_ext}$major'
  9378. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9379. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9380. ;;
  9381. *)
  9382. shrext_cmds='.sl'
  9383. dynamic_linker="$host_os dld.sl"
  9384. shlibpath_var=SHLIB_PATH
  9385. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9387. soname_spec='${libname}${release}${shared_ext}$major'
  9388. ;;
  9389. esac
  9390. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9391. postinstall_cmds='chmod 555 $lib'
  9392. ;;
  9393. interix[3-9]*)
  9394. version_type=linux
  9395. need_lib_prefix=no
  9396. need_version=no
  9397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9398. soname_spec='${libname}${release}${shared_ext}$major'
  9399. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9400. shlibpath_var=LD_LIBRARY_PATH
  9401. shlibpath_overrides_runpath=no
  9402. hardcode_into_libs=yes
  9403. ;;
  9404. irix5* | irix6* | nonstopux*)
  9405. case $host_os in
  9406. nonstopux*) version_type=nonstopux ;;
  9407. *)
  9408. if test "$lt_cv_prog_gnu_ld" = yes; then
  9409. version_type=linux
  9410. else
  9411. version_type=irix
  9412. fi ;;
  9413. esac
  9414. need_lib_prefix=no
  9415. need_version=no
  9416. soname_spec='${libname}${release}${shared_ext}$major'
  9417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9418. case $host_os in
  9419. irix5* | nonstopux*)
  9420. libsuff= shlibsuff=
  9421. ;;
  9422. *)
  9423. case $LD in # libtool.m4 will add one of these switches to LD
  9424. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9425. libsuff= shlibsuff= libmagic=32-bit;;
  9426. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9427. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9428. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9429. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9430. *) libsuff= shlibsuff= libmagic=never-match;;
  9431. esac
  9432. ;;
  9433. esac
  9434. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9435. shlibpath_overrides_runpath=no
  9436. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9437. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9438. hardcode_into_libs=yes
  9439. ;;
  9440. # No shared lib support for Linux oldld, aout, or coff.
  9441. linux*oldld* | linux*aout* | linux*coff*)
  9442. dynamic_linker=no
  9443. ;;
  9444. # This must be Linux ELF.
  9445. linux* | k*bsd*-gnu)
  9446. version_type=linux
  9447. need_lib_prefix=no
  9448. need_version=no
  9449. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9450. soname_spec='${libname}${release}${shared_ext}$major'
  9451. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9452. shlibpath_var=LD_LIBRARY_PATH
  9453. shlibpath_overrides_runpath=no
  9454. # Some binutils ld are patched to set DT_RUNPATH
  9455. save_LDFLAGS=$LDFLAGS
  9456. save_libdir=$libdir
  9457. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9458. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9459. cat >conftest.$ac_ext <<_ACEOF
  9460. /* confdefs.h. */
  9461. _ACEOF
  9462. cat confdefs.h >>conftest.$ac_ext
  9463. cat >>conftest.$ac_ext <<_ACEOF
  9464. /* end confdefs.h. */
  9465. int
  9466. main ()
  9467. {
  9468. ;
  9469. return 0;
  9470. }
  9471. _ACEOF
  9472. rm -f conftest.$ac_objext conftest$ac_exeext
  9473. if { (ac_try="$ac_link"
  9474. case "(($ac_try" in
  9475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9476. *) ac_try_echo=$ac_try;;
  9477. esac
  9478. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9479. $as_echo "$ac_try_echo") >&5
  9480. (eval "$ac_link") 2>conftest.er1
  9481. ac_status=$?
  9482. grep -v '^ *+' conftest.er1 >conftest.err
  9483. rm -f conftest.er1
  9484. cat conftest.err >&5
  9485. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9486. (exit $ac_status); } && {
  9487. test -z "$ac_c_werror_flag" ||
  9488. test ! -s conftest.err
  9489. } && test -s conftest$ac_exeext && {
  9490. test "$cross_compiling" = yes ||
  9491. $as_test_x conftest$ac_exeext
  9492. }; then
  9493. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  9494. shlibpath_overrides_runpath=yes
  9495. fi
  9496. else
  9497. $as_echo "$as_me: failed program was:" >&5
  9498. sed 's/^/| /' conftest.$ac_ext >&5
  9499. fi
  9500. rm -rf conftest.dSYM
  9501. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9502. conftest$ac_exeext conftest.$ac_ext
  9503. LDFLAGS=$save_LDFLAGS
  9504. libdir=$save_libdir
  9505. # This implies no fast_install, which is unacceptable.
  9506. # Some rework will be needed to allow for fast_install
  9507. # before this can be enabled.
  9508. hardcode_into_libs=yes
  9509. # Append ld.so.conf contents to the search path
  9510. if test -f /etc/ld.so.conf; then
  9511. 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' ' '`
  9512. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9513. fi
  9514. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9515. # powerpc, because MkLinux only supported shared libraries with the
  9516. # GNU dynamic linker. Since this was broken with cross compilers,
  9517. # most powerpc-linux boxes support dynamic linking these days and
  9518. # people can always --disable-shared, the test was removed, and we
  9519. # assume the GNU/Linux dynamic linker is in use.
  9520. dynamic_linker='GNU/Linux ld.so'
  9521. ;;
  9522. netbsdelf*-gnu)
  9523. version_type=linux
  9524. need_lib_prefix=no
  9525. need_version=no
  9526. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9527. soname_spec='${libname}${release}${shared_ext}$major'
  9528. shlibpath_var=LD_LIBRARY_PATH
  9529. shlibpath_overrides_runpath=no
  9530. hardcode_into_libs=yes
  9531. dynamic_linker='NetBSD ld.elf_so'
  9532. ;;
  9533. netbsd*)
  9534. version_type=sunos
  9535. need_lib_prefix=no
  9536. need_version=no
  9537. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9539. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9540. dynamic_linker='NetBSD (a.out) ld.so'
  9541. else
  9542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9543. soname_spec='${libname}${release}${shared_ext}$major'
  9544. dynamic_linker='NetBSD ld.elf_so'
  9545. fi
  9546. shlibpath_var=LD_LIBRARY_PATH
  9547. shlibpath_overrides_runpath=yes
  9548. hardcode_into_libs=yes
  9549. ;;
  9550. newsos6)
  9551. version_type=linux
  9552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9553. shlibpath_var=LD_LIBRARY_PATH
  9554. shlibpath_overrides_runpath=yes
  9555. ;;
  9556. *nto* | *qnx*)
  9557. version_type=qnx
  9558. need_lib_prefix=no
  9559. need_version=no
  9560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9561. soname_spec='${libname}${release}${shared_ext}$major'
  9562. shlibpath_var=LD_LIBRARY_PATH
  9563. shlibpath_overrides_runpath=no
  9564. hardcode_into_libs=yes
  9565. dynamic_linker='ldqnx.so'
  9566. ;;
  9567. openbsd*)
  9568. version_type=sunos
  9569. sys_lib_dlsearch_path_spec="/usr/lib"
  9570. need_lib_prefix=no
  9571. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9572. case $host_os in
  9573. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9574. *) need_version=no ;;
  9575. esac
  9576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9577. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9578. shlibpath_var=LD_LIBRARY_PATH
  9579. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9580. case $host_os in
  9581. openbsd2.[89] | openbsd2.[89].*)
  9582. shlibpath_overrides_runpath=no
  9583. ;;
  9584. *)
  9585. shlibpath_overrides_runpath=yes
  9586. ;;
  9587. esac
  9588. else
  9589. shlibpath_overrides_runpath=yes
  9590. fi
  9591. ;;
  9592. os2*)
  9593. libname_spec='$name'
  9594. shrext_cmds=".dll"
  9595. need_lib_prefix=no
  9596. library_names_spec='$libname${shared_ext} $libname.a'
  9597. dynamic_linker='OS/2 ld.exe'
  9598. shlibpath_var=LIBPATH
  9599. ;;
  9600. osf3* | osf4* | osf5*)
  9601. version_type=osf
  9602. need_lib_prefix=no
  9603. need_version=no
  9604. soname_spec='${libname}${release}${shared_ext}$major'
  9605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9606. shlibpath_var=LD_LIBRARY_PATH
  9607. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9608. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9609. ;;
  9610. rdos*)
  9611. dynamic_linker=no
  9612. ;;
  9613. solaris*)
  9614. version_type=linux
  9615. need_lib_prefix=no
  9616. need_version=no
  9617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9618. soname_spec='${libname}${release}${shared_ext}$major'
  9619. shlibpath_var=LD_LIBRARY_PATH
  9620. shlibpath_overrides_runpath=yes
  9621. hardcode_into_libs=yes
  9622. # ldd complains unless libraries are executable
  9623. postinstall_cmds='chmod +x $lib'
  9624. ;;
  9625. sunos4*)
  9626. version_type=sunos
  9627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9628. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9629. shlibpath_var=LD_LIBRARY_PATH
  9630. shlibpath_overrides_runpath=yes
  9631. if test "$with_gnu_ld" = yes; then
  9632. need_lib_prefix=no
  9633. fi
  9634. need_version=yes
  9635. ;;
  9636. sysv4 | sysv4.3*)
  9637. version_type=linux
  9638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9639. soname_spec='${libname}${release}${shared_ext}$major'
  9640. shlibpath_var=LD_LIBRARY_PATH
  9641. case $host_vendor in
  9642. sni)
  9643. shlibpath_overrides_runpath=no
  9644. need_lib_prefix=no
  9645. runpath_var=LD_RUN_PATH
  9646. ;;
  9647. siemens)
  9648. need_lib_prefix=no
  9649. ;;
  9650. motorola)
  9651. need_lib_prefix=no
  9652. need_version=no
  9653. shlibpath_overrides_runpath=no
  9654. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9655. ;;
  9656. esac
  9657. ;;
  9658. sysv4*MP*)
  9659. if test -d /usr/nec ;then
  9660. version_type=linux
  9661. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9662. soname_spec='$libname${shared_ext}.$major'
  9663. shlibpath_var=LD_LIBRARY_PATH
  9664. fi
  9665. ;;
  9666. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9667. version_type=freebsd-elf
  9668. need_lib_prefix=no
  9669. need_version=no
  9670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9671. soname_spec='${libname}${release}${shared_ext}$major'
  9672. shlibpath_var=LD_LIBRARY_PATH
  9673. shlibpath_overrides_runpath=yes
  9674. hardcode_into_libs=yes
  9675. if test "$with_gnu_ld" = yes; then
  9676. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9677. else
  9678. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9679. case $host_os in
  9680. sco3.2v5*)
  9681. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9682. ;;
  9683. esac
  9684. fi
  9685. sys_lib_dlsearch_path_spec='/usr/lib'
  9686. ;;
  9687. tpf*)
  9688. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9689. version_type=linux
  9690. need_lib_prefix=no
  9691. need_version=no
  9692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9693. shlibpath_var=LD_LIBRARY_PATH
  9694. shlibpath_overrides_runpath=no
  9695. hardcode_into_libs=yes
  9696. ;;
  9697. uts4*)
  9698. version_type=linux
  9699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9700. soname_spec='${libname}${release}${shared_ext}$major'
  9701. shlibpath_var=LD_LIBRARY_PATH
  9702. ;;
  9703. *)
  9704. dynamic_linker=no
  9705. ;;
  9706. esac
  9707. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9708. $as_echo "$dynamic_linker" >&6; }
  9709. test "$dynamic_linker" = no && can_build_shared=no
  9710. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9711. if test "$GCC" = yes; then
  9712. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9713. fi
  9714. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9715. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9716. fi
  9717. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9718. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9719. fi
  9720. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9721. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9722. hardcode_action=
  9723. if test -n "$hardcode_libdir_flag_spec" ||
  9724. test -n "$runpath_var" ||
  9725. test "X$hardcode_automatic" = "Xyes" ; then
  9726. # We can hardcode non-existent directories.
  9727. if test "$hardcode_direct" != no &&
  9728. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9729. # have to relink, otherwise we might link with an installed library
  9730. # when we should be linking with a yet-to-be-installed one
  9731. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9732. test "$hardcode_minus_L" != no; then
  9733. # Linking always hardcodes the temporary library directory.
  9734. hardcode_action=relink
  9735. else
  9736. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9737. hardcode_action=immediate
  9738. fi
  9739. else
  9740. # We cannot hardcode anything, or else we can only hardcode existing
  9741. # directories.
  9742. hardcode_action=unsupported
  9743. fi
  9744. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9745. $as_echo "$hardcode_action" >&6; }
  9746. if test "$hardcode_action" = relink ||
  9747. test "$inherit_rpath" = yes; then
  9748. # Fast installation is not supported
  9749. enable_fast_install=no
  9750. elif test "$shlibpath_overrides_runpath" = yes ||
  9751. test "$enable_shared" = no; then
  9752. # Fast installation is not necessary
  9753. enable_fast_install=needless
  9754. fi
  9755. if test "x$enable_dlopen" != xyes; then
  9756. enable_dlopen=unknown
  9757. enable_dlopen_self=unknown
  9758. enable_dlopen_self_static=unknown
  9759. else
  9760. lt_cv_dlopen=no
  9761. lt_cv_dlopen_libs=
  9762. case $host_os in
  9763. beos*)
  9764. lt_cv_dlopen="load_add_on"
  9765. lt_cv_dlopen_libs=
  9766. lt_cv_dlopen_self=yes
  9767. ;;
  9768. mingw* | pw32* | cegcc*)
  9769. lt_cv_dlopen="LoadLibrary"
  9770. lt_cv_dlopen_libs=
  9771. ;;
  9772. cygwin*)
  9773. lt_cv_dlopen="dlopen"
  9774. lt_cv_dlopen_libs=
  9775. ;;
  9776. darwin*)
  9777. # if libdl is installed we need to link against it
  9778. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9779. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9780. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9781. $as_echo_n "(cached) " >&6
  9782. else
  9783. ac_check_lib_save_LIBS=$LIBS
  9784. LIBS="-ldl $LIBS"
  9785. cat >conftest.$ac_ext <<_ACEOF
  9786. /* confdefs.h. */
  9787. _ACEOF
  9788. cat confdefs.h >>conftest.$ac_ext
  9789. cat >>conftest.$ac_ext <<_ACEOF
  9790. /* end confdefs.h. */
  9791. /* Override any GCC internal prototype to avoid an error.
  9792. Use char because int might match the return type of a GCC
  9793. builtin and then its argument prototype would still apply. */
  9794. #ifdef __cplusplus
  9795. extern "C"
  9796. #endif
  9797. char dlopen ();
  9798. int
  9799. main ()
  9800. {
  9801. return dlopen ();
  9802. ;
  9803. return 0;
  9804. }
  9805. _ACEOF
  9806. rm -f conftest.$ac_objext conftest$ac_exeext
  9807. if { (ac_try="$ac_link"
  9808. case "(($ac_try" in
  9809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9810. *) ac_try_echo=$ac_try;;
  9811. esac
  9812. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9813. $as_echo "$ac_try_echo") >&5
  9814. (eval "$ac_link") 2>conftest.er1
  9815. ac_status=$?
  9816. grep -v '^ *+' conftest.er1 >conftest.err
  9817. rm -f conftest.er1
  9818. cat conftest.err >&5
  9819. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9820. (exit $ac_status); } && {
  9821. test -z "$ac_c_werror_flag" ||
  9822. test ! -s conftest.err
  9823. } && test -s conftest$ac_exeext && {
  9824. test "$cross_compiling" = yes ||
  9825. $as_test_x conftest$ac_exeext
  9826. }; then
  9827. ac_cv_lib_dl_dlopen=yes
  9828. else
  9829. $as_echo "$as_me: failed program was:" >&5
  9830. sed 's/^/| /' conftest.$ac_ext >&5
  9831. ac_cv_lib_dl_dlopen=no
  9832. fi
  9833. rm -rf conftest.dSYM
  9834. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9835. conftest$ac_exeext conftest.$ac_ext
  9836. LIBS=$ac_check_lib_save_LIBS
  9837. fi
  9838. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9839. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9840. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9841. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9842. else
  9843. lt_cv_dlopen="dyld"
  9844. lt_cv_dlopen_libs=
  9845. lt_cv_dlopen_self=yes
  9846. fi
  9847. ;;
  9848. *)
  9849. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  9850. $as_echo_n "checking for shl_load... " >&6; }
  9851. if test "${ac_cv_func_shl_load+set}" = set; then
  9852. $as_echo_n "(cached) " >&6
  9853. else
  9854. cat >conftest.$ac_ext <<_ACEOF
  9855. /* confdefs.h. */
  9856. _ACEOF
  9857. cat confdefs.h >>conftest.$ac_ext
  9858. cat >>conftest.$ac_ext <<_ACEOF
  9859. /* end confdefs.h. */
  9860. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9861. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9862. #define shl_load innocuous_shl_load
  9863. /* System header to define __stub macros and hopefully few prototypes,
  9864. which can conflict with char shl_load (); below.
  9865. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9866. <limits.h> exists even on freestanding compilers. */
  9867. #ifdef __STDC__
  9868. # include <limits.h>
  9869. #else
  9870. # include <assert.h>
  9871. #endif
  9872. #undef shl_load
  9873. /* Override any GCC internal prototype to avoid an error.
  9874. Use char because int might match the return type of a GCC
  9875. builtin and then its argument prototype would still apply. */
  9876. #ifdef __cplusplus
  9877. extern "C"
  9878. #endif
  9879. char shl_load ();
  9880. /* The GNU C library defines this for functions which it implements
  9881. to always fail with ENOSYS. Some functions are actually named
  9882. something starting with __ and the normal name is an alias. */
  9883. #if defined __stub_shl_load || defined __stub___shl_load
  9884. choke me
  9885. #endif
  9886. int
  9887. main ()
  9888. {
  9889. return shl_load ();
  9890. ;
  9891. return 0;
  9892. }
  9893. _ACEOF
  9894. rm -f conftest.$ac_objext conftest$ac_exeext
  9895. if { (ac_try="$ac_link"
  9896. case "(($ac_try" in
  9897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9898. *) ac_try_echo=$ac_try;;
  9899. esac
  9900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9901. $as_echo "$ac_try_echo") >&5
  9902. (eval "$ac_link") 2>conftest.er1
  9903. ac_status=$?
  9904. grep -v '^ *+' conftest.er1 >conftest.err
  9905. rm -f conftest.er1
  9906. cat conftest.err >&5
  9907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9908. (exit $ac_status); } && {
  9909. test -z "$ac_c_werror_flag" ||
  9910. test ! -s conftest.err
  9911. } && test -s conftest$ac_exeext && {
  9912. test "$cross_compiling" = yes ||
  9913. $as_test_x conftest$ac_exeext
  9914. }; then
  9915. ac_cv_func_shl_load=yes
  9916. else
  9917. $as_echo "$as_me: failed program was:" >&5
  9918. sed 's/^/| /' conftest.$ac_ext >&5
  9919. ac_cv_func_shl_load=no
  9920. fi
  9921. rm -rf conftest.dSYM
  9922. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9923. conftest$ac_exeext conftest.$ac_ext
  9924. fi
  9925. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9926. $as_echo "$ac_cv_func_shl_load" >&6; }
  9927. if test "x$ac_cv_func_shl_load" = x""yes; then
  9928. lt_cv_dlopen="shl_load"
  9929. else
  9930. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9931. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9932. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9933. $as_echo_n "(cached) " >&6
  9934. else
  9935. ac_check_lib_save_LIBS=$LIBS
  9936. LIBS="-ldld $LIBS"
  9937. cat >conftest.$ac_ext <<_ACEOF
  9938. /* confdefs.h. */
  9939. _ACEOF
  9940. cat confdefs.h >>conftest.$ac_ext
  9941. cat >>conftest.$ac_ext <<_ACEOF
  9942. /* end confdefs.h. */
  9943. /* Override any GCC internal prototype to avoid an error.
  9944. Use char because int might match the return type of a GCC
  9945. builtin and then its argument prototype would still apply. */
  9946. #ifdef __cplusplus
  9947. extern "C"
  9948. #endif
  9949. char shl_load ();
  9950. int
  9951. main ()
  9952. {
  9953. return shl_load ();
  9954. ;
  9955. return 0;
  9956. }
  9957. _ACEOF
  9958. rm -f conftest.$ac_objext conftest$ac_exeext
  9959. if { (ac_try="$ac_link"
  9960. case "(($ac_try" in
  9961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9962. *) ac_try_echo=$ac_try;;
  9963. esac
  9964. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9965. $as_echo "$ac_try_echo") >&5
  9966. (eval "$ac_link") 2>conftest.er1
  9967. ac_status=$?
  9968. grep -v '^ *+' conftest.er1 >conftest.err
  9969. rm -f conftest.er1
  9970. cat conftest.err >&5
  9971. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9972. (exit $ac_status); } && {
  9973. test -z "$ac_c_werror_flag" ||
  9974. test ! -s conftest.err
  9975. } && test -s conftest$ac_exeext && {
  9976. test "$cross_compiling" = yes ||
  9977. $as_test_x conftest$ac_exeext
  9978. }; then
  9979. ac_cv_lib_dld_shl_load=yes
  9980. else
  9981. $as_echo "$as_me: failed program was:" >&5
  9982. sed 's/^/| /' conftest.$ac_ext >&5
  9983. ac_cv_lib_dld_shl_load=no
  9984. fi
  9985. rm -rf conftest.dSYM
  9986. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9987. conftest$ac_exeext conftest.$ac_ext
  9988. LIBS=$ac_check_lib_save_LIBS
  9989. fi
  9990. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9991. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9992. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  9993. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9994. else
  9995. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  9996. $as_echo_n "checking for dlopen... " >&6; }
  9997. if test "${ac_cv_func_dlopen+set}" = set; then
  9998. $as_echo_n "(cached) " >&6
  9999. else
  10000. cat >conftest.$ac_ext <<_ACEOF
  10001. /* confdefs.h. */
  10002. _ACEOF
  10003. cat confdefs.h >>conftest.$ac_ext
  10004. cat >>conftest.$ac_ext <<_ACEOF
  10005. /* end confdefs.h. */
  10006. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10007. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10008. #define dlopen innocuous_dlopen
  10009. /* System header to define __stub macros and hopefully few prototypes,
  10010. which can conflict with char dlopen (); below.
  10011. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10012. <limits.h> exists even on freestanding compilers. */
  10013. #ifdef __STDC__
  10014. # include <limits.h>
  10015. #else
  10016. # include <assert.h>
  10017. #endif
  10018. #undef dlopen
  10019. /* Override any GCC internal prototype to avoid an error.
  10020. Use char because int might match the return type of a GCC
  10021. builtin and then its argument prototype would still apply. */
  10022. #ifdef __cplusplus
  10023. extern "C"
  10024. #endif
  10025. char dlopen ();
  10026. /* The GNU C library defines this for functions which it implements
  10027. to always fail with ENOSYS. Some functions are actually named
  10028. something starting with __ and the normal name is an alias. */
  10029. #if defined __stub_dlopen || defined __stub___dlopen
  10030. choke me
  10031. #endif
  10032. int
  10033. main ()
  10034. {
  10035. return dlopen ();
  10036. ;
  10037. return 0;
  10038. }
  10039. _ACEOF
  10040. rm -f conftest.$ac_objext conftest$ac_exeext
  10041. if { (ac_try="$ac_link"
  10042. case "(($ac_try" in
  10043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10044. *) ac_try_echo=$ac_try;;
  10045. esac
  10046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10047. $as_echo "$ac_try_echo") >&5
  10048. (eval "$ac_link") 2>conftest.er1
  10049. ac_status=$?
  10050. grep -v '^ *+' conftest.er1 >conftest.err
  10051. rm -f conftest.er1
  10052. cat conftest.err >&5
  10053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10054. (exit $ac_status); } && {
  10055. test -z "$ac_c_werror_flag" ||
  10056. test ! -s conftest.err
  10057. } && test -s conftest$ac_exeext && {
  10058. test "$cross_compiling" = yes ||
  10059. $as_test_x conftest$ac_exeext
  10060. }; then
  10061. ac_cv_func_dlopen=yes
  10062. else
  10063. $as_echo "$as_me: failed program was:" >&5
  10064. sed 's/^/| /' conftest.$ac_ext >&5
  10065. ac_cv_func_dlopen=no
  10066. fi
  10067. rm -rf conftest.dSYM
  10068. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10069. conftest$ac_exeext conftest.$ac_ext
  10070. fi
  10071. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10072. $as_echo "$ac_cv_func_dlopen" >&6; }
  10073. if test "x$ac_cv_func_dlopen" = x""yes; then
  10074. lt_cv_dlopen="dlopen"
  10075. else
  10076. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10077. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10078. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10079. $as_echo_n "(cached) " >&6
  10080. else
  10081. ac_check_lib_save_LIBS=$LIBS
  10082. LIBS="-ldl $LIBS"
  10083. cat >conftest.$ac_ext <<_ACEOF
  10084. /* confdefs.h. */
  10085. _ACEOF
  10086. cat confdefs.h >>conftest.$ac_ext
  10087. cat >>conftest.$ac_ext <<_ACEOF
  10088. /* end confdefs.h. */
  10089. /* Override any GCC internal prototype to avoid an error.
  10090. Use char because int might match the return type of a GCC
  10091. builtin and then its argument prototype would still apply. */
  10092. #ifdef __cplusplus
  10093. extern "C"
  10094. #endif
  10095. char dlopen ();
  10096. int
  10097. main ()
  10098. {
  10099. return dlopen ();
  10100. ;
  10101. return 0;
  10102. }
  10103. _ACEOF
  10104. rm -f conftest.$ac_objext conftest$ac_exeext
  10105. if { (ac_try="$ac_link"
  10106. case "(($ac_try" in
  10107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10108. *) ac_try_echo=$ac_try;;
  10109. esac
  10110. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10111. $as_echo "$ac_try_echo") >&5
  10112. (eval "$ac_link") 2>conftest.er1
  10113. ac_status=$?
  10114. grep -v '^ *+' conftest.er1 >conftest.err
  10115. rm -f conftest.er1
  10116. cat conftest.err >&5
  10117. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10118. (exit $ac_status); } && {
  10119. test -z "$ac_c_werror_flag" ||
  10120. test ! -s conftest.err
  10121. } && test -s conftest$ac_exeext && {
  10122. test "$cross_compiling" = yes ||
  10123. $as_test_x conftest$ac_exeext
  10124. }; then
  10125. ac_cv_lib_dl_dlopen=yes
  10126. else
  10127. $as_echo "$as_me: failed program was:" >&5
  10128. sed 's/^/| /' conftest.$ac_ext >&5
  10129. ac_cv_lib_dl_dlopen=no
  10130. fi
  10131. rm -rf conftest.dSYM
  10132. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10133. conftest$ac_exeext conftest.$ac_ext
  10134. LIBS=$ac_check_lib_save_LIBS
  10135. fi
  10136. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10137. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10138. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10139. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10140. else
  10141. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10142. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10143. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10144. $as_echo_n "(cached) " >&6
  10145. else
  10146. ac_check_lib_save_LIBS=$LIBS
  10147. LIBS="-lsvld $LIBS"
  10148. cat >conftest.$ac_ext <<_ACEOF
  10149. /* confdefs.h. */
  10150. _ACEOF
  10151. cat confdefs.h >>conftest.$ac_ext
  10152. cat >>conftest.$ac_ext <<_ACEOF
  10153. /* end confdefs.h. */
  10154. /* Override any GCC internal prototype to avoid an error.
  10155. Use char because int might match the return type of a GCC
  10156. builtin and then its argument prototype would still apply. */
  10157. #ifdef __cplusplus
  10158. extern "C"
  10159. #endif
  10160. char dlopen ();
  10161. int
  10162. main ()
  10163. {
  10164. return dlopen ();
  10165. ;
  10166. return 0;
  10167. }
  10168. _ACEOF
  10169. rm -f conftest.$ac_objext conftest$ac_exeext
  10170. if { (ac_try="$ac_link"
  10171. case "(($ac_try" in
  10172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10173. *) ac_try_echo=$ac_try;;
  10174. esac
  10175. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10176. $as_echo "$ac_try_echo") >&5
  10177. (eval "$ac_link") 2>conftest.er1
  10178. ac_status=$?
  10179. grep -v '^ *+' conftest.er1 >conftest.err
  10180. rm -f conftest.er1
  10181. cat conftest.err >&5
  10182. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10183. (exit $ac_status); } && {
  10184. test -z "$ac_c_werror_flag" ||
  10185. test ! -s conftest.err
  10186. } && test -s conftest$ac_exeext && {
  10187. test "$cross_compiling" = yes ||
  10188. $as_test_x conftest$ac_exeext
  10189. }; then
  10190. ac_cv_lib_svld_dlopen=yes
  10191. else
  10192. $as_echo "$as_me: failed program was:" >&5
  10193. sed 's/^/| /' conftest.$ac_ext >&5
  10194. ac_cv_lib_svld_dlopen=no
  10195. fi
  10196. rm -rf conftest.dSYM
  10197. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10198. conftest$ac_exeext conftest.$ac_ext
  10199. LIBS=$ac_check_lib_save_LIBS
  10200. fi
  10201. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10202. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10203. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10204. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10205. else
  10206. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10207. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10208. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10209. $as_echo_n "(cached) " >&6
  10210. else
  10211. ac_check_lib_save_LIBS=$LIBS
  10212. LIBS="-ldld $LIBS"
  10213. cat >conftest.$ac_ext <<_ACEOF
  10214. /* confdefs.h. */
  10215. _ACEOF
  10216. cat confdefs.h >>conftest.$ac_ext
  10217. cat >>conftest.$ac_ext <<_ACEOF
  10218. /* end confdefs.h. */
  10219. /* Override any GCC internal prototype to avoid an error.
  10220. Use char because int might match the return type of a GCC
  10221. builtin and then its argument prototype would still apply. */
  10222. #ifdef __cplusplus
  10223. extern "C"
  10224. #endif
  10225. char dld_link ();
  10226. int
  10227. main ()
  10228. {
  10229. return dld_link ();
  10230. ;
  10231. return 0;
  10232. }
  10233. _ACEOF
  10234. rm -f conftest.$ac_objext conftest$ac_exeext
  10235. if { (ac_try="$ac_link"
  10236. case "(($ac_try" in
  10237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10238. *) ac_try_echo=$ac_try;;
  10239. esac
  10240. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10241. $as_echo "$ac_try_echo") >&5
  10242. (eval "$ac_link") 2>conftest.er1
  10243. ac_status=$?
  10244. grep -v '^ *+' conftest.er1 >conftest.err
  10245. rm -f conftest.er1
  10246. cat conftest.err >&5
  10247. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10248. (exit $ac_status); } && {
  10249. test -z "$ac_c_werror_flag" ||
  10250. test ! -s conftest.err
  10251. } && test -s conftest$ac_exeext && {
  10252. test "$cross_compiling" = yes ||
  10253. $as_test_x conftest$ac_exeext
  10254. }; then
  10255. ac_cv_lib_dld_dld_link=yes
  10256. else
  10257. $as_echo "$as_me: failed program was:" >&5
  10258. sed 's/^/| /' conftest.$ac_ext >&5
  10259. ac_cv_lib_dld_dld_link=no
  10260. fi
  10261. rm -rf conftest.dSYM
  10262. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10263. conftest$ac_exeext conftest.$ac_ext
  10264. LIBS=$ac_check_lib_save_LIBS
  10265. fi
  10266. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10267. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10268. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10269. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10270. fi
  10271. fi
  10272. fi
  10273. fi
  10274. fi
  10275. fi
  10276. ;;
  10277. esac
  10278. if test "x$lt_cv_dlopen" != xno; then
  10279. enable_dlopen=yes
  10280. else
  10281. enable_dlopen=no
  10282. fi
  10283. case $lt_cv_dlopen in
  10284. dlopen)
  10285. save_CPPFLAGS="$CPPFLAGS"
  10286. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10287. save_LDFLAGS="$LDFLAGS"
  10288. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10289. save_LIBS="$LIBS"
  10290. LIBS="$lt_cv_dlopen_libs $LIBS"
  10291. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10292. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10293. if test "${lt_cv_dlopen_self+set}" = set; then
  10294. $as_echo_n "(cached) " >&6
  10295. else
  10296. if test "$cross_compiling" = yes; then :
  10297. lt_cv_dlopen_self=cross
  10298. else
  10299. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10300. lt_status=$lt_dlunknown
  10301. cat > conftest.$ac_ext <<_LT_EOF
  10302. #line 11958 "configure"
  10303. #include "confdefs.h"
  10304. #if HAVE_DLFCN_H
  10305. #include <dlfcn.h>
  10306. #endif
  10307. #include <stdio.h>
  10308. #ifdef RTLD_GLOBAL
  10309. # define LT_DLGLOBAL RTLD_GLOBAL
  10310. #else
  10311. # ifdef DL_GLOBAL
  10312. # define LT_DLGLOBAL DL_GLOBAL
  10313. # else
  10314. # define LT_DLGLOBAL 0
  10315. # endif
  10316. #endif
  10317. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10318. find out it does not work in some platform. */
  10319. #ifndef LT_DLLAZY_OR_NOW
  10320. # ifdef RTLD_LAZY
  10321. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10322. # else
  10323. # ifdef DL_LAZY
  10324. # define LT_DLLAZY_OR_NOW DL_LAZY
  10325. # else
  10326. # ifdef RTLD_NOW
  10327. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10328. # else
  10329. # ifdef DL_NOW
  10330. # define LT_DLLAZY_OR_NOW DL_NOW
  10331. # else
  10332. # define LT_DLLAZY_OR_NOW 0
  10333. # endif
  10334. # endif
  10335. # endif
  10336. # endif
  10337. #endif
  10338. void fnord() { int i=42;}
  10339. int main ()
  10340. {
  10341. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10342. int status = $lt_dlunknown;
  10343. if (self)
  10344. {
  10345. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10346. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10347. /* dlclose (self); */
  10348. }
  10349. else
  10350. puts (dlerror ());
  10351. return status;
  10352. }
  10353. _LT_EOF
  10354. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10355. (eval $ac_link) 2>&5
  10356. ac_status=$?
  10357. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10358. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10359. (./conftest; exit; ) >&5 2>/dev/null
  10360. lt_status=$?
  10361. case x$lt_status in
  10362. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10363. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10364. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10365. esac
  10366. else :
  10367. # compilation failed
  10368. lt_cv_dlopen_self=no
  10369. fi
  10370. fi
  10371. rm -fr conftest*
  10372. fi
  10373. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10374. $as_echo "$lt_cv_dlopen_self" >&6; }
  10375. if test "x$lt_cv_dlopen_self" = xyes; then
  10376. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10377. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10378. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10379. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10380. $as_echo_n "(cached) " >&6
  10381. else
  10382. if test "$cross_compiling" = yes; then :
  10383. lt_cv_dlopen_self_static=cross
  10384. else
  10385. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10386. lt_status=$lt_dlunknown
  10387. cat > conftest.$ac_ext <<_LT_EOF
  10388. #line 12054 "configure"
  10389. #include "confdefs.h"
  10390. #if HAVE_DLFCN_H
  10391. #include <dlfcn.h>
  10392. #endif
  10393. #include <stdio.h>
  10394. #ifdef RTLD_GLOBAL
  10395. # define LT_DLGLOBAL RTLD_GLOBAL
  10396. #else
  10397. # ifdef DL_GLOBAL
  10398. # define LT_DLGLOBAL DL_GLOBAL
  10399. # else
  10400. # define LT_DLGLOBAL 0
  10401. # endif
  10402. #endif
  10403. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10404. find out it does not work in some platform. */
  10405. #ifndef LT_DLLAZY_OR_NOW
  10406. # ifdef RTLD_LAZY
  10407. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10408. # else
  10409. # ifdef DL_LAZY
  10410. # define LT_DLLAZY_OR_NOW DL_LAZY
  10411. # else
  10412. # ifdef RTLD_NOW
  10413. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10414. # else
  10415. # ifdef DL_NOW
  10416. # define LT_DLLAZY_OR_NOW DL_NOW
  10417. # else
  10418. # define LT_DLLAZY_OR_NOW 0
  10419. # endif
  10420. # endif
  10421. # endif
  10422. # endif
  10423. #endif
  10424. void fnord() { int i=42;}
  10425. int main ()
  10426. {
  10427. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10428. int status = $lt_dlunknown;
  10429. if (self)
  10430. {
  10431. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10432. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10433. /* dlclose (self); */
  10434. }
  10435. else
  10436. puts (dlerror ());
  10437. return status;
  10438. }
  10439. _LT_EOF
  10440. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10441. (eval $ac_link) 2>&5
  10442. ac_status=$?
  10443. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10444. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10445. (./conftest; exit; ) >&5 2>/dev/null
  10446. lt_status=$?
  10447. case x$lt_status in
  10448. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10449. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10450. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10451. esac
  10452. else :
  10453. # compilation failed
  10454. lt_cv_dlopen_self_static=no
  10455. fi
  10456. fi
  10457. rm -fr conftest*
  10458. fi
  10459. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10460. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10461. fi
  10462. CPPFLAGS="$save_CPPFLAGS"
  10463. LDFLAGS="$save_LDFLAGS"
  10464. LIBS="$save_LIBS"
  10465. ;;
  10466. esac
  10467. case $lt_cv_dlopen_self in
  10468. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10469. *) enable_dlopen_self=unknown ;;
  10470. esac
  10471. case $lt_cv_dlopen_self_static in
  10472. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10473. *) enable_dlopen_self_static=unknown ;;
  10474. esac
  10475. fi
  10476. striplib=
  10477. old_striplib=
  10478. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10479. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10480. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10481. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10482. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10483. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10484. $as_echo "yes" >&6; }
  10485. else
  10486. # FIXME - insert some real tests, host_os isn't really good enough
  10487. case $host_os in
  10488. darwin*)
  10489. if test -n "$STRIP" ; then
  10490. striplib="$STRIP -x"
  10491. old_striplib="$STRIP -S"
  10492. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10493. $as_echo "yes" >&6; }
  10494. else
  10495. { $as_echo "$as_me:$LINENO: result: no" >&5
  10496. $as_echo "no" >&6; }
  10497. fi
  10498. ;;
  10499. *)
  10500. { $as_echo "$as_me:$LINENO: result: no" >&5
  10501. $as_echo "no" >&6; }
  10502. ;;
  10503. esac
  10504. fi
  10505. # Report which library types will actually be built
  10506. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10507. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10508. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10509. $as_echo "$can_build_shared" >&6; }
  10510. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10511. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10512. test "$can_build_shared" = "no" && enable_shared=no
  10513. # On AIX, shared libraries and static libraries use the same namespace, and
  10514. # are all built from PIC.
  10515. case $host_os in
  10516. aix3*)
  10517. test "$enable_shared" = yes && enable_static=no
  10518. if test -n "$RANLIB"; then
  10519. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10520. postinstall_cmds='$RANLIB $lib'
  10521. fi
  10522. ;;
  10523. aix[4-9]*)
  10524. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10525. test "$enable_shared" = yes && enable_static=no
  10526. fi
  10527. ;;
  10528. esac
  10529. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  10530. $as_echo "$enable_shared" >&6; }
  10531. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10532. $as_echo_n "checking whether to build static libraries... " >&6; }
  10533. # Make sure either enable_shared or enable_static is yes.
  10534. test "$enable_shared" = yes || enable_static=yes
  10535. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  10536. $as_echo "$enable_static" >&6; }
  10537. fi
  10538. ac_ext=cpp
  10539. ac_cpp='$CXXCPP $CPPFLAGS'
  10540. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10541. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10542. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10543. CC="$lt_save_CC"
  10544. ac_ext=cpp
  10545. ac_cpp='$CXXCPP $CPPFLAGS'
  10546. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10547. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10548. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10549. archive_cmds_need_lc_CXX=no
  10550. allow_undefined_flag_CXX=
  10551. always_export_symbols_CXX=no
  10552. archive_expsym_cmds_CXX=
  10553. compiler_needs_object_CXX=no
  10554. export_dynamic_flag_spec_CXX=
  10555. hardcode_direct_CXX=no
  10556. hardcode_direct_absolute_CXX=no
  10557. hardcode_libdir_flag_spec_CXX=
  10558. hardcode_libdir_flag_spec_ld_CXX=
  10559. hardcode_libdir_separator_CXX=
  10560. hardcode_minus_L_CXX=no
  10561. hardcode_shlibpath_var_CXX=unsupported
  10562. hardcode_automatic_CXX=no
  10563. inherit_rpath_CXX=no
  10564. module_cmds_CXX=
  10565. module_expsym_cmds_CXX=
  10566. link_all_deplibs_CXX=unknown
  10567. old_archive_cmds_CXX=$old_archive_cmds
  10568. no_undefined_flag_CXX=
  10569. whole_archive_flag_spec_CXX=
  10570. enable_shared_with_static_runtimes_CXX=no
  10571. # Source file extension for C++ test sources.
  10572. ac_ext=cpp
  10573. # Object file extension for compiled C++ test sources.
  10574. objext=o
  10575. objext_CXX=$objext
  10576. # No sense in running all these tests if we already determined that
  10577. # the CXX compiler isn't working. Some variables (like enable_shared)
  10578. # are currently assumed to apply to all compilers on this platform,
  10579. # and will be corrupted by setting them based on a non-working compiler.
  10580. if test "$_lt_caught_CXX_error" != yes; then
  10581. # Code to be used in simple compile tests
  10582. lt_simple_compile_test_code="int some_variable = 0;"
  10583. # Code to be used in simple link tests
  10584. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10585. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10586. # If no C compiler was specified, use CC.
  10587. LTCC=${LTCC-"$CC"}
  10588. # If no C compiler flags were specified, use CFLAGS.
  10589. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10590. # Allow CC to be a program name with arguments.
  10591. compiler=$CC
  10592. # save warnings/boilerplate of simple test code
  10593. ac_outfile=conftest.$ac_objext
  10594. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10595. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10596. _lt_compiler_boilerplate=`cat conftest.err`
  10597. $RM conftest*
  10598. ac_outfile=conftest.$ac_objext
  10599. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10600. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10601. _lt_linker_boilerplate=`cat conftest.err`
  10602. $RM -r conftest*
  10603. # Allow CC to be a program name with arguments.
  10604. lt_save_CC=$CC
  10605. lt_save_LD=$LD
  10606. lt_save_GCC=$GCC
  10607. GCC=$GXX
  10608. lt_save_with_gnu_ld=$with_gnu_ld
  10609. lt_save_path_LD=$lt_cv_path_LD
  10610. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10611. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10612. else
  10613. $as_unset lt_cv_prog_gnu_ld
  10614. fi
  10615. if test -n "${lt_cv_path_LDCXX+set}"; then
  10616. lt_cv_path_LD=$lt_cv_path_LDCXX
  10617. else
  10618. $as_unset lt_cv_path_LD
  10619. fi
  10620. test -z "${LDCXX+set}" || LD=$LDCXX
  10621. CC=${CXX-"c++"}
  10622. compiler=$CC
  10623. compiler_CXX=$CC
  10624. for cc_temp in $compiler""; do
  10625. case $cc_temp in
  10626. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10627. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10628. \-*) ;;
  10629. *) break;;
  10630. esac
  10631. done
  10632. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10633. if test -n "$compiler"; then
  10634. # We don't want -fno-exception when compiling C++ code, so set the
  10635. # no_builtin_flag separately
  10636. if test "$GXX" = yes; then
  10637. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10638. else
  10639. lt_prog_compiler_no_builtin_flag_CXX=
  10640. fi
  10641. if test "$GXX" = yes; then
  10642. # Set up default GNU C++ configuration
  10643. # Check whether --with-gnu-ld was given.
  10644. if test "${with_gnu_ld+set}" = set; then
  10645. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10646. else
  10647. with_gnu_ld=no
  10648. fi
  10649. ac_prog=ld
  10650. if test "$GCC" = yes; then
  10651. # Check if gcc -print-prog-name=ld gives a path.
  10652. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10653. $as_echo_n "checking for ld used by $CC... " >&6; }
  10654. case $host in
  10655. *-*-mingw*)
  10656. # gcc leaves a trailing carriage return which upsets mingw
  10657. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10658. *)
  10659. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10660. esac
  10661. case $ac_prog in
  10662. # Accept absolute paths.
  10663. [\\/]* | ?:[\\/]*)
  10664. re_direlt='/[^/][^/]*/\.\./'
  10665. # Canonicalize the pathname of ld
  10666. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10667. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10668. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10669. done
  10670. test -z "$LD" && LD="$ac_prog"
  10671. ;;
  10672. "")
  10673. # If it fails, then pretend we aren't using GCC.
  10674. ac_prog=ld
  10675. ;;
  10676. *)
  10677. # If it is relative, then search for the first ld in PATH.
  10678. with_gnu_ld=unknown
  10679. ;;
  10680. esac
  10681. elif test "$with_gnu_ld" = yes; then
  10682. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  10683. $as_echo_n "checking for GNU ld... " >&6; }
  10684. else
  10685. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10686. $as_echo_n "checking for non-GNU ld... " >&6; }
  10687. fi
  10688. if test "${lt_cv_path_LD+set}" = set; then
  10689. $as_echo_n "(cached) " >&6
  10690. else
  10691. if test -z "$LD"; then
  10692. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10693. for ac_dir in $PATH; do
  10694. IFS="$lt_save_ifs"
  10695. test -z "$ac_dir" && ac_dir=.
  10696. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10697. lt_cv_path_LD="$ac_dir/$ac_prog"
  10698. # Check to see if the program is GNU ld. I'd rather use --version,
  10699. # but apparently some variants of GNU ld only accept -v.
  10700. # Break only if it was the GNU/non-GNU ld that we prefer.
  10701. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10702. *GNU* | *'with BFD'*)
  10703. test "$with_gnu_ld" != no && break
  10704. ;;
  10705. *)
  10706. test "$with_gnu_ld" != yes && break
  10707. ;;
  10708. esac
  10709. fi
  10710. done
  10711. IFS="$lt_save_ifs"
  10712. else
  10713. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10714. fi
  10715. fi
  10716. LD="$lt_cv_path_LD"
  10717. if test -n "$LD"; then
  10718. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  10719. $as_echo "$LD" >&6; }
  10720. else
  10721. { $as_echo "$as_me:$LINENO: result: no" >&5
  10722. $as_echo "no" >&6; }
  10723. fi
  10724. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10725. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10726. { (exit 1); exit 1; }; }
  10727. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10728. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10729. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10730. $as_echo_n "(cached) " >&6
  10731. else
  10732. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10733. case `$LD -v 2>&1 </dev/null` in
  10734. *GNU* | *'with BFD'*)
  10735. lt_cv_prog_gnu_ld=yes
  10736. ;;
  10737. *)
  10738. lt_cv_prog_gnu_ld=no
  10739. ;;
  10740. esac
  10741. fi
  10742. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10743. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10744. with_gnu_ld=$lt_cv_prog_gnu_ld
  10745. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10746. # archiving commands below assume that GNU ld is being used.
  10747. if test "$with_gnu_ld" = yes; then
  10748. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10749. 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'
  10750. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10751. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10752. # If archive_cmds runs LD, not CC, wlarc should be empty
  10753. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10754. # investigate it a little bit more. (MM)
  10755. wlarc='${wl}'
  10756. # ancient GNU ld didn't support --whole-archive et. al.
  10757. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10758. $GREP 'no-whole-archive' > /dev/null; then
  10759. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10760. else
  10761. whole_archive_flag_spec_CXX=
  10762. fi
  10763. else
  10764. with_gnu_ld=no
  10765. wlarc=
  10766. # A generic and very simple default shared library creation
  10767. # command for GNU C++ for the case where it uses the native
  10768. # linker, instead of GNU ld. If possible, this setting should
  10769. # overridden to take advantage of the native linker features on
  10770. # the platform it is being used on.
  10771. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10772. fi
  10773. # Commands to make compiler produce verbose output that lists
  10774. # what "hidden" libraries, object files and flags are used when
  10775. # linking a shared library.
  10776. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10777. else
  10778. GXX=no
  10779. with_gnu_ld=no
  10780. wlarc=
  10781. fi
  10782. # PORTME: fill in a description of your system's C++ link characteristics
  10783. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10784. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10785. ld_shlibs_CXX=yes
  10786. case $host_os in
  10787. aix3*)
  10788. # FIXME: insert proper C++ library support
  10789. ld_shlibs_CXX=no
  10790. ;;
  10791. aix[4-9]*)
  10792. if test "$host_cpu" = ia64; then
  10793. # On IA64, the linker does run time linking by default, so we don't
  10794. # have to do anything special.
  10795. aix_use_runtimelinking=no
  10796. exp_sym_flag='-Bexport'
  10797. no_entry_flag=""
  10798. else
  10799. aix_use_runtimelinking=no
  10800. # Test if we are trying to use run time linking or normal
  10801. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10802. # need to do runtime linking.
  10803. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10804. for ld_flag in $LDFLAGS; do
  10805. case $ld_flag in
  10806. *-brtl*)
  10807. aix_use_runtimelinking=yes
  10808. break
  10809. ;;
  10810. esac
  10811. done
  10812. ;;
  10813. esac
  10814. exp_sym_flag='-bexport'
  10815. no_entry_flag='-bnoentry'
  10816. fi
  10817. # When large executables or shared objects are built, AIX ld can
  10818. # have problems creating the table of contents. If linking a library
  10819. # or program results in "error TOC overflow" add -mminimal-toc to
  10820. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10821. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10822. archive_cmds_CXX=''
  10823. hardcode_direct_CXX=yes
  10824. hardcode_direct_absolute_CXX=yes
  10825. hardcode_libdir_separator_CXX=':'
  10826. link_all_deplibs_CXX=yes
  10827. file_list_spec_CXX='${wl}-f,'
  10828. if test "$GXX" = yes; then
  10829. case $host_os in aix4.[012]|aix4.[012].*)
  10830. # We only want to do this on AIX 4.2 and lower, the check
  10831. # below for broken collect2 doesn't work under 4.3+
  10832. collect2name=`${CC} -print-prog-name=collect2`
  10833. if test -f "$collect2name" &&
  10834. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10835. then
  10836. # We have reworked collect2
  10837. :
  10838. else
  10839. # We have old collect2
  10840. hardcode_direct_CXX=unsupported
  10841. # It fails to find uninstalled libraries when the uninstalled
  10842. # path is not listed in the libpath. Setting hardcode_minus_L
  10843. # to unsupported forces relinking
  10844. hardcode_minus_L_CXX=yes
  10845. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10846. hardcode_libdir_separator_CXX=
  10847. fi
  10848. esac
  10849. shared_flag='-shared'
  10850. if test "$aix_use_runtimelinking" = yes; then
  10851. shared_flag="$shared_flag "'${wl}-G'
  10852. fi
  10853. else
  10854. # not using gcc
  10855. if test "$host_cpu" = ia64; then
  10856. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10857. # chokes on -Wl,-G. The following line is correct:
  10858. shared_flag='-G'
  10859. else
  10860. if test "$aix_use_runtimelinking" = yes; then
  10861. shared_flag='${wl}-G'
  10862. else
  10863. shared_flag='${wl}-bM:SRE'
  10864. fi
  10865. fi
  10866. fi
  10867. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10868. # It seems that -bexpall does not export symbols beginning with
  10869. # underscore (_), so it is better to generate a list of symbols to
  10870. # export.
  10871. always_export_symbols_CXX=yes
  10872. if test "$aix_use_runtimelinking" = yes; then
  10873. # Warning - without using the other runtime loading flags (-brtl),
  10874. # -berok will link without error, but may produce a broken library.
  10875. allow_undefined_flag_CXX='-berok'
  10876. # Determine the default libpath from the value encoded in an empty
  10877. # executable.
  10878. cat >conftest.$ac_ext <<_ACEOF
  10879. /* confdefs.h. */
  10880. _ACEOF
  10881. cat confdefs.h >>conftest.$ac_ext
  10882. cat >>conftest.$ac_ext <<_ACEOF
  10883. /* end confdefs.h. */
  10884. int
  10885. main ()
  10886. {
  10887. ;
  10888. return 0;
  10889. }
  10890. _ACEOF
  10891. rm -f conftest.$ac_objext conftest$ac_exeext
  10892. if { (ac_try="$ac_link"
  10893. case "(($ac_try" in
  10894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10895. *) ac_try_echo=$ac_try;;
  10896. esac
  10897. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10898. $as_echo "$ac_try_echo") >&5
  10899. (eval "$ac_link") 2>conftest.er1
  10900. ac_status=$?
  10901. grep -v '^ *+' conftest.er1 >conftest.err
  10902. rm -f conftest.er1
  10903. cat conftest.err >&5
  10904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10905. (exit $ac_status); } && {
  10906. test -z "$ac_cxx_werror_flag" ||
  10907. test ! -s conftest.err
  10908. } && test -s conftest$ac_exeext && {
  10909. test "$cross_compiling" = yes ||
  10910. $as_test_x conftest$ac_exeext
  10911. }; then
  10912. lt_aix_libpath_sed='
  10913. /Import File Strings/,/^$/ {
  10914. /^0/ {
  10915. s/^0 *\(.*\)$/\1/
  10916. p
  10917. }
  10918. }'
  10919. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10920. # Check for a 64-bit object if we didn't find anything.
  10921. if test -z "$aix_libpath"; then
  10922. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10923. fi
  10924. else
  10925. $as_echo "$as_me: failed program was:" >&5
  10926. sed 's/^/| /' conftest.$ac_ext >&5
  10927. fi
  10928. rm -rf conftest.dSYM
  10929. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10930. conftest$ac_exeext conftest.$ac_ext
  10931. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10932. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10933. 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"
  10934. else
  10935. if test "$host_cpu" = ia64; then
  10936. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10937. allow_undefined_flag_CXX="-z nodefs"
  10938. 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"
  10939. else
  10940. # Determine the default libpath from the value encoded in an
  10941. # empty executable.
  10942. cat >conftest.$ac_ext <<_ACEOF
  10943. /* confdefs.h. */
  10944. _ACEOF
  10945. cat confdefs.h >>conftest.$ac_ext
  10946. cat >>conftest.$ac_ext <<_ACEOF
  10947. /* end confdefs.h. */
  10948. int
  10949. main ()
  10950. {
  10951. ;
  10952. return 0;
  10953. }
  10954. _ACEOF
  10955. rm -f conftest.$ac_objext conftest$ac_exeext
  10956. if { (ac_try="$ac_link"
  10957. case "(($ac_try" in
  10958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10959. *) ac_try_echo=$ac_try;;
  10960. esac
  10961. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10962. $as_echo "$ac_try_echo") >&5
  10963. (eval "$ac_link") 2>conftest.er1
  10964. ac_status=$?
  10965. grep -v '^ *+' conftest.er1 >conftest.err
  10966. rm -f conftest.er1
  10967. cat conftest.err >&5
  10968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10969. (exit $ac_status); } && {
  10970. test -z "$ac_cxx_werror_flag" ||
  10971. test ! -s conftest.err
  10972. } && test -s conftest$ac_exeext && {
  10973. test "$cross_compiling" = yes ||
  10974. $as_test_x conftest$ac_exeext
  10975. }; then
  10976. lt_aix_libpath_sed='
  10977. /Import File Strings/,/^$/ {
  10978. /^0/ {
  10979. s/^0 *\(.*\)$/\1/
  10980. p
  10981. }
  10982. }'
  10983. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10984. # Check for a 64-bit object if we didn't find anything.
  10985. if test -z "$aix_libpath"; then
  10986. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10987. fi
  10988. else
  10989. $as_echo "$as_me: failed program was:" >&5
  10990. sed 's/^/| /' conftest.$ac_ext >&5
  10991. fi
  10992. rm -rf conftest.dSYM
  10993. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10994. conftest$ac_exeext conftest.$ac_ext
  10995. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10996. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10997. # Warning - without using the other run time loading flags,
  10998. # -berok will link without error, but may produce a broken library.
  10999. no_undefined_flag_CXX=' ${wl}-bernotok'
  11000. allow_undefined_flag_CXX=' ${wl}-berok'
  11001. # Exported symbols can be pulled into shared objects from archives
  11002. whole_archive_flag_spec_CXX='$convenience'
  11003. archive_cmds_need_lc_CXX=yes
  11004. # This is similar to how AIX traditionally builds its shared
  11005. # libraries.
  11006. 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'
  11007. fi
  11008. fi
  11009. ;;
  11010. beos*)
  11011. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11012. allow_undefined_flag_CXX=unsupported
  11013. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11014. # support --undefined. This deserves some investigation. FIXME
  11015. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11016. else
  11017. ld_shlibs_CXX=no
  11018. fi
  11019. ;;
  11020. chorus*)
  11021. case $cc_basename in
  11022. *)
  11023. # FIXME: insert proper C++ library support
  11024. ld_shlibs_CXX=no
  11025. ;;
  11026. esac
  11027. ;;
  11028. cygwin* | mingw* | pw32* | cegcc*)
  11029. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11030. # as there is no search path for DLLs.
  11031. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11032. allow_undefined_flag_CXX=unsupported
  11033. always_export_symbols_CXX=no
  11034. enable_shared_with_static_runtimes_CXX=yes
  11035. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11036. 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'
  11037. # If the export-symbols file already is a .def file (1st line
  11038. # is EXPORTS), use it as is; otherwise, prepend...
  11039. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11040. cp $export_symbols $output_objdir/$soname.def;
  11041. else
  11042. echo EXPORTS > $output_objdir/$soname.def;
  11043. cat $export_symbols >> $output_objdir/$soname.def;
  11044. fi~
  11045. $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'
  11046. else
  11047. ld_shlibs_CXX=no
  11048. fi
  11049. ;;
  11050. darwin* | rhapsody*)
  11051. archive_cmds_need_lc_CXX=no
  11052. hardcode_direct_CXX=no
  11053. hardcode_automatic_CXX=yes
  11054. hardcode_shlibpath_var_CXX=unsupported
  11055. whole_archive_flag_spec_CXX=''
  11056. link_all_deplibs_CXX=yes
  11057. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11058. case $cc_basename in
  11059. ifort*) _lt_dar_can_shared=yes ;;
  11060. *) _lt_dar_can_shared=$GCC ;;
  11061. esac
  11062. if test "$_lt_dar_can_shared" = "yes"; then
  11063. output_verbose_link_cmd=echo
  11064. 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}"
  11065. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11066. 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}"
  11067. 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}"
  11068. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11069. 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}"
  11070. 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}"
  11071. fi
  11072. else
  11073. ld_shlibs_CXX=no
  11074. fi
  11075. ;;
  11076. dgux*)
  11077. case $cc_basename in
  11078. ec++*)
  11079. # FIXME: insert proper C++ library support
  11080. ld_shlibs_CXX=no
  11081. ;;
  11082. ghcx*)
  11083. # Green Hills C++ Compiler
  11084. # FIXME: insert proper C++ library support
  11085. ld_shlibs_CXX=no
  11086. ;;
  11087. *)
  11088. # FIXME: insert proper C++ library support
  11089. ld_shlibs_CXX=no
  11090. ;;
  11091. esac
  11092. ;;
  11093. freebsd[12]*)
  11094. # C++ shared libraries reported to be fairly broken before
  11095. # switch to ELF
  11096. ld_shlibs_CXX=no
  11097. ;;
  11098. freebsd-elf*)
  11099. archive_cmds_need_lc_CXX=no
  11100. ;;
  11101. freebsd* | dragonfly*)
  11102. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11103. # conventions
  11104. ld_shlibs_CXX=yes
  11105. ;;
  11106. gnu*)
  11107. ;;
  11108. hpux9*)
  11109. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11110. hardcode_libdir_separator_CXX=:
  11111. export_dynamic_flag_spec_CXX='${wl}-E'
  11112. hardcode_direct_CXX=yes
  11113. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11114. # but as the default
  11115. # location of the library.
  11116. case $cc_basename in
  11117. CC*)
  11118. # FIXME: insert proper C++ library support
  11119. ld_shlibs_CXX=no
  11120. ;;
  11121. aCC*)
  11122. 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'
  11123. # Commands to make compiler produce verbose output that lists
  11124. # what "hidden" libraries, object files and flags are used when
  11125. # linking a shared library.
  11126. #
  11127. # There doesn't appear to be a way to prevent this compiler from
  11128. # explicitly linking system object files so we need to strip them
  11129. # from the output so that they don't get included in the library
  11130. # dependencies.
  11131. 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'
  11132. ;;
  11133. *)
  11134. if test "$GXX" = yes; then
  11135. 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'
  11136. else
  11137. # FIXME: insert proper C++ library support
  11138. ld_shlibs_CXX=no
  11139. fi
  11140. ;;
  11141. esac
  11142. ;;
  11143. hpux10*|hpux11*)
  11144. if test $with_gnu_ld = no; then
  11145. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11146. hardcode_libdir_separator_CXX=:
  11147. case $host_cpu in
  11148. hppa*64*|ia64*)
  11149. ;;
  11150. *)
  11151. export_dynamic_flag_spec_CXX='${wl}-E'
  11152. ;;
  11153. esac
  11154. fi
  11155. case $host_cpu in
  11156. hppa*64*|ia64*)
  11157. hardcode_direct_CXX=no
  11158. hardcode_shlibpath_var_CXX=no
  11159. ;;
  11160. *)
  11161. hardcode_direct_CXX=yes
  11162. hardcode_direct_absolute_CXX=yes
  11163. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11164. # but as the default
  11165. # location of the library.
  11166. ;;
  11167. esac
  11168. case $cc_basename in
  11169. CC*)
  11170. # FIXME: insert proper C++ library support
  11171. ld_shlibs_CXX=no
  11172. ;;
  11173. aCC*)
  11174. case $host_cpu in
  11175. hppa*64*)
  11176. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11177. ;;
  11178. ia64*)
  11179. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11180. ;;
  11181. *)
  11182. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11183. ;;
  11184. esac
  11185. # Commands to make compiler produce verbose output that lists
  11186. # what "hidden" libraries, object files and flags are used when
  11187. # linking a shared library.
  11188. #
  11189. # There doesn't appear to be a way to prevent this compiler from
  11190. # explicitly linking system object files so we need to strip them
  11191. # from the output so that they don't get included in the library
  11192. # dependencies.
  11193. 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'
  11194. ;;
  11195. *)
  11196. if test "$GXX" = yes; then
  11197. if test $with_gnu_ld = no; then
  11198. case $host_cpu in
  11199. hppa*64*)
  11200. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11201. ;;
  11202. ia64*)
  11203. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11204. ;;
  11205. *)
  11206. 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'
  11207. ;;
  11208. esac
  11209. fi
  11210. else
  11211. # FIXME: insert proper C++ library support
  11212. ld_shlibs_CXX=no
  11213. fi
  11214. ;;
  11215. esac
  11216. ;;
  11217. interix[3-9]*)
  11218. hardcode_direct_CXX=no
  11219. hardcode_shlibpath_var_CXX=no
  11220. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11221. export_dynamic_flag_spec_CXX='${wl}-E'
  11222. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11223. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11224. # default) and relocated if they conflict, which is a slow very memory
  11225. # consuming and fragmenting process. To avoid this, we pick a random,
  11226. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11227. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11228. 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'
  11229. 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'
  11230. ;;
  11231. irix5* | irix6*)
  11232. case $cc_basename in
  11233. CC*)
  11234. # SGI C++
  11235. 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'
  11236. # Archives containing C++ object files must be created using
  11237. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11238. # necessary to make sure instantiated templates are included
  11239. # in the archive.
  11240. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11241. ;;
  11242. *)
  11243. if test "$GXX" = yes; then
  11244. if test "$with_gnu_ld" = no; then
  11245. 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'
  11246. else
  11247. 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'
  11248. fi
  11249. fi
  11250. link_all_deplibs_CXX=yes
  11251. ;;
  11252. esac
  11253. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11254. hardcode_libdir_separator_CXX=:
  11255. inherit_rpath_CXX=yes
  11256. ;;
  11257. linux* | k*bsd*-gnu)
  11258. case $cc_basename in
  11259. KCC*)
  11260. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11261. # KCC will only create a shared library if the output file
  11262. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11263. # to its proper name (with version) after linking.
  11264. 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'
  11265. 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'
  11266. # Commands to make compiler produce verbose output that lists
  11267. # what "hidden" libraries, object files and flags are used when
  11268. # linking a shared library.
  11269. #
  11270. # There doesn't appear to be a way to prevent this compiler from
  11271. # explicitly linking system object files so we need to strip them
  11272. # from the output so that they don't get included in the library
  11273. # dependencies.
  11274. 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'
  11275. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11276. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11277. # Archives containing C++ object files must be created using
  11278. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11279. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11280. ;;
  11281. icpc* | ecpc* )
  11282. # Intel C++
  11283. with_gnu_ld=yes
  11284. # version 8.0 and above of icpc choke on multiply defined symbols
  11285. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11286. # earlier do not add the objects themselves.
  11287. case `$CC -V 2>&1` in
  11288. *"Version 7."*)
  11289. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11290. 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'
  11291. ;;
  11292. *) # Version 8.0 or newer
  11293. tmp_idyn=
  11294. case $host_cpu in
  11295. ia64*) tmp_idyn=' -i_dynamic';;
  11296. esac
  11297. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11298. 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'
  11299. ;;
  11300. esac
  11301. archive_cmds_need_lc_CXX=no
  11302. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11303. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11304. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11305. ;;
  11306. pgCC* | pgcpp*)
  11307. # Portland Group C++ compiler
  11308. case `$CC -V` in
  11309. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11310. prelink_cmds_CXX='tpldir=Template.dir~
  11311. rm -rf $tpldir~
  11312. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11313. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11314. old_archive_cmds_CXX='tpldir=Template.dir~
  11315. rm -rf $tpldir~
  11316. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11317. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11318. $RANLIB $oldlib'
  11319. archive_cmds_CXX='tpldir=Template.dir~
  11320. rm -rf $tpldir~
  11321. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11322. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11323. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11324. rm -rf $tpldir~
  11325. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11326. $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'
  11327. ;;
  11328. *) # Version 6 will use weak symbols
  11329. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11330. 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'
  11331. ;;
  11332. esac
  11333. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11334. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11335. 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'
  11336. ;;
  11337. cxx*)
  11338. # Compaq C++
  11339. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11340. 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'
  11341. runpath_var=LD_RUN_PATH
  11342. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11343. hardcode_libdir_separator_CXX=:
  11344. # Commands to make compiler produce verbose output that lists
  11345. # what "hidden" libraries, object files and flags are used when
  11346. # linking a shared library.
  11347. #
  11348. # There doesn't appear to be a way to prevent this compiler from
  11349. # explicitly linking system object files so we need to strip them
  11350. # from the output so that they don't get included in the library
  11351. # dependencies.
  11352. 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'
  11353. ;;
  11354. xl*)
  11355. # IBM XL 8.0 on PPC, with GNU ld
  11356. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11357. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11358. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11359. if test "x$supports_anon_versioning" = xyes; then
  11360. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11361. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11362. echo "local: *; };" >> $output_objdir/$libname.ver~
  11363. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11364. fi
  11365. ;;
  11366. *)
  11367. case `$CC -V 2>&1 | sed 5q` in
  11368. *Sun\ C*)
  11369. # Sun C++ 5.9
  11370. no_undefined_flag_CXX=' -zdefs'
  11371. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11372. 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'
  11373. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11374. 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'
  11375. compiler_needs_object_CXX=yes
  11376. # Not sure whether something based on
  11377. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11378. # would be better.
  11379. output_verbose_link_cmd='echo'
  11380. # Archives containing C++ object files must be created using
  11381. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11382. # necessary to make sure instantiated templates are included
  11383. # in the archive.
  11384. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11385. ;;
  11386. esac
  11387. ;;
  11388. esac
  11389. ;;
  11390. lynxos*)
  11391. # FIXME: insert proper C++ library support
  11392. ld_shlibs_CXX=no
  11393. ;;
  11394. m88k*)
  11395. # FIXME: insert proper C++ library support
  11396. ld_shlibs_CXX=no
  11397. ;;
  11398. mvs*)
  11399. case $cc_basename in
  11400. cxx*)
  11401. # FIXME: insert proper C++ library support
  11402. ld_shlibs_CXX=no
  11403. ;;
  11404. *)
  11405. # FIXME: insert proper C++ library support
  11406. ld_shlibs_CXX=no
  11407. ;;
  11408. esac
  11409. ;;
  11410. netbsd*)
  11411. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11412. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11413. wlarc=
  11414. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11415. hardcode_direct_CXX=yes
  11416. hardcode_shlibpath_var_CXX=no
  11417. fi
  11418. # Workaround some broken pre-1.5 toolchains
  11419. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11420. ;;
  11421. *nto* | *qnx*)
  11422. ld_shlibs_CXX=yes
  11423. ;;
  11424. openbsd2*)
  11425. # C++ shared libraries are fairly broken
  11426. ld_shlibs_CXX=no
  11427. ;;
  11428. openbsd*)
  11429. if test -f /usr/libexec/ld.so; then
  11430. hardcode_direct_CXX=yes
  11431. hardcode_shlibpath_var_CXX=no
  11432. hardcode_direct_absolute_CXX=yes
  11433. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11434. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11435. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11436. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11437. export_dynamic_flag_spec_CXX='${wl}-E'
  11438. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11439. fi
  11440. output_verbose_link_cmd=echo
  11441. else
  11442. ld_shlibs_CXX=no
  11443. fi
  11444. ;;
  11445. osf3* | osf4* | osf5*)
  11446. case $cc_basename in
  11447. KCC*)
  11448. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11449. # KCC will only create a shared library if the output file
  11450. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11451. # to its proper name (with version) after linking.
  11452. 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'
  11453. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11454. hardcode_libdir_separator_CXX=:
  11455. # Archives containing C++ object files must be created using
  11456. # the KAI C++ compiler.
  11457. case $host in
  11458. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11459. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11460. esac
  11461. ;;
  11462. RCC*)
  11463. # Rational C++ 2.4.1
  11464. # FIXME: insert proper C++ library support
  11465. ld_shlibs_CXX=no
  11466. ;;
  11467. cxx*)
  11468. case $host in
  11469. osf3*)
  11470. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11471. 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'
  11472. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11473. ;;
  11474. *)
  11475. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11476. 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'
  11477. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11478. echo "-hidden">> $lib.exp~
  11479. $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~
  11480. $RM $lib.exp'
  11481. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11482. ;;
  11483. esac
  11484. hardcode_libdir_separator_CXX=:
  11485. # Commands to make compiler produce verbose output that lists
  11486. # what "hidden" libraries, object files and flags are used when
  11487. # linking a shared library.
  11488. #
  11489. # There doesn't appear to be a way to prevent this compiler from
  11490. # explicitly linking system object files so we need to strip them
  11491. # from the output so that they don't get included in the library
  11492. # dependencies.
  11493. 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'
  11494. ;;
  11495. *)
  11496. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11497. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11498. case $host in
  11499. osf3*)
  11500. 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'
  11501. ;;
  11502. *)
  11503. 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'
  11504. ;;
  11505. esac
  11506. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11507. hardcode_libdir_separator_CXX=:
  11508. # Commands to make compiler produce verbose output that lists
  11509. # what "hidden" libraries, object files and flags are used when
  11510. # linking a shared library.
  11511. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11512. else
  11513. # FIXME: insert proper C++ library support
  11514. ld_shlibs_CXX=no
  11515. fi
  11516. ;;
  11517. esac
  11518. ;;
  11519. psos*)
  11520. # FIXME: insert proper C++ library support
  11521. ld_shlibs_CXX=no
  11522. ;;
  11523. sunos4*)
  11524. case $cc_basename in
  11525. CC*)
  11526. # Sun C++ 4.x
  11527. # FIXME: insert proper C++ library support
  11528. ld_shlibs_CXX=no
  11529. ;;
  11530. lcc*)
  11531. # Lucid
  11532. # FIXME: insert proper C++ library support
  11533. ld_shlibs_CXX=no
  11534. ;;
  11535. *)
  11536. # FIXME: insert proper C++ library support
  11537. ld_shlibs_CXX=no
  11538. ;;
  11539. esac
  11540. ;;
  11541. solaris*)
  11542. case $cc_basename in
  11543. CC*)
  11544. # Sun C++ 4.2, 5.x and Centerline C++
  11545. archive_cmds_need_lc_CXX=yes
  11546. no_undefined_flag_CXX=' -zdefs'
  11547. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11548. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11549. $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'
  11550. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11551. hardcode_shlibpath_var_CXX=no
  11552. case $host_os in
  11553. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11554. *)
  11555. # The compiler driver will combine and reorder linker options,
  11556. # but understands `-z linker_flag'.
  11557. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11558. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11559. ;;
  11560. esac
  11561. link_all_deplibs_CXX=yes
  11562. output_verbose_link_cmd='echo'
  11563. # Archives containing C++ object files must be created using
  11564. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11565. # necessary to make sure instantiated templates are included
  11566. # in the archive.
  11567. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11568. ;;
  11569. gcx*)
  11570. # Green Hills C++ Compiler
  11571. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11572. # The C++ compiler must be used to create the archive.
  11573. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11574. ;;
  11575. *)
  11576. # GNU C++ compiler with Solaris linker
  11577. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11578. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11579. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11580. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11581. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11582. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11583. # Commands to make compiler produce verbose output that lists
  11584. # what "hidden" libraries, object files and flags are used when
  11585. # linking a shared library.
  11586. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11587. else
  11588. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11589. # platform.
  11590. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11591. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11592. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11593. # Commands to make compiler produce verbose output that lists
  11594. # what "hidden" libraries, object files and flags are used when
  11595. # linking a shared library.
  11596. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11597. fi
  11598. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11599. case $host_os in
  11600. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11601. *)
  11602. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11603. ;;
  11604. esac
  11605. fi
  11606. ;;
  11607. esac
  11608. ;;
  11609. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11610. no_undefined_flag_CXX='${wl}-z,text'
  11611. archive_cmds_need_lc_CXX=no
  11612. hardcode_shlibpath_var_CXX=no
  11613. runpath_var='LD_RUN_PATH'
  11614. case $cc_basename in
  11615. CC*)
  11616. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11617. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11618. ;;
  11619. *)
  11620. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11621. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11622. ;;
  11623. esac
  11624. ;;
  11625. sysv5* | sco3.2v5* | sco5v6*)
  11626. # Note: We can NOT use -z defs as we might desire, because we do not
  11627. # link with -lc, and that would cause any symbols used from libc to
  11628. # always be unresolved, which means just about no library would
  11629. # ever link correctly. If we're not using GNU ld we use -z text
  11630. # though, which does catch some bad symbols but isn't as heavy-handed
  11631. # as -z defs.
  11632. no_undefined_flag_CXX='${wl}-z,text'
  11633. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11634. archive_cmds_need_lc_CXX=no
  11635. hardcode_shlibpath_var_CXX=no
  11636. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11637. hardcode_libdir_separator_CXX=':'
  11638. link_all_deplibs_CXX=yes
  11639. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11640. runpath_var='LD_RUN_PATH'
  11641. case $cc_basename in
  11642. CC*)
  11643. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11644. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11645. ;;
  11646. *)
  11647. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11648. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11649. ;;
  11650. esac
  11651. ;;
  11652. tandem*)
  11653. case $cc_basename in
  11654. NCC*)
  11655. # NonStop-UX NCC 3.20
  11656. # FIXME: insert proper C++ library support
  11657. ld_shlibs_CXX=no
  11658. ;;
  11659. *)
  11660. # FIXME: insert proper C++ library support
  11661. ld_shlibs_CXX=no
  11662. ;;
  11663. esac
  11664. ;;
  11665. vxworks*)
  11666. # FIXME: insert proper C++ library support
  11667. ld_shlibs_CXX=no
  11668. ;;
  11669. *)
  11670. # FIXME: insert proper C++ library support
  11671. ld_shlibs_CXX=no
  11672. ;;
  11673. esac
  11674. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11675. $as_echo "$ld_shlibs_CXX" >&6; }
  11676. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11677. GCC_CXX="$GXX"
  11678. LD_CXX="$LD"
  11679. ## CAVEAT EMPTOR:
  11680. ## There is no encapsulation within the following macros, do not change
  11681. ## the running order or otherwise move them around unless you know exactly
  11682. ## what you are doing...
  11683. # Dependencies to place before and after the object being linked:
  11684. predep_objects_CXX=
  11685. postdep_objects_CXX=
  11686. predeps_CXX=
  11687. postdeps_CXX=
  11688. compiler_lib_search_path_CXX=
  11689. cat > conftest.$ac_ext <<_LT_EOF
  11690. class Foo
  11691. {
  11692. public:
  11693. Foo (void) { a = 0; }
  11694. private:
  11695. int a;
  11696. };
  11697. _LT_EOF
  11698. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11699. (eval $ac_compile) 2>&5
  11700. ac_status=$?
  11701. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11702. (exit $ac_status); }; then
  11703. # Parse the compiler output and extract the necessary
  11704. # objects, libraries and library flags.
  11705. # Sentinel used to keep track of whether or not we are before
  11706. # the conftest object file.
  11707. pre_test_object_deps_done=no
  11708. for p in `eval "$output_verbose_link_cmd"`; do
  11709. case $p in
  11710. -L* | -R* | -l*)
  11711. # Some compilers place space between "-{L,R}" and the path.
  11712. # Remove the space.
  11713. if test $p = "-L" ||
  11714. test $p = "-R"; then
  11715. prev=$p
  11716. continue
  11717. else
  11718. prev=
  11719. fi
  11720. if test "$pre_test_object_deps_done" = no; then
  11721. case $p in
  11722. -L* | -R*)
  11723. # Internal compiler library paths should come after those
  11724. # provided the user. The postdeps already come after the
  11725. # user supplied libs so there is no need to process them.
  11726. if test -z "$compiler_lib_search_path_CXX"; then
  11727. compiler_lib_search_path_CXX="${prev}${p}"
  11728. else
  11729. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11730. fi
  11731. ;;
  11732. # The "-l" case would never come before the object being
  11733. # linked, so don't bother handling this case.
  11734. esac
  11735. else
  11736. if test -z "$postdeps_CXX"; then
  11737. postdeps_CXX="${prev}${p}"
  11738. else
  11739. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11740. fi
  11741. fi
  11742. ;;
  11743. *.$objext)
  11744. # This assumes that the test object file only shows up
  11745. # once in the compiler output.
  11746. if test "$p" = "conftest.$objext"; then
  11747. pre_test_object_deps_done=yes
  11748. continue
  11749. fi
  11750. if test "$pre_test_object_deps_done" = no; then
  11751. if test -z "$predep_objects_CXX"; then
  11752. predep_objects_CXX="$p"
  11753. else
  11754. predep_objects_CXX="$predep_objects_CXX $p"
  11755. fi
  11756. else
  11757. if test -z "$postdep_objects_CXX"; then
  11758. postdep_objects_CXX="$p"
  11759. else
  11760. postdep_objects_CXX="$postdep_objects_CXX $p"
  11761. fi
  11762. fi
  11763. ;;
  11764. *) ;; # Ignore the rest.
  11765. esac
  11766. done
  11767. # Clean up.
  11768. rm -f a.out a.exe
  11769. else
  11770. echo "libtool.m4: error: problem compiling CXX test program"
  11771. fi
  11772. $RM -f confest.$objext
  11773. # PORTME: override above test on systems where it is broken
  11774. case $host_os in
  11775. interix[3-9]*)
  11776. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11777. # hack all around it, let's just trust "g++" to DTRT.
  11778. predep_objects_CXX=
  11779. postdep_objects_CXX=
  11780. postdeps_CXX=
  11781. ;;
  11782. linux*)
  11783. case `$CC -V 2>&1 | sed 5q` in
  11784. *Sun\ C*)
  11785. # Sun C++ 5.9
  11786. # The more standards-conforming stlport4 library is
  11787. # incompatible with the Cstd library. Avoid specifying
  11788. # it if it's in CXXFLAGS. Ignore libCrun as
  11789. # -library=stlport4 depends on it.
  11790. case " $CXX $CXXFLAGS " in
  11791. *" -library=stlport4 "*)
  11792. solaris_use_stlport4=yes
  11793. ;;
  11794. esac
  11795. if test "$solaris_use_stlport4" != yes; then
  11796. postdeps_CXX='-library=Cstd -library=Crun'
  11797. fi
  11798. ;;
  11799. esac
  11800. ;;
  11801. solaris*)
  11802. case $cc_basename in
  11803. CC*)
  11804. # The more standards-conforming stlport4 library is
  11805. # incompatible with the Cstd library. Avoid specifying
  11806. # it if it's in CXXFLAGS. Ignore libCrun as
  11807. # -library=stlport4 depends on it.
  11808. case " $CXX $CXXFLAGS " in
  11809. *" -library=stlport4 "*)
  11810. solaris_use_stlport4=yes
  11811. ;;
  11812. esac
  11813. # Adding this requires a known-good setup of shared libraries for
  11814. # Sun compiler versions before 5.6, else PIC objects from an old
  11815. # archive will be linked into the output, leading to subtle bugs.
  11816. if test "$solaris_use_stlport4" != yes; then
  11817. postdeps_CXX='-library=Cstd -library=Crun'
  11818. fi
  11819. ;;
  11820. esac
  11821. ;;
  11822. esac
  11823. case " $postdeps_CXX " in
  11824. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11825. esac
  11826. compiler_lib_search_dirs_CXX=
  11827. if test -n "${compiler_lib_search_path_CXX}"; then
  11828. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11829. fi
  11830. lt_prog_compiler_wl_CXX=
  11831. lt_prog_compiler_pic_CXX=
  11832. lt_prog_compiler_static_CXX=
  11833. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11834. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11835. # C++ specific cases for pic, static, wl, etc.
  11836. if test "$GXX" = yes; then
  11837. lt_prog_compiler_wl_CXX='-Wl,'
  11838. lt_prog_compiler_static_CXX='-static'
  11839. case $host_os in
  11840. aix*)
  11841. # All AIX code is PIC.
  11842. if test "$host_cpu" = ia64; then
  11843. # AIX 5 now supports IA64 processor
  11844. lt_prog_compiler_static_CXX='-Bstatic'
  11845. fi
  11846. ;;
  11847. amigaos*)
  11848. case $host_cpu in
  11849. powerpc)
  11850. # see comment about AmigaOS4 .so support
  11851. lt_prog_compiler_pic_CXX='-fPIC'
  11852. ;;
  11853. m68k)
  11854. # FIXME: we need at least 68020 code to build shared libraries, but
  11855. # adding the `-m68020' flag to GCC prevents building anything better,
  11856. # like `-m68040'.
  11857. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11858. ;;
  11859. esac
  11860. ;;
  11861. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11862. # PIC is the default for these OSes.
  11863. ;;
  11864. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11865. # This hack is so that the source file can tell whether it is being
  11866. # built for inclusion in a dll (and should export symbols for example).
  11867. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11868. # (--disable-auto-import) libraries
  11869. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11870. ;;
  11871. darwin* | rhapsody*)
  11872. # PIC is the default on this platform
  11873. # Common symbols not allowed in MH_DYLIB files
  11874. lt_prog_compiler_pic_CXX='-fno-common'
  11875. ;;
  11876. *djgpp*)
  11877. # DJGPP does not support shared libraries at all
  11878. lt_prog_compiler_pic_CXX=
  11879. ;;
  11880. interix[3-9]*)
  11881. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11882. # Instead, we relocate shared libraries at runtime.
  11883. ;;
  11884. sysv4*MP*)
  11885. if test -d /usr/nec; then
  11886. lt_prog_compiler_pic_CXX=-Kconform_pic
  11887. fi
  11888. ;;
  11889. hpux*)
  11890. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11891. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11892. # sets the default TLS model and affects inlining.
  11893. case $host_cpu in
  11894. hppa*64*)
  11895. ;;
  11896. *)
  11897. lt_prog_compiler_pic_CXX='-fPIC'
  11898. ;;
  11899. esac
  11900. ;;
  11901. *qnx* | *nto*)
  11902. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11903. # it will coredump.
  11904. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11905. ;;
  11906. *)
  11907. lt_prog_compiler_pic_CXX='-fPIC'
  11908. ;;
  11909. esac
  11910. else
  11911. case $host_os in
  11912. aix[4-9]*)
  11913. # All AIX code is PIC.
  11914. if test "$host_cpu" = ia64; then
  11915. # AIX 5 now supports IA64 processor
  11916. lt_prog_compiler_static_CXX='-Bstatic'
  11917. else
  11918. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11919. fi
  11920. ;;
  11921. chorus*)
  11922. case $cc_basename in
  11923. cxch68*)
  11924. # Green Hills C++ Compiler
  11925. # _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"
  11926. ;;
  11927. esac
  11928. ;;
  11929. dgux*)
  11930. case $cc_basename in
  11931. ec++*)
  11932. lt_prog_compiler_pic_CXX='-KPIC'
  11933. ;;
  11934. ghcx*)
  11935. # Green Hills C++ Compiler
  11936. lt_prog_compiler_pic_CXX='-pic'
  11937. ;;
  11938. *)
  11939. ;;
  11940. esac
  11941. ;;
  11942. freebsd* | dragonfly*)
  11943. # FreeBSD uses GNU C++
  11944. ;;
  11945. hpux9* | hpux10* | hpux11*)
  11946. case $cc_basename in
  11947. CC*)
  11948. lt_prog_compiler_wl_CXX='-Wl,'
  11949. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11950. if test "$host_cpu" != ia64; then
  11951. lt_prog_compiler_pic_CXX='+Z'
  11952. fi
  11953. ;;
  11954. aCC*)
  11955. lt_prog_compiler_wl_CXX='-Wl,'
  11956. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11957. case $host_cpu in
  11958. hppa*64*|ia64*)
  11959. # +Z the default
  11960. ;;
  11961. *)
  11962. lt_prog_compiler_pic_CXX='+Z'
  11963. ;;
  11964. esac
  11965. ;;
  11966. *)
  11967. ;;
  11968. esac
  11969. ;;
  11970. interix*)
  11971. # This is c89, which is MS Visual C++ (no shared libs)
  11972. # Anyone wants to do a port?
  11973. ;;
  11974. irix5* | irix6* | nonstopux*)
  11975. case $cc_basename in
  11976. CC*)
  11977. lt_prog_compiler_wl_CXX='-Wl,'
  11978. lt_prog_compiler_static_CXX='-non_shared'
  11979. # CC pic flag -KPIC is the default.
  11980. ;;
  11981. *)
  11982. ;;
  11983. esac
  11984. ;;
  11985. linux* | k*bsd*-gnu)
  11986. case $cc_basename in
  11987. KCC*)
  11988. # KAI C++ Compiler
  11989. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11990. lt_prog_compiler_pic_CXX='-fPIC'
  11991. ;;
  11992. ecpc* )
  11993. # old Intel C++ for x86_64 which still supported -KPIC.
  11994. lt_prog_compiler_wl_CXX='-Wl,'
  11995. lt_prog_compiler_pic_CXX='-KPIC'
  11996. lt_prog_compiler_static_CXX='-static'
  11997. ;;
  11998. icpc* )
  11999. # Intel C++, used to be incompatible with GCC.
  12000. # ICC 10 doesn't accept -KPIC any more.
  12001. lt_prog_compiler_wl_CXX='-Wl,'
  12002. lt_prog_compiler_pic_CXX='-fPIC'
  12003. lt_prog_compiler_static_CXX='-static'
  12004. ;;
  12005. pgCC* | pgcpp*)
  12006. # Portland Group C++ compiler
  12007. lt_prog_compiler_wl_CXX='-Wl,'
  12008. lt_prog_compiler_pic_CXX='-fpic'
  12009. lt_prog_compiler_static_CXX='-Bstatic'
  12010. ;;
  12011. cxx*)
  12012. # Compaq C++
  12013. # Make sure the PIC flag is empty. It appears that all Alpha
  12014. # Linux and Compaq Tru64 Unix objects are PIC.
  12015. lt_prog_compiler_pic_CXX=
  12016. lt_prog_compiler_static_CXX='-non_shared'
  12017. ;;
  12018. xlc* | xlC*)
  12019. # IBM XL 8.0 on PPC
  12020. lt_prog_compiler_wl_CXX='-Wl,'
  12021. lt_prog_compiler_pic_CXX='-qpic'
  12022. lt_prog_compiler_static_CXX='-qstaticlink'
  12023. ;;
  12024. *)
  12025. case `$CC -V 2>&1 | sed 5q` in
  12026. *Sun\ C*)
  12027. # Sun C++ 5.9
  12028. lt_prog_compiler_pic_CXX='-KPIC'
  12029. lt_prog_compiler_static_CXX='-Bstatic'
  12030. lt_prog_compiler_wl_CXX='-Qoption ld '
  12031. ;;
  12032. esac
  12033. ;;
  12034. esac
  12035. ;;
  12036. lynxos*)
  12037. ;;
  12038. m88k*)
  12039. ;;
  12040. mvs*)
  12041. case $cc_basename in
  12042. cxx*)
  12043. lt_prog_compiler_pic_CXX='-W c,exportall'
  12044. ;;
  12045. *)
  12046. ;;
  12047. esac
  12048. ;;
  12049. netbsd* | netbsdelf*-gnu)
  12050. ;;
  12051. *qnx* | *nto*)
  12052. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12053. # it will coredump.
  12054. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12055. ;;
  12056. osf3* | osf4* | osf5*)
  12057. case $cc_basename in
  12058. KCC*)
  12059. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12060. ;;
  12061. RCC*)
  12062. # Rational C++ 2.4.1
  12063. lt_prog_compiler_pic_CXX='-pic'
  12064. ;;
  12065. cxx*)
  12066. # Digital/Compaq C++
  12067. lt_prog_compiler_wl_CXX='-Wl,'
  12068. # Make sure the PIC flag is empty. It appears that all Alpha
  12069. # Linux and Compaq Tru64 Unix objects are PIC.
  12070. lt_prog_compiler_pic_CXX=
  12071. lt_prog_compiler_static_CXX='-non_shared'
  12072. ;;
  12073. *)
  12074. ;;
  12075. esac
  12076. ;;
  12077. psos*)
  12078. ;;
  12079. solaris*)
  12080. case $cc_basename in
  12081. CC*)
  12082. # Sun C++ 4.2, 5.x and Centerline C++
  12083. lt_prog_compiler_pic_CXX='-KPIC'
  12084. lt_prog_compiler_static_CXX='-Bstatic'
  12085. lt_prog_compiler_wl_CXX='-Qoption ld '
  12086. ;;
  12087. gcx*)
  12088. # Green Hills C++ Compiler
  12089. lt_prog_compiler_pic_CXX='-PIC'
  12090. ;;
  12091. *)
  12092. ;;
  12093. esac
  12094. ;;
  12095. sunos4*)
  12096. case $cc_basename in
  12097. CC*)
  12098. # Sun C++ 4.x
  12099. lt_prog_compiler_pic_CXX='-pic'
  12100. lt_prog_compiler_static_CXX='-Bstatic'
  12101. ;;
  12102. lcc*)
  12103. # Lucid
  12104. lt_prog_compiler_pic_CXX='-pic'
  12105. ;;
  12106. *)
  12107. ;;
  12108. esac
  12109. ;;
  12110. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12111. case $cc_basename in
  12112. CC*)
  12113. lt_prog_compiler_wl_CXX='-Wl,'
  12114. lt_prog_compiler_pic_CXX='-KPIC'
  12115. lt_prog_compiler_static_CXX='-Bstatic'
  12116. ;;
  12117. esac
  12118. ;;
  12119. tandem*)
  12120. case $cc_basename in
  12121. NCC*)
  12122. # NonStop-UX NCC 3.20
  12123. lt_prog_compiler_pic_CXX='-KPIC'
  12124. ;;
  12125. *)
  12126. ;;
  12127. esac
  12128. ;;
  12129. vxworks*)
  12130. ;;
  12131. *)
  12132. lt_prog_compiler_can_build_shared_CXX=no
  12133. ;;
  12134. esac
  12135. fi
  12136. case $host_os in
  12137. # For platforms which do not support PIC, -DPIC is meaningless:
  12138. *djgpp*)
  12139. lt_prog_compiler_pic_CXX=
  12140. ;;
  12141. *)
  12142. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12143. ;;
  12144. esac
  12145. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12146. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12147. #
  12148. # Check to make sure the PIC flag actually works.
  12149. #
  12150. if test -n "$lt_prog_compiler_pic_CXX"; then
  12151. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12152. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12153. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12154. $as_echo_n "(cached) " >&6
  12155. else
  12156. lt_cv_prog_compiler_pic_works_CXX=no
  12157. ac_outfile=conftest.$ac_objext
  12158. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12159. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12160. # Insert the option either (1) after the last *FLAGS variable, or
  12161. # (2) before a word containing "conftest.", or (3) at the end.
  12162. # Note that $ac_compile itself does not contain backslashes and begins
  12163. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12164. # The option is referenced via a variable to avoid confusing sed.
  12165. lt_compile=`echo "$ac_compile" | $SED \
  12166. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12167. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12168. -e 's:$: $lt_compiler_flag:'`
  12169. (eval echo "\"\$as_me:14074: $lt_compile\"" >&5)
  12170. (eval "$lt_compile" 2>conftest.err)
  12171. ac_status=$?
  12172. cat conftest.err >&5
  12173. echo "$as_me:14078: \$? = $ac_status" >&5
  12174. if (exit $ac_status) && test -s "$ac_outfile"; then
  12175. # The compiler can only warn and ignore the option if not recognized
  12176. # So say no if there are warnings other than the usual output.
  12177. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12178. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12179. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12180. lt_cv_prog_compiler_pic_works_CXX=yes
  12181. fi
  12182. fi
  12183. $RM conftest*
  12184. fi
  12185. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12186. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12187. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12188. case $lt_prog_compiler_pic_CXX in
  12189. "" | " "*) ;;
  12190. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12191. esac
  12192. else
  12193. lt_prog_compiler_pic_CXX=
  12194. lt_prog_compiler_can_build_shared_CXX=no
  12195. fi
  12196. fi
  12197. #
  12198. # Check to make sure the static flag actually works.
  12199. #
  12200. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12201. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12202. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12203. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12204. $as_echo_n "(cached) " >&6
  12205. else
  12206. lt_cv_prog_compiler_static_works_CXX=no
  12207. save_LDFLAGS="$LDFLAGS"
  12208. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12209. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12210. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12211. # The linker can only warn and ignore the option if not recognized
  12212. # So say no if there are warnings
  12213. if test -s conftest.err; then
  12214. # Append any errors to the config.log.
  12215. cat conftest.err 1>&5
  12216. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12217. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12218. if diff conftest.exp conftest.er2 >/dev/null; then
  12219. lt_cv_prog_compiler_static_works_CXX=yes
  12220. fi
  12221. else
  12222. lt_cv_prog_compiler_static_works_CXX=yes
  12223. fi
  12224. fi
  12225. $RM -r conftest*
  12226. LDFLAGS="$save_LDFLAGS"
  12227. fi
  12228. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12229. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12230. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12231. :
  12232. else
  12233. lt_prog_compiler_static_CXX=
  12234. fi
  12235. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12236. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12237. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12238. $as_echo_n "(cached) " >&6
  12239. else
  12240. lt_cv_prog_compiler_c_o_CXX=no
  12241. $RM -r conftest 2>/dev/null
  12242. mkdir conftest
  12243. cd conftest
  12244. mkdir out
  12245. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12246. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12247. # Insert the option either (1) after the last *FLAGS variable, or
  12248. # (2) before a word containing "conftest.", or (3) at the end.
  12249. # Note that $ac_compile itself does not contain backslashes and begins
  12250. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12251. lt_compile=`echo "$ac_compile" | $SED \
  12252. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12253. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12254. -e 's:$: $lt_compiler_flag:'`
  12255. (eval echo "\"\$as_me:14173: $lt_compile\"" >&5)
  12256. (eval "$lt_compile" 2>out/conftest.err)
  12257. ac_status=$?
  12258. cat out/conftest.err >&5
  12259. echo "$as_me:14177: \$? = $ac_status" >&5
  12260. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12261. then
  12262. # The compiler can only warn and ignore the option if not recognized
  12263. # So say no if there are warnings
  12264. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12265. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12266. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12267. lt_cv_prog_compiler_c_o_CXX=yes
  12268. fi
  12269. fi
  12270. chmod u+w . 2>&5
  12271. $RM conftest*
  12272. # SGI C++ compiler will create directory out/ii_files/ for
  12273. # template instantiation
  12274. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12275. $RM out/* && rmdir out
  12276. cd ..
  12277. $RM -r conftest
  12278. $RM conftest*
  12279. fi
  12280. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12281. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12282. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12283. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12284. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12285. $as_echo_n "(cached) " >&6
  12286. else
  12287. lt_cv_prog_compiler_c_o_CXX=no
  12288. $RM -r conftest 2>/dev/null
  12289. mkdir conftest
  12290. cd conftest
  12291. mkdir out
  12292. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12293. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12294. # Insert the option either (1) after the last *FLAGS variable, or
  12295. # (2) before a word containing "conftest.", or (3) at the end.
  12296. # Note that $ac_compile itself does not contain backslashes and begins
  12297. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12298. lt_compile=`echo "$ac_compile" | $SED \
  12299. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12300. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12301. -e 's:$: $lt_compiler_flag:'`
  12302. (eval echo "\"\$as_me:14225: $lt_compile\"" >&5)
  12303. (eval "$lt_compile" 2>out/conftest.err)
  12304. ac_status=$?
  12305. cat out/conftest.err >&5
  12306. echo "$as_me:14229: \$? = $ac_status" >&5
  12307. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12308. then
  12309. # The compiler can only warn and ignore the option if not recognized
  12310. # So say no if there are warnings
  12311. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12312. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12313. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12314. lt_cv_prog_compiler_c_o_CXX=yes
  12315. fi
  12316. fi
  12317. chmod u+w . 2>&5
  12318. $RM conftest*
  12319. # SGI C++ compiler will create directory out/ii_files/ for
  12320. # template instantiation
  12321. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12322. $RM out/* && rmdir out
  12323. cd ..
  12324. $RM -r conftest
  12325. $RM conftest*
  12326. fi
  12327. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12328. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12329. hard_links="nottested"
  12330. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12331. # do not overwrite the value of need_locks provided by the user
  12332. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12333. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12334. hard_links=yes
  12335. $RM conftest*
  12336. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12337. touch conftest.a
  12338. ln conftest.a conftest.b 2>&5 || hard_links=no
  12339. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12340. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  12341. $as_echo "$hard_links" >&6; }
  12342. if test "$hard_links" = no; then
  12343. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12344. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12345. need_locks=warn
  12346. fi
  12347. else
  12348. need_locks=no
  12349. fi
  12350. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12351. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12352. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12353. case $host_os in
  12354. aix[4-9]*)
  12355. # If we're using GNU nm, then we don't want the "-C" option.
  12356. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12357. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12358. 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'
  12359. else
  12360. 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'
  12361. fi
  12362. ;;
  12363. pw32*)
  12364. export_symbols_cmds_CXX="$ltdll_cmds"
  12365. ;;
  12366. cygwin* | mingw* | cegcc*)
  12367. 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'
  12368. ;;
  12369. linux* | k*bsd*-gnu)
  12370. link_all_deplibs_CXX=no
  12371. ;;
  12372. *)
  12373. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12374. ;;
  12375. esac
  12376. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12377. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12378. $as_echo "$ld_shlibs_CXX" >&6; }
  12379. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12380. with_gnu_ld_CXX=$with_gnu_ld
  12381. #
  12382. # Do we need to explicitly link libc?
  12383. #
  12384. case "x$archive_cmds_need_lc_CXX" in
  12385. x|xyes)
  12386. # Assume -lc should be added
  12387. archive_cmds_need_lc_CXX=yes
  12388. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12389. case $archive_cmds_CXX in
  12390. *'~'*)
  12391. # FIXME: we may have to deal with multi-command sequences.
  12392. ;;
  12393. '$CC '*)
  12394. # Test whether the compiler implicitly links with -lc since on some
  12395. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12396. # to ld, don't add -lc before -lgcc.
  12397. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12398. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12399. $RM conftest*
  12400. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12401. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12402. (eval $ac_compile) 2>&5
  12403. ac_status=$?
  12404. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12405. (exit $ac_status); } 2>conftest.err; then
  12406. soname=conftest
  12407. lib=conftest
  12408. libobjs=conftest.$ac_objext
  12409. deplibs=
  12410. wl=$lt_prog_compiler_wl_CXX
  12411. pic_flag=$lt_prog_compiler_pic_CXX
  12412. compiler_flags=-v
  12413. linker_flags=-v
  12414. verstring=
  12415. output_objdir=.
  12416. libname=conftest
  12417. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12418. allow_undefined_flag_CXX=
  12419. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12420. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12421. ac_status=$?
  12422. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12423. (exit $ac_status); }
  12424. then
  12425. archive_cmds_need_lc_CXX=no
  12426. else
  12427. archive_cmds_need_lc_CXX=yes
  12428. fi
  12429. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12430. else
  12431. cat conftest.err 1>&5
  12432. fi
  12433. $RM conftest*
  12434. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12435. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  12436. ;;
  12437. esac
  12438. fi
  12439. ;;
  12440. esac
  12441. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12442. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12443. library_names_spec=
  12444. libname_spec='lib$name'
  12445. soname_spec=
  12446. shrext_cmds=".so"
  12447. postinstall_cmds=
  12448. postuninstall_cmds=
  12449. finish_cmds=
  12450. finish_eval=
  12451. shlibpath_var=
  12452. shlibpath_overrides_runpath=unknown
  12453. version_type=none
  12454. dynamic_linker="$host_os ld.so"
  12455. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12456. need_lib_prefix=unknown
  12457. hardcode_into_libs=no
  12458. # when you set need_version to no, make sure it does not cause -set_version
  12459. # flags to be left without arguments
  12460. need_version=unknown
  12461. case $host_os in
  12462. aix3*)
  12463. version_type=linux
  12464. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12465. shlibpath_var=LIBPATH
  12466. # AIX 3 has no versioning support, so we append a major version to the name.
  12467. soname_spec='${libname}${release}${shared_ext}$major'
  12468. ;;
  12469. aix[4-9]*)
  12470. version_type=linux
  12471. need_lib_prefix=no
  12472. need_version=no
  12473. hardcode_into_libs=yes
  12474. if test "$host_cpu" = ia64; then
  12475. # AIX 5 supports IA64
  12476. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12477. shlibpath_var=LD_LIBRARY_PATH
  12478. else
  12479. # With GCC up to 2.95.x, collect2 would create an import file
  12480. # for dependence libraries. The import file would start with
  12481. # the line `#! .'. This would cause the generated library to
  12482. # depend on `.', always an invalid library. This was fixed in
  12483. # development snapshots of GCC prior to 3.0.
  12484. case $host_os in
  12485. aix4 | aix4.[01] | aix4.[01].*)
  12486. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12487. echo ' yes '
  12488. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12489. :
  12490. else
  12491. can_build_shared=no
  12492. fi
  12493. ;;
  12494. esac
  12495. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12496. # soname into executable. Probably we can add versioning support to
  12497. # collect2, so additional links can be useful in future.
  12498. if test "$aix_use_runtimelinking" = yes; then
  12499. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12500. # instead of lib<name>.a to let people know that these are not
  12501. # typical AIX shared libraries.
  12502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12503. else
  12504. # We preserve .a as extension for shared libraries through AIX4.2
  12505. # and later when we are not doing run time linking.
  12506. library_names_spec='${libname}${release}.a $libname.a'
  12507. soname_spec='${libname}${release}${shared_ext}$major'
  12508. fi
  12509. shlibpath_var=LIBPATH
  12510. fi
  12511. ;;
  12512. amigaos*)
  12513. case $host_cpu in
  12514. powerpc)
  12515. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12516. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12518. ;;
  12519. m68k)
  12520. library_names_spec='$libname.ixlibrary $libname.a'
  12521. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12522. 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'
  12523. ;;
  12524. esac
  12525. ;;
  12526. beos*)
  12527. library_names_spec='${libname}${shared_ext}'
  12528. dynamic_linker="$host_os ld.so"
  12529. shlibpath_var=LIBRARY_PATH
  12530. ;;
  12531. bsdi[45]*)
  12532. version_type=linux
  12533. need_version=no
  12534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12535. soname_spec='${libname}${release}${shared_ext}$major'
  12536. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12537. shlibpath_var=LD_LIBRARY_PATH
  12538. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12539. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12540. # the default ld.so.conf also contains /usr/contrib/lib and
  12541. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12542. # libtool to hard-code these into programs
  12543. ;;
  12544. cygwin* | mingw* | pw32* | cegcc*)
  12545. version_type=windows
  12546. shrext_cmds=".dll"
  12547. need_version=no
  12548. need_lib_prefix=no
  12549. case $GCC,$host_os in
  12550. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12551. library_names_spec='$libname.dll.a'
  12552. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12553. postinstall_cmds='base_file=`basename \${file}`~
  12554. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12555. dldir=$destdir/`dirname \$dlpath`~
  12556. test -d \$dldir || mkdir -p \$dldir~
  12557. $install_prog $dir/$dlname \$dldir/$dlname~
  12558. chmod a+x \$dldir/$dlname~
  12559. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12560. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12561. fi'
  12562. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12563. dlpath=$dir/\$dldll~
  12564. $RM \$dlpath'
  12565. shlibpath_overrides_runpath=yes
  12566. case $host_os in
  12567. cygwin*)
  12568. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12569. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12570. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12571. ;;
  12572. mingw* | cegcc*)
  12573. # MinGW DLLs use traditional 'lib' prefix
  12574. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12575. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12576. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12577. # It is most probably a Windows format PATH printed by
  12578. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12579. # path with ; separators, and with drive letters. We can handle the
  12580. # drive letters (cygwin fileutils understands them), so leave them,
  12581. # especially as we might pass files found there to a mingw objdump,
  12582. # which wouldn't understand a cygwinified path. Ahh.
  12583. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12584. else
  12585. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12586. fi
  12587. ;;
  12588. pw32*)
  12589. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12590. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12591. ;;
  12592. esac
  12593. ;;
  12594. *)
  12595. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12596. ;;
  12597. esac
  12598. dynamic_linker='Win32 ld.exe'
  12599. # FIXME: first we should search . and the directory the executable is in
  12600. shlibpath_var=PATH
  12601. ;;
  12602. darwin* | rhapsody*)
  12603. dynamic_linker="$host_os dyld"
  12604. version_type=darwin
  12605. need_lib_prefix=no
  12606. need_version=no
  12607. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12608. soname_spec='${libname}${release}${major}$shared_ext'
  12609. shlibpath_overrides_runpath=yes
  12610. shlibpath_var=DYLD_LIBRARY_PATH
  12611. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12612. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12613. ;;
  12614. dgux*)
  12615. version_type=linux
  12616. need_lib_prefix=no
  12617. need_version=no
  12618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12619. soname_spec='${libname}${release}${shared_ext}$major'
  12620. shlibpath_var=LD_LIBRARY_PATH
  12621. ;;
  12622. freebsd1*)
  12623. dynamic_linker=no
  12624. ;;
  12625. freebsd* | dragonfly*)
  12626. # DragonFly does not have aout. When/if they implement a new
  12627. # versioning mechanism, adjust this.
  12628. if test -x /usr/bin/objformat; then
  12629. objformat=`/usr/bin/objformat`
  12630. else
  12631. case $host_os in
  12632. freebsd[123]*) objformat=aout ;;
  12633. *) objformat=elf ;;
  12634. esac
  12635. fi
  12636. version_type=freebsd-$objformat
  12637. case $version_type in
  12638. freebsd-elf*)
  12639. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12640. need_version=no
  12641. need_lib_prefix=no
  12642. ;;
  12643. freebsd-*)
  12644. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12645. need_version=yes
  12646. ;;
  12647. esac
  12648. shlibpath_var=LD_LIBRARY_PATH
  12649. case $host_os in
  12650. freebsd2*)
  12651. shlibpath_overrides_runpath=yes
  12652. ;;
  12653. freebsd3.[01]* | freebsdelf3.[01]*)
  12654. shlibpath_overrides_runpath=yes
  12655. hardcode_into_libs=yes
  12656. ;;
  12657. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12658. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12659. shlibpath_overrides_runpath=no
  12660. hardcode_into_libs=yes
  12661. ;;
  12662. *) # from 4.6 on, and DragonFly
  12663. shlibpath_overrides_runpath=yes
  12664. hardcode_into_libs=yes
  12665. ;;
  12666. esac
  12667. ;;
  12668. gnu*)
  12669. version_type=linux
  12670. need_lib_prefix=no
  12671. need_version=no
  12672. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12673. soname_spec='${libname}${release}${shared_ext}$major'
  12674. shlibpath_var=LD_LIBRARY_PATH
  12675. hardcode_into_libs=yes
  12676. ;;
  12677. hpux9* | hpux10* | hpux11*)
  12678. # Give a soname corresponding to the major version so that dld.sl refuses to
  12679. # link against other versions.
  12680. version_type=sunos
  12681. need_lib_prefix=no
  12682. need_version=no
  12683. case $host_cpu in
  12684. ia64*)
  12685. shrext_cmds='.so'
  12686. hardcode_into_libs=yes
  12687. dynamic_linker="$host_os dld.so"
  12688. shlibpath_var=LD_LIBRARY_PATH
  12689. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12691. soname_spec='${libname}${release}${shared_ext}$major'
  12692. if test "X$HPUX_IA64_MODE" = X32; then
  12693. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12694. else
  12695. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12696. fi
  12697. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12698. ;;
  12699. hppa*64*)
  12700. shrext_cmds='.sl'
  12701. hardcode_into_libs=yes
  12702. dynamic_linker="$host_os dld.sl"
  12703. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12704. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12705. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12706. soname_spec='${libname}${release}${shared_ext}$major'
  12707. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12708. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12709. ;;
  12710. *)
  12711. shrext_cmds='.sl'
  12712. dynamic_linker="$host_os dld.sl"
  12713. shlibpath_var=SHLIB_PATH
  12714. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12715. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12716. soname_spec='${libname}${release}${shared_ext}$major'
  12717. ;;
  12718. esac
  12719. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12720. postinstall_cmds='chmod 555 $lib'
  12721. ;;
  12722. interix[3-9]*)
  12723. version_type=linux
  12724. need_lib_prefix=no
  12725. need_version=no
  12726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12727. soname_spec='${libname}${release}${shared_ext}$major'
  12728. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12729. shlibpath_var=LD_LIBRARY_PATH
  12730. shlibpath_overrides_runpath=no
  12731. hardcode_into_libs=yes
  12732. ;;
  12733. irix5* | irix6* | nonstopux*)
  12734. case $host_os in
  12735. nonstopux*) version_type=nonstopux ;;
  12736. *)
  12737. if test "$lt_cv_prog_gnu_ld" = yes; then
  12738. version_type=linux
  12739. else
  12740. version_type=irix
  12741. fi ;;
  12742. esac
  12743. need_lib_prefix=no
  12744. need_version=no
  12745. soname_spec='${libname}${release}${shared_ext}$major'
  12746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12747. case $host_os in
  12748. irix5* | nonstopux*)
  12749. libsuff= shlibsuff=
  12750. ;;
  12751. *)
  12752. case $LD in # libtool.m4 will add one of these switches to LD
  12753. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12754. libsuff= shlibsuff= libmagic=32-bit;;
  12755. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12756. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12757. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12758. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12759. *) libsuff= shlibsuff= libmagic=never-match;;
  12760. esac
  12761. ;;
  12762. esac
  12763. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12764. shlibpath_overrides_runpath=no
  12765. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12766. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12767. hardcode_into_libs=yes
  12768. ;;
  12769. # No shared lib support for Linux oldld, aout, or coff.
  12770. linux*oldld* | linux*aout* | linux*coff*)
  12771. dynamic_linker=no
  12772. ;;
  12773. # This must be Linux ELF.
  12774. linux* | k*bsd*-gnu)
  12775. version_type=linux
  12776. need_lib_prefix=no
  12777. need_version=no
  12778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12779. soname_spec='${libname}${release}${shared_ext}$major'
  12780. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12781. shlibpath_var=LD_LIBRARY_PATH
  12782. shlibpath_overrides_runpath=no
  12783. # Some binutils ld are patched to set DT_RUNPATH
  12784. save_LDFLAGS=$LDFLAGS
  12785. save_libdir=$libdir
  12786. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12787. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12788. cat >conftest.$ac_ext <<_ACEOF
  12789. /* confdefs.h. */
  12790. _ACEOF
  12791. cat confdefs.h >>conftest.$ac_ext
  12792. cat >>conftest.$ac_ext <<_ACEOF
  12793. /* end confdefs.h. */
  12794. int
  12795. main ()
  12796. {
  12797. ;
  12798. return 0;
  12799. }
  12800. _ACEOF
  12801. rm -f conftest.$ac_objext conftest$ac_exeext
  12802. if { (ac_try="$ac_link"
  12803. case "(($ac_try" in
  12804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12805. *) ac_try_echo=$ac_try;;
  12806. esac
  12807. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12808. $as_echo "$ac_try_echo") >&5
  12809. (eval "$ac_link") 2>conftest.er1
  12810. ac_status=$?
  12811. grep -v '^ *+' conftest.er1 >conftest.err
  12812. rm -f conftest.er1
  12813. cat conftest.err >&5
  12814. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12815. (exit $ac_status); } && {
  12816. test -z "$ac_cxx_werror_flag" ||
  12817. test ! -s conftest.err
  12818. } && test -s conftest$ac_exeext && {
  12819. test "$cross_compiling" = yes ||
  12820. $as_test_x conftest$ac_exeext
  12821. }; then
  12822. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  12823. shlibpath_overrides_runpath=yes
  12824. fi
  12825. else
  12826. $as_echo "$as_me: failed program was:" >&5
  12827. sed 's/^/| /' conftest.$ac_ext >&5
  12828. fi
  12829. rm -rf conftest.dSYM
  12830. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12831. conftest$ac_exeext conftest.$ac_ext
  12832. LDFLAGS=$save_LDFLAGS
  12833. libdir=$save_libdir
  12834. # This implies no fast_install, which is unacceptable.
  12835. # Some rework will be needed to allow for fast_install
  12836. # before this can be enabled.
  12837. hardcode_into_libs=yes
  12838. # Append ld.so.conf contents to the search path
  12839. if test -f /etc/ld.so.conf; then
  12840. 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' ' '`
  12841. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12842. fi
  12843. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12844. # powerpc, because MkLinux only supported shared libraries with the
  12845. # GNU dynamic linker. Since this was broken with cross compilers,
  12846. # most powerpc-linux boxes support dynamic linking these days and
  12847. # people can always --disable-shared, the test was removed, and we
  12848. # assume the GNU/Linux dynamic linker is in use.
  12849. dynamic_linker='GNU/Linux ld.so'
  12850. ;;
  12851. netbsdelf*-gnu)
  12852. version_type=linux
  12853. need_lib_prefix=no
  12854. need_version=no
  12855. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12856. soname_spec='${libname}${release}${shared_ext}$major'
  12857. shlibpath_var=LD_LIBRARY_PATH
  12858. shlibpath_overrides_runpath=no
  12859. hardcode_into_libs=yes
  12860. dynamic_linker='NetBSD ld.elf_so'
  12861. ;;
  12862. netbsd*)
  12863. version_type=sunos
  12864. need_lib_prefix=no
  12865. need_version=no
  12866. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12868. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12869. dynamic_linker='NetBSD (a.out) ld.so'
  12870. else
  12871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12872. soname_spec='${libname}${release}${shared_ext}$major'
  12873. dynamic_linker='NetBSD ld.elf_so'
  12874. fi
  12875. shlibpath_var=LD_LIBRARY_PATH
  12876. shlibpath_overrides_runpath=yes
  12877. hardcode_into_libs=yes
  12878. ;;
  12879. newsos6)
  12880. version_type=linux
  12881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12882. shlibpath_var=LD_LIBRARY_PATH
  12883. shlibpath_overrides_runpath=yes
  12884. ;;
  12885. *nto* | *qnx*)
  12886. version_type=qnx
  12887. need_lib_prefix=no
  12888. need_version=no
  12889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12890. soname_spec='${libname}${release}${shared_ext}$major'
  12891. shlibpath_var=LD_LIBRARY_PATH
  12892. shlibpath_overrides_runpath=no
  12893. hardcode_into_libs=yes
  12894. dynamic_linker='ldqnx.so'
  12895. ;;
  12896. openbsd*)
  12897. version_type=sunos
  12898. sys_lib_dlsearch_path_spec="/usr/lib"
  12899. need_lib_prefix=no
  12900. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12901. case $host_os in
  12902. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12903. *) need_version=no ;;
  12904. esac
  12905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12906. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12907. shlibpath_var=LD_LIBRARY_PATH
  12908. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12909. case $host_os in
  12910. openbsd2.[89] | openbsd2.[89].*)
  12911. shlibpath_overrides_runpath=no
  12912. ;;
  12913. *)
  12914. shlibpath_overrides_runpath=yes
  12915. ;;
  12916. esac
  12917. else
  12918. shlibpath_overrides_runpath=yes
  12919. fi
  12920. ;;
  12921. os2*)
  12922. libname_spec='$name'
  12923. shrext_cmds=".dll"
  12924. need_lib_prefix=no
  12925. library_names_spec='$libname${shared_ext} $libname.a'
  12926. dynamic_linker='OS/2 ld.exe'
  12927. shlibpath_var=LIBPATH
  12928. ;;
  12929. osf3* | osf4* | osf5*)
  12930. version_type=osf
  12931. need_lib_prefix=no
  12932. need_version=no
  12933. soname_spec='${libname}${release}${shared_ext}$major'
  12934. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12935. shlibpath_var=LD_LIBRARY_PATH
  12936. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12937. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12938. ;;
  12939. rdos*)
  12940. dynamic_linker=no
  12941. ;;
  12942. solaris*)
  12943. version_type=linux
  12944. need_lib_prefix=no
  12945. need_version=no
  12946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12947. soname_spec='${libname}${release}${shared_ext}$major'
  12948. shlibpath_var=LD_LIBRARY_PATH
  12949. shlibpath_overrides_runpath=yes
  12950. hardcode_into_libs=yes
  12951. # ldd complains unless libraries are executable
  12952. postinstall_cmds='chmod +x $lib'
  12953. ;;
  12954. sunos4*)
  12955. version_type=sunos
  12956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12957. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12958. shlibpath_var=LD_LIBRARY_PATH
  12959. shlibpath_overrides_runpath=yes
  12960. if test "$with_gnu_ld" = yes; then
  12961. need_lib_prefix=no
  12962. fi
  12963. need_version=yes
  12964. ;;
  12965. sysv4 | sysv4.3*)
  12966. version_type=linux
  12967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12968. soname_spec='${libname}${release}${shared_ext}$major'
  12969. shlibpath_var=LD_LIBRARY_PATH
  12970. case $host_vendor in
  12971. sni)
  12972. shlibpath_overrides_runpath=no
  12973. need_lib_prefix=no
  12974. runpath_var=LD_RUN_PATH
  12975. ;;
  12976. siemens)
  12977. need_lib_prefix=no
  12978. ;;
  12979. motorola)
  12980. need_lib_prefix=no
  12981. need_version=no
  12982. shlibpath_overrides_runpath=no
  12983. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12984. ;;
  12985. esac
  12986. ;;
  12987. sysv4*MP*)
  12988. if test -d /usr/nec ;then
  12989. version_type=linux
  12990. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12991. soname_spec='$libname${shared_ext}.$major'
  12992. shlibpath_var=LD_LIBRARY_PATH
  12993. fi
  12994. ;;
  12995. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12996. version_type=freebsd-elf
  12997. need_lib_prefix=no
  12998. need_version=no
  12999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13000. soname_spec='${libname}${release}${shared_ext}$major'
  13001. shlibpath_var=LD_LIBRARY_PATH
  13002. shlibpath_overrides_runpath=yes
  13003. hardcode_into_libs=yes
  13004. if test "$with_gnu_ld" = yes; then
  13005. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13006. else
  13007. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13008. case $host_os in
  13009. sco3.2v5*)
  13010. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13011. ;;
  13012. esac
  13013. fi
  13014. sys_lib_dlsearch_path_spec='/usr/lib'
  13015. ;;
  13016. tpf*)
  13017. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13018. version_type=linux
  13019. need_lib_prefix=no
  13020. need_version=no
  13021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13022. shlibpath_var=LD_LIBRARY_PATH
  13023. shlibpath_overrides_runpath=no
  13024. hardcode_into_libs=yes
  13025. ;;
  13026. uts4*)
  13027. version_type=linux
  13028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13029. soname_spec='${libname}${release}${shared_ext}$major'
  13030. shlibpath_var=LD_LIBRARY_PATH
  13031. ;;
  13032. *)
  13033. dynamic_linker=no
  13034. ;;
  13035. esac
  13036. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13037. $as_echo "$dynamic_linker" >&6; }
  13038. test "$dynamic_linker" = no && can_build_shared=no
  13039. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13040. if test "$GCC" = yes; then
  13041. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13042. fi
  13043. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13044. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13045. fi
  13046. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13047. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13048. fi
  13049. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13050. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13051. hardcode_action_CXX=
  13052. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13053. test -n "$runpath_var_CXX" ||
  13054. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13055. # We can hardcode non-existent directories.
  13056. if test "$hardcode_direct_CXX" != no &&
  13057. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13058. # have to relink, otherwise we might link with an installed library
  13059. # when we should be linking with a yet-to-be-installed one
  13060. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13061. test "$hardcode_minus_L_CXX" != no; then
  13062. # Linking always hardcodes the temporary library directory.
  13063. hardcode_action_CXX=relink
  13064. else
  13065. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13066. hardcode_action_CXX=immediate
  13067. fi
  13068. else
  13069. # We cannot hardcode anything, or else we can only hardcode existing
  13070. # directories.
  13071. hardcode_action_CXX=unsupported
  13072. fi
  13073. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13074. $as_echo "$hardcode_action_CXX" >&6; }
  13075. if test "$hardcode_action_CXX" = relink ||
  13076. test "$inherit_rpath_CXX" = yes; then
  13077. # Fast installation is not supported
  13078. enable_fast_install=no
  13079. elif test "$shlibpath_overrides_runpath" = yes ||
  13080. test "$enable_shared" = no; then
  13081. # Fast installation is not necessary
  13082. enable_fast_install=needless
  13083. fi
  13084. fi # test -n "$compiler"
  13085. CC=$lt_save_CC
  13086. LDCXX=$LD
  13087. LD=$lt_save_LD
  13088. GCC=$lt_save_GCC
  13089. with_gnu_ld=$lt_save_with_gnu_ld
  13090. lt_cv_path_LDCXX=$lt_cv_path_LD
  13091. lt_cv_path_LD=$lt_save_path_LD
  13092. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13093. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13094. fi # test "$_lt_caught_CXX_error" != yes
  13095. ac_ext=cpp
  13096. ac_cpp='$CXXCPP $CPPFLAGS'
  13097. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13098. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13099. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13100. ac_config_commands="$ac_config_commands libtool"
  13101. # Only expand once:
  13102. # Check whether --enable-debug was given.
  13103. if test "${enable_debug+set}" = set; then
  13104. enableval=$enable_debug; if test x$enableval = xyes ; then
  13105. enable_debug="yes"
  13106. else
  13107. enable_debug="no"
  13108. fi
  13109. else
  13110. enable_debug="yes"
  13111. fi
  13112. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  13113. CXXFLAGS="-O0 -ggdb -Wall -Wcast-align -Wpointer-arith"
  13114. fi
  13115. CXXFLAGS="$CXXFLAGS -DDATA_DIR=\\\"\$(pkgdatadir)\\\" -DBIN_DIR=\\\"\$(bindir)\\\" -DLIB_DIR=\\\"\$(pkglibdir)\\\""
  13116. # Check for Boost libraries
  13117. # Check whether --with-boost was given.
  13118. if test "${with_boost+set}" = set; then
  13119. withval=$with_boost;
  13120. if test "$withval" = "no"; then
  13121. want_boost="no"
  13122. elif test "$withval" = "yes"; then
  13123. want_boost="yes"
  13124. ac_boost_path=""
  13125. else
  13126. want_boost="yes"
  13127. ac_boost_path="$withval"
  13128. fi
  13129. else
  13130. want_boost="yes"
  13131. fi
  13132. # Check whether --with-boost-libdir was given.
  13133. if test "${with_boost_libdir+set}" = set; then
  13134. withval=$with_boost_libdir;
  13135. if test -d $withval
  13136. then
  13137. ac_boost_lib_path="$withval"
  13138. else
  13139. { { $as_echo "$as_me:$LINENO: error: --with-boost-libdir expected directory name" >&5
  13140. $as_echo "$as_me: error: --with-boost-libdir expected directory name" >&2;}
  13141. { (exit 1); exit 1; }; }
  13142. fi
  13143. else
  13144. ac_boost_lib_path=""
  13145. fi
  13146. if test "x$want_boost" = "xyes"; then
  13147. boost_lib_version_req=1.36
  13148. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  13149. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  13150. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  13151. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  13152. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  13153. boost_lib_version_req_sub_minor="0"
  13154. fi
  13155. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  13156. { $as_echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
  13157. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  13158. succeeded=no
  13159. if test "$ac_boost_path" != ""; then
  13160. BOOST_LDFLAGS="-L$ac_boost_path/lib"
  13161. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  13162. else
  13163. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  13164. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  13165. BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
  13166. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  13167. break;
  13168. fi
  13169. done
  13170. fi
  13171. if test "$ac_boost_lib_path" != ""; then
  13172. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  13173. fi
  13174. CPPFLAGS_SAVED="$CPPFLAGS"
  13175. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13176. export CPPFLAGS
  13177. LDFLAGS_SAVED="$LDFLAGS"
  13178. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13179. export LDFLAGS
  13180. ac_ext=cpp
  13181. ac_cpp='$CXXCPP $CPPFLAGS'
  13182. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13183. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13184. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13185. cat >conftest.$ac_ext <<_ACEOF
  13186. /* confdefs.h. */
  13187. _ACEOF
  13188. cat confdefs.h >>conftest.$ac_ext
  13189. cat >>conftest.$ac_ext <<_ACEOF
  13190. /* end confdefs.h. */
  13191. #include <boost/version.hpp>
  13192. int
  13193. main ()
  13194. {
  13195. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13196. // Everything is okay
  13197. #else
  13198. # error Boost version is too old
  13199. #endif
  13200. ;
  13201. return 0;
  13202. }
  13203. _ACEOF
  13204. rm -f conftest.$ac_objext
  13205. if { (ac_try="$ac_compile"
  13206. case "(($ac_try" in
  13207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13208. *) ac_try_echo=$ac_try;;
  13209. esac
  13210. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13211. $as_echo "$ac_try_echo") >&5
  13212. (eval "$ac_compile") 2>conftest.er1
  13213. ac_status=$?
  13214. grep -v '^ *+' conftest.er1 >conftest.err
  13215. rm -f conftest.er1
  13216. cat conftest.err >&5
  13217. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13218. (exit $ac_status); } && {
  13219. test -z "$ac_cxx_werror_flag" ||
  13220. test ! -s conftest.err
  13221. } && test -s conftest.$ac_objext; then
  13222. { $as_echo "$as_me:$LINENO: result: yes" >&5
  13223. $as_echo "yes" >&6; }
  13224. succeeded=yes
  13225. found_system=yes
  13226. else
  13227. $as_echo "$as_me: failed program was:" >&5
  13228. sed 's/^/| /' conftest.$ac_ext >&5
  13229. fi
  13230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13231. ac_ext=cpp
  13232. ac_cpp='$CXXCPP $CPPFLAGS'
  13233. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13234. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13235. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13236. if test "x$succeeded" != "xyes"; then
  13237. _version=0
  13238. if test "$ac_boost_path" != ""; then
  13239. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13240. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13241. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13242. V_CHECK=`expr $_version_tmp \> $_version`
  13243. if test "$V_CHECK" = "1" ; then
  13244. _version=$_version_tmp
  13245. fi
  13246. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13247. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  13248. done
  13249. fi
  13250. else
  13251. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  13252. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13253. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13254. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13255. V_CHECK=`expr $_version_tmp \> $_version`
  13256. if test "$V_CHECK" = "1" ; then
  13257. _version=$_version_tmp
  13258. best_path=$ac_boost_path
  13259. fi
  13260. done
  13261. fi
  13262. done
  13263. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13264. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  13265. if test "$ac_boost_lib_path" = ""
  13266. then
  13267. BOOST_LDFLAGS="-L$best_path/lib"
  13268. fi
  13269. if test "x$BOOST_ROOT" != "x"; then
  13270. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
  13271. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  13272. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  13273. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  13274. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  13275. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  13276. { $as_echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
  13277. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  13278. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  13279. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
  13280. fi
  13281. fi
  13282. fi
  13283. fi
  13284. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13285. export CPPFLAGS
  13286. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13287. export LDFLAGS
  13288. ac_ext=cpp
  13289. ac_cpp='$CXXCPP $CPPFLAGS'
  13290. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13291. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13292. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13293. cat >conftest.$ac_ext <<_ACEOF
  13294. /* confdefs.h. */
  13295. _ACEOF
  13296. cat confdefs.h >>conftest.$ac_ext
  13297. cat >>conftest.$ac_ext <<_ACEOF
  13298. /* end confdefs.h. */
  13299. #include <boost/version.hpp>
  13300. int
  13301. main ()
  13302. {
  13303. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13304. // Everything is okay
  13305. #else
  13306. # error Boost version is too old
  13307. #endif
  13308. ;
  13309. return 0;
  13310. }
  13311. _ACEOF
  13312. rm -f conftest.$ac_objext
  13313. if { (ac_try="$ac_compile"
  13314. case "(($ac_try" in
  13315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13316. *) ac_try_echo=$ac_try;;
  13317. esac
  13318. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13319. $as_echo "$ac_try_echo") >&5
  13320. (eval "$ac_compile") 2>conftest.er1
  13321. ac_status=$?
  13322. grep -v '^ *+' conftest.er1 >conftest.err
  13323. rm -f conftest.er1
  13324. cat conftest.err >&5
  13325. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13326. (exit $ac_status); } && {
  13327. test -z "$ac_cxx_werror_flag" ||
  13328. test ! -s conftest.err
  13329. } && test -s conftest.$ac_objext; then
  13330. { $as_echo "$as_me:$LINENO: result: yes" >&5
  13331. $as_echo "yes" >&6; }
  13332. succeeded=yes
  13333. found_system=yes
  13334. else
  13335. $as_echo "$as_me: failed program was:" >&5
  13336. sed 's/^/| /' conftest.$ac_ext >&5
  13337. fi
  13338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13339. ac_ext=cpp
  13340. ac_cpp='$CXXCPP $CPPFLAGS'
  13341. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13342. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13343. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13344. fi
  13345. if test "$succeeded" != "yes" ; then
  13346. if test "$_version" = "0" ; then
  13347. { { $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
  13348. $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;}
  13349. { (exit 1); exit 1; }; }
  13350. else
  13351. { $as_echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
  13352. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  13353. fi
  13354. else
  13355. cat >>confdefs.h <<\_ACEOF
  13356. #define HAVE_BOOST /**/
  13357. _ACEOF
  13358. fi
  13359. CPPFLAGS="$CPPFLAGS_SAVED"
  13360. LDFLAGS="$LDFLAGS_SAVED"
  13361. fi
  13362. # Check whether --with-boost-system was given.
  13363. if test "${with_boost_system+set}" = set; then
  13364. withval=$with_boost_system;
  13365. if test "$withval" = "no"; then
  13366. want_boost="no"
  13367. elif test "$withval" = "yes"; then
  13368. want_boost="yes"
  13369. ax_boost_user_system_lib=""
  13370. else
  13371. want_boost="yes"
  13372. ax_boost_user_system_lib="$withval"
  13373. fi
  13374. else
  13375. want_boost="yes"
  13376. fi
  13377. if test "x$want_boost" = "xyes"; then
  13378. CPPFLAGS_SAVED="$CPPFLAGS"
  13379. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13380. export CPPFLAGS
  13381. LDFLAGS_SAVED="$LDFLAGS"
  13382. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13383. export LDFLAGS
  13384. { $as_echo "$as_me:$LINENO: checking whether the Boost::System library is available" >&5
  13385. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  13386. if test "${ax_cv_boost_system+set}" = set; then
  13387. $as_echo_n "(cached) " >&6
  13388. else
  13389. ac_ext=cpp
  13390. ac_cpp='$CXXCPP $CPPFLAGS'
  13391. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13392. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13393. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13394. CXXFLAGS_SAVE=$CXXFLAGS
  13395. cat >conftest.$ac_ext <<_ACEOF
  13396. /* confdefs.h. */
  13397. _ACEOF
  13398. cat confdefs.h >>conftest.$ac_ext
  13399. cat >>conftest.$ac_ext <<_ACEOF
  13400. /* end confdefs.h. */
  13401. #include <boost/system/error_code.hpp>
  13402. int
  13403. main ()
  13404. {
  13405. boost::system::system_category
  13406. ;
  13407. return 0;
  13408. }
  13409. _ACEOF
  13410. rm -f conftest.$ac_objext
  13411. if { (ac_try="$ac_compile"
  13412. case "(($ac_try" in
  13413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13414. *) ac_try_echo=$ac_try;;
  13415. esac
  13416. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13417. $as_echo "$ac_try_echo") >&5
  13418. (eval "$ac_compile") 2>conftest.er1
  13419. ac_status=$?
  13420. grep -v '^ *+' conftest.er1 >conftest.err
  13421. rm -f conftest.er1
  13422. cat conftest.err >&5
  13423. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13424. (exit $ac_status); } && {
  13425. test -z "$ac_cxx_werror_flag" ||
  13426. test ! -s conftest.err
  13427. } && test -s conftest.$ac_objext; then
  13428. ax_cv_boost_system=yes
  13429. else
  13430. $as_echo "$as_me: failed program was:" >&5
  13431. sed 's/^/| /' conftest.$ac_ext >&5
  13432. ax_cv_boost_system=no
  13433. fi
  13434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13435. CXXFLAGS=$CXXFLAGS_SAVE
  13436. ac_ext=cpp
  13437. ac_cpp='$CXXCPP $CPPFLAGS'
  13438. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13439. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13440. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13441. fi
  13442. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_system" >&5
  13443. $as_echo "$ax_cv_boost_system" >&6; }
  13444. if test "x$ax_cv_boost_system" = "xyes"; then
  13445. cat >>confdefs.h <<\_ACEOF
  13446. #define HAVE_BOOST_SYSTEM /**/
  13447. _ACEOF
  13448. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13449. LDFLAGS_SAVE=$LDFLAGS
  13450. if test "x$ax_boost_user_system_lib" = "x"; then
  13451. 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
  13452. ax_lib=${libextension}
  13453. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13454. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13455. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13456. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13457. $as_echo_n "(cached) " >&6
  13458. else
  13459. ac_check_lib_save_LIBS=$LIBS
  13460. LIBS="-l$ax_lib $LIBS"
  13461. cat >conftest.$ac_ext <<_ACEOF
  13462. /* confdefs.h. */
  13463. _ACEOF
  13464. cat confdefs.h >>conftest.$ac_ext
  13465. cat >>conftest.$ac_ext <<_ACEOF
  13466. /* end confdefs.h. */
  13467. /* Override any GCC internal prototype to avoid an error.
  13468. Use char because int might match the return type of a GCC
  13469. builtin and then its argument prototype would still apply. */
  13470. #ifdef __cplusplus
  13471. extern "C"
  13472. #endif
  13473. char exit ();
  13474. int
  13475. main ()
  13476. {
  13477. return exit ();
  13478. ;
  13479. return 0;
  13480. }
  13481. _ACEOF
  13482. rm -f conftest.$ac_objext conftest$ac_exeext
  13483. if { (ac_try="$ac_link"
  13484. case "(($ac_try" in
  13485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13486. *) ac_try_echo=$ac_try;;
  13487. esac
  13488. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13489. $as_echo "$ac_try_echo") >&5
  13490. (eval "$ac_link") 2>conftest.er1
  13491. ac_status=$?
  13492. grep -v '^ *+' conftest.er1 >conftest.err
  13493. rm -f conftest.er1
  13494. cat conftest.err >&5
  13495. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13496. (exit $ac_status); } && {
  13497. test -z "$ac_cxx_werror_flag" ||
  13498. test ! -s conftest.err
  13499. } && test -s conftest$ac_exeext && {
  13500. test "$cross_compiling" = yes ||
  13501. $as_test_x conftest$ac_exeext
  13502. }; then
  13503. eval "$as_ac_Lib=yes"
  13504. else
  13505. $as_echo "$as_me: failed program was:" >&5
  13506. sed 's/^/| /' conftest.$ac_ext >&5
  13507. eval "$as_ac_Lib=no"
  13508. fi
  13509. rm -rf conftest.dSYM
  13510. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13511. conftest$ac_exeext conftest.$ac_ext
  13512. LIBS=$ac_check_lib_save_LIBS
  13513. fi
  13514. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13515. $as_echo "$as_val"'`
  13516. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13517. $as_echo "$ac_res" >&6; }
  13518. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13519. $as_echo "$as_val"'`
  13520. if test "x$as_val" = x""yes; then
  13521. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13522. else
  13523. link_system="no"
  13524. fi
  13525. done
  13526. if test "x$link_system" != "xyes"; then
  13527. 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
  13528. ax_lib=${libextension}
  13529. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13530. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13531. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13532. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13533. $as_echo_n "(cached) " >&6
  13534. else
  13535. ac_check_lib_save_LIBS=$LIBS
  13536. LIBS="-l$ax_lib $LIBS"
  13537. cat >conftest.$ac_ext <<_ACEOF
  13538. /* confdefs.h. */
  13539. _ACEOF
  13540. cat confdefs.h >>conftest.$ac_ext
  13541. cat >>conftest.$ac_ext <<_ACEOF
  13542. /* end confdefs.h. */
  13543. /* Override any GCC internal prototype to avoid an error.
  13544. Use char because int might match the return type of a GCC
  13545. builtin and then its argument prototype would still apply. */
  13546. #ifdef __cplusplus
  13547. extern "C"
  13548. #endif
  13549. char exit ();
  13550. int
  13551. main ()
  13552. {
  13553. return exit ();
  13554. ;
  13555. return 0;
  13556. }
  13557. _ACEOF
  13558. rm -f conftest.$ac_objext conftest$ac_exeext
  13559. if { (ac_try="$ac_link"
  13560. case "(($ac_try" in
  13561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13562. *) ac_try_echo=$ac_try;;
  13563. esac
  13564. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13565. $as_echo "$ac_try_echo") >&5
  13566. (eval "$ac_link") 2>conftest.er1
  13567. ac_status=$?
  13568. grep -v '^ *+' conftest.er1 >conftest.err
  13569. rm -f conftest.er1
  13570. cat conftest.err >&5
  13571. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13572. (exit $ac_status); } && {
  13573. test -z "$ac_cxx_werror_flag" ||
  13574. test ! -s conftest.err
  13575. } && test -s conftest$ac_exeext && {
  13576. test "$cross_compiling" = yes ||
  13577. $as_test_x conftest$ac_exeext
  13578. }; then
  13579. eval "$as_ac_Lib=yes"
  13580. else
  13581. $as_echo "$as_me: failed program was:" >&5
  13582. sed 's/^/| /' conftest.$ac_ext >&5
  13583. eval "$as_ac_Lib=no"
  13584. fi
  13585. rm -rf conftest.dSYM
  13586. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13587. conftest$ac_exeext conftest.$ac_ext
  13588. LIBS=$ac_check_lib_save_LIBS
  13589. fi
  13590. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13591. $as_echo "$as_val"'`
  13592. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13593. $as_echo "$ac_res" >&6; }
  13594. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13595. $as_echo "$as_val"'`
  13596. if test "x$as_val" = x""yes; then
  13597. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13598. else
  13599. link_system="no"
  13600. fi
  13601. done
  13602. fi
  13603. else
  13604. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  13605. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13606. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13607. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13608. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13609. $as_echo_n "(cached) " >&6
  13610. else
  13611. ac_check_lib_save_LIBS=$LIBS
  13612. LIBS="-l$ax_lib $LIBS"
  13613. cat >conftest.$ac_ext <<_ACEOF
  13614. /* confdefs.h. */
  13615. _ACEOF
  13616. cat confdefs.h >>conftest.$ac_ext
  13617. cat >>conftest.$ac_ext <<_ACEOF
  13618. /* end confdefs.h. */
  13619. /* Override any GCC internal prototype to avoid an error.
  13620. Use char because int might match the return type of a GCC
  13621. builtin and then its argument prototype would still apply. */
  13622. #ifdef __cplusplus
  13623. extern "C"
  13624. #endif
  13625. char exit ();
  13626. int
  13627. main ()
  13628. {
  13629. return exit ();
  13630. ;
  13631. return 0;
  13632. }
  13633. _ACEOF
  13634. rm -f conftest.$ac_objext conftest$ac_exeext
  13635. if { (ac_try="$ac_link"
  13636. case "(($ac_try" in
  13637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13638. *) ac_try_echo=$ac_try;;
  13639. esac
  13640. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13641. $as_echo "$ac_try_echo") >&5
  13642. (eval "$ac_link") 2>conftest.er1
  13643. ac_status=$?
  13644. grep -v '^ *+' conftest.er1 >conftest.err
  13645. rm -f conftest.er1
  13646. cat conftest.err >&5
  13647. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13648. (exit $ac_status); } && {
  13649. test -z "$ac_cxx_werror_flag" ||
  13650. test ! -s conftest.err
  13651. } && test -s conftest$ac_exeext && {
  13652. test "$cross_compiling" = yes ||
  13653. $as_test_x conftest$ac_exeext
  13654. }; then
  13655. eval "$as_ac_Lib=yes"
  13656. else
  13657. $as_echo "$as_me: failed program was:" >&5
  13658. sed 's/^/| /' conftest.$ac_ext >&5
  13659. eval "$as_ac_Lib=no"
  13660. fi
  13661. rm -rf conftest.dSYM
  13662. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13663. conftest$ac_exeext conftest.$ac_ext
  13664. LIBS=$ac_check_lib_save_LIBS
  13665. fi
  13666. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13667. $as_echo "$as_val"'`
  13668. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13669. $as_echo "$ac_res" >&6; }
  13670. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13671. $as_echo "$as_val"'`
  13672. if test "x$as_val" = x""yes; then
  13673. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13674. else
  13675. link_system="no"
  13676. fi
  13677. done
  13678. fi
  13679. if test "x$link_system" = "xno"; then
  13680. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  13681. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  13682. { (exit 1); exit 1; }; }
  13683. fi
  13684. fi
  13685. CPPFLAGS="$CPPFLAGS_SAVED"
  13686. LDFLAGS="$LDFLAGS_SAVED"
  13687. fi
  13688. # Check whether --with-boost-filesystem was given.
  13689. if test "${with_boost_filesystem+set}" = set; then
  13690. withval=$with_boost_filesystem;
  13691. if test "$withval" = "no"; then
  13692. want_boost="no"
  13693. elif test "$withval" = "yes"; then
  13694. want_boost="yes"
  13695. ax_boost_user_filesystem_lib=""
  13696. else
  13697. want_boost="yes"
  13698. ax_boost_user_filesystem_lib="$withval"
  13699. fi
  13700. else
  13701. want_boost="yes"
  13702. fi
  13703. if test "x$want_boost" = "xyes"; then
  13704. CPPFLAGS_SAVED="$CPPFLAGS"
  13705. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13706. export CPPFLAGS
  13707. LDFLAGS_SAVED="$LDFLAGS"
  13708. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13709. export LDFLAGS
  13710. { $as_echo "$as_me:$LINENO: checking whether the Boost::Filesystem library is available" >&5
  13711. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  13712. if test "${ax_cv_boost_filesystem+set}" = set; then
  13713. $as_echo_n "(cached) " >&6
  13714. else
  13715. ac_ext=cpp
  13716. ac_cpp='$CXXCPP $CPPFLAGS'
  13717. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13718. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13719. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13720. cat >conftest.$ac_ext <<_ACEOF
  13721. /* confdefs.h. */
  13722. _ACEOF
  13723. cat confdefs.h >>conftest.$ac_ext
  13724. cat >>conftest.$ac_ext <<_ACEOF
  13725. /* end confdefs.h. */
  13726. #include <boost/filesystem/path.hpp>
  13727. int
  13728. main ()
  13729. {
  13730. using namespace boost::filesystem;
  13731. path my_path( "foo/bar/data.txt" );
  13732. return 0;
  13733. ;
  13734. return 0;
  13735. }
  13736. _ACEOF
  13737. rm -f conftest.$ac_objext
  13738. if { (ac_try="$ac_compile"
  13739. case "(($ac_try" in
  13740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13741. *) ac_try_echo=$ac_try;;
  13742. esac
  13743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13744. $as_echo "$ac_try_echo") >&5
  13745. (eval "$ac_compile") 2>conftest.er1
  13746. ac_status=$?
  13747. grep -v '^ *+' conftest.er1 >conftest.err
  13748. rm -f conftest.er1
  13749. cat conftest.err >&5
  13750. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13751. (exit $ac_status); } && {
  13752. test -z "$ac_cxx_werror_flag" ||
  13753. test ! -s conftest.err
  13754. } && test -s conftest.$ac_objext; then
  13755. ax_cv_boost_filesystem=yes
  13756. else
  13757. $as_echo "$as_me: failed program was:" >&5
  13758. sed 's/^/| /' conftest.$ac_ext >&5
  13759. ax_cv_boost_filesystem=no
  13760. fi
  13761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13762. ac_ext=cpp
  13763. ac_cpp='$CXXCPP $CPPFLAGS'
  13764. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13765. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13766. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13767. fi
  13768. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_filesystem" >&5
  13769. $as_echo "$ax_cv_boost_filesystem" >&6; }
  13770. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  13771. cat >>confdefs.h <<\_ACEOF
  13772. #define HAVE_BOOST_FILESYSTEM /**/
  13773. _ACEOF
  13774. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13775. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  13776. 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
  13777. ax_lib=${libextension}
  13778. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13779. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13780. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13781. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13782. $as_echo_n "(cached) " >&6
  13783. else
  13784. ac_check_lib_save_LIBS=$LIBS
  13785. LIBS="-l$ax_lib $LIBS"
  13786. cat >conftest.$ac_ext <<_ACEOF
  13787. /* confdefs.h. */
  13788. _ACEOF
  13789. cat confdefs.h >>conftest.$ac_ext
  13790. cat >>conftest.$ac_ext <<_ACEOF
  13791. /* end confdefs.h. */
  13792. /* Override any GCC internal prototype to avoid an error.
  13793. Use char because int might match the return type of a GCC
  13794. builtin and then its argument prototype would still apply. */
  13795. #ifdef __cplusplus
  13796. extern "C"
  13797. #endif
  13798. char exit ();
  13799. int
  13800. main ()
  13801. {
  13802. return exit ();
  13803. ;
  13804. return 0;
  13805. }
  13806. _ACEOF
  13807. rm -f conftest.$ac_objext conftest$ac_exeext
  13808. if { (ac_try="$ac_link"
  13809. case "(($ac_try" in
  13810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13811. *) ac_try_echo=$ac_try;;
  13812. esac
  13813. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13814. $as_echo "$ac_try_echo") >&5
  13815. (eval "$ac_link") 2>conftest.er1
  13816. ac_status=$?
  13817. grep -v '^ *+' conftest.er1 >conftest.err
  13818. rm -f conftest.er1
  13819. cat conftest.err >&5
  13820. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13821. (exit $ac_status); } && {
  13822. test -z "$ac_cxx_werror_flag" ||
  13823. test ! -s conftest.err
  13824. } && test -s conftest$ac_exeext && {
  13825. test "$cross_compiling" = yes ||
  13826. $as_test_x conftest$ac_exeext
  13827. }; then
  13828. eval "$as_ac_Lib=yes"
  13829. else
  13830. $as_echo "$as_me: failed program was:" >&5
  13831. sed 's/^/| /' conftest.$ac_ext >&5
  13832. eval "$as_ac_Lib=no"
  13833. fi
  13834. rm -rf conftest.dSYM
  13835. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13836. conftest$ac_exeext conftest.$ac_ext
  13837. LIBS=$ac_check_lib_save_LIBS
  13838. fi
  13839. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13840. $as_echo "$as_val"'`
  13841. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13842. $as_echo "$ac_res" >&6; }
  13843. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13844. $as_echo "$as_val"'`
  13845. if test "x$as_val" = x""yes; then
  13846. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13847. else
  13848. link_filesystem="no"
  13849. fi
  13850. done
  13851. if test "x$link_program_options" != "xyes"; then
  13852. 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
  13853. ax_lib=${libextension}
  13854. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13855. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13856. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13857. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13858. $as_echo_n "(cached) " >&6
  13859. else
  13860. ac_check_lib_save_LIBS=$LIBS
  13861. LIBS="-l$ax_lib $LIBS"
  13862. cat >conftest.$ac_ext <<_ACEOF
  13863. /* confdefs.h. */
  13864. _ACEOF
  13865. cat confdefs.h >>conftest.$ac_ext
  13866. cat >>conftest.$ac_ext <<_ACEOF
  13867. /* end confdefs.h. */
  13868. /* Override any GCC internal prototype to avoid an error.
  13869. Use char because int might match the return type of a GCC
  13870. builtin and then its argument prototype would still apply. */
  13871. #ifdef __cplusplus
  13872. extern "C"
  13873. #endif
  13874. char exit ();
  13875. int
  13876. main ()
  13877. {
  13878. return exit ();
  13879. ;
  13880. return 0;
  13881. }
  13882. _ACEOF
  13883. rm -f conftest.$ac_objext conftest$ac_exeext
  13884. if { (ac_try="$ac_link"
  13885. case "(($ac_try" in
  13886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13887. *) ac_try_echo=$ac_try;;
  13888. esac
  13889. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13890. $as_echo "$ac_try_echo") >&5
  13891. (eval "$ac_link") 2>conftest.er1
  13892. ac_status=$?
  13893. grep -v '^ *+' conftest.er1 >conftest.err
  13894. rm -f conftest.er1
  13895. cat conftest.err >&5
  13896. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13897. (exit $ac_status); } && {
  13898. test -z "$ac_cxx_werror_flag" ||
  13899. test ! -s conftest.err
  13900. } && test -s conftest$ac_exeext && {
  13901. test "$cross_compiling" = yes ||
  13902. $as_test_x conftest$ac_exeext
  13903. }; then
  13904. eval "$as_ac_Lib=yes"
  13905. else
  13906. $as_echo "$as_me: failed program was:" >&5
  13907. sed 's/^/| /' conftest.$ac_ext >&5
  13908. eval "$as_ac_Lib=no"
  13909. fi
  13910. rm -rf conftest.dSYM
  13911. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13912. conftest$ac_exeext conftest.$ac_ext
  13913. LIBS=$ac_check_lib_save_LIBS
  13914. fi
  13915. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13916. $as_echo "$as_val"'`
  13917. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13918. $as_echo "$ac_res" >&6; }
  13919. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13920. $as_echo "$as_val"'`
  13921. if test "x$as_val" = x""yes; then
  13922. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13923. else
  13924. link_filesystem="no"
  13925. fi
  13926. done
  13927. fi
  13928. else
  13929. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13930. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13931. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13932. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13933. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13934. $as_echo_n "(cached) " >&6
  13935. else
  13936. ac_check_lib_save_LIBS=$LIBS
  13937. LIBS="-l$ax_lib $LIBS"
  13938. cat >conftest.$ac_ext <<_ACEOF
  13939. /* confdefs.h. */
  13940. _ACEOF
  13941. cat confdefs.h >>conftest.$ac_ext
  13942. cat >>conftest.$ac_ext <<_ACEOF
  13943. /* end confdefs.h. */
  13944. /* Override any GCC internal prototype to avoid an error.
  13945. Use char because int might match the return type of a GCC
  13946. builtin and then its argument prototype would still apply. */
  13947. #ifdef __cplusplus
  13948. extern "C"
  13949. #endif
  13950. char exit ();
  13951. int
  13952. main ()
  13953. {
  13954. return exit ();
  13955. ;
  13956. return 0;
  13957. }
  13958. _ACEOF
  13959. rm -f conftest.$ac_objext conftest$ac_exeext
  13960. if { (ac_try="$ac_link"
  13961. case "(($ac_try" in
  13962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13963. *) ac_try_echo=$ac_try;;
  13964. esac
  13965. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13966. $as_echo "$ac_try_echo") >&5
  13967. (eval "$ac_link") 2>conftest.er1
  13968. ac_status=$?
  13969. grep -v '^ *+' conftest.er1 >conftest.err
  13970. rm -f conftest.er1
  13971. cat conftest.err >&5
  13972. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13973. (exit $ac_status); } && {
  13974. test -z "$ac_cxx_werror_flag" ||
  13975. test ! -s conftest.err
  13976. } && test -s conftest$ac_exeext && {
  13977. test "$cross_compiling" = yes ||
  13978. $as_test_x conftest$ac_exeext
  13979. }; then
  13980. eval "$as_ac_Lib=yes"
  13981. else
  13982. $as_echo "$as_me: failed program was:" >&5
  13983. sed 's/^/| /' conftest.$ac_ext >&5
  13984. eval "$as_ac_Lib=no"
  13985. fi
  13986. rm -rf conftest.dSYM
  13987. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13988. conftest$ac_exeext conftest.$ac_ext
  13989. LIBS=$ac_check_lib_save_LIBS
  13990. fi
  13991. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13992. $as_echo "$as_val"'`
  13993. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13994. $as_echo "$ac_res" >&6; }
  13995. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13996. $as_echo "$as_val"'`
  13997. if test "x$as_val" = x""yes; then
  13998. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13999. else
  14000. link_filesystem="no"
  14001. fi
  14002. done
  14003. fi
  14004. if test "x$link_filesystem" != "xyes"; then
  14005. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14006. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14007. { (exit 1); exit 1; }; }
  14008. fi
  14009. fi
  14010. CPPFLAGS="$CPPFLAGS_SAVED"
  14011. LDFLAGS="$LDFLAGS_SAVED"
  14012. fi
  14013. # Check whether --with-boost-thread was given.
  14014. if test "${with_boost_thread+set}" = set; then
  14015. withval=$with_boost_thread;
  14016. if test "$withval" = "no"; then
  14017. want_boost="no"
  14018. elif test "$withval" = "yes"; then
  14019. want_boost="yes"
  14020. ax_boost_user_thread_lib=""
  14021. else
  14022. want_boost="yes"
  14023. ax_boost_user_thread_lib="$withval"
  14024. fi
  14025. else
  14026. want_boost="yes"
  14027. fi
  14028. if test "x$want_boost" = "xyes"; then
  14029. CPPFLAGS_SAVED="$CPPFLAGS"
  14030. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14031. export CPPFLAGS
  14032. LDFLAGS_SAVED="$LDFLAGS"
  14033. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14034. export LDFLAGS
  14035. { $as_echo "$as_me:$LINENO: checking whether the Boost::Thread library is available" >&5
  14036. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  14037. if test "${ax_cv_boost_thread+set}" = set; then
  14038. $as_echo_n "(cached) " >&6
  14039. else
  14040. ac_ext=cpp
  14041. ac_cpp='$CXXCPP $CPPFLAGS'
  14042. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14043. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14044. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14045. CXXFLAGS_SAVE=$CXXFLAGS
  14046. if test "x$build_os" = "xsolaris" ; then
  14047. CXXFLAGS="-pthreads $CXXFLAGS"
  14048. elif test "x$build_os" = "xming32" ; then
  14049. CXXFLAGS="-mthreads $CXXFLAGS"
  14050. else
  14051. CXXFLAGS="-pthread $CXXFLAGS"
  14052. fi
  14053. cat >conftest.$ac_ext <<_ACEOF
  14054. /* confdefs.h. */
  14055. _ACEOF
  14056. cat confdefs.h >>conftest.$ac_ext
  14057. cat >>conftest.$ac_ext <<_ACEOF
  14058. /* end confdefs.h. */
  14059. #include <boost/thread/thread.hpp>
  14060. int
  14061. main ()
  14062. {
  14063. boost::thread_group thrds;
  14064. return 0;
  14065. ;
  14066. return 0;
  14067. }
  14068. _ACEOF
  14069. rm -f conftest.$ac_objext
  14070. if { (ac_try="$ac_compile"
  14071. case "(($ac_try" in
  14072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14073. *) ac_try_echo=$ac_try;;
  14074. esac
  14075. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14076. $as_echo "$ac_try_echo") >&5
  14077. (eval "$ac_compile") 2>conftest.er1
  14078. ac_status=$?
  14079. grep -v '^ *+' conftest.er1 >conftest.err
  14080. rm -f conftest.er1
  14081. cat conftest.err >&5
  14082. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14083. (exit $ac_status); } && {
  14084. test -z "$ac_cxx_werror_flag" ||
  14085. test ! -s conftest.err
  14086. } && test -s conftest.$ac_objext; then
  14087. ax_cv_boost_thread=yes
  14088. else
  14089. $as_echo "$as_me: failed program was:" >&5
  14090. sed 's/^/| /' conftest.$ac_ext >&5
  14091. ax_cv_boost_thread=no
  14092. fi
  14093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14094. CXXFLAGS=$CXXFLAGS_SAVE
  14095. ac_ext=cpp
  14096. ac_cpp='$CXXCPP $CPPFLAGS'
  14097. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14098. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14099. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14100. fi
  14101. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_thread" >&5
  14102. $as_echo "$ax_cv_boost_thread" >&6; }
  14103. if test "x$ax_cv_boost_thread" = "xyes"; then
  14104. if test "x$build_os" = "xsolaris" ; then
  14105. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  14106. elif test "x$build_os" = "xming32" ; then
  14107. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  14108. else
  14109. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  14110. fi
  14111. cat >>confdefs.h <<\_ACEOF
  14112. #define HAVE_BOOST_THREAD /**/
  14113. _ACEOF
  14114. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14115. LDFLAGS_SAVE=$LDFLAGS
  14116. case "x$build_os" in
  14117. *bsd* )
  14118. LDFLAGS="-pthread $LDFLAGS"
  14119. break;
  14120. ;;
  14121. esac
  14122. if test "x$ax_boost_user_thread_lib" = "x"; then
  14123. 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
  14124. ax_lib=${libextension}
  14125. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14126. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14127. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14128. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14129. $as_echo_n "(cached) " >&6
  14130. else
  14131. ac_check_lib_save_LIBS=$LIBS
  14132. LIBS="-l$ax_lib $LIBS"
  14133. cat >conftest.$ac_ext <<_ACEOF
  14134. /* confdefs.h. */
  14135. _ACEOF
  14136. cat confdefs.h >>conftest.$ac_ext
  14137. cat >>conftest.$ac_ext <<_ACEOF
  14138. /* end confdefs.h. */
  14139. /* Override any GCC internal prototype to avoid an error.
  14140. Use char because int might match the return type of a GCC
  14141. builtin and then its argument prototype would still apply. */
  14142. #ifdef __cplusplus
  14143. extern "C"
  14144. #endif
  14145. char exit ();
  14146. int
  14147. main ()
  14148. {
  14149. return exit ();
  14150. ;
  14151. return 0;
  14152. }
  14153. _ACEOF
  14154. rm -f conftest.$ac_objext conftest$ac_exeext
  14155. if { (ac_try="$ac_link"
  14156. case "(($ac_try" in
  14157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14158. *) ac_try_echo=$ac_try;;
  14159. esac
  14160. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14161. $as_echo "$ac_try_echo") >&5
  14162. (eval "$ac_link") 2>conftest.er1
  14163. ac_status=$?
  14164. grep -v '^ *+' conftest.er1 >conftest.err
  14165. rm -f conftest.er1
  14166. cat conftest.err >&5
  14167. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14168. (exit $ac_status); } && {
  14169. test -z "$ac_cxx_werror_flag" ||
  14170. test ! -s conftest.err
  14171. } && test -s conftest$ac_exeext && {
  14172. test "$cross_compiling" = yes ||
  14173. $as_test_x conftest$ac_exeext
  14174. }; then
  14175. eval "$as_ac_Lib=yes"
  14176. else
  14177. $as_echo "$as_me: failed program was:" >&5
  14178. sed 's/^/| /' conftest.$ac_ext >&5
  14179. eval "$as_ac_Lib=no"
  14180. fi
  14181. rm -rf conftest.dSYM
  14182. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14183. conftest$ac_exeext conftest.$ac_ext
  14184. LIBS=$ac_check_lib_save_LIBS
  14185. fi
  14186. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14187. $as_echo "$as_val"'`
  14188. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14189. $as_echo "$ac_res" >&6; }
  14190. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14191. $as_echo "$as_val"'`
  14192. if test "x$as_val" = x""yes; then
  14193. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14194. else
  14195. link_thread="no"
  14196. fi
  14197. done
  14198. if test "x$link_thread" != "xyes"; then
  14199. 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
  14200. ax_lib=${libextension}
  14201. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14202. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14203. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14204. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14205. $as_echo_n "(cached) " >&6
  14206. else
  14207. ac_check_lib_save_LIBS=$LIBS
  14208. LIBS="-l$ax_lib $LIBS"
  14209. cat >conftest.$ac_ext <<_ACEOF
  14210. /* confdefs.h. */
  14211. _ACEOF
  14212. cat confdefs.h >>conftest.$ac_ext
  14213. cat >>conftest.$ac_ext <<_ACEOF
  14214. /* end confdefs.h. */
  14215. /* Override any GCC internal prototype to avoid an error.
  14216. Use char because int might match the return type of a GCC
  14217. builtin and then its argument prototype would still apply. */
  14218. #ifdef __cplusplus
  14219. extern "C"
  14220. #endif
  14221. char exit ();
  14222. int
  14223. main ()
  14224. {
  14225. return exit ();
  14226. ;
  14227. return 0;
  14228. }
  14229. _ACEOF
  14230. rm -f conftest.$ac_objext conftest$ac_exeext
  14231. if { (ac_try="$ac_link"
  14232. case "(($ac_try" in
  14233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14234. *) ac_try_echo=$ac_try;;
  14235. esac
  14236. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14237. $as_echo "$ac_try_echo") >&5
  14238. (eval "$ac_link") 2>conftest.er1
  14239. ac_status=$?
  14240. grep -v '^ *+' conftest.er1 >conftest.err
  14241. rm -f conftest.er1
  14242. cat conftest.err >&5
  14243. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14244. (exit $ac_status); } && {
  14245. test -z "$ac_cxx_werror_flag" ||
  14246. test ! -s conftest.err
  14247. } && test -s conftest$ac_exeext && {
  14248. test "$cross_compiling" = yes ||
  14249. $as_test_x conftest$ac_exeext
  14250. }; then
  14251. eval "$as_ac_Lib=yes"
  14252. else
  14253. $as_echo "$as_me: failed program was:" >&5
  14254. sed 's/^/| /' conftest.$ac_ext >&5
  14255. eval "$as_ac_Lib=no"
  14256. fi
  14257. rm -rf conftest.dSYM
  14258. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14259. conftest$ac_exeext conftest.$ac_ext
  14260. LIBS=$ac_check_lib_save_LIBS
  14261. fi
  14262. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14263. $as_echo "$as_val"'`
  14264. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14265. $as_echo "$ac_res" >&6; }
  14266. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14267. $as_echo "$as_val"'`
  14268. if test "x$as_val" = x""yes; then
  14269. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14270. else
  14271. link_thread="no"
  14272. fi
  14273. done
  14274. fi
  14275. else
  14276. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  14277. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14278. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14279. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14280. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14281. $as_echo_n "(cached) " >&6
  14282. else
  14283. ac_check_lib_save_LIBS=$LIBS
  14284. LIBS="-l$ax_lib $LIBS"
  14285. cat >conftest.$ac_ext <<_ACEOF
  14286. /* confdefs.h. */
  14287. _ACEOF
  14288. cat confdefs.h >>conftest.$ac_ext
  14289. cat >>conftest.$ac_ext <<_ACEOF
  14290. /* end confdefs.h. */
  14291. /* Override any GCC internal prototype to avoid an error.
  14292. Use char because int might match the return type of a GCC
  14293. builtin and then its argument prototype would still apply. */
  14294. #ifdef __cplusplus
  14295. extern "C"
  14296. #endif
  14297. char exit ();
  14298. int
  14299. main ()
  14300. {
  14301. return exit ();
  14302. ;
  14303. return 0;
  14304. }
  14305. _ACEOF
  14306. rm -f conftest.$ac_objext conftest$ac_exeext
  14307. if { (ac_try="$ac_link"
  14308. case "(($ac_try" in
  14309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14310. *) ac_try_echo=$ac_try;;
  14311. esac
  14312. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14313. $as_echo "$ac_try_echo") >&5
  14314. (eval "$ac_link") 2>conftest.er1
  14315. ac_status=$?
  14316. grep -v '^ *+' conftest.er1 >conftest.err
  14317. rm -f conftest.er1
  14318. cat conftest.err >&5
  14319. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14320. (exit $ac_status); } && {
  14321. test -z "$ac_cxx_werror_flag" ||
  14322. test ! -s conftest.err
  14323. } && test -s conftest$ac_exeext && {
  14324. test "$cross_compiling" = yes ||
  14325. $as_test_x conftest$ac_exeext
  14326. }; then
  14327. eval "$as_ac_Lib=yes"
  14328. else
  14329. $as_echo "$as_me: failed program was:" >&5
  14330. sed 's/^/| /' conftest.$ac_ext >&5
  14331. eval "$as_ac_Lib=no"
  14332. fi
  14333. rm -rf conftest.dSYM
  14334. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14335. conftest$ac_exeext conftest.$ac_ext
  14336. LIBS=$ac_check_lib_save_LIBS
  14337. fi
  14338. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14339. $as_echo "$as_val"'`
  14340. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14341. $as_echo "$ac_res" >&6; }
  14342. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14343. $as_echo "$as_val"'`
  14344. if test "x$as_val" = x""yes; then
  14345. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14346. else
  14347. link_thread="no"
  14348. fi
  14349. done
  14350. fi
  14351. if test "x$link_thread" = "xno"; then
  14352. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14353. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14354. { (exit 1); exit 1; }; }
  14355. else
  14356. case "x$build_os" in
  14357. *bsd* )
  14358. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  14359. break;
  14360. ;;
  14361. esac
  14362. fi
  14363. fi
  14364. CPPFLAGS="$CPPFLAGS_SAVED"
  14365. LDFLAGS="$LDFLAGS_SAVED"
  14366. fi
  14367. # Check whether --with-boost-iostreams was given.
  14368. if test "${with_boost_iostreams+set}" = set; then
  14369. withval=$with_boost_iostreams;
  14370. if test "$withval" = "no"; then
  14371. want_boost="no"
  14372. elif test "$withval" = "yes"; then
  14373. want_boost="yes"
  14374. ax_boost_user_iostreams_lib=""
  14375. else
  14376. want_boost="yes"
  14377. ax_boost_user_iostreams_lib="$withval"
  14378. fi
  14379. else
  14380. want_boost="yes"
  14381. fi
  14382. if test "x$want_boost" = "xyes"; then
  14383. CPPFLAGS_SAVED="$CPPFLAGS"
  14384. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14385. export CPPFLAGS
  14386. LDFLAGS_SAVED="$LDFLAGS"
  14387. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14388. export LDFLAGS
  14389. { $as_echo "$as_me:$LINENO: checking whether the Boost::IOStreams library is available" >&5
  14390. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  14391. if test "${ax_cv_boost_iostreams+set}" = set; then
  14392. $as_echo_n "(cached) " >&6
  14393. else
  14394. ac_ext=cpp
  14395. ac_cpp='$CXXCPP $CPPFLAGS'
  14396. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14397. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14398. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14399. cat >conftest.$ac_ext <<_ACEOF
  14400. /* confdefs.h. */
  14401. _ACEOF
  14402. cat confdefs.h >>conftest.$ac_ext
  14403. cat >>conftest.$ac_ext <<_ACEOF
  14404. /* end confdefs.h. */
  14405. #include <boost/iostreams/filtering_stream.hpp>
  14406. #include <boost/range/iterator_range.hpp>
  14407. int
  14408. main ()
  14409. {
  14410. std::string input = "Hello World!";
  14411. namespace io = boost::iostreams;
  14412. io::filtering_istream in(boost::make_iterator_range(input));
  14413. return 0;
  14414. ;
  14415. return 0;
  14416. }
  14417. _ACEOF
  14418. rm -f conftest.$ac_objext
  14419. if { (ac_try="$ac_compile"
  14420. case "(($ac_try" in
  14421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14422. *) ac_try_echo=$ac_try;;
  14423. esac
  14424. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14425. $as_echo "$ac_try_echo") >&5
  14426. (eval "$ac_compile") 2>conftest.er1
  14427. ac_status=$?
  14428. grep -v '^ *+' conftest.er1 >conftest.err
  14429. rm -f conftest.er1
  14430. cat conftest.err >&5
  14431. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14432. (exit $ac_status); } && {
  14433. test -z "$ac_cxx_werror_flag" ||
  14434. test ! -s conftest.err
  14435. } && test -s conftest.$ac_objext; then
  14436. ax_cv_boost_iostreams=yes
  14437. else
  14438. $as_echo "$as_me: failed program was:" >&5
  14439. sed 's/^/| /' conftest.$ac_ext >&5
  14440. ax_cv_boost_iostreams=no
  14441. fi
  14442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14443. ac_ext=cpp
  14444. ac_cpp='$CXXCPP $CPPFLAGS'
  14445. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14446. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14447. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14448. fi
  14449. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_iostreams" >&5
  14450. $as_echo "$ax_cv_boost_iostreams" >&6; }
  14451. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  14452. cat >>confdefs.h <<\_ACEOF
  14453. #define HAVE_BOOST_IOSTREAMS /**/
  14454. _ACEOF
  14455. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14456. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  14457. 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
  14458. ax_lib=${libextension}
  14459. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14460. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14461. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14462. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14463. $as_echo_n "(cached) " >&6
  14464. else
  14465. ac_check_lib_save_LIBS=$LIBS
  14466. LIBS="-l$ax_lib $LIBS"
  14467. cat >conftest.$ac_ext <<_ACEOF
  14468. /* confdefs.h. */
  14469. _ACEOF
  14470. cat confdefs.h >>conftest.$ac_ext
  14471. cat >>conftest.$ac_ext <<_ACEOF
  14472. /* end confdefs.h. */
  14473. /* Override any GCC internal prototype to avoid an error.
  14474. Use char because int might match the return type of a GCC
  14475. builtin and then its argument prototype would still apply. */
  14476. #ifdef __cplusplus
  14477. extern "C"
  14478. #endif
  14479. char exit ();
  14480. int
  14481. main ()
  14482. {
  14483. return exit ();
  14484. ;
  14485. return 0;
  14486. }
  14487. _ACEOF
  14488. rm -f conftest.$ac_objext conftest$ac_exeext
  14489. if { (ac_try="$ac_link"
  14490. case "(($ac_try" in
  14491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14492. *) ac_try_echo=$ac_try;;
  14493. esac
  14494. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14495. $as_echo "$ac_try_echo") >&5
  14496. (eval "$ac_link") 2>conftest.er1
  14497. ac_status=$?
  14498. grep -v '^ *+' conftest.er1 >conftest.err
  14499. rm -f conftest.er1
  14500. cat conftest.err >&5
  14501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14502. (exit $ac_status); } && {
  14503. test -z "$ac_cxx_werror_flag" ||
  14504. test ! -s conftest.err
  14505. } && test -s conftest$ac_exeext && {
  14506. test "$cross_compiling" = yes ||
  14507. $as_test_x conftest$ac_exeext
  14508. }; then
  14509. eval "$as_ac_Lib=yes"
  14510. else
  14511. $as_echo "$as_me: failed program was:" >&5
  14512. sed 's/^/| /' conftest.$ac_ext >&5
  14513. eval "$as_ac_Lib=no"
  14514. fi
  14515. rm -rf conftest.dSYM
  14516. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14517. conftest$ac_exeext conftest.$ac_ext
  14518. LIBS=$ac_check_lib_save_LIBS
  14519. fi
  14520. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14521. $as_echo "$as_val"'`
  14522. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14523. $as_echo "$ac_res" >&6; }
  14524. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14525. $as_echo "$as_val"'`
  14526. if test "x$as_val" = x""yes; then
  14527. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14528. else
  14529. link_iostreams="no"
  14530. fi
  14531. done
  14532. if test "x$link_iostreams" != "xyes"; then
  14533. 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
  14534. ax_lib=${libextension}
  14535. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14536. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14537. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14538. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14539. $as_echo_n "(cached) " >&6
  14540. else
  14541. ac_check_lib_save_LIBS=$LIBS
  14542. LIBS="-l$ax_lib $LIBS"
  14543. cat >conftest.$ac_ext <<_ACEOF
  14544. /* confdefs.h. */
  14545. _ACEOF
  14546. cat confdefs.h >>conftest.$ac_ext
  14547. cat >>conftest.$ac_ext <<_ACEOF
  14548. /* end confdefs.h. */
  14549. /* Override any GCC internal prototype to avoid an error.
  14550. Use char because int might match the return type of a GCC
  14551. builtin and then its argument prototype would still apply. */
  14552. #ifdef __cplusplus
  14553. extern "C"
  14554. #endif
  14555. char exit ();
  14556. int
  14557. main ()
  14558. {
  14559. return exit ();
  14560. ;
  14561. return 0;
  14562. }
  14563. _ACEOF
  14564. rm -f conftest.$ac_objext conftest$ac_exeext
  14565. if { (ac_try="$ac_link"
  14566. case "(($ac_try" in
  14567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14568. *) ac_try_echo=$ac_try;;
  14569. esac
  14570. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14571. $as_echo "$ac_try_echo") >&5
  14572. (eval "$ac_link") 2>conftest.er1
  14573. ac_status=$?
  14574. grep -v '^ *+' conftest.er1 >conftest.err
  14575. rm -f conftest.er1
  14576. cat conftest.err >&5
  14577. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14578. (exit $ac_status); } && {
  14579. test -z "$ac_cxx_werror_flag" ||
  14580. test ! -s conftest.err
  14581. } && test -s conftest$ac_exeext && {
  14582. test "$cross_compiling" = yes ||
  14583. $as_test_x conftest$ac_exeext
  14584. }; then
  14585. eval "$as_ac_Lib=yes"
  14586. else
  14587. $as_echo "$as_me: failed program was:" >&5
  14588. sed 's/^/| /' conftest.$ac_ext >&5
  14589. eval "$as_ac_Lib=no"
  14590. fi
  14591. rm -rf conftest.dSYM
  14592. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14593. conftest$ac_exeext conftest.$ac_ext
  14594. LIBS=$ac_check_lib_save_LIBS
  14595. fi
  14596. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14597. $as_echo "$as_val"'`
  14598. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14599. $as_echo "$ac_res" >&6; }
  14600. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14601. $as_echo "$as_val"'`
  14602. if test "x$as_val" = x""yes; then
  14603. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14604. else
  14605. link_iostreams="no"
  14606. fi
  14607. done
  14608. fi
  14609. else
  14610. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  14611. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14612. { $as_echo "$as_me:$LINENO: checking for main in -l$ax_lib" >&5
  14613. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14614. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14615. $as_echo_n "(cached) " >&6
  14616. else
  14617. ac_check_lib_save_LIBS=$LIBS
  14618. LIBS="-l$ax_lib $LIBS"
  14619. cat >conftest.$ac_ext <<_ACEOF
  14620. /* confdefs.h. */
  14621. _ACEOF
  14622. cat confdefs.h >>conftest.$ac_ext
  14623. cat >>conftest.$ac_ext <<_ACEOF
  14624. /* end confdefs.h. */
  14625. int
  14626. main ()
  14627. {
  14628. return main ();
  14629. ;
  14630. return 0;
  14631. }
  14632. _ACEOF
  14633. rm -f conftest.$ac_objext conftest$ac_exeext
  14634. if { (ac_try="$ac_link"
  14635. case "(($ac_try" in
  14636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14637. *) ac_try_echo=$ac_try;;
  14638. esac
  14639. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14640. $as_echo "$ac_try_echo") >&5
  14641. (eval "$ac_link") 2>conftest.er1
  14642. ac_status=$?
  14643. grep -v '^ *+' conftest.er1 >conftest.err
  14644. rm -f conftest.er1
  14645. cat conftest.err >&5
  14646. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14647. (exit $ac_status); } && {
  14648. test -z "$ac_cxx_werror_flag" ||
  14649. test ! -s conftest.err
  14650. } && test -s conftest$ac_exeext && {
  14651. test "$cross_compiling" = yes ||
  14652. $as_test_x conftest$ac_exeext
  14653. }; then
  14654. eval "$as_ac_Lib=yes"
  14655. else
  14656. $as_echo "$as_me: failed program was:" >&5
  14657. sed 's/^/| /' conftest.$ac_ext >&5
  14658. eval "$as_ac_Lib=no"
  14659. fi
  14660. rm -rf conftest.dSYM
  14661. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14662. conftest$ac_exeext conftest.$ac_ext
  14663. LIBS=$ac_check_lib_save_LIBS
  14664. fi
  14665. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14666. $as_echo "$as_val"'`
  14667. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14668. $as_echo "$ac_res" >&6; }
  14669. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14670. $as_echo "$as_val"'`
  14671. if test "x$as_val" = x""yes; then
  14672. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14673. else
  14674. link_iostreams="no"
  14675. fi
  14676. done
  14677. fi
  14678. if test "x$link_iostreams" != "xyes"; then
  14679. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14680. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14681. { (exit 1); exit 1; }; }
  14682. fi
  14683. fi
  14684. CPPFLAGS="$CPPFLAGS_SAVED"
  14685. LDFLAGS="$LDFLAGS_SAVED"
  14686. fi
  14687. # Check for SDL libraries
  14688. saved_LIBS=$LIBS
  14689. # Extract the first word of "sdl-config", so it can be a program name with args.
  14690. set dummy sdl-config; ac_word=$2
  14691. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14692. $as_echo_n "checking for $ac_word... " >&6; }
  14693. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then
  14694. $as_echo_n "(cached) " >&6
  14695. else
  14696. if test -n "$HAVE_SDL_CONFIG"; then
  14697. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  14698. else
  14699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14700. for as_dir in $PATH
  14701. do
  14702. IFS=$as_save_IFS
  14703. test -z "$as_dir" && as_dir=.
  14704. for ac_exec_ext in '' $ac_executable_extensions; do
  14705. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14706. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  14707. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14708. break 2
  14709. fi
  14710. done
  14711. done
  14712. IFS=$as_save_IFS
  14713. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  14714. fi
  14715. fi
  14716. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  14717. if test -n "$HAVE_SDL_CONFIG"; then
  14718. { $as_echo "$as_me:$LINENO: result: $HAVE_SDL_CONFIG" >&5
  14719. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  14720. else
  14721. { $as_echo "$as_me:$LINENO: result: no" >&5
  14722. $as_echo "no" >&6; }
  14723. fi
  14724. if test "$HAVE_SDL_CONFIG" = no; then
  14725. { { $as_echo "$as_me:$LINENO: error: sdl-config doesn't exist. Try to check the PATH enviroment." >&5
  14726. $as_echo "$as_me: error: sdl-config doesn't exist. Try to check the PATH enviroment." >&2;}
  14727. { (exit 1); exit 1; }; }
  14728. fi
  14729. { $as_echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
  14730. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  14731. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
  14732. $as_echo_n "(cached) " >&6
  14733. else
  14734. ac_check_lib_save_LIBS=$LIBS
  14735. LIBS="-lSDL $LIBS"
  14736. cat >conftest.$ac_ext <<_ACEOF
  14737. /* confdefs.h. */
  14738. _ACEOF
  14739. cat confdefs.h >>conftest.$ac_ext
  14740. cat >>conftest.$ac_ext <<_ACEOF
  14741. /* end confdefs.h. */
  14742. /* Override any GCC internal prototype to avoid an error.
  14743. Use char because int might match the return type of a GCC
  14744. builtin and then its argument prototype would still apply. */
  14745. #ifdef __cplusplus
  14746. extern "C"
  14747. #endif
  14748. char SDL_Init ();
  14749. int
  14750. main ()
  14751. {
  14752. return SDL_Init ();
  14753. ;
  14754. return 0;
  14755. }
  14756. _ACEOF
  14757. rm -f conftest.$ac_objext conftest$ac_exeext
  14758. if { (ac_try="$ac_link"
  14759. case "(($ac_try" in
  14760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14761. *) ac_try_echo=$ac_try;;
  14762. esac
  14763. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14764. $as_echo "$ac_try_echo") >&5
  14765. (eval "$ac_link") 2>conftest.er1
  14766. ac_status=$?
  14767. grep -v '^ *+' conftest.er1 >conftest.err
  14768. rm -f conftest.er1
  14769. cat conftest.err >&5
  14770. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14771. (exit $ac_status); } && {
  14772. test -z "$ac_cxx_werror_flag" ||
  14773. test ! -s conftest.err
  14774. } && test -s conftest$ac_exeext && {
  14775. test "$cross_compiling" = yes ||
  14776. $as_test_x conftest$ac_exeext
  14777. }; then
  14778. ac_cv_lib_SDL_SDL_Init=yes
  14779. else
  14780. $as_echo "$as_me: failed program was:" >&5
  14781. sed 's/^/| /' conftest.$ac_ext >&5
  14782. ac_cv_lib_SDL_SDL_Init=no
  14783. fi
  14784. rm -rf conftest.dSYM
  14785. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14786. conftest$ac_exeext conftest.$ac_ext
  14787. LIBS=$ac_check_lib_save_LIBS
  14788. fi
  14789. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5
  14790. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  14791. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then
  14792. cat >>confdefs.h <<_ACEOF
  14793. #define HAVE_LIBSDL 1
  14794. _ACEOF
  14795. LIBS="-lSDL $LIBS"
  14796. else
  14797. { { $as_echo "$as_me:$LINENO: error: SDL library not found. Please install it." >&5
  14798. $as_echo "$as_me: error: SDL library not found. Please install it." >&2;}
  14799. { (exit 1); exit 1; }; }
  14800. fi
  14801. { $as_echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
  14802. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  14803. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
  14804. $as_echo_n "(cached) " >&6
  14805. else
  14806. ac_check_lib_save_LIBS=$LIBS
  14807. LIBS="-lSDL_mixer $LIBS"
  14808. cat >conftest.$ac_ext <<_ACEOF
  14809. /* confdefs.h. */
  14810. _ACEOF
  14811. cat confdefs.h >>conftest.$ac_ext
  14812. cat >>conftest.$ac_ext <<_ACEOF
  14813. /* end confdefs.h. */
  14814. int
  14815. main ()
  14816. {
  14817. return main ();
  14818. ;
  14819. return 0;
  14820. }
  14821. _ACEOF
  14822. rm -f conftest.$ac_objext conftest$ac_exeext
  14823. if { (ac_try="$ac_link"
  14824. case "(($ac_try" in
  14825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14826. *) ac_try_echo=$ac_try;;
  14827. esac
  14828. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14829. $as_echo "$ac_try_echo") >&5
  14830. (eval "$ac_link") 2>conftest.er1
  14831. ac_status=$?
  14832. grep -v '^ *+' conftest.er1 >conftest.err
  14833. rm -f conftest.er1
  14834. cat conftest.err >&5
  14835. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14836. (exit $ac_status); } && {
  14837. test -z "$ac_cxx_werror_flag" ||
  14838. test ! -s conftest.err
  14839. } && test -s conftest$ac_exeext && {
  14840. test "$cross_compiling" = yes ||
  14841. $as_test_x conftest$ac_exeext
  14842. }; then
  14843. ac_cv_lib_SDL_mixer_main=yes
  14844. else
  14845. $as_echo "$as_me: failed program was:" >&5
  14846. sed 's/^/| /' conftest.$ac_ext >&5
  14847. ac_cv_lib_SDL_mixer_main=no
  14848. fi
  14849. rm -rf conftest.dSYM
  14850. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14851. conftest$ac_exeext conftest.$ac_ext
  14852. LIBS=$ac_check_lib_save_LIBS
  14853. fi
  14854. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
  14855. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  14856. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then
  14857. cat >>confdefs.h <<_ACEOF
  14858. #define HAVE_LIBSDL_MIXER 1
  14859. _ACEOF
  14860. LIBS="-lSDL_mixer $LIBS"
  14861. else
  14862. { { $as_echo "$as_me:$LINENO: error: SDL_mixer library not found. Please install it." >&5
  14863. $as_echo "$as_me: error: SDL_mixer library not found. Please install it." >&2;}
  14864. { (exit 1); exit 1; }; }
  14865. fi
  14866. { $as_echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5
  14867. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  14868. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then
  14869. $as_echo_n "(cached) " >&6
  14870. else
  14871. ac_check_lib_save_LIBS=$LIBS
  14872. LIBS="-lSDL_image $LIBS"
  14873. cat >conftest.$ac_ext <<_ACEOF
  14874. /* confdefs.h. */
  14875. _ACEOF
  14876. cat confdefs.h >>conftest.$ac_ext
  14877. cat >>conftest.$ac_ext <<_ACEOF
  14878. /* end confdefs.h. */
  14879. /* Override any GCC internal prototype to avoid an error.
  14880. Use char because int might match the return type of a GCC
  14881. builtin and then its argument prototype would still apply. */
  14882. #ifdef __cplusplus
  14883. extern "C"
  14884. #endif
  14885. char IMG_Load ();
  14886. int
  14887. main ()
  14888. {
  14889. return IMG_Load ();
  14890. ;
  14891. return 0;
  14892. }
  14893. _ACEOF
  14894. rm -f conftest.$ac_objext conftest$ac_exeext
  14895. if { (ac_try="$ac_link"
  14896. case "(($ac_try" in
  14897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14898. *) ac_try_echo=$ac_try;;
  14899. esac
  14900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14901. $as_echo "$ac_try_echo") >&5
  14902. (eval "$ac_link") 2>conftest.er1
  14903. ac_status=$?
  14904. grep -v '^ *+' conftest.er1 >conftest.err
  14905. rm -f conftest.er1
  14906. cat conftest.err >&5
  14907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14908. (exit $ac_status); } && {
  14909. test -z "$ac_cxx_werror_flag" ||
  14910. test ! -s conftest.err
  14911. } && test -s conftest$ac_exeext && {
  14912. test "$cross_compiling" = yes ||
  14913. $as_test_x conftest$ac_exeext
  14914. }; then
  14915. ac_cv_lib_SDL_image_IMG_Load=yes
  14916. else
  14917. $as_echo "$as_me: failed program was:" >&5
  14918. sed 's/^/| /' conftest.$ac_ext >&5
  14919. ac_cv_lib_SDL_image_IMG_Load=no
  14920. fi
  14921. rm -rf conftest.dSYM
  14922. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14923. conftest$ac_exeext conftest.$ac_ext
  14924. LIBS=$ac_check_lib_save_LIBS
  14925. fi
  14926. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  14927. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  14928. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then
  14929. cat >>confdefs.h <<_ACEOF
  14930. #define HAVE_LIBSDL_IMAGE 1
  14931. _ACEOF
  14932. LIBS="-lSDL_image $LIBS"
  14933. else
  14934. { { $as_echo "$as_me:$LINENO: error: SDL_image library not found. Please install it." >&5
  14935. $as_echo "$as_me: error: SDL_image library not found. Please install it." >&2;}
  14936. { (exit 1); exit 1; }; }
  14937. fi
  14938. { $as_echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5
  14939. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  14940. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then
  14941. $as_echo_n "(cached) " >&6
  14942. else
  14943. ac_check_lib_save_LIBS=$LIBS
  14944. LIBS="-lSDL_ttf $LIBS"
  14945. cat >conftest.$ac_ext <<_ACEOF
  14946. /* confdefs.h. */
  14947. _ACEOF
  14948. cat confdefs.h >>conftest.$ac_ext
  14949. cat >>conftest.$ac_ext <<_ACEOF
  14950. /* end confdefs.h. */
  14951. int
  14952. main ()
  14953. {
  14954. return main ();
  14955. ;
  14956. return 0;
  14957. }
  14958. _ACEOF
  14959. rm -f conftest.$ac_objext conftest$ac_exeext
  14960. if { (ac_try="$ac_link"
  14961. case "(($ac_try" in
  14962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14963. *) ac_try_echo=$ac_try;;
  14964. esac
  14965. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14966. $as_echo "$ac_try_echo") >&5
  14967. (eval "$ac_link") 2>conftest.er1
  14968. ac_status=$?
  14969. grep -v '^ *+' conftest.er1 >conftest.err
  14970. rm -f conftest.er1
  14971. cat conftest.err >&5
  14972. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14973. (exit $ac_status); } && {
  14974. test -z "$ac_cxx_werror_flag" ||
  14975. test ! -s conftest.err
  14976. } && test -s conftest$ac_exeext && {
  14977. test "$cross_compiling" = yes ||
  14978. $as_test_x conftest$ac_exeext
  14979. }; then
  14980. ac_cv_lib_SDL_ttf_main=yes
  14981. else
  14982. $as_echo "$as_me: failed program was:" >&5
  14983. sed 's/^/| /' conftest.$ac_ext >&5
  14984. ac_cv_lib_SDL_ttf_main=no
  14985. fi
  14986. rm -rf conftest.dSYM
  14987. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14988. conftest$ac_exeext conftest.$ac_ext
  14989. LIBS=$ac_check_lib_save_LIBS
  14990. fi
  14991. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5
  14992. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  14993. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then
  14994. cat >>confdefs.h <<_ACEOF
  14995. #define HAVE_LIBSDL_TTF 1
  14996. _ACEOF
  14997. LIBS="-lSDL_ttf $LIBS"
  14998. else
  14999. { { $as_echo "$as_me:$LINENO: error: SDL_ttf library not found. Please install it." >&5
  15000. $as_echo "$as_me: error: SDL_ttf library not found. Please install it." >&2;}
  15001. { (exit 1); exit 1; }; }
  15002. fi
  15003. SDL_CXXFLAGS=`sdl-config --cflags`
  15004. SDL_LIBS="`sdl-config --libs` $LIBS"
  15005. LIBS=$saved_LIBS
  15006. # Check for ffmpeg libraries
  15007. saved_LIBS=$LIBS
  15008. { $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&5
  15009. $as_echo_n "checking for main in -lavformat... " >&6; }
  15010. if test "${ac_cv_lib_avformat_main+set}" = set; then
  15011. $as_echo_n "(cached) " >&6
  15012. else
  15013. ac_check_lib_save_LIBS=$LIBS
  15014. LIBS="-lavformat $LIBS"
  15015. cat >conftest.$ac_ext <<_ACEOF
  15016. /* confdefs.h. */
  15017. _ACEOF
  15018. cat confdefs.h >>conftest.$ac_ext
  15019. cat >>conftest.$ac_ext <<_ACEOF
  15020. /* end confdefs.h. */
  15021. int
  15022. main ()
  15023. {
  15024. return main ();
  15025. ;
  15026. return 0;
  15027. }
  15028. _ACEOF
  15029. rm -f conftest.$ac_objext conftest$ac_exeext
  15030. if { (ac_try="$ac_link"
  15031. case "(($ac_try" in
  15032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15033. *) ac_try_echo=$ac_try;;
  15034. esac
  15035. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15036. $as_echo "$ac_try_echo") >&5
  15037. (eval "$ac_link") 2>conftest.er1
  15038. ac_status=$?
  15039. grep -v '^ *+' conftest.er1 >conftest.err
  15040. rm -f conftest.er1
  15041. cat conftest.err >&5
  15042. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15043. (exit $ac_status); } && {
  15044. test -z "$ac_cxx_werror_flag" ||
  15045. test ! -s conftest.err
  15046. } && test -s conftest$ac_exeext && {
  15047. test "$cross_compiling" = yes ||
  15048. $as_test_x conftest$ac_exeext
  15049. }; then
  15050. ac_cv_lib_avformat_main=yes
  15051. else
  15052. $as_echo "$as_me: failed program was:" >&5
  15053. sed 's/^/| /' conftest.$ac_ext >&5
  15054. ac_cv_lib_avformat_main=no
  15055. fi
  15056. rm -rf conftest.dSYM
  15057. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15058. conftest$ac_exeext conftest.$ac_ext
  15059. LIBS=$ac_check_lib_save_LIBS
  15060. fi
  15061. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_main" >&5
  15062. $as_echo "$ac_cv_lib_avformat_main" >&6; }
  15063. if test "x$ac_cv_lib_avformat_main" = x""yes; then
  15064. cat >>confdefs.h <<_ACEOF
  15065. #define HAVE_LIBAVFORMAT 1
  15066. _ACEOF
  15067. LIBS="-lavformat $LIBS"
  15068. else
  15069. { { $as_echo "$as_me:$LINENO: error: FFMpeg avformat library not found. Please install it." >&5
  15070. $as_echo "$as_me: error: FFMpeg avformat library not found. Please install it." >&2;}
  15071. { (exit 1); exit 1; }; }
  15072. fi
  15073. { $as_echo "$as_me:$LINENO: checking for main in -lswscale" >&5
  15074. $as_echo_n "checking for main in -lswscale... " >&6; }
  15075. if test "${ac_cv_lib_swscale_main+set}" = set; then
  15076. $as_echo_n "(cached) " >&6
  15077. else
  15078. ac_check_lib_save_LIBS=$LIBS
  15079. LIBS="-lswscale $LIBS"
  15080. cat >conftest.$ac_ext <<_ACEOF
  15081. /* confdefs.h. */
  15082. _ACEOF
  15083. cat confdefs.h >>conftest.$ac_ext
  15084. cat >>conftest.$ac_ext <<_ACEOF
  15085. /* end confdefs.h. */
  15086. int
  15087. main ()
  15088. {
  15089. return main ();
  15090. ;
  15091. return 0;
  15092. }
  15093. _ACEOF
  15094. rm -f conftest.$ac_objext conftest$ac_exeext
  15095. if { (ac_try="$ac_link"
  15096. case "(($ac_try" in
  15097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15098. *) ac_try_echo=$ac_try;;
  15099. esac
  15100. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15101. $as_echo "$ac_try_echo") >&5
  15102. (eval "$ac_link") 2>conftest.er1
  15103. ac_status=$?
  15104. grep -v '^ *+' conftest.er1 >conftest.err
  15105. rm -f conftest.er1
  15106. cat conftest.err >&5
  15107. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15108. (exit $ac_status); } && {
  15109. test -z "$ac_cxx_werror_flag" ||
  15110. test ! -s conftest.err
  15111. } && test -s conftest$ac_exeext && {
  15112. test "$cross_compiling" = yes ||
  15113. $as_test_x conftest$ac_exeext
  15114. }; then
  15115. ac_cv_lib_swscale_main=yes
  15116. else
  15117. $as_echo "$as_me: failed program was:" >&5
  15118. sed 's/^/| /' conftest.$ac_ext >&5
  15119. ac_cv_lib_swscale_main=no
  15120. fi
  15121. rm -rf conftest.dSYM
  15122. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15123. conftest$ac_exeext conftest.$ac_ext
  15124. LIBS=$ac_check_lib_save_LIBS
  15125. fi
  15126. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&5
  15127. $as_echo "$ac_cv_lib_swscale_main" >&6; }
  15128. if test "x$ac_cv_lib_swscale_main" = x""yes; then
  15129. cat >>confdefs.h <<_ACEOF
  15130. #define HAVE_LIBSWSCALE 1
  15131. _ACEOF
  15132. LIBS="-lswscale $LIBS"
  15133. else
  15134. { { $as_echo "$as_me:$LINENO: error: FFMpeg swscale library not found. Please install it." >&5
  15135. $as_echo "$as_me: error: FFMpeg swscale library not found. Please install it." >&2;}
  15136. { (exit 1); exit 1; }; }
  15137. fi
  15138. FFMPEG_CXXFLAGS=`pkg-config --cflags libavformat libswscale`
  15139. FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
  15140. LIBS=$saved_LIBS
  15141. # Checks for header files.
  15142. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  15143. $as_echo_n "checking for ANSI C header files... " >&6; }
  15144. if test "${ac_cv_header_stdc+set}" = set; then
  15145. $as_echo_n "(cached) " >&6
  15146. else
  15147. cat >conftest.$ac_ext <<_ACEOF
  15148. /* confdefs.h. */
  15149. _ACEOF
  15150. cat confdefs.h >>conftest.$ac_ext
  15151. cat >>conftest.$ac_ext <<_ACEOF
  15152. /* end confdefs.h. */
  15153. #include <stdlib.h>
  15154. #include <stdarg.h>
  15155. #include <string.h>
  15156. #include <float.h>
  15157. int
  15158. main ()
  15159. {
  15160. ;
  15161. return 0;
  15162. }
  15163. _ACEOF
  15164. rm -f conftest.$ac_objext
  15165. if { (ac_try="$ac_compile"
  15166. case "(($ac_try" in
  15167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15168. *) ac_try_echo=$ac_try;;
  15169. esac
  15170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15171. $as_echo "$ac_try_echo") >&5
  15172. (eval "$ac_compile") 2>conftest.er1
  15173. ac_status=$?
  15174. grep -v '^ *+' conftest.er1 >conftest.err
  15175. rm -f conftest.er1
  15176. cat conftest.err >&5
  15177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15178. (exit $ac_status); } && {
  15179. test -z "$ac_cxx_werror_flag" ||
  15180. test ! -s conftest.err
  15181. } && test -s conftest.$ac_objext; then
  15182. ac_cv_header_stdc=yes
  15183. else
  15184. $as_echo "$as_me: failed program was:" >&5
  15185. sed 's/^/| /' conftest.$ac_ext >&5
  15186. ac_cv_header_stdc=no
  15187. fi
  15188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15189. if test $ac_cv_header_stdc = yes; then
  15190. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15191. cat >conftest.$ac_ext <<_ACEOF
  15192. /* confdefs.h. */
  15193. _ACEOF
  15194. cat confdefs.h >>conftest.$ac_ext
  15195. cat >>conftest.$ac_ext <<_ACEOF
  15196. /* end confdefs.h. */
  15197. #include <string.h>
  15198. _ACEOF
  15199. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15200. $EGREP "memchr" >/dev/null 2>&1; then
  15201. :
  15202. else
  15203. ac_cv_header_stdc=no
  15204. fi
  15205. rm -f conftest*
  15206. fi
  15207. if test $ac_cv_header_stdc = yes; then
  15208. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15209. cat >conftest.$ac_ext <<_ACEOF
  15210. /* confdefs.h. */
  15211. _ACEOF
  15212. cat confdefs.h >>conftest.$ac_ext
  15213. cat >>conftest.$ac_ext <<_ACEOF
  15214. /* end confdefs.h. */
  15215. #include <stdlib.h>
  15216. _ACEOF
  15217. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15218. $EGREP "free" >/dev/null 2>&1; then
  15219. :
  15220. else
  15221. ac_cv_header_stdc=no
  15222. fi
  15223. rm -f conftest*
  15224. fi
  15225. if test $ac_cv_header_stdc = yes; then
  15226. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15227. if test "$cross_compiling" = yes; then
  15228. :
  15229. else
  15230. cat >conftest.$ac_ext <<_ACEOF
  15231. /* confdefs.h. */
  15232. _ACEOF
  15233. cat confdefs.h >>conftest.$ac_ext
  15234. cat >>conftest.$ac_ext <<_ACEOF
  15235. /* end confdefs.h. */
  15236. #include <ctype.h>
  15237. #include <stdlib.h>
  15238. #if ((' ' & 0x0FF) == 0x020)
  15239. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15240. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15241. #else
  15242. # define ISLOWER(c) \
  15243. (('a' <= (c) && (c) <= 'i') \
  15244. || ('j' <= (c) && (c) <= 'r') \
  15245. || ('s' <= (c) && (c) <= 'z'))
  15246. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15247. #endif
  15248. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15249. int
  15250. main ()
  15251. {
  15252. int i;
  15253. for (i = 0; i < 256; i++)
  15254. if (XOR (islower (i), ISLOWER (i))
  15255. || toupper (i) != TOUPPER (i))
  15256. return 2;
  15257. return 0;
  15258. }
  15259. _ACEOF
  15260. rm -f conftest$ac_exeext
  15261. if { (ac_try="$ac_link"
  15262. case "(($ac_try" in
  15263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15264. *) ac_try_echo=$ac_try;;
  15265. esac
  15266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15267. $as_echo "$ac_try_echo") >&5
  15268. (eval "$ac_link") 2>&5
  15269. ac_status=$?
  15270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15271. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15272. { (case "(($ac_try" in
  15273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15274. *) ac_try_echo=$ac_try;;
  15275. esac
  15276. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15277. $as_echo "$ac_try_echo") >&5
  15278. (eval "$ac_try") 2>&5
  15279. ac_status=$?
  15280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15281. (exit $ac_status); }; }; then
  15282. :
  15283. else
  15284. $as_echo "$as_me: program exited with status $ac_status" >&5
  15285. $as_echo "$as_me: failed program was:" >&5
  15286. sed 's/^/| /' conftest.$ac_ext >&5
  15287. ( exit $ac_status )
  15288. ac_cv_header_stdc=no
  15289. fi
  15290. rm -rf conftest.dSYM
  15291. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15292. fi
  15293. fi
  15294. fi
  15295. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  15296. $as_echo "$ac_cv_header_stdc" >&6; }
  15297. if test $ac_cv_header_stdc = yes; then
  15298. cat >>confdefs.h <<\_ACEOF
  15299. #define STDC_HEADERS 1
  15300. _ACEOF
  15301. fi
  15302. for ac_header in fcntl.h stdlib.h string.h
  15303. do
  15304. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15305. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15306. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15307. $as_echo_n "checking for $ac_header... " >&6; }
  15308. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15309. $as_echo_n "(cached) " >&6
  15310. fi
  15311. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15312. $as_echo "$as_val"'`
  15313. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15314. $as_echo "$ac_res" >&6; }
  15315. else
  15316. # Is the header compilable?
  15317. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15318. $as_echo_n "checking $ac_header usability... " >&6; }
  15319. cat >conftest.$ac_ext <<_ACEOF
  15320. /* confdefs.h. */
  15321. _ACEOF
  15322. cat confdefs.h >>conftest.$ac_ext
  15323. cat >>conftest.$ac_ext <<_ACEOF
  15324. /* end confdefs.h. */
  15325. $ac_includes_default
  15326. #include <$ac_header>
  15327. _ACEOF
  15328. rm -f conftest.$ac_objext
  15329. if { (ac_try="$ac_compile"
  15330. case "(($ac_try" in
  15331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15332. *) ac_try_echo=$ac_try;;
  15333. esac
  15334. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15335. $as_echo "$ac_try_echo") >&5
  15336. (eval "$ac_compile") 2>conftest.er1
  15337. ac_status=$?
  15338. grep -v '^ *+' conftest.er1 >conftest.err
  15339. rm -f conftest.er1
  15340. cat conftest.err >&5
  15341. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15342. (exit $ac_status); } && {
  15343. test -z "$ac_cxx_werror_flag" ||
  15344. test ! -s conftest.err
  15345. } && test -s conftest.$ac_objext; then
  15346. ac_header_compiler=yes
  15347. else
  15348. $as_echo "$as_me: failed program was:" >&5
  15349. sed 's/^/| /' conftest.$ac_ext >&5
  15350. ac_header_compiler=no
  15351. fi
  15352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15353. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15354. $as_echo "$ac_header_compiler" >&6; }
  15355. # Is the header present?
  15356. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15357. $as_echo_n "checking $ac_header presence... " >&6; }
  15358. cat >conftest.$ac_ext <<_ACEOF
  15359. /* confdefs.h. */
  15360. _ACEOF
  15361. cat confdefs.h >>conftest.$ac_ext
  15362. cat >>conftest.$ac_ext <<_ACEOF
  15363. /* end confdefs.h. */
  15364. #include <$ac_header>
  15365. _ACEOF
  15366. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15367. case "(($ac_try" in
  15368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15369. *) ac_try_echo=$ac_try;;
  15370. esac
  15371. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15372. $as_echo "$ac_try_echo") >&5
  15373. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15374. ac_status=$?
  15375. grep -v '^ *+' conftest.er1 >conftest.err
  15376. rm -f conftest.er1
  15377. cat conftest.err >&5
  15378. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15379. (exit $ac_status); } >/dev/null && {
  15380. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15381. test ! -s conftest.err
  15382. }; then
  15383. ac_header_preproc=yes
  15384. else
  15385. $as_echo "$as_me: failed program was:" >&5
  15386. sed 's/^/| /' conftest.$ac_ext >&5
  15387. ac_header_preproc=no
  15388. fi
  15389. rm -f conftest.err conftest.$ac_ext
  15390. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15391. $as_echo "$ac_header_preproc" >&6; }
  15392. # So? What about this header?
  15393. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15394. yes:no: )
  15395. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15396. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15397. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15398. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15399. ac_header_preproc=yes
  15400. ;;
  15401. no:yes:* )
  15402. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15403. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15404. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15405. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15406. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15407. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15408. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15409. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15410. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15411. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15412. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15413. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15414. ;;
  15415. esac
  15416. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15417. $as_echo_n "checking for $ac_header... " >&6; }
  15418. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15419. $as_echo_n "(cached) " >&6
  15420. else
  15421. eval "$as_ac_Header=\$ac_header_preproc"
  15422. fi
  15423. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15424. $as_echo "$as_val"'`
  15425. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15426. $as_echo "$ac_res" >&6; }
  15427. fi
  15428. as_val=`eval 'as_val=${'$as_ac_Header'}
  15429. $as_echo "$as_val"'`
  15430. if test "x$as_val" = x""yes; then
  15431. cat >>confdefs.h <<_ACEOF
  15432. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15433. _ACEOF
  15434. fi
  15435. done
  15436. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  15437. 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
  15438. do
  15439. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15440. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15441. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15442. $as_echo_n "checking for $ac_header... " >&6; }
  15443. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15444. $as_echo_n "(cached) " >&6
  15445. fi
  15446. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15447. $as_echo "$as_val"'`
  15448. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15449. $as_echo "$ac_res" >&6; }
  15450. else
  15451. # Is the header compilable?
  15452. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15453. $as_echo_n "checking $ac_header usability... " >&6; }
  15454. cat >conftest.$ac_ext <<_ACEOF
  15455. /* confdefs.h. */
  15456. _ACEOF
  15457. cat confdefs.h >>conftest.$ac_ext
  15458. cat >>conftest.$ac_ext <<_ACEOF
  15459. /* end confdefs.h. */
  15460. $ac_includes_default
  15461. #include <$ac_header>
  15462. _ACEOF
  15463. rm -f conftest.$ac_objext
  15464. if { (ac_try="$ac_compile"
  15465. case "(($ac_try" in
  15466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15467. *) ac_try_echo=$ac_try;;
  15468. esac
  15469. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15470. $as_echo "$ac_try_echo") >&5
  15471. (eval "$ac_compile") 2>conftest.er1
  15472. ac_status=$?
  15473. grep -v '^ *+' conftest.er1 >conftest.err
  15474. rm -f conftest.er1
  15475. cat conftest.err >&5
  15476. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15477. (exit $ac_status); } && {
  15478. test -z "$ac_cxx_werror_flag" ||
  15479. test ! -s conftest.err
  15480. } && test -s conftest.$ac_objext; then
  15481. ac_header_compiler=yes
  15482. else
  15483. $as_echo "$as_me: failed program was:" >&5
  15484. sed 's/^/| /' conftest.$ac_ext >&5
  15485. ac_header_compiler=no
  15486. fi
  15487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15488. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15489. $as_echo "$ac_header_compiler" >&6; }
  15490. # Is the header present?
  15491. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15492. $as_echo_n "checking $ac_header presence... " >&6; }
  15493. cat >conftest.$ac_ext <<_ACEOF
  15494. /* confdefs.h. */
  15495. _ACEOF
  15496. cat confdefs.h >>conftest.$ac_ext
  15497. cat >>conftest.$ac_ext <<_ACEOF
  15498. /* end confdefs.h. */
  15499. #include <$ac_header>
  15500. _ACEOF
  15501. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15502. case "(($ac_try" in
  15503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15504. *) ac_try_echo=$ac_try;;
  15505. esac
  15506. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15507. $as_echo "$ac_try_echo") >&5
  15508. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15509. ac_status=$?
  15510. grep -v '^ *+' conftest.er1 >conftest.err
  15511. rm -f conftest.er1
  15512. cat conftest.err >&5
  15513. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15514. (exit $ac_status); } >/dev/null && {
  15515. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15516. test ! -s conftest.err
  15517. }; then
  15518. ac_header_preproc=yes
  15519. else
  15520. $as_echo "$as_me: failed program was:" >&5
  15521. sed 's/^/| /' conftest.$ac_ext >&5
  15522. ac_header_preproc=no
  15523. fi
  15524. rm -f conftest.err conftest.$ac_ext
  15525. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15526. $as_echo "$ac_header_preproc" >&6; }
  15527. # So? What about this header?
  15528. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15529. yes:no: )
  15530. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15531. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15532. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15533. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15534. ac_header_preproc=yes
  15535. ;;
  15536. no:yes:* )
  15537. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15538. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15539. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15540. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15541. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15542. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15543. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15544. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15545. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15546. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15547. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15548. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15549. ;;
  15550. esac
  15551. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15552. $as_echo_n "checking for $ac_header... " >&6; }
  15553. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15554. $as_echo_n "(cached) " >&6
  15555. else
  15556. eval "$as_ac_Header=\$ac_header_preproc"
  15557. fi
  15558. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15559. $as_echo "$as_val"'`
  15560. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15561. $as_echo "$ac_res" >&6; }
  15562. fi
  15563. as_val=`eval 'as_val=${'$as_ac_Header'}
  15564. $as_echo "$as_val"'`
  15565. if test "x$as_val" = x""yes; then
  15566. cat >>confdefs.h <<_ACEOF
  15567. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15568. _ACEOF
  15569. else
  15570. { { $as_echo "$as_me:$LINENO: error: Required boost headers not found. Please install it." >&5
  15571. $as_echo "$as_me: error: Required boost headers not found. Please install it." >&2;}
  15572. { (exit 1); exit 1; }; }
  15573. fi
  15574. done
  15575. # Checks for library functions.
  15576. for ac_func in atexit memset pow select sqrt
  15577. do
  15578. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15579. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15580. $as_echo_n "checking for $ac_func... " >&6; }
  15581. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15582. $as_echo_n "(cached) " >&6
  15583. else
  15584. cat >conftest.$ac_ext <<_ACEOF
  15585. /* confdefs.h. */
  15586. _ACEOF
  15587. cat confdefs.h >>conftest.$ac_ext
  15588. cat >>conftest.$ac_ext <<_ACEOF
  15589. /* end confdefs.h. */
  15590. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15591. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15592. #define $ac_func innocuous_$ac_func
  15593. /* System header to define __stub macros and hopefully few prototypes,
  15594. which can conflict with char $ac_func (); below.
  15595. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15596. <limits.h> exists even on freestanding compilers. */
  15597. #ifdef __STDC__
  15598. # include <limits.h>
  15599. #else
  15600. # include <assert.h>
  15601. #endif
  15602. #undef $ac_func
  15603. /* Override any GCC internal prototype to avoid an error.
  15604. Use char because int might match the return type of a GCC
  15605. builtin and then its argument prototype would still apply. */
  15606. #ifdef __cplusplus
  15607. extern "C"
  15608. #endif
  15609. char $ac_func ();
  15610. /* The GNU C library defines this for functions which it implements
  15611. to always fail with ENOSYS. Some functions are actually named
  15612. something starting with __ and the normal name is an alias. */
  15613. #if defined __stub_$ac_func || defined __stub___$ac_func
  15614. choke me
  15615. #endif
  15616. int
  15617. main ()
  15618. {
  15619. return $ac_func ();
  15620. ;
  15621. return 0;
  15622. }
  15623. _ACEOF
  15624. rm -f conftest.$ac_objext conftest$ac_exeext
  15625. if { (ac_try="$ac_link"
  15626. case "(($ac_try" in
  15627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15628. *) ac_try_echo=$ac_try;;
  15629. esac
  15630. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15631. $as_echo "$ac_try_echo") >&5
  15632. (eval "$ac_link") 2>conftest.er1
  15633. ac_status=$?
  15634. grep -v '^ *+' conftest.er1 >conftest.err
  15635. rm -f conftest.er1
  15636. cat conftest.err >&5
  15637. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15638. (exit $ac_status); } && {
  15639. test -z "$ac_cxx_werror_flag" ||
  15640. test ! -s conftest.err
  15641. } && test -s conftest$ac_exeext && {
  15642. test "$cross_compiling" = yes ||
  15643. $as_test_x conftest$ac_exeext
  15644. }; then
  15645. eval "$as_ac_var=yes"
  15646. else
  15647. $as_echo "$as_me: failed program was:" >&5
  15648. sed 's/^/| /' conftest.$ac_ext >&5
  15649. eval "$as_ac_var=no"
  15650. fi
  15651. rm -rf conftest.dSYM
  15652. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15653. conftest$ac_exeext conftest.$ac_ext
  15654. fi
  15655. ac_res=`eval 'as_val=${'$as_ac_var'}
  15656. $as_echo "$as_val"'`
  15657. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15658. $as_echo "$ac_res" >&6; }
  15659. as_val=`eval 'as_val=${'$as_ac_var'}
  15660. $as_echo "$as_val"'`
  15661. if test "x$as_val" = x""yes; then
  15662. cat >>confdefs.h <<_ACEOF
  15663. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15664. _ACEOF
  15665. fi
  15666. done
  15667. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile"
  15668. cat >confcache <<\_ACEOF
  15669. # This file is a shell script that caches the results of configure
  15670. # tests run on this system so they can be shared between configure
  15671. # scripts and configure runs, see configure's option --config-cache.
  15672. # It is not useful on other systems. If it contains results you don't
  15673. # want to keep, you may remove or edit it.
  15674. #
  15675. # config.status only pays attention to the cache file if you give it
  15676. # the --recheck option to rerun configure.
  15677. #
  15678. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15679. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15680. # following values.
  15681. _ACEOF
  15682. # The following way of writing the cache mishandles newlines in values,
  15683. # but we know of no workaround that is simple, portable, and efficient.
  15684. # So, we kill variables containing newlines.
  15685. # Ultrix sh set writes to stderr and can't be redirected directly,
  15686. # and sets the high bit in the cache file unless we assign to the vars.
  15687. (
  15688. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15689. eval ac_val=\$$ac_var
  15690. case $ac_val in #(
  15691. *${as_nl}*)
  15692. case $ac_var in #(
  15693. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  15694. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15695. esac
  15696. case $ac_var in #(
  15697. _ | IFS | as_nl) ;; #(
  15698. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15699. *) $as_unset $ac_var ;;
  15700. esac ;;
  15701. esac
  15702. done
  15703. (set) 2>&1 |
  15704. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15705. *${as_nl}ac_space=\ *)
  15706. # `set' does not quote correctly, so add quotes (double-quote
  15707. # substitution turns \\\\ into \\, and sed turns \\ into \).
  15708. sed -n \
  15709. "s/'/'\\\\''/g;
  15710. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15711. ;; #(
  15712. *)
  15713. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15714. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15715. ;;
  15716. esac |
  15717. sort
  15718. ) |
  15719. sed '
  15720. /^ac_cv_env_/b end
  15721. t clear
  15722. :clear
  15723. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15724. t end
  15725. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15726. :end' >>confcache
  15727. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15728. if test -w "$cache_file"; then
  15729. test "x$cache_file" != "x/dev/null" &&
  15730. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  15731. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15732. cat confcache >$cache_file
  15733. else
  15734. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  15735. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15736. fi
  15737. fi
  15738. rm -f confcache
  15739. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15740. # Let make expand exec_prefix.
  15741. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15742. # Transform confdefs.h into DEFS.
  15743. # Protect against shell expansion while executing Makefile rules.
  15744. # Protect against Makefile macro expansion.
  15745. #
  15746. # If the first sed substitution is executed (which looks for macros that
  15747. # take arguments), then branch to the quote section. Otherwise,
  15748. # look for a macro that doesn't take arguments.
  15749. ac_script='
  15750. :mline
  15751. /\\$/{
  15752. N
  15753. s,\\\n,,
  15754. b mline
  15755. }
  15756. t clear
  15757. :clear
  15758. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  15759. t quote
  15760. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  15761. t quote
  15762. b any
  15763. :quote
  15764. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  15765. s/\[/\\&/g
  15766. s/\]/\\&/g
  15767. s/\$/$$/g
  15768. H
  15769. :any
  15770. ${
  15771. g
  15772. s/^\n//
  15773. s/\n/ /g
  15774. p
  15775. }
  15776. '
  15777. DEFS=`sed -n "$ac_script" confdefs.h`
  15778. ac_libobjs=
  15779. ac_ltlibobjs=
  15780. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15781. # 1. Remove the extension, and $U if already installed.
  15782. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15783. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15784. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15785. # will be set to the directory where LIBOBJS objects are built.
  15786. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15787. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  15788. done
  15789. LIBOBJS=$ac_libobjs
  15790. LTLIBOBJS=$ac_ltlibobjs
  15791. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15792. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  15793. Usually this means the macro was only invoked conditionally." >&5
  15794. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  15795. Usually this means the macro was only invoked conditionally." >&2;}
  15796. { (exit 1); exit 1; }; }
  15797. fi
  15798. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15799. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  15800. Usually this means the macro was only invoked conditionally." >&5
  15801. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  15802. Usually this means the macro was only invoked conditionally." >&2;}
  15803. { (exit 1); exit 1; }; }
  15804. fi
  15805. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15806. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  15807. Usually this means the macro was only invoked conditionally." >&5
  15808. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  15809. Usually this means the macro was only invoked conditionally." >&2;}
  15810. { (exit 1); exit 1; }; }
  15811. fi
  15812. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15813. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  15814. Usually this means the macro was only invoked conditionally." >&5
  15815. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  15816. Usually this means the macro was only invoked conditionally." >&2;}
  15817. { (exit 1); exit 1; }; }
  15818. fi
  15819. : ${CONFIG_STATUS=./config.status}
  15820. ac_write_fail=0
  15821. ac_clean_files_save=$ac_clean_files
  15822. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15823. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  15824. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15825. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15826. #! $SHELL
  15827. # Generated by $as_me.
  15828. # Run this file to recreate the current configuration.
  15829. # Compiler output produced by configure, useful for debugging
  15830. # configure, is in config.log if it exists.
  15831. debug=false
  15832. ac_cs_recheck=false
  15833. ac_cs_silent=false
  15834. SHELL=\${CONFIG_SHELL-$SHELL}
  15835. _ACEOF
  15836. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15837. ## --------------------- ##
  15838. ## M4sh Initialization. ##
  15839. ## --------------------- ##
  15840. # Be more Bourne compatible
  15841. DUALCASE=1; export DUALCASE # for MKS sh
  15842. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15843. emulate sh
  15844. NULLCMD=:
  15845. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15846. # is contrary to our usage. Disable this feature.
  15847. alias -g '${1+"$@"}'='"$@"'
  15848. setopt NO_GLOB_SUBST
  15849. else
  15850. case `(set -o) 2>/dev/null` in
  15851. *posix*) set -o posix ;;
  15852. esac
  15853. fi
  15854. # PATH needs CR
  15855. # Avoid depending upon Character Ranges.
  15856. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15857. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15858. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15859. as_cr_digits='0123456789'
  15860. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15861. as_nl='
  15862. '
  15863. export as_nl
  15864. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15865. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15866. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15867. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15868. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15869. as_echo='printf %s\n'
  15870. as_echo_n='printf %s'
  15871. else
  15872. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15873. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15874. as_echo_n='/usr/ucb/echo -n'
  15875. else
  15876. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15877. as_echo_n_body='eval
  15878. arg=$1;
  15879. case $arg in
  15880. *"$as_nl"*)
  15881. expr "X$arg" : "X\\(.*\\)$as_nl";
  15882. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15883. esac;
  15884. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15885. '
  15886. export as_echo_n_body
  15887. as_echo_n='sh -c $as_echo_n_body as_echo'
  15888. fi
  15889. export as_echo_body
  15890. as_echo='sh -c $as_echo_body as_echo'
  15891. fi
  15892. # The user is always right.
  15893. if test "${PATH_SEPARATOR+set}" != set; then
  15894. PATH_SEPARATOR=:
  15895. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15896. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15897. PATH_SEPARATOR=';'
  15898. }
  15899. fi
  15900. # Support unset when possible.
  15901. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  15902. as_unset=unset
  15903. else
  15904. as_unset=false
  15905. fi
  15906. # IFS
  15907. # We need space, tab and new line, in precisely that order. Quoting is
  15908. # there to prevent editors from complaining about space-tab.
  15909. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15910. # splitting by setting IFS to empty value.)
  15911. IFS=" "" $as_nl"
  15912. # Find who we are. Look in the path if we contain no directory separator.
  15913. case $0 in
  15914. *[\\/]* ) as_myself=$0 ;;
  15915. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15916. for as_dir in $PATH
  15917. do
  15918. IFS=$as_save_IFS
  15919. test -z "$as_dir" && as_dir=.
  15920. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15921. done
  15922. IFS=$as_save_IFS
  15923. ;;
  15924. esac
  15925. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15926. # in which case we are not to be found in the path.
  15927. if test "x$as_myself" = x; then
  15928. as_myself=$0
  15929. fi
  15930. if test ! -f "$as_myself"; then
  15931. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15932. { (exit 1); exit 1; }
  15933. fi
  15934. # Work around bugs in pre-3.0 UWIN ksh.
  15935. for as_var in ENV MAIL MAILPATH
  15936. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15937. done
  15938. PS1='$ '
  15939. PS2='> '
  15940. PS4='+ '
  15941. # NLS nuisances.
  15942. LC_ALL=C
  15943. export LC_ALL
  15944. LANGUAGE=C
  15945. export LANGUAGE
  15946. # Required to use basename.
  15947. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15948. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15949. as_expr=expr
  15950. else
  15951. as_expr=false
  15952. fi
  15953. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15954. as_basename=basename
  15955. else
  15956. as_basename=false
  15957. fi
  15958. # Name of the executable.
  15959. as_me=`$as_basename -- "$0" ||
  15960. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15961. X"$0" : 'X\(//\)$' \| \
  15962. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15963. $as_echo X/"$0" |
  15964. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15965. s//\1/
  15966. q
  15967. }
  15968. /^X\/\(\/\/\)$/{
  15969. s//\1/
  15970. q
  15971. }
  15972. /^X\/\(\/\).*/{
  15973. s//\1/
  15974. q
  15975. }
  15976. s/.*/./; q'`
  15977. # CDPATH.
  15978. $as_unset CDPATH
  15979. as_lineno_1=$LINENO
  15980. as_lineno_2=$LINENO
  15981. test "x$as_lineno_1" != "x$as_lineno_2" &&
  15982. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  15983. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  15984. # uniformly replaced by the line number. The first 'sed' inserts a
  15985. # line-number line after each line using $LINENO; the second 'sed'
  15986. # does the real work. The second script uses 'N' to pair each
  15987. # line-number line with the line containing $LINENO, and appends
  15988. # trailing '-' during substitution so that $LINENO is not a special
  15989. # case at line end.
  15990. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  15991. # scripts with optimization help from Paolo Bonzini. Blame Lee
  15992. # E. McMahon (1931-1989) for sed's syntax. :-)
  15993. sed -n '
  15994. p
  15995. /[$]LINENO/=
  15996. ' <$as_myself |
  15997. sed '
  15998. s/[$]LINENO.*/&-/
  15999. t lineno
  16000. b
  16001. :lineno
  16002. N
  16003. :loop
  16004. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  16005. t loop
  16006. s/-\n.*//
  16007. ' >$as_me.lineno &&
  16008. chmod +x "$as_me.lineno" ||
  16009. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  16010. { (exit 1); exit 1; }; }
  16011. # Don't try to exec as it changes $[0], causing all sort of problems
  16012. # (the dirname of $[0] is not the place where we might find the
  16013. # original and so on. Autoconf is especially sensitive to this).
  16014. . "./$as_me.lineno"
  16015. # Exit status is that of the last command.
  16016. exit
  16017. }
  16018. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16019. as_dirname=dirname
  16020. else
  16021. as_dirname=false
  16022. fi
  16023. ECHO_C= ECHO_N= ECHO_T=
  16024. case `echo -n x` in
  16025. -n*)
  16026. case `echo 'x\c'` in
  16027. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16028. *) ECHO_C='\c';;
  16029. esac;;
  16030. *)
  16031. ECHO_N='-n';;
  16032. esac
  16033. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16034. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16035. as_expr=expr
  16036. else
  16037. as_expr=false
  16038. fi
  16039. rm -f conf$$ conf$$.exe conf$$.file
  16040. if test -d conf$$.dir; then
  16041. rm -f conf$$.dir/conf$$.file
  16042. else
  16043. rm -f conf$$.dir
  16044. mkdir conf$$.dir 2>/dev/null
  16045. fi
  16046. if (echo >conf$$.file) 2>/dev/null; then
  16047. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16048. as_ln_s='ln -s'
  16049. # ... but there are two gotchas:
  16050. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16051. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16052. # In both cases, we have to default to `cp -p'.
  16053. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16054. as_ln_s='cp -p'
  16055. elif ln conf$$.file conf$$ 2>/dev/null; then
  16056. as_ln_s=ln
  16057. else
  16058. as_ln_s='cp -p'
  16059. fi
  16060. else
  16061. as_ln_s='cp -p'
  16062. fi
  16063. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16064. rmdir conf$$.dir 2>/dev/null
  16065. if mkdir -p . 2>/dev/null; then
  16066. as_mkdir_p=:
  16067. else
  16068. test -d ./-p && rmdir ./-p
  16069. as_mkdir_p=false
  16070. fi
  16071. if test -x / >/dev/null 2>&1; then
  16072. as_test_x='test -x'
  16073. else
  16074. if ls -dL / >/dev/null 2>&1; then
  16075. as_ls_L_option=L
  16076. else
  16077. as_ls_L_option=
  16078. fi
  16079. as_test_x='
  16080. eval sh -c '\''
  16081. if test -d "$1"; then
  16082. test -d "$1/.";
  16083. else
  16084. case $1 in
  16085. -*)set "./$1";;
  16086. esac;
  16087. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  16088. ???[sx]*):;;*)false;;esac;fi
  16089. '\'' sh
  16090. '
  16091. fi
  16092. as_executable_p=$as_test_x
  16093. # Sed expression to map a string onto a valid CPP name.
  16094. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16095. # Sed expression to map a string onto a valid variable name.
  16096. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16097. exec 6>&1
  16098. # Save the log message, to keep $[0] and so on meaningful, and to
  16099. # report actual input values of CONFIG_FILES etc. instead of their
  16100. # values after options handling.
  16101. ac_log="
  16102. This file was extended by vcmi $as_me 0.74b, which was
  16103. generated by GNU Autoconf 2.63. Invocation command line was
  16104. CONFIG_FILES = $CONFIG_FILES
  16105. CONFIG_HEADERS = $CONFIG_HEADERS
  16106. CONFIG_LINKS = $CONFIG_LINKS
  16107. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16108. $ $0 $@
  16109. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16110. "
  16111. _ACEOF
  16112. case $ac_config_files in *"
  16113. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16114. esac
  16115. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16116. # Files that config.status was made for.
  16117. config_files="$ac_config_files"
  16118. config_commands="$ac_config_commands"
  16119. _ACEOF
  16120. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16121. ac_cs_usage="\
  16122. \`$as_me' instantiates files from templates according to the
  16123. current configuration.
  16124. Usage: $0 [OPTION]... [FILE]...
  16125. -h, --help print this help, then exit
  16126. -V, --version print version number and configuration settings, then exit
  16127. -q, --quiet, --silent
  16128. do not print progress messages
  16129. -d, --debug don't remove temporary files
  16130. --recheck update $as_me by reconfiguring in the same conditions
  16131. --file=FILE[:TEMPLATE]
  16132. instantiate the configuration file FILE
  16133. Configuration files:
  16134. $config_files
  16135. Configuration commands:
  16136. $config_commands
  16137. Report bugs to <[email protected]>."
  16138. _ACEOF
  16139. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16140. ac_cs_version="\\
  16141. vcmi config.status 0.74b
  16142. configured by $0, generated by GNU Autoconf 2.63,
  16143. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  16144. Copyright (C) 2008 Free Software Foundation, Inc.
  16145. This config.status script is free software; the Free Software Foundation
  16146. gives unlimited permission to copy, distribute and modify it."
  16147. ac_pwd='$ac_pwd'
  16148. srcdir='$srcdir'
  16149. INSTALL='$INSTALL'
  16150. MKDIR_P='$MKDIR_P'
  16151. AWK='$AWK'
  16152. test -n "\$AWK" || AWK=awk
  16153. _ACEOF
  16154. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16155. # The default lists apply if the user does not specify any file.
  16156. ac_need_defaults=:
  16157. while test $# != 0
  16158. do
  16159. case $1 in
  16160. --*=*)
  16161. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16162. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16163. ac_shift=:
  16164. ;;
  16165. *)
  16166. ac_option=$1
  16167. ac_optarg=$2
  16168. ac_shift=shift
  16169. ;;
  16170. esac
  16171. case $ac_option in
  16172. # Handling of the options.
  16173. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16174. ac_cs_recheck=: ;;
  16175. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16176. $as_echo "$ac_cs_version"; exit ;;
  16177. --debug | --debu | --deb | --de | --d | -d )
  16178. debug=: ;;
  16179. --file | --fil | --fi | --f )
  16180. $ac_shift
  16181. case $ac_optarg in
  16182. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16183. esac
  16184. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  16185. ac_need_defaults=false;;
  16186. --he | --h | --help | --hel | -h )
  16187. $as_echo "$ac_cs_usage"; exit ;;
  16188. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16189. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16190. ac_cs_silent=: ;;
  16191. # This is an error.
  16192. -*) { $as_echo "$as_me: error: unrecognized option: $1
  16193. Try \`$0 --help' for more information." >&2
  16194. { (exit 1); exit 1; }; } ;;
  16195. *) ac_config_targets="$ac_config_targets $1"
  16196. ac_need_defaults=false ;;
  16197. esac
  16198. shift
  16199. done
  16200. ac_configure_extra_args=
  16201. if $ac_cs_silent; then
  16202. exec 6>/dev/null
  16203. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16204. fi
  16205. _ACEOF
  16206. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16207. if \$ac_cs_recheck; then
  16208. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16209. shift
  16210. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16211. CONFIG_SHELL='$SHELL'
  16212. export CONFIG_SHELL
  16213. exec "\$@"
  16214. fi
  16215. _ACEOF
  16216. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16217. exec 5>>config.log
  16218. {
  16219. echo
  16220. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16221. ## Running $as_me. ##
  16222. _ASBOX
  16223. $as_echo "$ac_log"
  16224. } >&5
  16225. _ACEOF
  16226. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16227. #
  16228. # INIT-COMMANDS
  16229. #
  16230. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16231. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16232. # if CDPATH is set.
  16233. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16234. sed_quote_subst='$sed_quote_subst'
  16235. double_quote_subst='$double_quote_subst'
  16236. delay_variable_subst='$delay_variable_subst'
  16237. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  16238. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  16239. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  16240. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  16241. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  16242. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  16243. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  16244. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  16245. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  16246. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  16247. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  16248. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  16249. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  16250. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  16251. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  16252. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  16253. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  16254. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  16255. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  16256. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  16257. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  16258. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  16259. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  16260. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  16261. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  16262. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  16263. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16264. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16265. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  16266. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  16267. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  16268. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  16269. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  16270. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  16271. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  16272. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16273. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16274. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16275. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  16276. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  16277. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  16278. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  16279. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  16280. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  16281. 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"`'
  16282. 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"`'
  16283. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  16284. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  16285. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  16286. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  16287. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16288. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  16289. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  16290. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  16291. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  16292. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  16293. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  16294. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  16295. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  16296. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  16297. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  16298. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  16299. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16300. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16301. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  16302. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  16303. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16304. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16305. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  16306. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16307. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16308. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16309. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16310. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16311. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16312. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  16313. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16314. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16315. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16316. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  16317. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  16318. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  16319. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  16320. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  16321. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16322. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  16323. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  16324. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  16325. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  16326. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  16327. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16328. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  16329. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  16330. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16331. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16332. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  16333. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  16334. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  16335. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  16336. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16337. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16338. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  16339. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16340. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16341. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16342. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16343. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16344. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16345. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  16346. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  16347. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16348. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16349. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  16350. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  16351. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  16352. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  16353. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  16354. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  16355. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  16356. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  16357. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  16358. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  16359. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  16360. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  16361. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16362. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16363. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16364. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16365. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16366. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16367. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16368. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16369. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16370. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16371. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16372. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16373. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16374. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16375. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16376. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16377. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16378. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16379. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16380. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16381. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16382. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16383. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16384. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16385. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16386. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16387. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16388. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16389. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16390. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16391. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16392. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16393. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16394. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16395. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16396. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16397. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16398. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16399. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16400. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16401. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16402. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16403. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16404. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16405. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16406. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16407. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16408. LTCC='$LTCC'
  16409. LTCFLAGS='$LTCFLAGS'
  16410. compiler='$compiler_DEFAULT'
  16411. # Quote evaled strings.
  16412. for var in SED \
  16413. GREP \
  16414. EGREP \
  16415. FGREP \
  16416. LD \
  16417. NM \
  16418. LN_S \
  16419. lt_SP2NL \
  16420. lt_NL2SP \
  16421. reload_flag \
  16422. OBJDUMP \
  16423. deplibs_check_method \
  16424. file_magic_cmd \
  16425. AR \
  16426. AR_FLAGS \
  16427. STRIP \
  16428. RANLIB \
  16429. CC \
  16430. CFLAGS \
  16431. compiler \
  16432. lt_cv_sys_global_symbol_pipe \
  16433. lt_cv_sys_global_symbol_to_cdecl \
  16434. lt_cv_sys_global_symbol_to_c_name_address \
  16435. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16436. SHELL \
  16437. ECHO \
  16438. lt_prog_compiler_no_builtin_flag \
  16439. lt_prog_compiler_wl \
  16440. lt_prog_compiler_pic \
  16441. lt_prog_compiler_static \
  16442. lt_cv_prog_compiler_c_o \
  16443. need_locks \
  16444. DSYMUTIL \
  16445. NMEDIT \
  16446. LIPO \
  16447. OTOOL \
  16448. OTOOL64 \
  16449. shrext_cmds \
  16450. export_dynamic_flag_spec \
  16451. whole_archive_flag_spec \
  16452. compiler_needs_object \
  16453. with_gnu_ld \
  16454. allow_undefined_flag \
  16455. no_undefined_flag \
  16456. hardcode_libdir_flag_spec \
  16457. hardcode_libdir_flag_spec_ld \
  16458. hardcode_libdir_separator \
  16459. fix_srcfile_path \
  16460. exclude_expsyms \
  16461. include_expsyms \
  16462. file_list_spec \
  16463. variables_saved_for_relink \
  16464. libname_spec \
  16465. library_names_spec \
  16466. soname_spec \
  16467. finish_eval \
  16468. old_striplib \
  16469. striplib \
  16470. compiler_lib_search_dirs \
  16471. predep_objects \
  16472. postdep_objects \
  16473. predeps \
  16474. postdeps \
  16475. compiler_lib_search_path \
  16476. LD_CXX \
  16477. compiler_CXX \
  16478. lt_prog_compiler_no_builtin_flag_CXX \
  16479. lt_prog_compiler_wl_CXX \
  16480. lt_prog_compiler_pic_CXX \
  16481. lt_prog_compiler_static_CXX \
  16482. lt_cv_prog_compiler_c_o_CXX \
  16483. export_dynamic_flag_spec_CXX \
  16484. whole_archive_flag_spec_CXX \
  16485. compiler_needs_object_CXX \
  16486. with_gnu_ld_CXX \
  16487. allow_undefined_flag_CXX \
  16488. no_undefined_flag_CXX \
  16489. hardcode_libdir_flag_spec_CXX \
  16490. hardcode_libdir_flag_spec_ld_CXX \
  16491. hardcode_libdir_separator_CXX \
  16492. fix_srcfile_path_CXX \
  16493. exclude_expsyms_CXX \
  16494. include_expsyms_CXX \
  16495. file_list_spec_CXX \
  16496. compiler_lib_search_dirs_CXX \
  16497. predep_objects_CXX \
  16498. postdep_objects_CXX \
  16499. predeps_CXX \
  16500. postdeps_CXX \
  16501. compiler_lib_search_path_CXX; do
  16502. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  16503. *[\\\\\\\`\\"\\\$]*)
  16504. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16505. ;;
  16506. *)
  16507. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16508. ;;
  16509. esac
  16510. done
  16511. # Double-quote double-evaled strings.
  16512. for var in reload_cmds \
  16513. old_postinstall_cmds \
  16514. old_postuninstall_cmds \
  16515. old_archive_cmds \
  16516. extract_expsyms_cmds \
  16517. old_archive_from_new_cmds \
  16518. old_archive_from_expsyms_cmds \
  16519. archive_cmds \
  16520. archive_expsym_cmds \
  16521. module_cmds \
  16522. module_expsym_cmds \
  16523. export_symbols_cmds \
  16524. prelink_cmds \
  16525. postinstall_cmds \
  16526. postuninstall_cmds \
  16527. finish_cmds \
  16528. sys_lib_search_path_spec \
  16529. sys_lib_dlsearch_path_spec \
  16530. old_archive_cmds_CXX \
  16531. old_archive_from_new_cmds_CXX \
  16532. old_archive_from_expsyms_cmds_CXX \
  16533. archive_cmds_CXX \
  16534. archive_expsym_cmds_CXX \
  16535. module_cmds_CXX \
  16536. module_expsym_cmds_CXX \
  16537. export_symbols_cmds_CXX \
  16538. prelink_cmds_CXX; do
  16539. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  16540. *[\\\\\\\`\\"\\\$]*)
  16541. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16542. ;;
  16543. *)
  16544. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16545. ;;
  16546. esac
  16547. done
  16548. # Fix-up fallback echo if it was mangled by the above quoting rules.
  16549. case \$lt_ECHO in
  16550. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  16551. ;;
  16552. esac
  16553. ac_aux_dir='$ac_aux_dir'
  16554. xsi_shell='$xsi_shell'
  16555. lt_shell_append='$lt_shell_append'
  16556. # See if we are running on zsh, and set the options which allow our
  16557. # commands through without removal of \ escapes INIT.
  16558. if test -n "\${ZSH_VERSION+set}" ; then
  16559. setopt NO_GLOB_SUBST
  16560. fi
  16561. PACKAGE='$PACKAGE'
  16562. VERSION='$VERSION'
  16563. TIMESTAMP='$TIMESTAMP'
  16564. RM='$RM'
  16565. ofile='$ofile'
  16566. _ACEOF
  16567. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16568. # Handling of arguments.
  16569. for ac_config_target in $ac_config_targets
  16570. do
  16571. case $ac_config_target in
  16572. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16573. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16574. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16575. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  16576. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  16577. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  16578. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  16579. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  16580. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  16581. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  16582. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  16583. { (exit 1); exit 1; }; };;
  16584. esac
  16585. done
  16586. # If the user did not use the arguments to specify the items to instantiate,
  16587. # then the envvar interface is used. Set only those that are not.
  16588. # We use the long form for the default assignment because of an extremely
  16589. # bizarre bug on SunOS 4.1.3.
  16590. if $ac_need_defaults; then
  16591. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16592. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16593. fi
  16594. # Have a temporary directory for convenience. Make it in the build tree
  16595. # simply because there is no reason against having it here, and in addition,
  16596. # creating and moving files from /tmp can sometimes cause problems.
  16597. # Hook for its removal unless debugging.
  16598. # Note that there is a small window in which the directory will not be cleaned:
  16599. # after its creation but before its name has been assigned to `$tmp'.
  16600. $debug ||
  16601. {
  16602. tmp=
  16603. trap 'exit_status=$?
  16604. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  16605. ' 0
  16606. trap '{ (exit 1); exit 1; }' 1 2 13 15
  16607. }
  16608. # Create a (secure) tmp directory for tmp files.
  16609. {
  16610. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16611. test -n "$tmp" && test -d "$tmp"
  16612. } ||
  16613. {
  16614. tmp=./conf$$-$RANDOM
  16615. (umask 077 && mkdir "$tmp")
  16616. } ||
  16617. {
  16618. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  16619. { (exit 1); exit 1; }
  16620. }
  16621. # Set up the scripts for CONFIG_FILES section.
  16622. # No need to generate them if there are no CONFIG_FILES.
  16623. # This happens for instance with `./config.status config.h'.
  16624. if test -n "$CONFIG_FILES"; then
  16625. ac_cr=' '
  16626. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16627. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16628. ac_cs_awk_cr='\\r'
  16629. else
  16630. ac_cs_awk_cr=$ac_cr
  16631. fi
  16632. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  16633. _ACEOF
  16634. {
  16635. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16636. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16637. echo "_ACEOF"
  16638. } >conf$$subs.sh ||
  16639. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16640. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16641. { (exit 1); exit 1; }; }
  16642. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  16643. ac_delim='%!_!# '
  16644. for ac_last_try in false false false false false :; do
  16645. . ./conf$$subs.sh ||
  16646. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16647. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16648. { (exit 1); exit 1; }; }
  16649. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16650. if test $ac_delim_n = $ac_delim_num; then
  16651. break
  16652. elif $ac_last_try; then
  16653. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16654. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16655. { (exit 1); exit 1; }; }
  16656. else
  16657. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16658. fi
  16659. done
  16660. rm -f conf$$subs.sh
  16661. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16662. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  16663. _ACEOF
  16664. sed -n '
  16665. h
  16666. s/^/S["/; s/!.*/"]=/
  16667. p
  16668. g
  16669. s/^[^!]*!//
  16670. :repl
  16671. t repl
  16672. s/'"$ac_delim"'$//
  16673. t delim
  16674. :nl
  16675. h
  16676. s/\(.\{148\}\).*/\1/
  16677. t more1
  16678. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16679. p
  16680. n
  16681. b repl
  16682. :more1
  16683. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16684. p
  16685. g
  16686. s/.\{148\}//
  16687. t nl
  16688. :delim
  16689. h
  16690. s/\(.\{148\}\).*/\1/
  16691. t more2
  16692. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16693. p
  16694. b
  16695. :more2
  16696. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16697. p
  16698. g
  16699. s/.\{148\}//
  16700. t delim
  16701. ' <conf$$subs.awk | sed '
  16702. /^[^""]/{
  16703. N
  16704. s/\n//
  16705. }
  16706. ' >>$CONFIG_STATUS || ac_write_fail=1
  16707. rm -f conf$$subs.awk
  16708. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16709. _ACAWK
  16710. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  16711. for (key in S) S_is_set[key] = 1
  16712. FS = ""
  16713. }
  16714. {
  16715. line = $ 0
  16716. nfields = split(line, field, "@")
  16717. substed = 0
  16718. len = length(field[1])
  16719. for (i = 2; i < nfields; i++) {
  16720. key = field[i]
  16721. keylen = length(key)
  16722. if (S_is_set[key]) {
  16723. value = S[key]
  16724. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16725. len += length(value) + length(field[++i])
  16726. substed = 1
  16727. } else
  16728. len += 1 + keylen
  16729. }
  16730. print line
  16731. }
  16732. _ACAWK
  16733. _ACEOF
  16734. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16735. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16736. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16737. else
  16738. cat
  16739. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  16740. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  16741. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  16742. { (exit 1); exit 1; }; }
  16743. _ACEOF
  16744. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  16745. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  16746. # trailing colons and then remove the whole line if VPATH becomes empty
  16747. # (actually we leave an empty line to preserve line numbers).
  16748. if test "x$srcdir" = x.; then
  16749. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  16750. s/:*\$(srcdir):*/:/
  16751. s/:*\${srcdir}:*/:/
  16752. s/:*@srcdir@:*/:/
  16753. s/^\([^=]*=[ ]*\):*/\1/
  16754. s/:*$//
  16755. s/^[^=]*=[ ]*$//
  16756. }'
  16757. fi
  16758. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16759. fi # test -n "$CONFIG_FILES"
  16760. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  16761. shift
  16762. for ac_tag
  16763. do
  16764. case $ac_tag in
  16765. :[FHLC]) ac_mode=$ac_tag; continue;;
  16766. esac
  16767. case $ac_mode$ac_tag in
  16768. :[FHL]*:*);;
  16769. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  16770. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  16771. { (exit 1); exit 1; }; };;
  16772. :[FH]-) ac_tag=-:-;;
  16773. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16774. esac
  16775. ac_save_IFS=$IFS
  16776. IFS=:
  16777. set x $ac_tag
  16778. IFS=$ac_save_IFS
  16779. shift
  16780. ac_file=$1
  16781. shift
  16782. case $ac_mode in
  16783. :L) ac_source=$1;;
  16784. :[FH])
  16785. ac_file_inputs=
  16786. for ac_f
  16787. do
  16788. case $ac_f in
  16789. -) ac_f="$tmp/stdin";;
  16790. *) # Look for the file first in the build tree, then in the source tree
  16791. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16792. # because $ac_f cannot contain `:'.
  16793. test -f "$ac_f" ||
  16794. case $ac_f in
  16795. [\\/$]*) false;;
  16796. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16797. esac ||
  16798. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  16799. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  16800. { (exit 1); exit 1; }; };;
  16801. esac
  16802. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16803. ac_file_inputs="$ac_file_inputs '$ac_f'"
  16804. done
  16805. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16806. # use $as_me), people would be surprised to read:
  16807. # /* config.h. Generated by config.status. */
  16808. configure_input='Generated from '`
  16809. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16810. `' by configure.'
  16811. if test x"$ac_file" != x-; then
  16812. configure_input="$ac_file. $configure_input"
  16813. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  16814. $as_echo "$as_me: creating $ac_file" >&6;}
  16815. fi
  16816. # Neutralize special characters interpreted by sed in replacement strings.
  16817. case $configure_input in #(
  16818. *\&* | *\|* | *\\* )
  16819. ac_sed_conf_input=`$as_echo "$configure_input" |
  16820. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16821. *) ac_sed_conf_input=$configure_input;;
  16822. esac
  16823. case $ac_tag in
  16824. *:-:* | *:-) cat >"$tmp/stdin" \
  16825. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  16826. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  16827. { (exit 1); exit 1; }; } ;;
  16828. esac
  16829. ;;
  16830. esac
  16831. ac_dir=`$as_dirname -- "$ac_file" ||
  16832. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16833. X"$ac_file" : 'X\(//\)[^/]' \| \
  16834. X"$ac_file" : 'X\(//\)$' \| \
  16835. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16836. $as_echo X"$ac_file" |
  16837. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16838. s//\1/
  16839. q
  16840. }
  16841. /^X\(\/\/\)[^/].*/{
  16842. s//\1/
  16843. q
  16844. }
  16845. /^X\(\/\/\)$/{
  16846. s//\1/
  16847. q
  16848. }
  16849. /^X\(\/\).*/{
  16850. s//\1/
  16851. q
  16852. }
  16853. s/.*/./; q'`
  16854. { as_dir="$ac_dir"
  16855. case $as_dir in #(
  16856. -*) as_dir=./$as_dir;;
  16857. esac
  16858. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  16859. as_dirs=
  16860. while :; do
  16861. case $as_dir in #(
  16862. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16863. *) as_qdir=$as_dir;;
  16864. esac
  16865. as_dirs="'$as_qdir' $as_dirs"
  16866. as_dir=`$as_dirname -- "$as_dir" ||
  16867. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16868. X"$as_dir" : 'X\(//\)[^/]' \| \
  16869. X"$as_dir" : 'X\(//\)$' \| \
  16870. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16871. $as_echo X"$as_dir" |
  16872. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16873. s//\1/
  16874. q
  16875. }
  16876. /^X\(\/\/\)[^/].*/{
  16877. s//\1/
  16878. q
  16879. }
  16880. /^X\(\/\/\)$/{
  16881. s//\1/
  16882. q
  16883. }
  16884. /^X\(\/\).*/{
  16885. s//\1/
  16886. q
  16887. }
  16888. s/.*/./; q'`
  16889. test -d "$as_dir" && break
  16890. done
  16891. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16892. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  16893. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  16894. { (exit 1); exit 1; }; }; }
  16895. ac_builddir=.
  16896. case "$ac_dir" in
  16897. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16898. *)
  16899. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16900. # A ".." for each directory in $ac_dir_suffix.
  16901. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16902. case $ac_top_builddir_sub in
  16903. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16904. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16905. esac ;;
  16906. esac
  16907. ac_abs_top_builddir=$ac_pwd
  16908. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16909. # for backward compatibility:
  16910. ac_top_builddir=$ac_top_build_prefix
  16911. case $srcdir in
  16912. .) # We are building in place.
  16913. ac_srcdir=.
  16914. ac_top_srcdir=$ac_top_builddir_sub
  16915. ac_abs_top_srcdir=$ac_pwd ;;
  16916. [\\/]* | ?:[\\/]* ) # Absolute name.
  16917. ac_srcdir=$srcdir$ac_dir_suffix;
  16918. ac_top_srcdir=$srcdir
  16919. ac_abs_top_srcdir=$srcdir ;;
  16920. *) # Relative name.
  16921. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16922. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16923. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16924. esac
  16925. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16926. case $ac_mode in
  16927. :F)
  16928. #
  16929. # CONFIG_FILE
  16930. #
  16931. case $INSTALL in
  16932. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16933. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16934. esac
  16935. ac_MKDIR_P=$MKDIR_P
  16936. case $MKDIR_P in
  16937. [\\/$]* | ?:[\\/]* ) ;;
  16938. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16939. esac
  16940. _ACEOF
  16941. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16942. # If the template does not know about datarootdir, expand it.
  16943. # FIXME: This hack should be removed a few years after 2.60.
  16944. ac_datarootdir_hack=; ac_datarootdir_seen=
  16945. ac_sed_dataroot='
  16946. /datarootdir/ {
  16947. p
  16948. q
  16949. }
  16950. /@datadir@/p
  16951. /@docdir@/p
  16952. /@infodir@/p
  16953. /@localedir@/p
  16954. /@mandir@/p
  16955. '
  16956. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16957. *datarootdir*) ac_datarootdir_seen=yes;;
  16958. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16959. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16960. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16961. _ACEOF
  16962. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16963. ac_datarootdir_hack='
  16964. s&@datadir@&$datadir&g
  16965. s&@docdir@&$docdir&g
  16966. s&@infodir@&$infodir&g
  16967. s&@localedir@&$localedir&g
  16968. s&@mandir@&$mandir&g
  16969. s&\\\${datarootdir}&$datarootdir&g' ;;
  16970. esac
  16971. _ACEOF
  16972. # Neutralize VPATH when `$srcdir' = `.'.
  16973. # Shell code in configure.ac might set extrasub.
  16974. # FIXME: do we really want to maintain this feature?
  16975. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16976. ac_sed_extra="$ac_vpsub
  16977. $extrasub
  16978. _ACEOF
  16979. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16980. :t
  16981. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16982. s|@configure_input@|$ac_sed_conf_input|;t t
  16983. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16984. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16985. s&@srcdir@&$ac_srcdir&;t t
  16986. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16987. s&@top_srcdir@&$ac_top_srcdir&;t t
  16988. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16989. s&@builddir@&$ac_builddir&;t t
  16990. s&@abs_builddir@&$ac_abs_builddir&;t t
  16991. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16992. s&@INSTALL@&$ac_INSTALL&;t t
  16993. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16994. $ac_datarootdir_hack
  16995. "
  16996. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  16997. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  16998. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  16999. { (exit 1); exit 1; }; }
  17000. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17001. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  17002. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  17003. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17004. which seems to be undefined. Please make sure it is defined." >&5
  17005. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17006. which seems to be undefined. Please make sure it is defined." >&2;}
  17007. rm -f "$tmp/stdin"
  17008. case $ac_file in
  17009. -) cat "$tmp/out" && rm -f "$tmp/out";;
  17010. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  17011. esac \
  17012. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  17013. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  17014. { (exit 1); exit 1; }; }
  17015. ;;
  17016. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  17017. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17018. ;;
  17019. esac
  17020. case $ac_file$ac_mode in
  17021. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17022. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  17023. # are listed without --file. Let's play safe and only enable the eval
  17024. # if we detect the quoting.
  17025. case $CONFIG_FILES in
  17026. *\'*) eval set x "$CONFIG_FILES" ;;
  17027. *) set x $CONFIG_FILES ;;
  17028. esac
  17029. shift
  17030. for mf
  17031. do
  17032. # Strip MF so we end up with the name of the file.
  17033. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17034. # Check whether this is an Automake generated Makefile or not.
  17035. # We used to match only the files named `Makefile.in', but
  17036. # some people rename them; so instead we look at the file content.
  17037. # Grep'ing the first line is not enough: some people post-process
  17038. # each Makefile.in and add a new line on top of each file to say so.
  17039. # Grep'ing the whole file is not good either: AIX grep has a line
  17040. # limit of 2048, but all sed's we know have understand at least 4000.
  17041. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  17042. dirpart=`$as_dirname -- "$mf" ||
  17043. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17044. X"$mf" : 'X\(//\)[^/]' \| \
  17045. X"$mf" : 'X\(//\)$' \| \
  17046. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17047. $as_echo X"$mf" |
  17048. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17049. s//\1/
  17050. q
  17051. }
  17052. /^X\(\/\/\)[^/].*/{
  17053. s//\1/
  17054. q
  17055. }
  17056. /^X\(\/\/\)$/{
  17057. s//\1/
  17058. q
  17059. }
  17060. /^X\(\/\).*/{
  17061. s//\1/
  17062. q
  17063. }
  17064. s/.*/./; q'`
  17065. else
  17066. continue
  17067. fi
  17068. # Extract the definition of DEPDIR, am__include, and am__quote
  17069. # from the Makefile without running `make'.
  17070. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17071. test -z "$DEPDIR" && continue
  17072. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17073. test -z "am__include" && continue
  17074. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17075. # When using ansi2knr, U may be empty or an underscore; expand it
  17076. U=`sed -n 's/^U = //p' < "$mf"`
  17077. # Find all dependency output files, they are included files with
  17078. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17079. # simplest approach to changing $(DEPDIR) to its actual value in the
  17080. # expansion.
  17081. for file in `sed -n "
  17082. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17083. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  17084. # Make sure the directory exists.
  17085. test -f "$dirpart/$file" && continue
  17086. fdir=`$as_dirname -- "$file" ||
  17087. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17088. X"$file" : 'X\(//\)[^/]' \| \
  17089. X"$file" : 'X\(//\)$' \| \
  17090. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17091. $as_echo X"$file" |
  17092. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17093. s//\1/
  17094. q
  17095. }
  17096. /^X\(\/\/\)[^/].*/{
  17097. s//\1/
  17098. q
  17099. }
  17100. /^X\(\/\/\)$/{
  17101. s//\1/
  17102. q
  17103. }
  17104. /^X\(\/\).*/{
  17105. s//\1/
  17106. q
  17107. }
  17108. s/.*/./; q'`
  17109. { as_dir=$dirpart/$fdir
  17110. case $as_dir in #(
  17111. -*) as_dir=./$as_dir;;
  17112. esac
  17113. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  17114. as_dirs=
  17115. while :; do
  17116. case $as_dir in #(
  17117. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17118. *) as_qdir=$as_dir;;
  17119. esac
  17120. as_dirs="'$as_qdir' $as_dirs"
  17121. as_dir=`$as_dirname -- "$as_dir" ||
  17122. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17123. X"$as_dir" : 'X\(//\)[^/]' \| \
  17124. X"$as_dir" : 'X\(//\)$' \| \
  17125. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17126. $as_echo X"$as_dir" |
  17127. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17128. s//\1/
  17129. q
  17130. }
  17131. /^X\(\/\/\)[^/].*/{
  17132. s//\1/
  17133. q
  17134. }
  17135. /^X\(\/\/\)$/{
  17136. s//\1/
  17137. q
  17138. }
  17139. /^X\(\/\).*/{
  17140. s//\1/
  17141. q
  17142. }
  17143. s/.*/./; q'`
  17144. test -d "$as_dir" && break
  17145. done
  17146. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17147. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  17148. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  17149. { (exit 1); exit 1; }; }; }
  17150. # echo "creating $dirpart/$file"
  17151. echo '# dummy' > "$dirpart/$file"
  17152. done
  17153. done
  17154. }
  17155. ;;
  17156. "libtool":C)
  17157. # See if we are running on zsh, and set the options which allow our
  17158. # commands through without removal of \ escapes.
  17159. if test -n "${ZSH_VERSION+set}" ; then
  17160. setopt NO_GLOB_SUBST
  17161. fi
  17162. cfgfile="${ofile}T"
  17163. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17164. $RM "$cfgfile"
  17165. cat <<_LT_EOF >> "$cfgfile"
  17166. #! $SHELL
  17167. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  17168. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  17169. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17170. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17171. #
  17172. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  17173. # 2006, 2007, 2008 Free Software Foundation, Inc.
  17174. # Written by Gordon Matzigkeit, 1996
  17175. #
  17176. # This file is part of GNU Libtool.
  17177. #
  17178. # GNU Libtool is free software; you can redistribute it and/or
  17179. # modify it under the terms of the GNU General Public License as
  17180. # published by the Free Software Foundation; either version 2 of
  17181. # the License, or (at your option) any later version.
  17182. #
  17183. # As a special exception to the GNU General Public License,
  17184. # if you distribute this file as part of a program or library that
  17185. # is built using GNU Libtool, you may include this file under the
  17186. # same distribution terms that you use for the rest of that program.
  17187. #
  17188. # GNU Libtool is distributed in the hope that it will be useful,
  17189. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17190. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17191. # GNU General Public License for more details.
  17192. #
  17193. # You should have received a copy of the GNU General Public License
  17194. # along with GNU Libtool; see the file COPYING. If not, a copy
  17195. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  17196. # obtained by writing to the Free Software Foundation, Inc.,
  17197. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17198. # The names of the tagged configurations supported by this script.
  17199. available_tags="CXX "
  17200. # ### BEGIN LIBTOOL CONFIG
  17201. # Whether or not to build shared libraries.
  17202. build_libtool_libs=$enable_shared
  17203. # Whether or not to build static libraries.
  17204. build_old_libs=$enable_static
  17205. # Which release of libtool.m4 was used?
  17206. macro_version=$macro_version
  17207. macro_revision=$macro_revision
  17208. # What type of objects to build.
  17209. pic_mode=$pic_mode
  17210. # Whether or not to optimize for fast installation.
  17211. fast_install=$enable_fast_install
  17212. # The host system.
  17213. host_alias=$host_alias
  17214. host=$host
  17215. host_os=$host_os
  17216. # The build system.
  17217. build_alias=$build_alias
  17218. build=$build
  17219. build_os=$build_os
  17220. # A sed program that does not truncate output.
  17221. SED=$lt_SED
  17222. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17223. Xsed="\$SED -e 1s/^X//"
  17224. # A grep program that handles long lines.
  17225. GREP=$lt_GREP
  17226. # An ERE matcher.
  17227. EGREP=$lt_EGREP
  17228. # A literal string matcher.
  17229. FGREP=$lt_FGREP
  17230. # A BSD- or MS-compatible name lister.
  17231. NM=$lt_NM
  17232. # Whether we need soft or hard links.
  17233. LN_S=$lt_LN_S
  17234. # What is the maximum length of a command?
  17235. max_cmd_len=$max_cmd_len
  17236. # Object file suffix (normally "o").
  17237. objext=$ac_objext
  17238. # Executable file suffix (normally "").
  17239. exeext=$exeext
  17240. # whether the shell understands "unset".
  17241. lt_unset=$lt_unset
  17242. # turn spaces into newlines.
  17243. SP2NL=$lt_lt_SP2NL
  17244. # turn newlines into spaces.
  17245. NL2SP=$lt_lt_NL2SP
  17246. # How to create reloadable object files.
  17247. reload_flag=$lt_reload_flag
  17248. reload_cmds=$lt_reload_cmds
  17249. # An object symbol dumper.
  17250. OBJDUMP=$lt_OBJDUMP
  17251. # Method to check whether dependent libraries are shared objects.
  17252. deplibs_check_method=$lt_deplibs_check_method
  17253. # Command to use when deplibs_check_method == "file_magic".
  17254. file_magic_cmd=$lt_file_magic_cmd
  17255. # The archiver.
  17256. AR=$lt_AR
  17257. AR_FLAGS=$lt_AR_FLAGS
  17258. # A symbol stripping program.
  17259. STRIP=$lt_STRIP
  17260. # Commands used to install an old-style archive.
  17261. RANLIB=$lt_RANLIB
  17262. old_postinstall_cmds=$lt_old_postinstall_cmds
  17263. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17264. # A C compiler.
  17265. LTCC=$lt_CC
  17266. # LTCC compiler flags.
  17267. LTCFLAGS=$lt_CFLAGS
  17268. # Take the output of nm and produce a listing of raw symbols and C names.
  17269. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17270. # Transform the output of nm in a proper C declaration.
  17271. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17272. # Transform the output of nm in a C name address pair.
  17273. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17274. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17275. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17276. # The name of the directory that contains temporary libtool files.
  17277. objdir=$objdir
  17278. # Shell to use when invoking shell scripts.
  17279. SHELL=$lt_SHELL
  17280. # An echo program that does not interpret backslashes.
  17281. ECHO=$lt_ECHO
  17282. # Used to examine libraries when file_magic_cmd begins with "file".
  17283. MAGIC_CMD=$MAGIC_CMD
  17284. # Must we lock files when doing compilation?
  17285. need_locks=$lt_need_locks
  17286. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17287. DSYMUTIL=$lt_DSYMUTIL
  17288. # Tool to change global to local symbols on Mac OS X.
  17289. NMEDIT=$lt_NMEDIT
  17290. # Tool to manipulate fat objects and archives on Mac OS X.
  17291. LIPO=$lt_LIPO
  17292. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17293. OTOOL=$lt_OTOOL
  17294. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17295. OTOOL64=$lt_OTOOL64
  17296. # Old archive suffix (normally "a").
  17297. libext=$libext
  17298. # Shared library suffix (normally ".so").
  17299. shrext_cmds=$lt_shrext_cmds
  17300. # The commands to extract the exported symbol list from a shared archive.
  17301. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17302. # Variables whose values should be saved in libtool wrapper scripts and
  17303. # restored at link time.
  17304. variables_saved_for_relink=$lt_variables_saved_for_relink
  17305. # Do we need the "lib" prefix for modules?
  17306. need_lib_prefix=$need_lib_prefix
  17307. # Do we need a version for libraries?
  17308. need_version=$need_version
  17309. # Library versioning type.
  17310. version_type=$version_type
  17311. # Shared library runtime path variable.
  17312. runpath_var=$runpath_var
  17313. # Shared library path variable.
  17314. shlibpath_var=$shlibpath_var
  17315. # Is shlibpath searched before the hard-coded library search path?
  17316. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17317. # Format of library name prefix.
  17318. libname_spec=$lt_libname_spec
  17319. # List of archive names. First name is the real one, the rest are links.
  17320. # The last name is the one that the linker finds with -lNAME
  17321. library_names_spec=$lt_library_names_spec
  17322. # The coded name of the library, if different from the real name.
  17323. soname_spec=$lt_soname_spec
  17324. # Command to use after installation of a shared archive.
  17325. postinstall_cmds=$lt_postinstall_cmds
  17326. # Command to use after uninstallation of a shared archive.
  17327. postuninstall_cmds=$lt_postuninstall_cmds
  17328. # Commands used to finish a libtool library installation in a directory.
  17329. finish_cmds=$lt_finish_cmds
  17330. # As "finish_cmds", except a single script fragment to be evaled but
  17331. # not shown.
  17332. finish_eval=$lt_finish_eval
  17333. # Whether we should hardcode library paths into libraries.
  17334. hardcode_into_libs=$hardcode_into_libs
  17335. # Compile-time system search path for libraries.
  17336. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17337. # Run-time system search path for libraries.
  17338. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17339. # Whether dlopen is supported.
  17340. dlopen_support=$enable_dlopen
  17341. # Whether dlopen of programs is supported.
  17342. dlopen_self=$enable_dlopen_self
  17343. # Whether dlopen of statically linked programs is supported.
  17344. dlopen_self_static=$enable_dlopen_self_static
  17345. # Commands to strip libraries.
  17346. old_striplib=$lt_old_striplib
  17347. striplib=$lt_striplib
  17348. # The linker used to build libraries.
  17349. LD=$lt_LD
  17350. # Commands used to build an old-style archive.
  17351. old_archive_cmds=$lt_old_archive_cmds
  17352. # A language specific compiler.
  17353. CC=$lt_compiler
  17354. # Is the compiler the GNU compiler?
  17355. with_gcc=$GCC
  17356. # Compiler flag to turn off builtin functions.
  17357. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17358. # How to pass a linker flag through the compiler.
  17359. wl=$lt_lt_prog_compiler_wl
  17360. # Additional compiler flags for building library objects.
  17361. pic_flag=$lt_lt_prog_compiler_pic
  17362. # Compiler flag to prevent dynamic linking.
  17363. link_static_flag=$lt_lt_prog_compiler_static
  17364. # Does compiler simultaneously support -c and -o options?
  17365. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17366. # Whether or not to add -lc for building shared libraries.
  17367. build_libtool_need_lc=$archive_cmds_need_lc
  17368. # Whether or not to disallow shared libs when runtime libs are static.
  17369. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17370. # Compiler flag to allow reflexive dlopens.
  17371. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17372. # Compiler flag to generate shared objects directly from archives.
  17373. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17374. # Whether the compiler copes with passing no objects directly.
  17375. compiler_needs_object=$lt_compiler_needs_object
  17376. # Create an old-style archive from a shared archive.
  17377. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17378. # Create a temporary old-style archive to link instead of a shared archive.
  17379. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17380. # Commands used to build a shared archive.
  17381. archive_cmds=$lt_archive_cmds
  17382. archive_expsym_cmds=$lt_archive_expsym_cmds
  17383. # Commands used to build a loadable module if different from building
  17384. # a shared archive.
  17385. module_cmds=$lt_module_cmds
  17386. module_expsym_cmds=$lt_module_expsym_cmds
  17387. # Whether we are building with GNU ld or not.
  17388. with_gnu_ld=$lt_with_gnu_ld
  17389. # Flag that allows shared libraries with undefined symbols to be built.
  17390. allow_undefined_flag=$lt_allow_undefined_flag
  17391. # Flag that enforces no undefined symbols.
  17392. no_undefined_flag=$lt_no_undefined_flag
  17393. # Flag to hardcode \$libdir into a binary during linking.
  17394. # This must work even if \$libdir does not exist
  17395. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17396. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17397. # during linking. This must work even if \$libdir does not exist.
  17398. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  17399. # Whether we need a single "-rpath" flag with a separated argument.
  17400. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17401. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17402. # DIR into the resulting binary.
  17403. hardcode_direct=$hardcode_direct
  17404. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17405. # DIR into the resulting binary and the resulting library dependency is
  17406. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17407. # library is relocated.
  17408. hardcode_direct_absolute=$hardcode_direct_absolute
  17409. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17410. # into the resulting binary.
  17411. hardcode_minus_L=$hardcode_minus_L
  17412. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17413. # into the resulting binary.
  17414. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17415. # Set to "yes" if building a shared library automatically hardcodes DIR
  17416. # into the library and all subsequent libraries and executables linked
  17417. # against it.
  17418. hardcode_automatic=$hardcode_automatic
  17419. # Set to yes if linker adds runtime paths of dependent libraries
  17420. # to runtime path list.
  17421. inherit_rpath=$inherit_rpath
  17422. # Whether libtool must link a program against all its dependency libraries.
  17423. link_all_deplibs=$link_all_deplibs
  17424. # Fix the shell variable \$srcfile for the compiler.
  17425. fix_srcfile_path=$lt_fix_srcfile_path
  17426. # Set to "yes" if exported symbols are required.
  17427. always_export_symbols=$always_export_symbols
  17428. # The commands to list exported symbols.
  17429. export_symbols_cmds=$lt_export_symbols_cmds
  17430. # Symbols that should not be listed in the preloaded symbols.
  17431. exclude_expsyms=$lt_exclude_expsyms
  17432. # Symbols that must always be exported.
  17433. include_expsyms=$lt_include_expsyms
  17434. # Commands necessary for linking programs (against libraries) with templates.
  17435. prelink_cmds=$lt_prelink_cmds
  17436. # Specify filename containing input files.
  17437. file_list_spec=$lt_file_list_spec
  17438. # How to hardcode a shared library path into an executable.
  17439. hardcode_action=$hardcode_action
  17440. # The directories searched by this compiler when creating a shared library.
  17441. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17442. # Dependencies to place before and after the objects being linked to
  17443. # create a shared library.
  17444. predep_objects=$lt_predep_objects
  17445. postdep_objects=$lt_postdep_objects
  17446. predeps=$lt_predeps
  17447. postdeps=$lt_postdeps
  17448. # The library search path used internally by the compiler when linking
  17449. # a shared library.
  17450. compiler_lib_search_path=$lt_compiler_lib_search_path
  17451. # ### END LIBTOOL CONFIG
  17452. _LT_EOF
  17453. case $host_os in
  17454. aix3*)
  17455. cat <<\_LT_EOF >> "$cfgfile"
  17456. # AIX sometimes has problems with the GCC collect2 program. For some
  17457. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17458. # vanish in a puff of smoke.
  17459. if test "X${COLLECT_NAMES+set}" != Xset; then
  17460. COLLECT_NAMES=
  17461. export COLLECT_NAMES
  17462. fi
  17463. _LT_EOF
  17464. ;;
  17465. esac
  17466. ltmain="$ac_aux_dir/ltmain.sh"
  17467. # We use sed instead of cat because bash on DJGPP gets confused if
  17468. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17469. # text mode, it properly converts lines to CR/LF. This bash problem
  17470. # is reportedly fixed, but why not run on old versions too?
  17471. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  17472. || (rm -f "$cfgfile"; exit 1)
  17473. case $xsi_shell in
  17474. yes)
  17475. cat << \_LT_EOF >> "$cfgfile"
  17476. # func_dirname file append nondir_replacement
  17477. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17478. # otherwise set result to NONDIR_REPLACEMENT.
  17479. func_dirname ()
  17480. {
  17481. case ${1} in
  17482. */*) func_dirname_result="${1%/*}${2}" ;;
  17483. * ) func_dirname_result="${3}" ;;
  17484. esac
  17485. }
  17486. # func_basename file
  17487. func_basename ()
  17488. {
  17489. func_basename_result="${1##*/}"
  17490. }
  17491. # func_dirname_and_basename file append nondir_replacement
  17492. # perform func_basename and func_dirname in a single function
  17493. # call:
  17494. # dirname: Compute the dirname of FILE. If nonempty,
  17495. # add APPEND to the result, otherwise set result
  17496. # to NONDIR_REPLACEMENT.
  17497. # value returned in "$func_dirname_result"
  17498. # basename: Compute filename of FILE.
  17499. # value retuned in "$func_basename_result"
  17500. # Implementation must be kept synchronized with func_dirname
  17501. # and func_basename. For efficiency, we do not delegate to
  17502. # those functions but instead duplicate the functionality here.
  17503. func_dirname_and_basename ()
  17504. {
  17505. case ${1} in
  17506. */*) func_dirname_result="${1%/*}${2}" ;;
  17507. * ) func_dirname_result="${3}" ;;
  17508. esac
  17509. func_basename_result="${1##*/}"
  17510. }
  17511. # func_stripname prefix suffix name
  17512. # strip PREFIX and SUFFIX off of NAME.
  17513. # PREFIX and SUFFIX must not contain globbing or regex special
  17514. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17515. # dot (in which case that matches only a dot).
  17516. func_stripname ()
  17517. {
  17518. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  17519. # positional parameters, so assign one to ordinary parameter first.
  17520. func_stripname_result=${3}
  17521. func_stripname_result=${func_stripname_result#"${1}"}
  17522. func_stripname_result=${func_stripname_result%"${2}"}
  17523. }
  17524. # func_opt_split
  17525. func_opt_split ()
  17526. {
  17527. func_opt_split_opt=${1%%=*}
  17528. func_opt_split_arg=${1#*=}
  17529. }
  17530. # func_lo2o object
  17531. func_lo2o ()
  17532. {
  17533. case ${1} in
  17534. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  17535. *) func_lo2o_result=${1} ;;
  17536. esac
  17537. }
  17538. # func_xform libobj-or-source
  17539. func_xform ()
  17540. {
  17541. func_xform_result=${1%.*}.lo
  17542. }
  17543. # func_arith arithmetic-term...
  17544. func_arith ()
  17545. {
  17546. func_arith_result=$(( $* ))
  17547. }
  17548. # func_len string
  17549. # STRING may not start with a hyphen.
  17550. func_len ()
  17551. {
  17552. func_len_result=${#1}
  17553. }
  17554. _LT_EOF
  17555. ;;
  17556. *) # Bourne compatible functions.
  17557. cat << \_LT_EOF >> "$cfgfile"
  17558. # func_dirname file append nondir_replacement
  17559. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17560. # otherwise set result to NONDIR_REPLACEMENT.
  17561. func_dirname ()
  17562. {
  17563. # Extract subdirectory from the argument.
  17564. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  17565. if test "X$func_dirname_result" = "X${1}"; then
  17566. func_dirname_result="${3}"
  17567. else
  17568. func_dirname_result="$func_dirname_result${2}"
  17569. fi
  17570. }
  17571. # func_basename file
  17572. func_basename ()
  17573. {
  17574. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  17575. }
  17576. # func_stripname prefix suffix name
  17577. # strip PREFIX and SUFFIX off of NAME.
  17578. # PREFIX and SUFFIX must not contain globbing or regex special
  17579. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17580. # dot (in which case that matches only a dot).
  17581. # func_strip_suffix prefix name
  17582. func_stripname ()
  17583. {
  17584. case ${2} in
  17585. .*) func_stripname_result=`$ECHO "X${3}" \
  17586. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  17587. *) func_stripname_result=`$ECHO "X${3}" \
  17588. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  17589. esac
  17590. }
  17591. # sed scripts:
  17592. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  17593. my_sed_long_arg='1s/^-[^=]*=//'
  17594. # func_opt_split
  17595. func_opt_split ()
  17596. {
  17597. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  17598. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  17599. }
  17600. # func_lo2o object
  17601. func_lo2o ()
  17602. {
  17603. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  17604. }
  17605. # func_xform libobj-or-source
  17606. func_xform ()
  17607. {
  17608. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  17609. }
  17610. # func_arith arithmetic-term...
  17611. func_arith ()
  17612. {
  17613. func_arith_result=`expr "$@"`
  17614. }
  17615. # func_len string
  17616. # STRING may not start with a hyphen.
  17617. func_len ()
  17618. {
  17619. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  17620. }
  17621. _LT_EOF
  17622. esac
  17623. case $lt_shell_append in
  17624. yes)
  17625. cat << \_LT_EOF >> "$cfgfile"
  17626. # func_append var value
  17627. # Append VALUE to the end of shell variable VAR.
  17628. func_append ()
  17629. {
  17630. eval "$1+=\$2"
  17631. }
  17632. _LT_EOF
  17633. ;;
  17634. *)
  17635. cat << \_LT_EOF >> "$cfgfile"
  17636. # func_append var value
  17637. # Append VALUE to the end of shell variable VAR.
  17638. func_append ()
  17639. {
  17640. eval "$1=\$$1\$2"
  17641. }
  17642. _LT_EOF
  17643. ;;
  17644. esac
  17645. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  17646. || (rm -f "$cfgfile"; exit 1)
  17647. mv -f "$cfgfile" "$ofile" ||
  17648. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17649. chmod +x "$ofile"
  17650. cat <<_LT_EOF >> "$ofile"
  17651. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17652. # The linker used to build libraries.
  17653. LD=$lt_LD_CXX
  17654. # Commands used to build an old-style archive.
  17655. old_archive_cmds=$lt_old_archive_cmds_CXX
  17656. # A language specific compiler.
  17657. CC=$lt_compiler_CXX
  17658. # Is the compiler the GNU compiler?
  17659. with_gcc=$GCC_CXX
  17660. # Compiler flag to turn off builtin functions.
  17661. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17662. # How to pass a linker flag through the compiler.
  17663. wl=$lt_lt_prog_compiler_wl_CXX
  17664. # Additional compiler flags for building library objects.
  17665. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17666. # Compiler flag to prevent dynamic linking.
  17667. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17668. # Does compiler simultaneously support -c and -o options?
  17669. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17670. # Whether or not to add -lc for building shared libraries.
  17671. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17672. # Whether or not to disallow shared libs when runtime libs are static.
  17673. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17674. # Compiler flag to allow reflexive dlopens.
  17675. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17676. # Compiler flag to generate shared objects directly from archives.
  17677. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17678. # Whether the compiler copes with passing no objects directly.
  17679. compiler_needs_object=$lt_compiler_needs_object_CXX
  17680. # Create an old-style archive from a shared archive.
  17681. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17682. # Create a temporary old-style archive to link instead of a shared archive.
  17683. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17684. # Commands used to build a shared archive.
  17685. archive_cmds=$lt_archive_cmds_CXX
  17686. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17687. # Commands used to build a loadable module if different from building
  17688. # a shared archive.
  17689. module_cmds=$lt_module_cmds_CXX
  17690. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17691. # Whether we are building with GNU ld or not.
  17692. with_gnu_ld=$lt_with_gnu_ld_CXX
  17693. # Flag that allows shared libraries with undefined symbols to be built.
  17694. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17695. # Flag that enforces no undefined symbols.
  17696. no_undefined_flag=$lt_no_undefined_flag_CXX
  17697. # Flag to hardcode \$libdir into a binary during linking.
  17698. # This must work even if \$libdir does not exist
  17699. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17700. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17701. # during linking. This must work even if \$libdir does not exist.
  17702. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  17703. # Whether we need a single "-rpath" flag with a separated argument.
  17704. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17705. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17706. # DIR into the resulting binary.
  17707. hardcode_direct=$hardcode_direct_CXX
  17708. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17709. # DIR into the resulting binary and the resulting library dependency is
  17710. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17711. # library is relocated.
  17712. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17713. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17714. # into the resulting binary.
  17715. hardcode_minus_L=$hardcode_minus_L_CXX
  17716. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17717. # into the resulting binary.
  17718. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17719. # Set to "yes" if building a shared library automatically hardcodes DIR
  17720. # into the library and all subsequent libraries and executables linked
  17721. # against it.
  17722. hardcode_automatic=$hardcode_automatic_CXX
  17723. # Set to yes if linker adds runtime paths of dependent libraries
  17724. # to runtime path list.
  17725. inherit_rpath=$inherit_rpath_CXX
  17726. # Whether libtool must link a program against all its dependency libraries.
  17727. link_all_deplibs=$link_all_deplibs_CXX
  17728. # Fix the shell variable \$srcfile for the compiler.
  17729. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  17730. # Set to "yes" if exported symbols are required.
  17731. always_export_symbols=$always_export_symbols_CXX
  17732. # The commands to list exported symbols.
  17733. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17734. # Symbols that should not be listed in the preloaded symbols.
  17735. exclude_expsyms=$lt_exclude_expsyms_CXX
  17736. # Symbols that must always be exported.
  17737. include_expsyms=$lt_include_expsyms_CXX
  17738. # Commands necessary for linking programs (against libraries) with templates.
  17739. prelink_cmds=$lt_prelink_cmds_CXX
  17740. # Specify filename containing input files.
  17741. file_list_spec=$lt_file_list_spec_CXX
  17742. # How to hardcode a shared library path into an executable.
  17743. hardcode_action=$hardcode_action_CXX
  17744. # The directories searched by this compiler when creating a shared library.
  17745. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17746. # Dependencies to place before and after the objects being linked to
  17747. # create a shared library.
  17748. predep_objects=$lt_predep_objects_CXX
  17749. postdep_objects=$lt_postdep_objects_CXX
  17750. predeps=$lt_predeps_CXX
  17751. postdeps=$lt_postdeps_CXX
  17752. # The library search path used internally by the compiler when linking
  17753. # a shared library.
  17754. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17755. # ### END LIBTOOL TAG CONFIG: CXX
  17756. _LT_EOF
  17757. ;;
  17758. esac
  17759. done # for ac_tag
  17760. { (exit 0); exit 0; }
  17761. _ACEOF
  17762. chmod +x $CONFIG_STATUS
  17763. ac_clean_files=$ac_clean_files_save
  17764. test $ac_write_fail = 0 ||
  17765. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  17766. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  17767. { (exit 1); exit 1; }; }
  17768. # configure is writing to config.log, and then calls config.status.
  17769. # config.status does its own redirection, appending to config.log.
  17770. # Unfortunately, on DOS this fails, as config.log is still kept open
  17771. # by configure, so config.status won't be able to write to it; its
  17772. # output is simply discarded. So we exec the FD to /dev/null,
  17773. # effectively closing config.log, so it can be properly (re)opened and
  17774. # appended to by config.status. When coming back to configure, we
  17775. # need to make the FD available again.
  17776. if test "$no_create" != yes; then
  17777. ac_cs_success=:
  17778. ac_config_status_args=
  17779. test "$silent" = yes &&
  17780. ac_config_status_args="$ac_config_status_args --quiet"
  17781. exec 5>/dev/null
  17782. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17783. exec 5>>config.log
  17784. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17785. # would make configure fail if this is the last instruction.
  17786. $ac_cs_success || { (exit 1); exit 1; }
  17787. fi
  17788. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17789. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17790. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17791. fi