configure 601 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for vcmi VERSION.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell [email protected] about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME='vcmi'
  647. PACKAGE_TARNAME='vcmi'
  648. PACKAGE_VERSION='VERSION'
  649. PACKAGE_STRING='vcmi VERSION'
  650. PACKAGE_BUGREPORT=''
  651. # Factoring default headers for most tests.
  652. ac_includes_default="\
  653. #include <stdio.h>
  654. #ifdef HAVE_SYS_TYPES_H
  655. # include <sys/types.h>
  656. #endif
  657. #ifdef HAVE_SYS_STAT_H
  658. # include <sys/stat.h>
  659. #endif
  660. #ifdef STDC_HEADERS
  661. # include <stdlib.h>
  662. # include <stddef.h>
  663. #else
  664. # ifdef HAVE_STDLIB_H
  665. # include <stdlib.h>
  666. # endif
  667. #endif
  668. #ifdef HAVE_STRING_H
  669. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  670. # include <memory.h>
  671. # endif
  672. # include <string.h>
  673. #endif
  674. #ifdef HAVE_STRINGS_H
  675. # include <strings.h>
  676. #endif
  677. #ifdef HAVE_INTTYPES_H
  678. # include <inttypes.h>
  679. #endif
  680. #ifdef HAVE_STDINT_H
  681. # include <stdint.h>
  682. #endif
  683. #ifdef HAVE_UNISTD_H
  684. # include <unistd.h>
  685. #endif"
  686. ac_subst_vars='LTLIBOBJS
  687. LIBOBJS
  688. FFMPEG_LIBS
  689. SDL_CXXFLAGS
  690. SDL_LIBS
  691. HAVE_SDL_CONFIG
  692. BOOST_IOSTREAMS_LIB
  693. BOOST_THREAD_LIB
  694. BOOST_FILESYSTEM_LIB
  695. BOOST_SYSTEM_LIB
  696. BOOST_LDFLAGS
  697. BOOST_CPPFLAGS
  698. CXXCPP
  699. CPP
  700. OTOOL64
  701. OTOOL
  702. LIPO
  703. NMEDIT
  704. DSYMUTIL
  705. lt_ECHO
  706. RANLIB
  707. AR
  708. OBJDUMP
  709. LN_S
  710. NM
  711. ac_ct_DUMPBIN
  712. DUMPBIN
  713. LD
  714. FGREP
  715. EGREP
  716. GREP
  717. SED
  718. am__fastdepCC_FALSE
  719. am__fastdepCC_TRUE
  720. CCDEPMODE
  721. ac_ct_CC
  722. CFLAGS
  723. CC
  724. host_os
  725. host_vendor
  726. host_cpu
  727. host
  728. build_os
  729. build_vendor
  730. build_cpu
  731. build
  732. LIBTOOL
  733. am__fastdepCXX_FALSE
  734. am__fastdepCXX_TRUE
  735. CXXDEPMODE
  736. AMDEPBACKSLASH
  737. AMDEP_FALSE
  738. AMDEP_TRUE
  739. am__quote
  740. am__include
  741. DEPDIR
  742. OBJEXT
  743. EXEEXT
  744. ac_ct_CXX
  745. CPPFLAGS
  746. LDFLAGS
  747. CXXFLAGS
  748. CXX
  749. am__untar
  750. am__tar
  751. AMTAR
  752. am__leading_dot
  753. SET_MAKE
  754. AWK
  755. mkdir_p
  756. MKDIR_P
  757. INSTALL_STRIP_PROGRAM
  758. STRIP
  759. install_sh
  760. MAKEINFO
  761. AUTOHEADER
  762. AUTOMAKE
  763. AUTOCONF
  764. ACLOCAL
  765. VERSION
  766. PACKAGE
  767. CYGPATH_W
  768. am__isrc
  769. INSTALL_DATA
  770. INSTALL_SCRIPT
  771. INSTALL_PROGRAM
  772. target_alias
  773. host_alias
  774. build_alias
  775. LIBS
  776. ECHO_T
  777. ECHO_N
  778. ECHO_C
  779. DEFS
  780. mandir
  781. localedir
  782. libdir
  783. psdir
  784. pdfdir
  785. dvidir
  786. htmldir
  787. infodir
  788. docdir
  789. oldincludedir
  790. includedir
  791. localstatedir
  792. sharedstatedir
  793. sysconfdir
  794. datadir
  795. datarootdir
  796. libexecdir
  797. sbindir
  798. bindir
  799. program_transform_name
  800. prefix
  801. exec_prefix
  802. PACKAGE_BUGREPORT
  803. PACKAGE_STRING
  804. PACKAGE_VERSION
  805. PACKAGE_TARNAME
  806. PACKAGE_NAME
  807. PATH_SEPARATOR
  808. SHELL'
  809. ac_subst_files=''
  810. ac_user_opts='
  811. enable_option_checking
  812. enable_dependency_tracking
  813. enable_shared
  814. enable_static
  815. with_pic
  816. enable_fast_install
  817. with_gnu_ld
  818. enable_libtool_lock
  819. enable_debug
  820. with_boost
  821. with_boost_libdir
  822. with_boost_system
  823. with_boost_filesystem
  824. with_boost_thread
  825. with_boost_iostreams
  826. '
  827. ac_precious_vars='build_alias
  828. host_alias
  829. target_alias
  830. CXX
  831. CXXFLAGS
  832. LDFLAGS
  833. LIBS
  834. CPPFLAGS
  835. CCC
  836. CC
  837. CFLAGS
  838. CPP
  839. CXXCPP'
  840. # Initialize some variables set by options.
  841. ac_init_help=
  842. ac_init_version=false
  843. ac_unrecognized_opts=
  844. ac_unrecognized_sep=
  845. # The variables have the same names as the options, with
  846. # dashes changed to underlines.
  847. cache_file=/dev/null
  848. exec_prefix=NONE
  849. no_create=
  850. no_recursion=
  851. prefix=NONE
  852. program_prefix=NONE
  853. program_suffix=NONE
  854. program_transform_name=s,x,x,
  855. silent=
  856. site=
  857. srcdir=
  858. verbose=
  859. x_includes=NONE
  860. x_libraries=NONE
  861. # Installation directory options.
  862. # These are left unexpanded so users can "make install exec_prefix=/foo"
  863. # and all the variables that are supposed to be based on exec_prefix
  864. # by default will actually change.
  865. # Use braces instead of parens because sh, perl, etc. also accept them.
  866. # (The list follows the same order as the GNU Coding Standards.)
  867. bindir='${exec_prefix}/bin'
  868. sbindir='${exec_prefix}/sbin'
  869. libexecdir='${exec_prefix}/libexec'
  870. datarootdir='${prefix}/share'
  871. datadir='${datarootdir}'
  872. sysconfdir='${prefix}/etc'
  873. sharedstatedir='${prefix}/com'
  874. localstatedir='${prefix}/var'
  875. includedir='${prefix}/include'
  876. oldincludedir='/usr/include'
  877. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  878. infodir='${datarootdir}/info'
  879. htmldir='${docdir}'
  880. dvidir='${docdir}'
  881. pdfdir='${docdir}'
  882. psdir='${docdir}'
  883. libdir='${exec_prefix}/lib'
  884. localedir='${datarootdir}/locale'
  885. mandir='${datarootdir}/man'
  886. ac_prev=
  887. ac_dashdash=
  888. for ac_option
  889. do
  890. # If the previous option needs an argument, assign it.
  891. if test -n "$ac_prev"; then
  892. eval $ac_prev=\$ac_option
  893. ac_prev=
  894. continue
  895. fi
  896. case $ac_option in
  897. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  898. *) ac_optarg=yes ;;
  899. esac
  900. # Accept the important Cygnus configure options, so we can diagnose typos.
  901. case $ac_dashdash$ac_option in
  902. --)
  903. ac_dashdash=yes ;;
  904. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  905. ac_prev=bindir ;;
  906. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  907. bindir=$ac_optarg ;;
  908. -build | --build | --buil | --bui | --bu)
  909. ac_prev=build_alias ;;
  910. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  911. build_alias=$ac_optarg ;;
  912. -cache-file | --cache-file | --cache-fil | --cache-fi \
  913. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  914. ac_prev=cache_file ;;
  915. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  916. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  917. cache_file=$ac_optarg ;;
  918. --config-cache | -C)
  919. cache_file=config.cache ;;
  920. -datadir | --datadir | --datadi | --datad)
  921. ac_prev=datadir ;;
  922. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  923. datadir=$ac_optarg ;;
  924. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  925. | --dataroo | --dataro | --datar)
  926. ac_prev=datarootdir ;;
  927. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  928. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  929. datarootdir=$ac_optarg ;;
  930. -disable-* | --disable-*)
  931. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  932. # Reject names that are not valid shell variable names.
  933. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  934. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  935. { (exit 1); exit 1; }; }
  936. ac_useropt_orig=$ac_useropt
  937. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  938. case $ac_user_opts in
  939. *"
  940. "enable_$ac_useropt"
  941. "*) ;;
  942. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  943. ac_unrecognized_sep=', ';;
  944. esac
  945. eval enable_$ac_useropt=no ;;
  946. -docdir | --docdir | --docdi | --doc | --do)
  947. ac_prev=docdir ;;
  948. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  949. docdir=$ac_optarg ;;
  950. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  951. ac_prev=dvidir ;;
  952. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  953. dvidir=$ac_optarg ;;
  954. -enable-* | --enable-*)
  955. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  956. # Reject names that are not valid shell variable names.
  957. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  958. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  959. { (exit 1); exit 1; }; }
  960. ac_useropt_orig=$ac_useropt
  961. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  962. case $ac_user_opts in
  963. *"
  964. "enable_$ac_useropt"
  965. "*) ;;
  966. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  967. ac_unrecognized_sep=', ';;
  968. esac
  969. eval enable_$ac_useropt=\$ac_optarg ;;
  970. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  971. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  972. | --exec | --exe | --ex)
  973. ac_prev=exec_prefix ;;
  974. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  975. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  976. | --exec=* | --exe=* | --ex=*)
  977. exec_prefix=$ac_optarg ;;
  978. -gas | --gas | --ga | --g)
  979. # Obsolete; use --with-gas.
  980. with_gas=yes ;;
  981. -help | --help | --hel | --he | -h)
  982. ac_init_help=long ;;
  983. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  984. ac_init_help=recursive ;;
  985. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  986. ac_init_help=short ;;
  987. -host | --host | --hos | --ho)
  988. ac_prev=host_alias ;;
  989. -host=* | --host=* | --hos=* | --ho=*)
  990. host_alias=$ac_optarg ;;
  991. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  992. ac_prev=htmldir ;;
  993. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  994. | --ht=*)
  995. htmldir=$ac_optarg ;;
  996. -includedir | --includedir | --includedi | --included | --include \
  997. | --includ | --inclu | --incl | --inc)
  998. ac_prev=includedir ;;
  999. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1000. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1001. includedir=$ac_optarg ;;
  1002. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1003. ac_prev=infodir ;;
  1004. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1005. infodir=$ac_optarg ;;
  1006. -libdir | --libdir | --libdi | --libd)
  1007. ac_prev=libdir ;;
  1008. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1009. libdir=$ac_optarg ;;
  1010. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1011. | --libexe | --libex | --libe)
  1012. ac_prev=libexecdir ;;
  1013. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1014. | --libexe=* | --libex=* | --libe=*)
  1015. libexecdir=$ac_optarg ;;
  1016. -localedir | --localedir | --localedi | --localed | --locale)
  1017. ac_prev=localedir ;;
  1018. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1019. localedir=$ac_optarg ;;
  1020. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1021. | --localstate | --localstat | --localsta | --localst | --locals)
  1022. ac_prev=localstatedir ;;
  1023. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1024. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1025. localstatedir=$ac_optarg ;;
  1026. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1027. ac_prev=mandir ;;
  1028. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1029. mandir=$ac_optarg ;;
  1030. -nfp | --nfp | --nf)
  1031. # Obsolete; use --without-fp.
  1032. with_fp=no ;;
  1033. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1034. | --no-cr | --no-c | -n)
  1035. no_create=yes ;;
  1036. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1037. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1038. no_recursion=yes ;;
  1039. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1040. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1041. | --oldin | --oldi | --old | --ol | --o)
  1042. ac_prev=oldincludedir ;;
  1043. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1044. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1045. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1046. oldincludedir=$ac_optarg ;;
  1047. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1048. ac_prev=prefix ;;
  1049. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1050. prefix=$ac_optarg ;;
  1051. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1052. | --program-pre | --program-pr | --program-p)
  1053. ac_prev=program_prefix ;;
  1054. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1055. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1056. program_prefix=$ac_optarg ;;
  1057. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1058. | --program-suf | --program-su | --program-s)
  1059. ac_prev=program_suffix ;;
  1060. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1061. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1062. program_suffix=$ac_optarg ;;
  1063. -program-transform-name | --program-transform-name \
  1064. | --program-transform-nam | --program-transform-na \
  1065. | --program-transform-n | --program-transform- \
  1066. | --program-transform | --program-transfor \
  1067. | --program-transfo | --program-transf \
  1068. | --program-trans | --program-tran \
  1069. | --progr-tra | --program-tr | --program-t)
  1070. ac_prev=program_transform_name ;;
  1071. -program-transform-name=* | --program-transform-name=* \
  1072. | --program-transform-nam=* | --program-transform-na=* \
  1073. | --program-transform-n=* | --program-transform-=* \
  1074. | --program-transform=* | --program-transfor=* \
  1075. | --program-transfo=* | --program-transf=* \
  1076. | --program-trans=* | --program-tran=* \
  1077. | --progr-tra=* | --program-tr=* | --program-t=*)
  1078. program_transform_name=$ac_optarg ;;
  1079. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1080. ac_prev=pdfdir ;;
  1081. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1082. pdfdir=$ac_optarg ;;
  1083. -psdir | --psdir | --psdi | --psd | --ps)
  1084. ac_prev=psdir ;;
  1085. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1086. psdir=$ac_optarg ;;
  1087. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1088. | -silent | --silent | --silen | --sile | --sil)
  1089. silent=yes ;;
  1090. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1091. ac_prev=sbindir ;;
  1092. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1093. | --sbi=* | --sb=*)
  1094. sbindir=$ac_optarg ;;
  1095. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1096. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1097. | --sharedst | --shareds | --shared | --share | --shar \
  1098. | --sha | --sh)
  1099. ac_prev=sharedstatedir ;;
  1100. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1101. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1102. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1103. | --sha=* | --sh=*)
  1104. sharedstatedir=$ac_optarg ;;
  1105. -site | --site | --sit)
  1106. ac_prev=site ;;
  1107. -site=* | --site=* | --sit=*)
  1108. site=$ac_optarg ;;
  1109. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1110. ac_prev=srcdir ;;
  1111. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1112. srcdir=$ac_optarg ;;
  1113. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1114. | --syscon | --sysco | --sysc | --sys | --sy)
  1115. ac_prev=sysconfdir ;;
  1116. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1117. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1118. sysconfdir=$ac_optarg ;;
  1119. -target | --target | --targe | --targ | --tar | --ta | --t)
  1120. ac_prev=target_alias ;;
  1121. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1122. target_alias=$ac_optarg ;;
  1123. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1124. verbose=yes ;;
  1125. -version | --version | --versio | --versi | --vers | -V)
  1126. ac_init_version=: ;;
  1127. -with-* | --with-*)
  1128. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1129. # Reject names that are not valid shell variable names.
  1130. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1131. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1132. { (exit 1); exit 1; }; }
  1133. ac_useropt_orig=$ac_useropt
  1134. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1135. case $ac_user_opts in
  1136. *"
  1137. "with_$ac_useropt"
  1138. "*) ;;
  1139. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1140. ac_unrecognized_sep=', ';;
  1141. esac
  1142. eval with_$ac_useropt=\$ac_optarg ;;
  1143. -without-* | --without-*)
  1144. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1145. # Reject names that are not valid shell variable names.
  1146. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1147. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1148. { (exit 1); exit 1; }; }
  1149. ac_useropt_orig=$ac_useropt
  1150. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1151. case $ac_user_opts in
  1152. *"
  1153. "with_$ac_useropt"
  1154. "*) ;;
  1155. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1156. ac_unrecognized_sep=', ';;
  1157. esac
  1158. eval with_$ac_useropt=no ;;
  1159. --x)
  1160. # Obsolete; use --with-x.
  1161. with_x=yes ;;
  1162. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1163. | --x-incl | --x-inc | --x-in | --x-i)
  1164. ac_prev=x_includes ;;
  1165. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1166. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1167. x_includes=$ac_optarg ;;
  1168. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1169. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1170. ac_prev=x_libraries ;;
  1171. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1172. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1173. x_libraries=$ac_optarg ;;
  1174. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1175. Try \`$0 --help' for more information." >&2
  1176. { (exit 1); exit 1; }; }
  1177. ;;
  1178. *=*)
  1179. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1180. # Reject names that are not valid shell variable names.
  1181. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1182. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1183. { (exit 1); exit 1; }; }
  1184. eval $ac_envvar=\$ac_optarg
  1185. export $ac_envvar ;;
  1186. *)
  1187. # FIXME: should be removed in autoconf 3.0.
  1188. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1189. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1190. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1191. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1192. ;;
  1193. esac
  1194. done
  1195. if test -n "$ac_prev"; then
  1196. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1197. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1198. { (exit 1); exit 1; }; }
  1199. fi
  1200. if test -n "$ac_unrecognized_opts"; then
  1201. case $enable_option_checking in
  1202. no) ;;
  1203. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1204. { (exit 1); exit 1; }; } ;;
  1205. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1206. esac
  1207. fi
  1208. # Check all directory arguments for consistency.
  1209. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1210. datadir sysconfdir sharedstatedir localstatedir includedir \
  1211. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1212. libdir localedir mandir
  1213. do
  1214. eval ac_val=\$$ac_var
  1215. # Remove trailing slashes.
  1216. case $ac_val in
  1217. */ )
  1218. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1219. eval $ac_var=\$ac_val;;
  1220. esac
  1221. # Be sure to have absolute directory names.
  1222. case $ac_val in
  1223. [\\/$]* | ?:[\\/]* ) continue;;
  1224. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1225. esac
  1226. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1227. { (exit 1); exit 1; }; }
  1228. done
  1229. # There might be people who depend on the old broken behavior: `$host'
  1230. # used to hold the argument of --host etc.
  1231. # FIXME: To remove some day.
  1232. build=$build_alias
  1233. host=$host_alias
  1234. target=$target_alias
  1235. # FIXME: To remove some day.
  1236. if test "x$host_alias" != x; then
  1237. if test "x$build_alias" = x; then
  1238. cross_compiling=maybe
  1239. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1240. If a cross compiler is detected then cross compile mode will be used." >&2
  1241. elif test "x$build_alias" != "x$host_alias"; then
  1242. cross_compiling=yes
  1243. fi
  1244. fi
  1245. ac_tool_prefix=
  1246. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1247. test "$silent" = yes && exec 6>/dev/null
  1248. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1249. ac_ls_di=`ls -di .` &&
  1250. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1251. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1252. { (exit 1); exit 1; }; }
  1253. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1254. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1255. { (exit 1); exit 1; }; }
  1256. # Find the source files, if location was not specified.
  1257. if test -z "$srcdir"; then
  1258. ac_srcdir_defaulted=yes
  1259. # Try the directory containing this script, then the parent directory.
  1260. ac_confdir=`$as_dirname -- "$as_myself" ||
  1261. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1262. X"$as_myself" : 'X\(//\)[^/]' \| \
  1263. X"$as_myself" : 'X\(//\)$' \| \
  1264. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1265. $as_echo X"$as_myself" |
  1266. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\/\)[^/].*/{
  1271. s//\1/
  1272. q
  1273. }
  1274. /^X\(\/\/\)$/{
  1275. s//\1/
  1276. q
  1277. }
  1278. /^X\(\/\).*/{
  1279. s//\1/
  1280. q
  1281. }
  1282. s/.*/./; q'`
  1283. srcdir=$ac_confdir
  1284. if test ! -r "$srcdir/$ac_unique_file"; then
  1285. srcdir=..
  1286. fi
  1287. else
  1288. ac_srcdir_defaulted=no
  1289. fi
  1290. if test ! -r "$srcdir/$ac_unique_file"; then
  1291. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1292. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1293. { (exit 1); exit 1; }; }
  1294. fi
  1295. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1296. ac_abs_confdir=`(
  1297. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1298. { (exit 1); exit 1; }; }
  1299. pwd)`
  1300. # When building in place, set srcdir=.
  1301. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1302. srcdir=.
  1303. fi
  1304. # Remove unnecessary trailing slashes from srcdir.
  1305. # Double slashes in file names in object file debugging info
  1306. # mess up M-x gdb in Emacs.
  1307. case $srcdir in
  1308. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1309. esac
  1310. for ac_var in $ac_precious_vars; do
  1311. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1312. eval ac_env_${ac_var}_value=\$${ac_var}
  1313. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1314. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1315. done
  1316. #
  1317. # Report the --help message.
  1318. #
  1319. if test "$ac_init_help" = "long"; then
  1320. # Omit some internal or obsolete options to make the list less imposing.
  1321. # This message is too long to be a string in the A/UX 3.1 sh.
  1322. cat <<_ACEOF
  1323. \`configure' configures vcmi VERSION to adapt to many kinds of systems.
  1324. Usage: $0 [OPTION]... [VAR=VALUE]...
  1325. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1326. VAR=VALUE. See below for descriptions of some of the useful variables.
  1327. Defaults for the options are specified in brackets.
  1328. Configuration:
  1329. -h, --help display this help and exit
  1330. --help=short display options specific to this package
  1331. --help=recursive display the short help of all the included packages
  1332. -V, --version display version information and exit
  1333. -q, --quiet, --silent do not print \`checking...' messages
  1334. --cache-file=FILE cache test results in FILE [disabled]
  1335. -C, --config-cache alias for \`--cache-file=config.cache'
  1336. -n, --no-create do not create output files
  1337. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1338. Installation directories:
  1339. --prefix=PREFIX install architecture-independent files in PREFIX
  1340. [$ac_default_prefix]
  1341. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1342. [PREFIX]
  1343. By default, \`make install' will install all the files in
  1344. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1345. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1346. for instance \`--prefix=\$HOME'.
  1347. For better control, use the options below.
  1348. Fine tuning of the installation directories:
  1349. --bindir=DIR user executables [EPREFIX/bin]
  1350. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1351. --libexecdir=DIR program executables [EPREFIX/libexec]
  1352. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1353. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1354. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1355. --libdir=DIR object code libraries [EPREFIX/lib]
  1356. --includedir=DIR C header files [PREFIX/include]
  1357. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1358. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1359. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1360. --infodir=DIR info documentation [DATAROOTDIR/info]
  1361. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1362. --mandir=DIR man documentation [DATAROOTDIR/man]
  1363. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1364. --htmldir=DIR html documentation [DOCDIR]
  1365. --dvidir=DIR dvi documentation [DOCDIR]
  1366. --pdfdir=DIR pdf documentation [DOCDIR]
  1367. --psdir=DIR ps documentation [DOCDIR]
  1368. _ACEOF
  1369. cat <<\_ACEOF
  1370. Program names:
  1371. --program-prefix=PREFIX prepend PREFIX to installed program names
  1372. --program-suffix=SUFFIX append SUFFIX to installed program names
  1373. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1374. System types:
  1375. --build=BUILD configure for building on BUILD [guessed]
  1376. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1377. _ACEOF
  1378. fi
  1379. if test -n "$ac_init_help"; then
  1380. case $ac_init_help in
  1381. short | recursive ) echo "Configuration of vcmi VERSION:";;
  1382. esac
  1383. cat <<\_ACEOF
  1384. Optional Features:
  1385. --disable-option-checking ignore unrecognized --enable/--with options
  1386. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1387. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1388. --disable-dependency-tracking speeds up one-time build
  1389. --enable-dependency-tracking do not reject slow dependency extractors
  1390. --enable-shared[=PKGS] build shared libraries [default=yes]
  1391. --enable-static[=PKGS] build static libraries [default=no]
  1392. --enable-fast-install[=PKGS]
  1393. optimize for fast installation [default=yes]
  1394. --disable-libtool-lock avoid locking (might break parallel builds)
  1395. --disable-debug turn off debugging (default=enable)
  1396. Optional Packages:
  1397. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1398. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1399. --with-pic try to use only PIC/non-PIC objects [default=use
  1400. both]
  1401. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1402. --with-boost[=DIR] use boost (default is yes) - it is possible to
  1403. specify the root directory for boost (optional)
  1404. --with-boost-libdir=LIB_DIR
  1405. Force given directory for boost libraries. Note that
  1406. this will overwrite library path detection, so use
  1407. this parameter only if default library detection
  1408. fails and you know exactly where your boost
  1409. libraries are located.
  1410. --with-boost-system[=special-lib]
  1411. use the System library from boost - it is possible
  1412. to specify a certain library for the linker e.g.
  1413. --with-boost-system=boost_system-gcc-mt
  1414. --with-boost-filesystem[=special-lib]
  1415. use the Filesystem library from boost - it is
  1416. possible to specify a certain library for the linker
  1417. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1418. --with-boost-thread[=special-lib]
  1419. use the Thread library from boost - it is possible
  1420. to specify a certain library for the linker e.g.
  1421. --with-boost-thread=boost_thread-gcc-mt
  1422. --with-boost-iostreams[=special-lib]
  1423. use the IOStreams library from boost - it is
  1424. possible to specify a certain library for the
  1425. linker e.g.
  1426. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1427. Some influential environment variables:
  1428. CXX C++ compiler command
  1429. CXXFLAGS C++ compiler flags
  1430. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1431. nonstandard directory <lib dir>
  1432. LIBS libraries to pass to the linker, e.g. -l<library>
  1433. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1434. you have headers in a nonstandard directory <include dir>
  1435. CC C compiler command
  1436. CFLAGS C compiler flags
  1437. CPP C preprocessor
  1438. CXXCPP C++ preprocessor
  1439. Use these variables to override the choices made by `configure' or to help
  1440. it to find libraries and programs with nonstandard names/locations.
  1441. _ACEOF
  1442. ac_status=$?
  1443. fi
  1444. if test "$ac_init_help" = "recursive"; then
  1445. # If there are subdirs, report their specific --help.
  1446. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1447. test -d "$ac_dir" ||
  1448. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1449. continue
  1450. ac_builddir=.
  1451. case "$ac_dir" in
  1452. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1453. *)
  1454. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1455. # A ".." for each directory in $ac_dir_suffix.
  1456. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1457. case $ac_top_builddir_sub in
  1458. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1459. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1460. esac ;;
  1461. esac
  1462. ac_abs_top_builddir=$ac_pwd
  1463. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1464. # for backward compatibility:
  1465. ac_top_builddir=$ac_top_build_prefix
  1466. case $srcdir in
  1467. .) # We are building in place.
  1468. ac_srcdir=.
  1469. ac_top_srcdir=$ac_top_builddir_sub
  1470. ac_abs_top_srcdir=$ac_pwd ;;
  1471. [\\/]* | ?:[\\/]* ) # Absolute name.
  1472. ac_srcdir=$srcdir$ac_dir_suffix;
  1473. ac_top_srcdir=$srcdir
  1474. ac_abs_top_srcdir=$srcdir ;;
  1475. *) # Relative name.
  1476. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1477. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1478. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1479. esac
  1480. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1481. cd "$ac_dir" || { ac_status=$?; continue; }
  1482. # Check for guested configure.
  1483. if test -f "$ac_srcdir/configure.gnu"; then
  1484. echo &&
  1485. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1486. elif test -f "$ac_srcdir/configure"; then
  1487. echo &&
  1488. $SHELL "$ac_srcdir/configure" --help=recursive
  1489. else
  1490. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1491. fi || ac_status=$?
  1492. cd "$ac_pwd" || { ac_status=$?; break; }
  1493. done
  1494. fi
  1495. test -n "$ac_init_help" && exit $ac_status
  1496. if $ac_init_version; then
  1497. cat <<\_ACEOF
  1498. vcmi configure VERSION
  1499. generated by GNU Autoconf 2.63
  1500. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1501. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1502. This configure script is free software; the Free Software Foundation
  1503. gives unlimited permission to copy, distribute and modify it.
  1504. _ACEOF
  1505. exit
  1506. fi
  1507. cat >config.log <<_ACEOF
  1508. This file contains any messages produced by compilers while
  1509. running configure, to aid debugging if configure makes a mistake.
  1510. It was created by vcmi $as_me VERSION, which was
  1511. generated by GNU Autoconf 2.63. Invocation command line was
  1512. $ $0 $@
  1513. _ACEOF
  1514. exec 5>>config.log
  1515. {
  1516. cat <<_ASUNAME
  1517. ## --------- ##
  1518. ## Platform. ##
  1519. ## --------- ##
  1520. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1521. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1522. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1523. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1524. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1525. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1526. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1527. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1528. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1529. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1530. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1531. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1532. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1533. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1534. _ASUNAME
  1535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1536. for as_dir in $PATH
  1537. do
  1538. IFS=$as_save_IFS
  1539. test -z "$as_dir" && as_dir=.
  1540. $as_echo "PATH: $as_dir"
  1541. done
  1542. IFS=$as_save_IFS
  1543. } >&5
  1544. cat >&5 <<_ACEOF
  1545. ## ----------- ##
  1546. ## Core tests. ##
  1547. ## ----------- ##
  1548. _ACEOF
  1549. # Keep a trace of the command line.
  1550. # Strip out --no-create and --no-recursion so they do not pile up.
  1551. # Strip out --silent because we don't want to record it for future runs.
  1552. # Also quote any args containing shell meta-characters.
  1553. # Make two passes to allow for proper duplicate-argument suppression.
  1554. ac_configure_args=
  1555. ac_configure_args0=
  1556. ac_configure_args1=
  1557. ac_must_keep_next=false
  1558. for ac_pass in 1 2
  1559. do
  1560. for ac_arg
  1561. do
  1562. case $ac_arg in
  1563. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1564. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1565. | -silent | --silent | --silen | --sile | --sil)
  1566. continue ;;
  1567. *\'*)
  1568. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1569. esac
  1570. case $ac_pass in
  1571. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1572. 2)
  1573. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1574. if test $ac_must_keep_next = true; then
  1575. ac_must_keep_next=false # Got value, back to normal.
  1576. else
  1577. case $ac_arg in
  1578. *=* | --config-cache | -C | -disable-* | --disable-* \
  1579. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1580. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1581. | -with-* | --with-* | -without-* | --without-* | --x)
  1582. case "$ac_configure_args0 " in
  1583. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1584. esac
  1585. ;;
  1586. -* ) ac_must_keep_next=true ;;
  1587. esac
  1588. fi
  1589. ac_configure_args="$ac_configure_args '$ac_arg'"
  1590. ;;
  1591. esac
  1592. done
  1593. done
  1594. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1595. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1596. # When interrupted or exit'd, cleanup temporary files, and complete
  1597. # config.log. We remove comments because anyway the quotes in there
  1598. # would cause problems or look ugly.
  1599. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1600. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1601. trap 'exit_status=$?
  1602. # Save into config.log some information that might help in debugging.
  1603. {
  1604. echo
  1605. cat <<\_ASBOX
  1606. ## ---------------- ##
  1607. ## Cache variables. ##
  1608. ## ---------------- ##
  1609. _ASBOX
  1610. echo
  1611. # The following way of writing the cache mishandles newlines in values,
  1612. (
  1613. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1614. eval ac_val=\$$ac_var
  1615. case $ac_val in #(
  1616. *${as_nl}*)
  1617. case $ac_var in #(
  1618. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1619. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1620. esac
  1621. case $ac_var in #(
  1622. _ | IFS | as_nl) ;; #(
  1623. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1624. *) $as_unset $ac_var ;;
  1625. esac ;;
  1626. esac
  1627. done
  1628. (set) 2>&1 |
  1629. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1630. *${as_nl}ac_space=\ *)
  1631. sed -n \
  1632. "s/'\''/'\''\\\\'\'''\''/g;
  1633. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1634. ;; #(
  1635. *)
  1636. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1637. ;;
  1638. esac |
  1639. sort
  1640. )
  1641. echo
  1642. cat <<\_ASBOX
  1643. ## ----------------- ##
  1644. ## Output variables. ##
  1645. ## ----------------- ##
  1646. _ASBOX
  1647. echo
  1648. for ac_var in $ac_subst_vars
  1649. do
  1650. eval ac_val=\$$ac_var
  1651. case $ac_val in
  1652. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1653. esac
  1654. $as_echo "$ac_var='\''$ac_val'\''"
  1655. done | sort
  1656. echo
  1657. if test -n "$ac_subst_files"; then
  1658. cat <<\_ASBOX
  1659. ## ------------------- ##
  1660. ## File substitutions. ##
  1661. ## ------------------- ##
  1662. _ASBOX
  1663. echo
  1664. for ac_var in $ac_subst_files
  1665. do
  1666. eval ac_val=\$$ac_var
  1667. case $ac_val in
  1668. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1669. esac
  1670. $as_echo "$ac_var='\''$ac_val'\''"
  1671. done | sort
  1672. echo
  1673. fi
  1674. if test -s confdefs.h; then
  1675. cat <<\_ASBOX
  1676. ## ----------- ##
  1677. ## confdefs.h. ##
  1678. ## ----------- ##
  1679. _ASBOX
  1680. echo
  1681. cat confdefs.h
  1682. echo
  1683. fi
  1684. test "$ac_signal" != 0 &&
  1685. $as_echo "$as_me: caught signal $ac_signal"
  1686. $as_echo "$as_me: exit $exit_status"
  1687. } >&5
  1688. rm -f core *.core core.conftest.* &&
  1689. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1690. exit $exit_status
  1691. ' 0
  1692. for ac_signal in 1 2 13 15; do
  1693. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1694. done
  1695. ac_signal=0
  1696. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1697. rm -f -r conftest* confdefs.h
  1698. # Predefined preprocessor variables.
  1699. cat >>confdefs.h <<_ACEOF
  1700. #define PACKAGE_NAME "$PACKAGE_NAME"
  1701. _ACEOF
  1702. cat >>confdefs.h <<_ACEOF
  1703. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1704. _ACEOF
  1705. cat >>confdefs.h <<_ACEOF
  1706. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1707. _ACEOF
  1708. cat >>confdefs.h <<_ACEOF
  1709. #define PACKAGE_STRING "$PACKAGE_STRING"
  1710. _ACEOF
  1711. cat >>confdefs.h <<_ACEOF
  1712. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1713. _ACEOF
  1714. # Let the site file select an alternate cache file if it wants to.
  1715. # Prefer an explicitly selected file to automatically selected ones.
  1716. ac_site_file1=NONE
  1717. ac_site_file2=NONE
  1718. if test -n "$CONFIG_SITE"; then
  1719. ac_site_file1=$CONFIG_SITE
  1720. elif test "x$prefix" != xNONE; then
  1721. ac_site_file1=$prefix/share/config.site
  1722. ac_site_file2=$prefix/etc/config.site
  1723. else
  1724. ac_site_file1=$ac_default_prefix/share/config.site
  1725. ac_site_file2=$ac_default_prefix/etc/config.site
  1726. fi
  1727. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1728. do
  1729. test "x$ac_site_file" = xNONE && continue
  1730. if test -r "$ac_site_file"; then
  1731. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1732. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1733. sed 's/^/| /' "$ac_site_file" >&5
  1734. . "$ac_site_file"
  1735. fi
  1736. done
  1737. if test -r "$cache_file"; then
  1738. # Some versions of bash will fail to source /dev/null (special
  1739. # files actually), so we avoid doing that.
  1740. if test -f "$cache_file"; then
  1741. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1742. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1743. case $cache_file in
  1744. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1745. *) . "./$cache_file";;
  1746. esac
  1747. fi
  1748. else
  1749. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1750. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1751. >$cache_file
  1752. fi
  1753. # Check that the precious variables saved in the cache have kept the same
  1754. # value.
  1755. ac_cache_corrupted=false
  1756. for ac_var in $ac_precious_vars; do
  1757. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1758. eval ac_new_set=\$ac_env_${ac_var}_set
  1759. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1760. eval ac_new_val=\$ac_env_${ac_var}_value
  1761. case $ac_old_set,$ac_new_set in
  1762. set,)
  1763. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1764. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1765. ac_cache_corrupted=: ;;
  1766. ,set)
  1767. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1768. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1769. ac_cache_corrupted=: ;;
  1770. ,);;
  1771. *)
  1772. if test "x$ac_old_val" != "x$ac_new_val"; then
  1773. # differences in whitespace do not lead to failure.
  1774. ac_old_val_w=`echo x $ac_old_val`
  1775. ac_new_val_w=`echo x $ac_new_val`
  1776. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1777. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1778. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1779. ac_cache_corrupted=:
  1780. else
  1781. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1782. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1783. eval $ac_var=\$ac_old_val
  1784. fi
  1785. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1786. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1787. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1788. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1789. fi;;
  1790. esac
  1791. # Pass precious variables to config.status.
  1792. if test "$ac_new_set" = set; then
  1793. case $ac_new_val in
  1794. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1795. *) ac_arg=$ac_var=$ac_new_val ;;
  1796. esac
  1797. case " $ac_configure_args " in
  1798. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1799. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1800. esac
  1801. fi
  1802. done
  1803. if $ac_cache_corrupted; then
  1804. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1805. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1806. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1807. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1808. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1809. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1810. { (exit 1); exit 1; }; }
  1811. fi
  1812. ac_ext=c
  1813. ac_cpp='$CPP $CPPFLAGS'
  1814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1817. am__api_version='1.10'
  1818. ac_aux_dir=
  1819. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1820. if test -f "$ac_dir/install-sh"; then
  1821. ac_aux_dir=$ac_dir
  1822. ac_install_sh="$ac_aux_dir/install-sh -c"
  1823. break
  1824. elif test -f "$ac_dir/install.sh"; then
  1825. ac_aux_dir=$ac_dir
  1826. ac_install_sh="$ac_aux_dir/install.sh -c"
  1827. break
  1828. elif test -f "$ac_dir/shtool"; then
  1829. ac_aux_dir=$ac_dir
  1830. ac_install_sh="$ac_aux_dir/shtool install -c"
  1831. break
  1832. fi
  1833. done
  1834. if test -z "$ac_aux_dir"; then
  1835. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1836. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1837. { (exit 1); exit 1; }; }
  1838. fi
  1839. # These three variables are undocumented and unsupported,
  1840. # and are intended to be withdrawn in a future Autoconf release.
  1841. # They can cause serious problems if a builder's source tree is in a directory
  1842. # whose full name contains unusual characters.
  1843. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1844. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1845. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1846. # Find a good install program. We prefer a C program (faster),
  1847. # so one script is as good as another. But avoid the broken or
  1848. # incompatible versions:
  1849. # SysV /etc/install, /usr/sbin/install
  1850. # SunOS /usr/etc/install
  1851. # IRIX /sbin/install
  1852. # AIX /bin/install
  1853. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1854. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1855. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1856. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1857. # OS/2's system install, which has a completely different semantic
  1858. # ./install, which can be erroneously created by make from ./install.sh.
  1859. # Reject install programs that cannot install multiple files.
  1860. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1861. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1862. if test -z "$INSTALL"; then
  1863. if test "${ac_cv_path_install+set}" = set; then
  1864. $as_echo_n "(cached) " >&6
  1865. else
  1866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1867. for as_dir in $PATH
  1868. do
  1869. IFS=$as_save_IFS
  1870. test -z "$as_dir" && as_dir=.
  1871. # Account for people who put trailing slashes in PATH elements.
  1872. case $as_dir/ in
  1873. ./ | .// | /cC/* | \
  1874. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1875. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1876. /usr/ucb/* ) ;;
  1877. *)
  1878. # OSF1 and SCO ODT 3.0 have their own names for install.
  1879. # Don't use installbsd from OSF since it installs stuff as root
  1880. # by default.
  1881. for ac_prog in ginstall scoinst install; do
  1882. for ac_exec_ext in '' $ac_executable_extensions; do
  1883. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1884. if test $ac_prog = install &&
  1885. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1886. # AIX install. It has an incompatible calling convention.
  1887. :
  1888. elif test $ac_prog = install &&
  1889. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1890. # program-specific install script used by HP pwplus--don't use.
  1891. :
  1892. else
  1893. rm -rf conftest.one conftest.two conftest.dir
  1894. echo one > conftest.one
  1895. echo two > conftest.two
  1896. mkdir conftest.dir
  1897. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1898. test -s conftest.one && test -s conftest.two &&
  1899. test -s conftest.dir/conftest.one &&
  1900. test -s conftest.dir/conftest.two
  1901. then
  1902. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1903. break 3
  1904. fi
  1905. fi
  1906. fi
  1907. done
  1908. done
  1909. ;;
  1910. esac
  1911. done
  1912. IFS=$as_save_IFS
  1913. rm -rf conftest.one conftest.two conftest.dir
  1914. fi
  1915. if test "${ac_cv_path_install+set}" = set; then
  1916. INSTALL=$ac_cv_path_install
  1917. else
  1918. # As a last resort, use the slow shell script. Don't cache a
  1919. # value for INSTALL within a source directory, because that will
  1920. # break other packages using the cache if that directory is
  1921. # removed, or if the value is a relative name.
  1922. INSTALL=$ac_install_sh
  1923. fi
  1924. fi
  1925. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1926. $as_echo "$INSTALL" >&6; }
  1927. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1928. # It thinks the first close brace ends the variable substitution.
  1929. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1930. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1931. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1932. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1933. $as_echo_n "checking whether build environment is sane... " >&6; }
  1934. # Just in case
  1935. sleep 1
  1936. echo timestamp > conftest.file
  1937. # Do `set' in a subshell so we don't clobber the current shell's
  1938. # arguments. Must try -L first in case configure is actually a
  1939. # symlink; some systems play weird games with the mod time of symlinks
  1940. # (eg FreeBSD returns the mod time of the symlink's containing
  1941. # directory).
  1942. if (
  1943. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1944. if test "$*" = "X"; then
  1945. # -L didn't work.
  1946. set X `ls -t $srcdir/configure conftest.file`
  1947. fi
  1948. rm -f conftest.file
  1949. if test "$*" != "X $srcdir/configure conftest.file" \
  1950. && test "$*" != "X conftest.file $srcdir/configure"; then
  1951. # If neither matched, then we have a broken ls. This can happen
  1952. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1953. # broken ls alias from the environment. This has actually
  1954. # happened. Such a system could not be considered "sane".
  1955. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1956. alias in your environment" >&5
  1957. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1958. alias in your environment" >&2;}
  1959. { (exit 1); exit 1; }; }
  1960. fi
  1961. test "$2" = conftest.file
  1962. )
  1963. then
  1964. # Ok.
  1965. :
  1966. else
  1967. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1968. Check your system clock" >&5
  1969. $as_echo "$as_me: error: newly created file is older than distributed files!
  1970. Check your system clock" >&2;}
  1971. { (exit 1); exit 1; }; }
  1972. fi
  1973. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1974. $as_echo "yes" >&6; }
  1975. test "$program_prefix" != NONE &&
  1976. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1977. # Use a double $ so make ignores it.
  1978. test "$program_suffix" != NONE &&
  1979. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1980. # Double any \ or $.
  1981. # By default was `s,x,x', remove it if useless.
  1982. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1983. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1984. # expand $ac_aux_dir to an absolute path
  1985. am_aux_dir=`cd $ac_aux_dir && pwd`
  1986. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1987. # Use eval to expand $SHELL
  1988. if eval "$MISSING --run true"; then
  1989. am_missing_run="$MISSING --run "
  1990. else
  1991. am_missing_run=
  1992. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1993. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1994. fi
  1995. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1996. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  1997. if test -z "$MKDIR_P"; then
  1998. if test "${ac_cv_path_mkdir+set}" = set; then
  1999. $as_echo_n "(cached) " >&6
  2000. else
  2001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2002. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2003. do
  2004. IFS=$as_save_IFS
  2005. test -z "$as_dir" && as_dir=.
  2006. for ac_prog in mkdir gmkdir; do
  2007. for ac_exec_ext in '' $ac_executable_extensions; do
  2008. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2009. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2010. 'mkdir (GNU coreutils) '* | \
  2011. 'mkdir (coreutils) '* | \
  2012. 'mkdir (fileutils) '4.1*)
  2013. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2014. break 3;;
  2015. esac
  2016. done
  2017. done
  2018. done
  2019. IFS=$as_save_IFS
  2020. fi
  2021. if test "${ac_cv_path_mkdir+set}" = set; then
  2022. MKDIR_P="$ac_cv_path_mkdir -p"
  2023. else
  2024. # As a last resort, use the slow shell script. Don't cache a
  2025. # value for MKDIR_P within a source directory, because that will
  2026. # break other packages using the cache if that directory is
  2027. # removed, or if the value is a relative name.
  2028. test -d ./--version && rmdir ./--version
  2029. MKDIR_P="$ac_install_sh -d"
  2030. fi
  2031. fi
  2032. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2033. $as_echo "$MKDIR_P" >&6; }
  2034. mkdir_p="$MKDIR_P"
  2035. case $mkdir_p in
  2036. [\\/$]* | ?:[\\/]*) ;;
  2037. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2038. esac
  2039. for ac_prog in gawk mawk nawk awk
  2040. do
  2041. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2042. set dummy $ac_prog; ac_word=$2
  2043. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2044. $as_echo_n "checking for $ac_word... " >&6; }
  2045. if test "${ac_cv_prog_AWK+set}" = set; then
  2046. $as_echo_n "(cached) " >&6
  2047. else
  2048. if test -n "$AWK"; then
  2049. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2050. else
  2051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2052. for as_dir in $PATH
  2053. do
  2054. IFS=$as_save_IFS
  2055. test -z "$as_dir" && as_dir=.
  2056. for ac_exec_ext in '' $ac_executable_extensions; do
  2057. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2058. ac_cv_prog_AWK="$ac_prog"
  2059. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2060. break 2
  2061. fi
  2062. done
  2063. done
  2064. IFS=$as_save_IFS
  2065. fi
  2066. fi
  2067. AWK=$ac_cv_prog_AWK
  2068. if test -n "$AWK"; then
  2069. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2070. $as_echo "$AWK" >&6; }
  2071. else
  2072. { $as_echo "$as_me:$LINENO: result: no" >&5
  2073. $as_echo "no" >&6; }
  2074. fi
  2075. test -n "$AWK" && break
  2076. done
  2077. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2078. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2079. set x ${MAKE-make}
  2080. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2081. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2082. $as_echo_n "(cached) " >&6
  2083. else
  2084. cat >conftest.make <<\_ACEOF
  2085. SHELL = /bin/sh
  2086. all:
  2087. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2088. _ACEOF
  2089. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2090. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2091. *@@@%%%=?*=@@@%%%*)
  2092. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2093. *)
  2094. eval ac_cv_prog_make_${ac_make}_set=no;;
  2095. esac
  2096. rm -f conftest.make
  2097. fi
  2098. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2099. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2100. $as_echo "yes" >&6; }
  2101. SET_MAKE=
  2102. else
  2103. { $as_echo "$as_me:$LINENO: result: no" >&5
  2104. $as_echo "no" >&6; }
  2105. SET_MAKE="MAKE=${MAKE-make}"
  2106. fi
  2107. rm -rf .tst 2>/dev/null
  2108. mkdir .tst 2>/dev/null
  2109. if test -d .tst; then
  2110. am__leading_dot=.
  2111. else
  2112. am__leading_dot=_
  2113. fi
  2114. rmdir .tst 2>/dev/null
  2115. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2116. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2117. # is not polluted with repeated "-I."
  2118. am__isrc=' -I$(srcdir)'
  2119. # test to see if srcdir already configured
  2120. if test -f $srcdir/config.status; then
  2121. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2122. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2123. { (exit 1); exit 1; }; }
  2124. fi
  2125. fi
  2126. # test whether we have cygpath
  2127. if test -z "$CYGPATH_W"; then
  2128. if (cygpath --version) >/dev/null 2>/dev/null; then
  2129. CYGPATH_W='cygpath -w'
  2130. else
  2131. CYGPATH_W=echo
  2132. fi
  2133. fi
  2134. # Define the identity of the package.
  2135. PACKAGE='vcmi'
  2136. VERSION='VERSION'
  2137. cat >>confdefs.h <<_ACEOF
  2138. #define PACKAGE "$PACKAGE"
  2139. _ACEOF
  2140. cat >>confdefs.h <<_ACEOF
  2141. #define VERSION "$VERSION"
  2142. _ACEOF
  2143. # Some tools Automake needs.
  2144. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2145. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2146. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2147. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2148. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2149. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2150. # Installed binaries are usually stripped using `strip' when the user
  2151. # run `make install-strip'. However `strip' might not be the right
  2152. # tool to use in cross-compilation environments, therefore Automake
  2153. # will honor the `STRIP' environment variable to overrule this program.
  2154. if test "$cross_compiling" != no; then
  2155. if test -n "$ac_tool_prefix"; then
  2156. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2157. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2158. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2159. $as_echo_n "checking for $ac_word... " >&6; }
  2160. if test "${ac_cv_prog_STRIP+set}" = set; then
  2161. $as_echo_n "(cached) " >&6
  2162. else
  2163. if test -n "$STRIP"; then
  2164. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2165. else
  2166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2167. for as_dir in $PATH
  2168. do
  2169. IFS=$as_save_IFS
  2170. test -z "$as_dir" && as_dir=.
  2171. for ac_exec_ext in '' $ac_executable_extensions; do
  2172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2173. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2174. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2175. break 2
  2176. fi
  2177. done
  2178. done
  2179. IFS=$as_save_IFS
  2180. fi
  2181. fi
  2182. STRIP=$ac_cv_prog_STRIP
  2183. if test -n "$STRIP"; then
  2184. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2185. $as_echo "$STRIP" >&6; }
  2186. else
  2187. { $as_echo "$as_me:$LINENO: result: no" >&5
  2188. $as_echo "no" >&6; }
  2189. fi
  2190. fi
  2191. if test -z "$ac_cv_prog_STRIP"; then
  2192. ac_ct_STRIP=$STRIP
  2193. # Extract the first word of "strip", so it can be a program name with args.
  2194. set dummy strip; ac_word=$2
  2195. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2196. $as_echo_n "checking for $ac_word... " >&6; }
  2197. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2198. $as_echo_n "(cached) " >&6
  2199. else
  2200. if test -n "$ac_ct_STRIP"; then
  2201. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2202. else
  2203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2204. for as_dir in $PATH
  2205. do
  2206. IFS=$as_save_IFS
  2207. test -z "$as_dir" && as_dir=.
  2208. for ac_exec_ext in '' $ac_executable_extensions; do
  2209. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2210. ac_cv_prog_ac_ct_STRIP="strip"
  2211. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2212. break 2
  2213. fi
  2214. done
  2215. done
  2216. IFS=$as_save_IFS
  2217. fi
  2218. fi
  2219. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2220. if test -n "$ac_ct_STRIP"; then
  2221. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2222. $as_echo "$ac_ct_STRIP" >&6; }
  2223. else
  2224. { $as_echo "$as_me:$LINENO: result: no" >&5
  2225. $as_echo "no" >&6; }
  2226. fi
  2227. if test "x$ac_ct_STRIP" = x; then
  2228. STRIP=":"
  2229. else
  2230. case $cross_compiling:$ac_tool_warned in
  2231. yes:)
  2232. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2233. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2234. ac_tool_warned=yes ;;
  2235. esac
  2236. STRIP=$ac_ct_STRIP
  2237. fi
  2238. else
  2239. STRIP="$ac_cv_prog_STRIP"
  2240. fi
  2241. fi
  2242. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2243. # We need awk for the "check" target. The system "awk" is bad on
  2244. # some platforms.
  2245. # Always define AMTAR for backward compatibility.
  2246. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2247. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2248. # Checks for build toolchain
  2249. ac_ext=cpp
  2250. ac_cpp='$CXXCPP $CPPFLAGS'
  2251. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2252. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2253. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2254. ac_ext=cpp
  2255. ac_cpp='$CXXCPP $CPPFLAGS'
  2256. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2257. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2258. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2259. if test -z "$CXX"; then
  2260. if test -n "$CCC"; then
  2261. CXX=$CCC
  2262. else
  2263. if test -n "$ac_tool_prefix"; then
  2264. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2265. do
  2266. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2267. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2268. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2269. $as_echo_n "checking for $ac_word... " >&6; }
  2270. if test "${ac_cv_prog_CXX+set}" = set; then
  2271. $as_echo_n "(cached) " >&6
  2272. else
  2273. if test -n "$CXX"; then
  2274. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2275. else
  2276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2277. for as_dir in $PATH
  2278. do
  2279. IFS=$as_save_IFS
  2280. test -z "$as_dir" && as_dir=.
  2281. for ac_exec_ext in '' $ac_executable_extensions; do
  2282. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2283. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2284. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2285. break 2
  2286. fi
  2287. done
  2288. done
  2289. IFS=$as_save_IFS
  2290. fi
  2291. fi
  2292. CXX=$ac_cv_prog_CXX
  2293. if test -n "$CXX"; then
  2294. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2295. $as_echo "$CXX" >&6; }
  2296. else
  2297. { $as_echo "$as_me:$LINENO: result: no" >&5
  2298. $as_echo "no" >&6; }
  2299. fi
  2300. test -n "$CXX" && break
  2301. done
  2302. fi
  2303. if test -z "$CXX"; then
  2304. ac_ct_CXX=$CXX
  2305. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2306. do
  2307. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2308. set dummy $ac_prog; ac_word=$2
  2309. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2310. $as_echo_n "checking for $ac_word... " >&6; }
  2311. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2312. $as_echo_n "(cached) " >&6
  2313. else
  2314. if test -n "$ac_ct_CXX"; then
  2315. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2316. else
  2317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2318. for as_dir in $PATH
  2319. do
  2320. IFS=$as_save_IFS
  2321. test -z "$as_dir" && as_dir=.
  2322. for ac_exec_ext in '' $ac_executable_extensions; do
  2323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2324. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2325. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2326. break 2
  2327. fi
  2328. done
  2329. done
  2330. IFS=$as_save_IFS
  2331. fi
  2332. fi
  2333. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2334. if test -n "$ac_ct_CXX"; then
  2335. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2336. $as_echo "$ac_ct_CXX" >&6; }
  2337. else
  2338. { $as_echo "$as_me:$LINENO: result: no" >&5
  2339. $as_echo "no" >&6; }
  2340. fi
  2341. test -n "$ac_ct_CXX" && break
  2342. done
  2343. if test "x$ac_ct_CXX" = x; then
  2344. CXX="g++"
  2345. else
  2346. case $cross_compiling:$ac_tool_warned in
  2347. yes:)
  2348. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2349. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2350. ac_tool_warned=yes ;;
  2351. esac
  2352. CXX=$ac_ct_CXX
  2353. fi
  2354. fi
  2355. fi
  2356. fi
  2357. # Provide some information about the compiler.
  2358. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2359. set X $ac_compile
  2360. ac_compiler=$2
  2361. { (ac_try="$ac_compiler --version >&5"
  2362. case "(($ac_try" in
  2363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2364. *) ac_try_echo=$ac_try;;
  2365. esac
  2366. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2367. $as_echo "$ac_try_echo") >&5
  2368. (eval "$ac_compiler --version >&5") 2>&5
  2369. ac_status=$?
  2370. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2371. (exit $ac_status); }
  2372. { (ac_try="$ac_compiler -v >&5"
  2373. case "(($ac_try" in
  2374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2375. *) ac_try_echo=$ac_try;;
  2376. esac
  2377. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2378. $as_echo "$ac_try_echo") >&5
  2379. (eval "$ac_compiler -v >&5") 2>&5
  2380. ac_status=$?
  2381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2382. (exit $ac_status); }
  2383. { (ac_try="$ac_compiler -V >&5"
  2384. case "(($ac_try" in
  2385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2386. *) ac_try_echo=$ac_try;;
  2387. esac
  2388. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2389. $as_echo "$ac_try_echo") >&5
  2390. (eval "$ac_compiler -V >&5") 2>&5
  2391. ac_status=$?
  2392. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2393. (exit $ac_status); }
  2394. cat >conftest.$ac_ext <<_ACEOF
  2395. /* confdefs.h. */
  2396. _ACEOF
  2397. cat confdefs.h >>conftest.$ac_ext
  2398. cat >>conftest.$ac_ext <<_ACEOF
  2399. /* end confdefs.h. */
  2400. int
  2401. main ()
  2402. {
  2403. ;
  2404. return 0;
  2405. }
  2406. _ACEOF
  2407. ac_clean_files_save=$ac_clean_files
  2408. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2409. # Try to create an executable without -o first, disregard a.out.
  2410. # It will help us diagnose broken compilers, and finding out an intuition
  2411. # of exeext.
  2412. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2413. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2414. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2415. # The possible output files:
  2416. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2417. ac_rmfiles=
  2418. for ac_file in $ac_files
  2419. do
  2420. case $ac_file in
  2421. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2422. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2423. esac
  2424. done
  2425. rm -f $ac_rmfiles
  2426. if { (ac_try="$ac_link_default"
  2427. case "(($ac_try" in
  2428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2429. *) ac_try_echo=$ac_try;;
  2430. esac
  2431. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2432. $as_echo "$ac_try_echo") >&5
  2433. (eval "$ac_link_default") 2>&5
  2434. ac_status=$?
  2435. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2436. (exit $ac_status); }; then
  2437. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2438. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2439. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2440. # so that the user can short-circuit this test for compilers unknown to
  2441. # Autoconf.
  2442. for ac_file in $ac_files ''
  2443. do
  2444. test -f "$ac_file" || continue
  2445. case $ac_file in
  2446. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2447. ;;
  2448. [ab].out )
  2449. # We found the default executable, but exeext='' is most
  2450. # certainly right.
  2451. break;;
  2452. *.* )
  2453. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2454. then :; else
  2455. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2456. fi
  2457. # We set ac_cv_exeext here because the later test for it is not
  2458. # safe: cross compilers may not add the suffix if given an `-o'
  2459. # argument, so we may need to know it at that point already.
  2460. # Even if this section looks crufty: it has the advantage of
  2461. # actually working.
  2462. break;;
  2463. * )
  2464. break;;
  2465. esac
  2466. done
  2467. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2468. else
  2469. ac_file=''
  2470. fi
  2471. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2472. $as_echo "$ac_file" >&6; }
  2473. if test -z "$ac_file"; then
  2474. $as_echo "$as_me: failed program was:" >&5
  2475. sed 's/^/| /' conftest.$ac_ext >&5
  2476. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2478. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2479. See \`config.log' for more details." >&5
  2480. $as_echo "$as_me: error: C++ compiler cannot create executables
  2481. See \`config.log' for more details." >&2;}
  2482. { (exit 77); exit 77; }; }; }
  2483. fi
  2484. ac_exeext=$ac_cv_exeext
  2485. # Check that the compiler produces executables we can run. If not, either
  2486. # the compiler is broken, or we cross compile.
  2487. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2488. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2489. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2490. # If not cross compiling, check that we can run a simple program.
  2491. if test "$cross_compiling" != yes; then
  2492. if { ac_try='./$ac_file'
  2493. { (case "(($ac_try" in
  2494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2495. *) ac_try_echo=$ac_try;;
  2496. esac
  2497. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2498. $as_echo "$ac_try_echo") >&5
  2499. (eval "$ac_try") 2>&5
  2500. ac_status=$?
  2501. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2502. (exit $ac_status); }; }; then
  2503. cross_compiling=no
  2504. else
  2505. if test "$cross_compiling" = maybe; then
  2506. cross_compiling=yes
  2507. else
  2508. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2509. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2510. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2511. If you meant to cross compile, use \`--host'.
  2512. See \`config.log' for more details." >&5
  2513. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2514. If you meant to cross compile, use \`--host'.
  2515. See \`config.log' for more details." >&2;}
  2516. { (exit 1); exit 1; }; }; }
  2517. fi
  2518. fi
  2519. fi
  2520. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2521. $as_echo "yes" >&6; }
  2522. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2523. ac_clean_files=$ac_clean_files_save
  2524. # Check that the compiler produces executables we can run. If not, either
  2525. # the compiler is broken, or we cross compile.
  2526. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2527. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2528. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2529. $as_echo "$cross_compiling" >&6; }
  2530. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2531. $as_echo_n "checking for suffix of executables... " >&6; }
  2532. if { (ac_try="$ac_link"
  2533. case "(($ac_try" in
  2534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2535. *) ac_try_echo=$ac_try;;
  2536. esac
  2537. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2538. $as_echo "$ac_try_echo") >&5
  2539. (eval "$ac_link") 2>&5
  2540. ac_status=$?
  2541. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; then
  2543. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2544. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2545. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2546. # `rm'.
  2547. for ac_file in conftest.exe conftest conftest.*; do
  2548. test -f "$ac_file" || continue
  2549. case $ac_file in
  2550. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2551. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2552. break;;
  2553. * ) break;;
  2554. esac
  2555. done
  2556. else
  2557. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2558. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2559. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2560. See \`config.log' for more details." >&5
  2561. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2562. See \`config.log' for more details." >&2;}
  2563. { (exit 1); exit 1; }; }; }
  2564. fi
  2565. rm -f conftest$ac_cv_exeext
  2566. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2567. $as_echo "$ac_cv_exeext" >&6; }
  2568. rm -f conftest.$ac_ext
  2569. EXEEXT=$ac_cv_exeext
  2570. ac_exeext=$EXEEXT
  2571. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2572. $as_echo_n "checking for suffix of object files... " >&6; }
  2573. if test "${ac_cv_objext+set}" = set; then
  2574. $as_echo_n "(cached) " >&6
  2575. else
  2576. cat >conftest.$ac_ext <<_ACEOF
  2577. /* confdefs.h. */
  2578. _ACEOF
  2579. cat confdefs.h >>conftest.$ac_ext
  2580. cat >>conftest.$ac_ext <<_ACEOF
  2581. /* end confdefs.h. */
  2582. int
  2583. main ()
  2584. {
  2585. ;
  2586. return 0;
  2587. }
  2588. _ACEOF
  2589. rm -f conftest.o conftest.obj
  2590. if { (ac_try="$ac_compile"
  2591. case "(($ac_try" in
  2592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2593. *) ac_try_echo=$ac_try;;
  2594. esac
  2595. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2596. $as_echo "$ac_try_echo") >&5
  2597. (eval "$ac_compile") 2>&5
  2598. ac_status=$?
  2599. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2600. (exit $ac_status); }; then
  2601. for ac_file in conftest.o conftest.obj conftest.*; do
  2602. test -f "$ac_file" || continue;
  2603. case $ac_file in
  2604. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2605. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2606. break;;
  2607. esac
  2608. done
  2609. else
  2610. $as_echo "$as_me: failed program was:" >&5
  2611. sed 's/^/| /' conftest.$ac_ext >&5
  2612. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2613. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2614. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2615. See \`config.log' for more details." >&5
  2616. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2617. See \`config.log' for more details." >&2;}
  2618. { (exit 1); exit 1; }; }; }
  2619. fi
  2620. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2621. fi
  2622. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2623. $as_echo "$ac_cv_objext" >&6; }
  2624. OBJEXT=$ac_cv_objext
  2625. ac_objext=$OBJEXT
  2626. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2627. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2628. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2629. $as_echo_n "(cached) " >&6
  2630. else
  2631. cat >conftest.$ac_ext <<_ACEOF
  2632. /* confdefs.h. */
  2633. _ACEOF
  2634. cat confdefs.h >>conftest.$ac_ext
  2635. cat >>conftest.$ac_ext <<_ACEOF
  2636. /* end confdefs.h. */
  2637. int
  2638. main ()
  2639. {
  2640. #ifndef __GNUC__
  2641. choke me
  2642. #endif
  2643. ;
  2644. return 0;
  2645. }
  2646. _ACEOF
  2647. rm -f conftest.$ac_objext
  2648. if { (ac_try="$ac_compile"
  2649. case "(($ac_try" in
  2650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2651. *) ac_try_echo=$ac_try;;
  2652. esac
  2653. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2654. $as_echo "$ac_try_echo") >&5
  2655. (eval "$ac_compile") 2>conftest.er1
  2656. ac_status=$?
  2657. grep -v '^ *+' conftest.er1 >conftest.err
  2658. rm -f conftest.er1
  2659. cat conftest.err >&5
  2660. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2661. (exit $ac_status); } && {
  2662. test -z "$ac_cxx_werror_flag" ||
  2663. test ! -s conftest.err
  2664. } && test -s conftest.$ac_objext; then
  2665. ac_compiler_gnu=yes
  2666. else
  2667. $as_echo "$as_me: failed program was:" >&5
  2668. sed 's/^/| /' conftest.$ac_ext >&5
  2669. ac_compiler_gnu=no
  2670. fi
  2671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2672. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2673. fi
  2674. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2675. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2676. if test $ac_compiler_gnu = yes; then
  2677. GXX=yes
  2678. else
  2679. GXX=
  2680. fi
  2681. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2682. ac_save_CXXFLAGS=$CXXFLAGS
  2683. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2684. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2685. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2686. $as_echo_n "(cached) " >&6
  2687. else
  2688. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2689. ac_cxx_werror_flag=yes
  2690. ac_cv_prog_cxx_g=no
  2691. CXXFLAGS="-g"
  2692. cat >conftest.$ac_ext <<_ACEOF
  2693. /* confdefs.h. */
  2694. _ACEOF
  2695. cat confdefs.h >>conftest.$ac_ext
  2696. cat >>conftest.$ac_ext <<_ACEOF
  2697. /* end confdefs.h. */
  2698. int
  2699. main ()
  2700. {
  2701. ;
  2702. return 0;
  2703. }
  2704. _ACEOF
  2705. rm -f conftest.$ac_objext
  2706. if { (ac_try="$ac_compile"
  2707. case "(($ac_try" in
  2708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2709. *) ac_try_echo=$ac_try;;
  2710. esac
  2711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2712. $as_echo "$ac_try_echo") >&5
  2713. (eval "$ac_compile") 2>conftest.er1
  2714. ac_status=$?
  2715. grep -v '^ *+' conftest.er1 >conftest.err
  2716. rm -f conftest.er1
  2717. cat conftest.err >&5
  2718. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2719. (exit $ac_status); } && {
  2720. test -z "$ac_cxx_werror_flag" ||
  2721. test ! -s conftest.err
  2722. } && test -s conftest.$ac_objext; then
  2723. ac_cv_prog_cxx_g=yes
  2724. else
  2725. $as_echo "$as_me: failed program was:" >&5
  2726. sed 's/^/| /' conftest.$ac_ext >&5
  2727. CXXFLAGS=""
  2728. cat >conftest.$ac_ext <<_ACEOF
  2729. /* confdefs.h. */
  2730. _ACEOF
  2731. cat confdefs.h >>conftest.$ac_ext
  2732. cat >>conftest.$ac_ext <<_ACEOF
  2733. /* end confdefs.h. */
  2734. int
  2735. main ()
  2736. {
  2737. ;
  2738. return 0;
  2739. }
  2740. _ACEOF
  2741. rm -f conftest.$ac_objext
  2742. if { (ac_try="$ac_compile"
  2743. case "(($ac_try" in
  2744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2745. *) ac_try_echo=$ac_try;;
  2746. esac
  2747. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2748. $as_echo "$ac_try_echo") >&5
  2749. (eval "$ac_compile") 2>conftest.er1
  2750. ac_status=$?
  2751. grep -v '^ *+' conftest.er1 >conftest.err
  2752. rm -f conftest.er1
  2753. cat conftest.err >&5
  2754. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2755. (exit $ac_status); } && {
  2756. test -z "$ac_cxx_werror_flag" ||
  2757. test ! -s conftest.err
  2758. } && test -s conftest.$ac_objext; then
  2759. :
  2760. else
  2761. $as_echo "$as_me: failed program was:" >&5
  2762. sed 's/^/| /' conftest.$ac_ext >&5
  2763. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2764. CXXFLAGS="-g"
  2765. cat >conftest.$ac_ext <<_ACEOF
  2766. /* confdefs.h. */
  2767. _ACEOF
  2768. cat confdefs.h >>conftest.$ac_ext
  2769. cat >>conftest.$ac_ext <<_ACEOF
  2770. /* end confdefs.h. */
  2771. int
  2772. main ()
  2773. {
  2774. ;
  2775. return 0;
  2776. }
  2777. _ACEOF
  2778. rm -f conftest.$ac_objext
  2779. if { (ac_try="$ac_compile"
  2780. case "(($ac_try" in
  2781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2782. *) ac_try_echo=$ac_try;;
  2783. esac
  2784. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2785. $as_echo "$ac_try_echo") >&5
  2786. (eval "$ac_compile") 2>conftest.er1
  2787. ac_status=$?
  2788. grep -v '^ *+' conftest.er1 >conftest.err
  2789. rm -f conftest.er1
  2790. cat conftest.err >&5
  2791. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2792. (exit $ac_status); } && {
  2793. test -z "$ac_cxx_werror_flag" ||
  2794. test ! -s conftest.err
  2795. } && test -s conftest.$ac_objext; then
  2796. ac_cv_prog_cxx_g=yes
  2797. else
  2798. $as_echo "$as_me: failed program was:" >&5
  2799. sed 's/^/| /' conftest.$ac_ext >&5
  2800. fi
  2801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2807. fi
  2808. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2809. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2810. if test "$ac_test_CXXFLAGS" = set; then
  2811. CXXFLAGS=$ac_save_CXXFLAGS
  2812. elif test $ac_cv_prog_cxx_g = yes; then
  2813. if test "$GXX" = yes; then
  2814. CXXFLAGS="-g -O2"
  2815. else
  2816. CXXFLAGS="-g"
  2817. fi
  2818. else
  2819. if test "$GXX" = yes; then
  2820. CXXFLAGS="-O2"
  2821. else
  2822. CXXFLAGS=
  2823. fi
  2824. fi
  2825. ac_ext=cpp
  2826. ac_cpp='$CXXCPP $CPPFLAGS'
  2827. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2828. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2829. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2830. DEPDIR="${am__leading_dot}deps"
  2831. ac_config_commands="$ac_config_commands depfiles"
  2832. am_make=${MAKE-make}
  2833. cat > confinc << 'END'
  2834. am__doit:
  2835. @echo done
  2836. .PHONY: am__doit
  2837. END
  2838. # If we don't find an include directive, just comment out the code.
  2839. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2840. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2841. am__include="#"
  2842. am__quote=
  2843. _am_result=none
  2844. # First try GNU make style include.
  2845. echo "include confinc" > confmf
  2846. # We grep out `Entering directory' and `Leaving directory'
  2847. # messages which can occur if `w' ends up in MAKEFLAGS.
  2848. # In particular we don't look at `^make:' because GNU make might
  2849. # be invoked under some other name (usually "gmake"), in which
  2850. # case it prints its new name instead of `make'.
  2851. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2852. am__include=include
  2853. am__quote=
  2854. _am_result=GNU
  2855. fi
  2856. # Now try BSD make style include.
  2857. if test "$am__include" = "#"; then
  2858. echo '.include "confinc"' > confmf
  2859. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2860. am__include=.include
  2861. am__quote="\""
  2862. _am_result=BSD
  2863. fi
  2864. fi
  2865. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2866. $as_echo "$_am_result" >&6; }
  2867. rm -f confinc confmf
  2868. # Check whether --enable-dependency-tracking was given.
  2869. if test "${enable_dependency_tracking+set}" = set; then
  2870. enableval=$enable_dependency_tracking;
  2871. fi
  2872. if test "x$enable_dependency_tracking" != xno; then
  2873. am_depcomp="$ac_aux_dir/depcomp"
  2874. AMDEPBACKSLASH='\'
  2875. fi
  2876. if test "x$enable_dependency_tracking" != xno; then
  2877. AMDEP_TRUE=
  2878. AMDEP_FALSE='#'
  2879. else
  2880. AMDEP_TRUE='#'
  2881. AMDEP_FALSE=
  2882. fi
  2883. depcc="$CXX" am_compiler_list=
  2884. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2885. $as_echo_n "checking dependency style of $depcc... " >&6; }
  2886. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2887. $as_echo_n "(cached) " >&6
  2888. else
  2889. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2890. # We make a subdir and do the tests there. Otherwise we can end up
  2891. # making bogus files that we don't know about and never remove. For
  2892. # instance it was reported that on HP-UX the gcc test will end up
  2893. # making a dummy file named `D' -- because `-MD' means `put the output
  2894. # in D'.
  2895. mkdir conftest.dir
  2896. # Copy depcomp to subdir because otherwise we won't find it if we're
  2897. # using a relative directory.
  2898. cp "$am_depcomp" conftest.dir
  2899. cd conftest.dir
  2900. # We will build objects and dependencies in a subdirectory because
  2901. # it helps to detect inapplicable dependency modes. For instance
  2902. # both Tru64's cc and ICC support -MD to output dependencies as a
  2903. # side effect of compilation, but ICC will put the dependencies in
  2904. # the current directory while Tru64 will put them in the object
  2905. # directory.
  2906. mkdir sub
  2907. am_cv_CXX_dependencies_compiler_type=none
  2908. if test "$am_compiler_list" = ""; then
  2909. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2910. fi
  2911. for depmode in $am_compiler_list; do
  2912. # Setup a source with many dependencies, because some compilers
  2913. # like to wrap large dependency lists on column 80 (with \), and
  2914. # we should not choose a depcomp mode which is confused by this.
  2915. #
  2916. # We need to recreate these files for each test, as the compiler may
  2917. # overwrite some of them when testing with obscure command lines.
  2918. # This happens at least with the AIX C compiler.
  2919. : > sub/conftest.c
  2920. for i in 1 2 3 4 5 6; do
  2921. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2922. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2923. # Solaris 8's {/usr,}/bin/sh.
  2924. touch sub/conftst$i.h
  2925. done
  2926. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2927. case $depmode in
  2928. nosideeffect)
  2929. # after this tag, mechanisms are not by side-effect, so they'll
  2930. # only be used when explicitly requested
  2931. if test "x$enable_dependency_tracking" = xyes; then
  2932. continue
  2933. else
  2934. break
  2935. fi
  2936. ;;
  2937. none) break ;;
  2938. esac
  2939. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2940. # mode. It turns out that the SunPro C++ compiler does not properly
  2941. # handle `-M -o', and we need to detect this.
  2942. if depmode=$depmode \
  2943. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2944. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2945. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2946. >/dev/null 2>conftest.err &&
  2947. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  2948. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2949. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2950. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2951. # icc doesn't choke on unknown options, it will just issue warnings
  2952. # or remarks (even with -Werror). So we grep stderr for any message
  2953. # that says an option was ignored or not supported.
  2954. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2955. # icc: Command line warning: ignoring option '-M'; no argument required
  2956. # The diagnosis changed in icc 8.0:
  2957. # icc: Command line remark: option '-MP' not supported
  2958. if (grep 'ignoring option' conftest.err ||
  2959. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2960. am_cv_CXX_dependencies_compiler_type=$depmode
  2961. break
  2962. fi
  2963. fi
  2964. done
  2965. cd ..
  2966. rm -rf conftest.dir
  2967. else
  2968. am_cv_CXX_dependencies_compiler_type=none
  2969. fi
  2970. fi
  2971. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2972. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  2973. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2974. if
  2975. test "x$enable_dependency_tracking" != xno \
  2976. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2977. am__fastdepCXX_TRUE=
  2978. am__fastdepCXX_FALSE='#'
  2979. else
  2980. am__fastdepCXX_TRUE='#'
  2981. am__fastdepCXX_FALSE=
  2982. fi
  2983. # Check whether --enable-shared was given.
  2984. if test "${enable_shared+set}" = set; then
  2985. enableval=$enable_shared; p=${PACKAGE-default}
  2986. case $enableval in
  2987. yes) enable_shared=yes ;;
  2988. no) enable_shared=no ;;
  2989. *)
  2990. enable_shared=no
  2991. # Look at the argument we got. We use all the common list separators.
  2992. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2993. for pkg in $enableval; do
  2994. IFS="$lt_save_ifs"
  2995. if test "X$pkg" = "X$p"; then
  2996. enable_shared=yes
  2997. fi
  2998. done
  2999. IFS="$lt_save_ifs"
  3000. ;;
  3001. esac
  3002. else
  3003. enable_shared=yes
  3004. fi
  3005. # Check whether --enable-static was given.
  3006. if test "${enable_static+set}" = set; then
  3007. enableval=$enable_static; p=${PACKAGE-default}
  3008. case $enableval in
  3009. yes) enable_static=yes ;;
  3010. no) enable_static=no ;;
  3011. *)
  3012. enable_static=no
  3013. # Look at the argument we got. We use all the common list separators.
  3014. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3015. for pkg in $enableval; do
  3016. IFS="$lt_save_ifs"
  3017. if test "X$pkg" = "X$p"; then
  3018. enable_static=yes
  3019. fi
  3020. done
  3021. IFS="$lt_save_ifs"
  3022. ;;
  3023. esac
  3024. else
  3025. enable_static=no
  3026. fi
  3027. case `pwd` in
  3028. *\ * | *\ *)
  3029. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3030. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3031. esac
  3032. macro_version='2.2.6'
  3033. macro_revision='1.3012'
  3034. ltmain="$ac_aux_dir/ltmain.sh"
  3035. # Make sure we can run config.sub.
  3036. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3037. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3038. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3039. { (exit 1); exit 1; }; }
  3040. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  3041. $as_echo_n "checking build system type... " >&6; }
  3042. if test "${ac_cv_build+set}" = set; then
  3043. $as_echo_n "(cached) " >&6
  3044. else
  3045. ac_build_alias=$build_alias
  3046. test "x$ac_build_alias" = x &&
  3047. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3048. test "x$ac_build_alias" = x &&
  3049. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3050. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3051. { (exit 1); exit 1; }; }
  3052. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3053. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3054. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3055. { (exit 1); exit 1; }; }
  3056. fi
  3057. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3058. $as_echo "$ac_cv_build" >&6; }
  3059. case $ac_cv_build in
  3060. *-*-*) ;;
  3061. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3062. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  3063. { (exit 1); exit 1; }; };;
  3064. esac
  3065. build=$ac_cv_build
  3066. ac_save_IFS=$IFS; IFS='-'
  3067. set x $ac_cv_build
  3068. shift
  3069. build_cpu=$1
  3070. build_vendor=$2
  3071. shift; shift
  3072. # Remember, the first character of IFS is used to create $*,
  3073. # except with old shells:
  3074. build_os=$*
  3075. IFS=$ac_save_IFS
  3076. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3077. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  3078. $as_echo_n "checking host system type... " >&6; }
  3079. if test "${ac_cv_host+set}" = set; then
  3080. $as_echo_n "(cached) " >&6
  3081. else
  3082. if test "x$host_alias" = x; then
  3083. ac_cv_host=$ac_cv_build
  3084. else
  3085. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3086. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3087. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3088. { (exit 1); exit 1; }; }
  3089. fi
  3090. fi
  3091. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3092. $as_echo "$ac_cv_host" >&6; }
  3093. case $ac_cv_host in
  3094. *-*-*) ;;
  3095. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3096. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  3097. { (exit 1); exit 1; }; };;
  3098. esac
  3099. host=$ac_cv_host
  3100. ac_save_IFS=$IFS; IFS='-'
  3101. set x $ac_cv_host
  3102. shift
  3103. host_cpu=$1
  3104. host_vendor=$2
  3105. shift; shift
  3106. # Remember, the first character of IFS is used to create $*,
  3107. # except with old shells:
  3108. host_os=$*
  3109. IFS=$ac_save_IFS
  3110. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3111. ac_ext=c
  3112. ac_cpp='$CPP $CPPFLAGS'
  3113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3116. if test -n "$ac_tool_prefix"; then
  3117. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3118. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3119. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3120. $as_echo_n "checking for $ac_word... " >&6; }
  3121. if test "${ac_cv_prog_CC+set}" = set; then
  3122. $as_echo_n "(cached) " >&6
  3123. else
  3124. if test -n "$CC"; then
  3125. ac_cv_prog_CC="$CC" # Let the user override the test.
  3126. else
  3127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3128. for as_dir in $PATH
  3129. do
  3130. IFS=$as_save_IFS
  3131. test -z "$as_dir" && as_dir=.
  3132. for ac_exec_ext in '' $ac_executable_extensions; do
  3133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3134. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3135. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3136. break 2
  3137. fi
  3138. done
  3139. done
  3140. IFS=$as_save_IFS
  3141. fi
  3142. fi
  3143. CC=$ac_cv_prog_CC
  3144. if test -n "$CC"; then
  3145. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3146. $as_echo "$CC" >&6; }
  3147. else
  3148. { $as_echo "$as_me:$LINENO: result: no" >&5
  3149. $as_echo "no" >&6; }
  3150. fi
  3151. fi
  3152. if test -z "$ac_cv_prog_CC"; then
  3153. ac_ct_CC=$CC
  3154. # Extract the first word of "gcc", so it can be a program name with args.
  3155. set dummy gcc; ac_word=$2
  3156. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3157. $as_echo_n "checking for $ac_word... " >&6; }
  3158. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3159. $as_echo_n "(cached) " >&6
  3160. else
  3161. if test -n "$ac_ct_CC"; then
  3162. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3163. else
  3164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3165. for as_dir in $PATH
  3166. do
  3167. IFS=$as_save_IFS
  3168. test -z "$as_dir" && as_dir=.
  3169. for ac_exec_ext in '' $ac_executable_extensions; do
  3170. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3171. ac_cv_prog_ac_ct_CC="gcc"
  3172. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3173. break 2
  3174. fi
  3175. done
  3176. done
  3177. IFS=$as_save_IFS
  3178. fi
  3179. fi
  3180. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3181. if test -n "$ac_ct_CC"; then
  3182. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3183. $as_echo "$ac_ct_CC" >&6; }
  3184. else
  3185. { $as_echo "$as_me:$LINENO: result: no" >&5
  3186. $as_echo "no" >&6; }
  3187. fi
  3188. if test "x$ac_ct_CC" = x; then
  3189. CC=""
  3190. else
  3191. case $cross_compiling:$ac_tool_warned in
  3192. yes:)
  3193. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3195. ac_tool_warned=yes ;;
  3196. esac
  3197. CC=$ac_ct_CC
  3198. fi
  3199. else
  3200. CC="$ac_cv_prog_CC"
  3201. fi
  3202. if test -z "$CC"; then
  3203. if test -n "$ac_tool_prefix"; then
  3204. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3205. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3206. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3207. $as_echo_n "checking for $ac_word... " >&6; }
  3208. if test "${ac_cv_prog_CC+set}" = set; then
  3209. $as_echo_n "(cached) " >&6
  3210. else
  3211. if test -n "$CC"; then
  3212. ac_cv_prog_CC="$CC" # Let the user override the test.
  3213. else
  3214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3215. for as_dir in $PATH
  3216. do
  3217. IFS=$as_save_IFS
  3218. test -z "$as_dir" && as_dir=.
  3219. for ac_exec_ext in '' $ac_executable_extensions; do
  3220. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3221. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3222. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3223. break 2
  3224. fi
  3225. done
  3226. done
  3227. IFS=$as_save_IFS
  3228. fi
  3229. fi
  3230. CC=$ac_cv_prog_CC
  3231. if test -n "$CC"; then
  3232. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3233. $as_echo "$CC" >&6; }
  3234. else
  3235. { $as_echo "$as_me:$LINENO: result: no" >&5
  3236. $as_echo "no" >&6; }
  3237. fi
  3238. fi
  3239. fi
  3240. if test -z "$CC"; then
  3241. # Extract the first word of "cc", so it can be a program name with args.
  3242. set dummy cc; ac_word=$2
  3243. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3244. $as_echo_n "checking for $ac_word... " >&6; }
  3245. if test "${ac_cv_prog_CC+set}" = set; then
  3246. $as_echo_n "(cached) " >&6
  3247. else
  3248. if test -n "$CC"; then
  3249. ac_cv_prog_CC="$CC" # Let the user override the test.
  3250. else
  3251. ac_prog_rejected=no
  3252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3253. for as_dir in $PATH
  3254. do
  3255. IFS=$as_save_IFS
  3256. test -z "$as_dir" && as_dir=.
  3257. for ac_exec_ext in '' $ac_executable_extensions; do
  3258. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3259. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3260. ac_prog_rejected=yes
  3261. continue
  3262. fi
  3263. ac_cv_prog_CC="cc"
  3264. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3265. break 2
  3266. fi
  3267. done
  3268. done
  3269. IFS=$as_save_IFS
  3270. if test $ac_prog_rejected = yes; then
  3271. # We found a bogon in the path, so make sure we never use it.
  3272. set dummy $ac_cv_prog_CC
  3273. shift
  3274. if test $# != 0; then
  3275. # We chose a different compiler from the bogus one.
  3276. # However, it has the same basename, so the bogon will be chosen
  3277. # first if we set CC to just the basename; use the full file name.
  3278. shift
  3279. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3280. fi
  3281. fi
  3282. fi
  3283. fi
  3284. CC=$ac_cv_prog_CC
  3285. if test -n "$CC"; then
  3286. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3287. $as_echo "$CC" >&6; }
  3288. else
  3289. { $as_echo "$as_me:$LINENO: result: no" >&5
  3290. $as_echo "no" >&6; }
  3291. fi
  3292. fi
  3293. if test -z "$CC"; then
  3294. if test -n "$ac_tool_prefix"; then
  3295. for ac_prog in cl.exe
  3296. do
  3297. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3298. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3299. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3300. $as_echo_n "checking for $ac_word... " >&6; }
  3301. if test "${ac_cv_prog_CC+set}" = set; then
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. if test -n "$CC"; then
  3305. ac_cv_prog_CC="$CC" # Let the user override the test.
  3306. else
  3307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3308. for as_dir in $PATH
  3309. do
  3310. IFS=$as_save_IFS
  3311. test -z "$as_dir" && as_dir=.
  3312. for ac_exec_ext in '' $ac_executable_extensions; do
  3313. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3314. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3315. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3316. break 2
  3317. fi
  3318. done
  3319. done
  3320. IFS=$as_save_IFS
  3321. fi
  3322. fi
  3323. CC=$ac_cv_prog_CC
  3324. if test -n "$CC"; then
  3325. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3326. $as_echo "$CC" >&6; }
  3327. else
  3328. { $as_echo "$as_me:$LINENO: result: no" >&5
  3329. $as_echo "no" >&6; }
  3330. fi
  3331. test -n "$CC" && break
  3332. done
  3333. fi
  3334. if test -z "$CC"; then
  3335. ac_ct_CC=$CC
  3336. for ac_prog in cl.exe
  3337. do
  3338. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3339. set dummy $ac_prog; ac_word=$2
  3340. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3341. $as_echo_n "checking for $ac_word... " >&6; }
  3342. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3343. $as_echo_n "(cached) " >&6
  3344. else
  3345. if test -n "$ac_ct_CC"; then
  3346. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3347. else
  3348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3349. for as_dir in $PATH
  3350. do
  3351. IFS=$as_save_IFS
  3352. test -z "$as_dir" && as_dir=.
  3353. for ac_exec_ext in '' $ac_executable_extensions; do
  3354. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3355. ac_cv_prog_ac_ct_CC="$ac_prog"
  3356. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3357. break 2
  3358. fi
  3359. done
  3360. done
  3361. IFS=$as_save_IFS
  3362. fi
  3363. fi
  3364. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3365. if test -n "$ac_ct_CC"; then
  3366. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3367. $as_echo "$ac_ct_CC" >&6; }
  3368. else
  3369. { $as_echo "$as_me:$LINENO: result: no" >&5
  3370. $as_echo "no" >&6; }
  3371. fi
  3372. test -n "$ac_ct_CC" && break
  3373. done
  3374. if test "x$ac_ct_CC" = x; then
  3375. CC=""
  3376. else
  3377. case $cross_compiling:$ac_tool_warned in
  3378. yes:)
  3379. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3380. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3381. ac_tool_warned=yes ;;
  3382. esac
  3383. CC=$ac_ct_CC
  3384. fi
  3385. fi
  3386. fi
  3387. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3388. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3389. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3390. See \`config.log' for more details." >&5
  3391. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3392. See \`config.log' for more details." >&2;}
  3393. { (exit 1); exit 1; }; }; }
  3394. # Provide some information about the compiler.
  3395. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3396. set X $ac_compile
  3397. ac_compiler=$2
  3398. { (ac_try="$ac_compiler --version >&5"
  3399. case "(($ac_try" in
  3400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3401. *) ac_try_echo=$ac_try;;
  3402. esac
  3403. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3404. $as_echo "$ac_try_echo") >&5
  3405. (eval "$ac_compiler --version >&5") 2>&5
  3406. ac_status=$?
  3407. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3408. (exit $ac_status); }
  3409. { (ac_try="$ac_compiler -v >&5"
  3410. case "(($ac_try" in
  3411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3412. *) ac_try_echo=$ac_try;;
  3413. esac
  3414. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3415. $as_echo "$ac_try_echo") >&5
  3416. (eval "$ac_compiler -v >&5") 2>&5
  3417. ac_status=$?
  3418. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3419. (exit $ac_status); }
  3420. { (ac_try="$ac_compiler -V >&5"
  3421. case "(($ac_try" in
  3422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3423. *) ac_try_echo=$ac_try;;
  3424. esac
  3425. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3426. $as_echo "$ac_try_echo") >&5
  3427. (eval "$ac_compiler -V >&5") 2>&5
  3428. ac_status=$?
  3429. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3430. (exit $ac_status); }
  3431. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3432. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3433. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3434. $as_echo_n "(cached) " >&6
  3435. else
  3436. cat >conftest.$ac_ext <<_ACEOF
  3437. /* confdefs.h. */
  3438. _ACEOF
  3439. cat confdefs.h >>conftest.$ac_ext
  3440. cat >>conftest.$ac_ext <<_ACEOF
  3441. /* end confdefs.h. */
  3442. int
  3443. main ()
  3444. {
  3445. #ifndef __GNUC__
  3446. choke me
  3447. #endif
  3448. ;
  3449. return 0;
  3450. }
  3451. _ACEOF
  3452. rm -f conftest.$ac_objext
  3453. if { (ac_try="$ac_compile"
  3454. case "(($ac_try" in
  3455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3456. *) ac_try_echo=$ac_try;;
  3457. esac
  3458. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3459. $as_echo "$ac_try_echo") >&5
  3460. (eval "$ac_compile") 2>conftest.er1
  3461. ac_status=$?
  3462. grep -v '^ *+' conftest.er1 >conftest.err
  3463. rm -f conftest.er1
  3464. cat conftest.err >&5
  3465. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3466. (exit $ac_status); } && {
  3467. test -z "$ac_c_werror_flag" ||
  3468. test ! -s conftest.err
  3469. } && test -s conftest.$ac_objext; then
  3470. ac_compiler_gnu=yes
  3471. else
  3472. $as_echo "$as_me: failed program was:" >&5
  3473. sed 's/^/| /' conftest.$ac_ext >&5
  3474. ac_compiler_gnu=no
  3475. fi
  3476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3477. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3478. fi
  3479. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3480. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3481. if test $ac_compiler_gnu = yes; then
  3482. GCC=yes
  3483. else
  3484. GCC=
  3485. fi
  3486. ac_test_CFLAGS=${CFLAGS+set}
  3487. ac_save_CFLAGS=$CFLAGS
  3488. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3489. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3490. if test "${ac_cv_prog_cc_g+set}" = set; then
  3491. $as_echo_n "(cached) " >&6
  3492. else
  3493. ac_save_c_werror_flag=$ac_c_werror_flag
  3494. ac_c_werror_flag=yes
  3495. ac_cv_prog_cc_g=no
  3496. CFLAGS="-g"
  3497. cat >conftest.$ac_ext <<_ACEOF
  3498. /* confdefs.h. */
  3499. _ACEOF
  3500. cat confdefs.h >>conftest.$ac_ext
  3501. cat >>conftest.$ac_ext <<_ACEOF
  3502. /* end confdefs.h. */
  3503. int
  3504. main ()
  3505. {
  3506. ;
  3507. return 0;
  3508. }
  3509. _ACEOF
  3510. rm -f conftest.$ac_objext
  3511. if { (ac_try="$ac_compile"
  3512. case "(($ac_try" in
  3513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3514. *) ac_try_echo=$ac_try;;
  3515. esac
  3516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3517. $as_echo "$ac_try_echo") >&5
  3518. (eval "$ac_compile") 2>conftest.er1
  3519. ac_status=$?
  3520. grep -v '^ *+' conftest.er1 >conftest.err
  3521. rm -f conftest.er1
  3522. cat conftest.err >&5
  3523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3524. (exit $ac_status); } && {
  3525. test -z "$ac_c_werror_flag" ||
  3526. test ! -s conftest.err
  3527. } && test -s conftest.$ac_objext; then
  3528. ac_cv_prog_cc_g=yes
  3529. else
  3530. $as_echo "$as_me: failed program was:" >&5
  3531. sed 's/^/| /' conftest.$ac_ext >&5
  3532. CFLAGS=""
  3533. cat >conftest.$ac_ext <<_ACEOF
  3534. /* confdefs.h. */
  3535. _ACEOF
  3536. cat confdefs.h >>conftest.$ac_ext
  3537. cat >>conftest.$ac_ext <<_ACEOF
  3538. /* end confdefs.h. */
  3539. int
  3540. main ()
  3541. {
  3542. ;
  3543. return 0;
  3544. }
  3545. _ACEOF
  3546. rm -f conftest.$ac_objext
  3547. if { (ac_try="$ac_compile"
  3548. case "(($ac_try" in
  3549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3550. *) ac_try_echo=$ac_try;;
  3551. esac
  3552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3553. $as_echo "$ac_try_echo") >&5
  3554. (eval "$ac_compile") 2>conftest.er1
  3555. ac_status=$?
  3556. grep -v '^ *+' conftest.er1 >conftest.err
  3557. rm -f conftest.er1
  3558. cat conftest.err >&5
  3559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3560. (exit $ac_status); } && {
  3561. test -z "$ac_c_werror_flag" ||
  3562. test ! -s conftest.err
  3563. } && test -s conftest.$ac_objext; then
  3564. :
  3565. else
  3566. $as_echo "$as_me: failed program was:" >&5
  3567. sed 's/^/| /' conftest.$ac_ext >&5
  3568. ac_c_werror_flag=$ac_save_c_werror_flag
  3569. CFLAGS="-g"
  3570. cat >conftest.$ac_ext <<_ACEOF
  3571. /* confdefs.h. */
  3572. _ACEOF
  3573. cat confdefs.h >>conftest.$ac_ext
  3574. cat >>conftest.$ac_ext <<_ACEOF
  3575. /* end confdefs.h. */
  3576. int
  3577. main ()
  3578. {
  3579. ;
  3580. return 0;
  3581. }
  3582. _ACEOF
  3583. rm -f conftest.$ac_objext
  3584. if { (ac_try="$ac_compile"
  3585. case "(($ac_try" in
  3586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3587. *) ac_try_echo=$ac_try;;
  3588. esac
  3589. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3590. $as_echo "$ac_try_echo") >&5
  3591. (eval "$ac_compile") 2>conftest.er1
  3592. ac_status=$?
  3593. grep -v '^ *+' conftest.er1 >conftest.err
  3594. rm -f conftest.er1
  3595. cat conftest.err >&5
  3596. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3597. (exit $ac_status); } && {
  3598. test -z "$ac_c_werror_flag" ||
  3599. test ! -s conftest.err
  3600. } && test -s conftest.$ac_objext; then
  3601. ac_cv_prog_cc_g=yes
  3602. else
  3603. $as_echo "$as_me: failed program was:" >&5
  3604. sed 's/^/| /' conftest.$ac_ext >&5
  3605. fi
  3606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  3612. fi
  3613. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3614. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3615. if test "$ac_test_CFLAGS" = set; then
  3616. CFLAGS=$ac_save_CFLAGS
  3617. elif test $ac_cv_prog_cc_g = yes; then
  3618. if test "$GCC" = yes; then
  3619. CFLAGS="-g -O2"
  3620. else
  3621. CFLAGS="-g"
  3622. fi
  3623. else
  3624. if test "$GCC" = yes; then
  3625. CFLAGS="-O2"
  3626. else
  3627. CFLAGS=
  3628. fi
  3629. fi
  3630. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3631. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3632. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3633. $as_echo_n "(cached) " >&6
  3634. else
  3635. ac_cv_prog_cc_c89=no
  3636. ac_save_CC=$CC
  3637. cat >conftest.$ac_ext <<_ACEOF
  3638. /* confdefs.h. */
  3639. _ACEOF
  3640. cat confdefs.h >>conftest.$ac_ext
  3641. cat >>conftest.$ac_ext <<_ACEOF
  3642. /* end confdefs.h. */
  3643. #include <stdarg.h>
  3644. #include <stdio.h>
  3645. #include <sys/types.h>
  3646. #include <sys/stat.h>
  3647. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3648. struct buf { int x; };
  3649. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3650. static char *e (p, i)
  3651. char **p;
  3652. int i;
  3653. {
  3654. return p[i];
  3655. }
  3656. static char *f (char * (*g) (char **, int), char **p, ...)
  3657. {
  3658. char *s;
  3659. va_list v;
  3660. va_start (v,p);
  3661. s = g (p, va_arg (v,int));
  3662. va_end (v);
  3663. return s;
  3664. }
  3665. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3666. function prototypes and stuff, but not '\xHH' hex character constants.
  3667. These don't provoke an error unfortunately, instead are silently treated
  3668. as 'x'. The following induces an error, until -std is added to get
  3669. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3670. array size at least. It's necessary to write '\x00'==0 to get something
  3671. that's true only with -std. */
  3672. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3673. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3674. inside strings and character constants. */
  3675. #define FOO(x) 'x'
  3676. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3677. int test (int i, double x);
  3678. struct s1 {int (*f) (int a);};
  3679. struct s2 {int (*f) (double a);};
  3680. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3681. int argc;
  3682. char **argv;
  3683. int
  3684. main ()
  3685. {
  3686. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3687. ;
  3688. return 0;
  3689. }
  3690. _ACEOF
  3691. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3692. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3693. do
  3694. CC="$ac_save_CC $ac_arg"
  3695. rm -f conftest.$ac_objext
  3696. if { (ac_try="$ac_compile"
  3697. case "(($ac_try" in
  3698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3699. *) ac_try_echo=$ac_try;;
  3700. esac
  3701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3702. $as_echo "$ac_try_echo") >&5
  3703. (eval "$ac_compile") 2>conftest.er1
  3704. ac_status=$?
  3705. grep -v '^ *+' conftest.er1 >conftest.err
  3706. rm -f conftest.er1
  3707. cat conftest.err >&5
  3708. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3709. (exit $ac_status); } && {
  3710. test -z "$ac_c_werror_flag" ||
  3711. test ! -s conftest.err
  3712. } && test -s conftest.$ac_objext; then
  3713. ac_cv_prog_cc_c89=$ac_arg
  3714. else
  3715. $as_echo "$as_me: failed program was:" >&5
  3716. sed 's/^/| /' conftest.$ac_ext >&5
  3717. fi
  3718. rm -f core conftest.err conftest.$ac_objext
  3719. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3720. done
  3721. rm -f conftest.$ac_ext
  3722. CC=$ac_save_CC
  3723. fi
  3724. # AC_CACHE_VAL
  3725. case "x$ac_cv_prog_cc_c89" in
  3726. x)
  3727. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3728. $as_echo "none needed" >&6; } ;;
  3729. xno)
  3730. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3731. $as_echo "unsupported" >&6; } ;;
  3732. *)
  3733. CC="$CC $ac_cv_prog_cc_c89"
  3734. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3735. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3736. esac
  3737. ac_ext=cpp
  3738. ac_cpp='$CXXCPP $CPPFLAGS'
  3739. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3740. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3741. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3742. depcc="$CC" am_compiler_list=
  3743. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3744. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3745. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3746. $as_echo_n "(cached) " >&6
  3747. else
  3748. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3749. # We make a subdir and do the tests there. Otherwise we can end up
  3750. # making bogus files that we don't know about and never remove. For
  3751. # instance it was reported that on HP-UX the gcc test will end up
  3752. # making a dummy file named `D' -- because `-MD' means `put the output
  3753. # in D'.
  3754. mkdir conftest.dir
  3755. # Copy depcomp to subdir because otherwise we won't find it if we're
  3756. # using a relative directory.
  3757. cp "$am_depcomp" conftest.dir
  3758. cd conftest.dir
  3759. # We will build objects and dependencies in a subdirectory because
  3760. # it helps to detect inapplicable dependency modes. For instance
  3761. # both Tru64's cc and ICC support -MD to output dependencies as a
  3762. # side effect of compilation, but ICC will put the dependencies in
  3763. # the current directory while Tru64 will put them in the object
  3764. # directory.
  3765. mkdir sub
  3766. am_cv_CC_dependencies_compiler_type=none
  3767. if test "$am_compiler_list" = ""; then
  3768. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3769. fi
  3770. for depmode in $am_compiler_list; do
  3771. # Setup a source with many dependencies, because some compilers
  3772. # like to wrap large dependency lists on column 80 (with \), and
  3773. # we should not choose a depcomp mode which is confused by this.
  3774. #
  3775. # We need to recreate these files for each test, as the compiler may
  3776. # overwrite some of them when testing with obscure command lines.
  3777. # This happens at least with the AIX C compiler.
  3778. : > sub/conftest.c
  3779. for i in 1 2 3 4 5 6; do
  3780. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3781. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3782. # Solaris 8's {/usr,}/bin/sh.
  3783. touch sub/conftst$i.h
  3784. done
  3785. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3786. case $depmode in
  3787. nosideeffect)
  3788. # after this tag, mechanisms are not by side-effect, so they'll
  3789. # only be used when explicitly requested
  3790. if test "x$enable_dependency_tracking" = xyes; then
  3791. continue
  3792. else
  3793. break
  3794. fi
  3795. ;;
  3796. none) break ;;
  3797. esac
  3798. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3799. # mode. It turns out that the SunPro C++ compiler does not properly
  3800. # handle `-M -o', and we need to detect this.
  3801. if depmode=$depmode \
  3802. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3803. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3804. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3805. >/dev/null 2>conftest.err &&
  3806. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3807. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3808. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3809. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3810. # icc doesn't choke on unknown options, it will just issue warnings
  3811. # or remarks (even with -Werror). So we grep stderr for any message
  3812. # that says an option was ignored or not supported.
  3813. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3814. # icc: Command line warning: ignoring option '-M'; no argument required
  3815. # The diagnosis changed in icc 8.0:
  3816. # icc: Command line remark: option '-MP' not supported
  3817. if (grep 'ignoring option' conftest.err ||
  3818. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3819. am_cv_CC_dependencies_compiler_type=$depmode
  3820. break
  3821. fi
  3822. fi
  3823. done
  3824. cd ..
  3825. rm -rf conftest.dir
  3826. else
  3827. am_cv_CC_dependencies_compiler_type=none
  3828. fi
  3829. fi
  3830. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3831. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3832. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3833. if
  3834. test "x$enable_dependency_tracking" != xno \
  3835. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3836. am__fastdepCC_TRUE=
  3837. am__fastdepCC_FALSE='#'
  3838. else
  3839. am__fastdepCC_TRUE='#'
  3840. am__fastdepCC_FALSE=
  3841. fi
  3842. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3843. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3844. if test "${ac_cv_path_SED+set}" = set; then
  3845. $as_echo_n "(cached) " >&6
  3846. else
  3847. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3848. for ac_i in 1 2 3 4 5 6 7; do
  3849. ac_script="$ac_script$as_nl$ac_script"
  3850. done
  3851. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3852. $as_unset ac_script || ac_script=
  3853. if test -z "$SED"; then
  3854. ac_path_SED_found=false
  3855. # Loop through the user's path and test for each of PROGNAME-LIST
  3856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3857. for as_dir in $PATH
  3858. do
  3859. IFS=$as_save_IFS
  3860. test -z "$as_dir" && as_dir=.
  3861. for ac_prog in sed gsed; do
  3862. for ac_exec_ext in '' $ac_executable_extensions; do
  3863. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3864. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3865. # Check for GNU ac_path_SED and select it if it is found.
  3866. # Check for GNU $ac_path_SED
  3867. case `"$ac_path_SED" --version 2>&1` in
  3868. *GNU*)
  3869. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3870. *)
  3871. ac_count=0
  3872. $as_echo_n 0123456789 >"conftest.in"
  3873. while :
  3874. do
  3875. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3876. mv "conftest.tmp" "conftest.in"
  3877. cp "conftest.in" "conftest.nl"
  3878. $as_echo '' >> "conftest.nl"
  3879. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3880. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3881. ac_count=`expr $ac_count + 1`
  3882. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3883. # Best one so far, save it but keep looking for a better one
  3884. ac_cv_path_SED="$ac_path_SED"
  3885. ac_path_SED_max=$ac_count
  3886. fi
  3887. # 10*(2^10) chars as input seems more than enough
  3888. test $ac_count -gt 10 && break
  3889. done
  3890. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3891. esac
  3892. $ac_path_SED_found && break 3
  3893. done
  3894. done
  3895. done
  3896. IFS=$as_save_IFS
  3897. if test -z "$ac_cv_path_SED"; then
  3898. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3899. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3900. { (exit 1); exit 1; }; }
  3901. fi
  3902. else
  3903. ac_cv_path_SED=$SED
  3904. fi
  3905. fi
  3906. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3907. $as_echo "$ac_cv_path_SED" >&6; }
  3908. SED="$ac_cv_path_SED"
  3909. rm -f conftest.sed
  3910. test -z "$SED" && SED=sed
  3911. Xsed="$SED -e 1s/^X//"
  3912. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3913. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3914. if test "${ac_cv_path_GREP+set}" = set; then
  3915. $as_echo_n "(cached) " >&6
  3916. else
  3917. if test -z "$GREP"; then
  3918. ac_path_GREP_found=false
  3919. # Loop through the user's path and test for each of PROGNAME-LIST
  3920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3921. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3922. do
  3923. IFS=$as_save_IFS
  3924. test -z "$as_dir" && as_dir=.
  3925. for ac_prog in grep ggrep; do
  3926. for ac_exec_ext in '' $ac_executable_extensions; do
  3927. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3928. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3929. # Check for GNU ac_path_GREP and select it if it is found.
  3930. # Check for GNU $ac_path_GREP
  3931. case `"$ac_path_GREP" --version 2>&1` in
  3932. *GNU*)
  3933. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3934. *)
  3935. ac_count=0
  3936. $as_echo_n 0123456789 >"conftest.in"
  3937. while :
  3938. do
  3939. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3940. mv "conftest.tmp" "conftest.in"
  3941. cp "conftest.in" "conftest.nl"
  3942. $as_echo 'GREP' >> "conftest.nl"
  3943. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3944. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3945. ac_count=`expr $ac_count + 1`
  3946. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3947. # Best one so far, save it but keep looking for a better one
  3948. ac_cv_path_GREP="$ac_path_GREP"
  3949. ac_path_GREP_max=$ac_count
  3950. fi
  3951. # 10*(2^10) chars as input seems more than enough
  3952. test $ac_count -gt 10 && break
  3953. done
  3954. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3955. esac
  3956. $ac_path_GREP_found && break 3
  3957. done
  3958. done
  3959. done
  3960. IFS=$as_save_IFS
  3961. if test -z "$ac_cv_path_GREP"; then
  3962. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3963. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3964. { (exit 1); exit 1; }; }
  3965. fi
  3966. else
  3967. ac_cv_path_GREP=$GREP
  3968. fi
  3969. fi
  3970. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3971. $as_echo "$ac_cv_path_GREP" >&6; }
  3972. GREP="$ac_cv_path_GREP"
  3973. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3974. $as_echo_n "checking for egrep... " >&6; }
  3975. if test "${ac_cv_path_EGREP+set}" = set; then
  3976. $as_echo_n "(cached) " >&6
  3977. else
  3978. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3979. then ac_cv_path_EGREP="$GREP -E"
  3980. else
  3981. if test -z "$EGREP"; then
  3982. ac_path_EGREP_found=false
  3983. # Loop through the user's path and test for each of PROGNAME-LIST
  3984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3985. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3986. do
  3987. IFS=$as_save_IFS
  3988. test -z "$as_dir" && as_dir=.
  3989. for ac_prog in egrep; do
  3990. for ac_exec_ext in '' $ac_executable_extensions; do
  3991. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3992. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3993. # Check for GNU ac_path_EGREP and select it if it is found.
  3994. # Check for GNU $ac_path_EGREP
  3995. case `"$ac_path_EGREP" --version 2>&1` in
  3996. *GNU*)
  3997. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3998. *)
  3999. ac_count=0
  4000. $as_echo_n 0123456789 >"conftest.in"
  4001. while :
  4002. do
  4003. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4004. mv "conftest.tmp" "conftest.in"
  4005. cp "conftest.in" "conftest.nl"
  4006. $as_echo 'EGREP' >> "conftest.nl"
  4007. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4008. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4009. ac_count=`expr $ac_count + 1`
  4010. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4011. # Best one so far, save it but keep looking for a better one
  4012. ac_cv_path_EGREP="$ac_path_EGREP"
  4013. ac_path_EGREP_max=$ac_count
  4014. fi
  4015. # 10*(2^10) chars as input seems more than enough
  4016. test $ac_count -gt 10 && break
  4017. done
  4018. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4019. esac
  4020. $ac_path_EGREP_found && break 3
  4021. done
  4022. done
  4023. done
  4024. IFS=$as_save_IFS
  4025. if test -z "$ac_cv_path_EGREP"; then
  4026. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4027. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4028. { (exit 1); exit 1; }; }
  4029. fi
  4030. else
  4031. ac_cv_path_EGREP=$EGREP
  4032. fi
  4033. fi
  4034. fi
  4035. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4036. $as_echo "$ac_cv_path_EGREP" >&6; }
  4037. EGREP="$ac_cv_path_EGREP"
  4038. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4039. $as_echo_n "checking for fgrep... " >&6; }
  4040. if test "${ac_cv_path_FGREP+set}" = set; then
  4041. $as_echo_n "(cached) " >&6
  4042. else
  4043. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4044. then ac_cv_path_FGREP="$GREP -F"
  4045. else
  4046. if test -z "$FGREP"; then
  4047. ac_path_FGREP_found=false
  4048. # Loop through the user's path and test for each of PROGNAME-LIST
  4049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4050. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4051. do
  4052. IFS=$as_save_IFS
  4053. test -z "$as_dir" && as_dir=.
  4054. for ac_prog in fgrep; do
  4055. for ac_exec_ext in '' $ac_executable_extensions; do
  4056. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4057. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4058. # Check for GNU ac_path_FGREP and select it if it is found.
  4059. # Check for GNU $ac_path_FGREP
  4060. case `"$ac_path_FGREP" --version 2>&1` in
  4061. *GNU*)
  4062. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4063. *)
  4064. ac_count=0
  4065. $as_echo_n 0123456789 >"conftest.in"
  4066. while :
  4067. do
  4068. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4069. mv "conftest.tmp" "conftest.in"
  4070. cp "conftest.in" "conftest.nl"
  4071. $as_echo 'FGREP' >> "conftest.nl"
  4072. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4073. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4074. ac_count=`expr $ac_count + 1`
  4075. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4076. # Best one so far, save it but keep looking for a better one
  4077. ac_cv_path_FGREP="$ac_path_FGREP"
  4078. ac_path_FGREP_max=$ac_count
  4079. fi
  4080. # 10*(2^10) chars as input seems more than enough
  4081. test $ac_count -gt 10 && break
  4082. done
  4083. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4084. esac
  4085. $ac_path_FGREP_found && break 3
  4086. done
  4087. done
  4088. done
  4089. IFS=$as_save_IFS
  4090. if test -z "$ac_cv_path_FGREP"; then
  4091. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4092. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4093. { (exit 1); exit 1; }; }
  4094. fi
  4095. else
  4096. ac_cv_path_FGREP=$FGREP
  4097. fi
  4098. fi
  4099. fi
  4100. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4101. $as_echo "$ac_cv_path_FGREP" >&6; }
  4102. FGREP="$ac_cv_path_FGREP"
  4103. test -z "$GREP" && GREP=grep
  4104. # Check whether --with-gnu-ld was given.
  4105. if test "${with_gnu_ld+set}" = set; then
  4106. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4107. else
  4108. with_gnu_ld=no
  4109. fi
  4110. ac_prog=ld
  4111. if test "$GCC" = yes; then
  4112. # Check if gcc -print-prog-name=ld gives a path.
  4113. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4114. $as_echo_n "checking for ld used by $CC... " >&6; }
  4115. case $host in
  4116. *-*-mingw*)
  4117. # gcc leaves a trailing carriage return which upsets mingw
  4118. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4119. *)
  4120. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4121. esac
  4122. case $ac_prog in
  4123. # Accept absolute paths.
  4124. [\\/]* | ?:[\\/]*)
  4125. re_direlt='/[^/][^/]*/\.\./'
  4126. # Canonicalize the pathname of ld
  4127. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4128. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4129. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4130. done
  4131. test -z "$LD" && LD="$ac_prog"
  4132. ;;
  4133. "")
  4134. # If it fails, then pretend we aren't using GCC.
  4135. ac_prog=ld
  4136. ;;
  4137. *)
  4138. # If it is relative, then search for the first ld in PATH.
  4139. with_gnu_ld=unknown
  4140. ;;
  4141. esac
  4142. elif test "$with_gnu_ld" = yes; then
  4143. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4144. $as_echo_n "checking for GNU ld... " >&6; }
  4145. else
  4146. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4147. $as_echo_n "checking for non-GNU ld... " >&6; }
  4148. fi
  4149. if test "${lt_cv_path_LD+set}" = set; then
  4150. $as_echo_n "(cached) " >&6
  4151. else
  4152. if test -z "$LD"; then
  4153. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4154. for ac_dir in $PATH; do
  4155. IFS="$lt_save_ifs"
  4156. test -z "$ac_dir" && ac_dir=.
  4157. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4158. lt_cv_path_LD="$ac_dir/$ac_prog"
  4159. # Check to see if the program is GNU ld. I'd rather use --version,
  4160. # but apparently some variants of GNU ld only accept -v.
  4161. # Break only if it was the GNU/non-GNU ld that we prefer.
  4162. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4163. *GNU* | *'with BFD'*)
  4164. test "$with_gnu_ld" != no && break
  4165. ;;
  4166. *)
  4167. test "$with_gnu_ld" != yes && break
  4168. ;;
  4169. esac
  4170. fi
  4171. done
  4172. IFS="$lt_save_ifs"
  4173. else
  4174. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4175. fi
  4176. fi
  4177. LD="$lt_cv_path_LD"
  4178. if test -n "$LD"; then
  4179. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4180. $as_echo "$LD" >&6; }
  4181. else
  4182. { $as_echo "$as_me:$LINENO: result: no" >&5
  4183. $as_echo "no" >&6; }
  4184. fi
  4185. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4186. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4187. { (exit 1); exit 1; }; }
  4188. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4189. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4190. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4191. $as_echo_n "(cached) " >&6
  4192. else
  4193. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4194. case `$LD -v 2>&1 </dev/null` in
  4195. *GNU* | *'with BFD'*)
  4196. lt_cv_prog_gnu_ld=yes
  4197. ;;
  4198. *)
  4199. lt_cv_prog_gnu_ld=no
  4200. ;;
  4201. esac
  4202. fi
  4203. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4204. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4205. with_gnu_ld=$lt_cv_prog_gnu_ld
  4206. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4207. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4208. if test "${lt_cv_path_NM+set}" = set; then
  4209. $as_echo_n "(cached) " >&6
  4210. else
  4211. if test -n "$NM"; then
  4212. # Let the user override the test.
  4213. lt_cv_path_NM="$NM"
  4214. else
  4215. lt_nm_to_check="${ac_tool_prefix}nm"
  4216. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4217. lt_nm_to_check="$lt_nm_to_check nm"
  4218. fi
  4219. for lt_tmp_nm in $lt_nm_to_check; do
  4220. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4221. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4222. IFS="$lt_save_ifs"
  4223. test -z "$ac_dir" && ac_dir=.
  4224. tmp_nm="$ac_dir/$lt_tmp_nm"
  4225. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4226. # Check to see if the nm accepts a BSD-compat flag.
  4227. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4228. # nm: unknown option "B" ignored
  4229. # Tru64's nm complains that /dev/null is an invalid object file
  4230. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4231. */dev/null* | *'Invalid file or object type'*)
  4232. lt_cv_path_NM="$tmp_nm -B"
  4233. break
  4234. ;;
  4235. *)
  4236. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4237. */dev/null*)
  4238. lt_cv_path_NM="$tmp_nm -p"
  4239. break
  4240. ;;
  4241. *)
  4242. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4243. continue # so that we can try to find one that supports BSD flags
  4244. ;;
  4245. esac
  4246. ;;
  4247. esac
  4248. fi
  4249. done
  4250. IFS="$lt_save_ifs"
  4251. done
  4252. : ${lt_cv_path_NM=no}
  4253. fi
  4254. fi
  4255. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4256. $as_echo "$lt_cv_path_NM" >&6; }
  4257. if test "$lt_cv_path_NM" != "no"; then
  4258. NM="$lt_cv_path_NM"
  4259. else
  4260. # Didn't find any BSD compatible name lister, look for dumpbin.
  4261. if test -n "$ac_tool_prefix"; then
  4262. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4263. do
  4264. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4265. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4266. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4267. $as_echo_n "checking for $ac_word... " >&6; }
  4268. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4269. $as_echo_n "(cached) " >&6
  4270. else
  4271. if test -n "$DUMPBIN"; then
  4272. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4273. else
  4274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4275. for as_dir in $PATH
  4276. do
  4277. IFS=$as_save_IFS
  4278. test -z "$as_dir" && as_dir=.
  4279. for ac_exec_ext in '' $ac_executable_extensions; do
  4280. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4281. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4282. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4283. break 2
  4284. fi
  4285. done
  4286. done
  4287. IFS=$as_save_IFS
  4288. fi
  4289. fi
  4290. DUMPBIN=$ac_cv_prog_DUMPBIN
  4291. if test -n "$DUMPBIN"; then
  4292. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4293. $as_echo "$DUMPBIN" >&6; }
  4294. else
  4295. { $as_echo "$as_me:$LINENO: result: no" >&5
  4296. $as_echo "no" >&6; }
  4297. fi
  4298. test -n "$DUMPBIN" && break
  4299. done
  4300. fi
  4301. if test -z "$DUMPBIN"; then
  4302. ac_ct_DUMPBIN=$DUMPBIN
  4303. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4304. do
  4305. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4306. set dummy $ac_prog; ac_word=$2
  4307. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4308. $as_echo_n "checking for $ac_word... " >&6; }
  4309. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. if test -n "$ac_ct_DUMPBIN"; then
  4313. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4314. else
  4315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4316. for as_dir in $PATH
  4317. do
  4318. IFS=$as_save_IFS
  4319. test -z "$as_dir" && as_dir=.
  4320. for ac_exec_ext in '' $ac_executable_extensions; do
  4321. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4322. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4323. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4324. break 2
  4325. fi
  4326. done
  4327. done
  4328. IFS=$as_save_IFS
  4329. fi
  4330. fi
  4331. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4332. if test -n "$ac_ct_DUMPBIN"; then
  4333. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4334. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4335. else
  4336. { $as_echo "$as_me:$LINENO: result: no" >&5
  4337. $as_echo "no" >&6; }
  4338. fi
  4339. test -n "$ac_ct_DUMPBIN" && break
  4340. done
  4341. if test "x$ac_ct_DUMPBIN" = x; then
  4342. DUMPBIN=":"
  4343. else
  4344. case $cross_compiling:$ac_tool_warned in
  4345. yes:)
  4346. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4347. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4348. ac_tool_warned=yes ;;
  4349. esac
  4350. DUMPBIN=$ac_ct_DUMPBIN
  4351. fi
  4352. fi
  4353. if test "$DUMPBIN" != ":"; then
  4354. NM="$DUMPBIN"
  4355. fi
  4356. fi
  4357. test -z "$NM" && NM=nm
  4358. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4359. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4360. if test "${lt_cv_nm_interface+set}" = set; then
  4361. $as_echo_n "(cached) " >&6
  4362. else
  4363. lt_cv_nm_interface="BSD nm"
  4364. echo "int some_variable = 0;" > conftest.$ac_ext
  4365. (eval echo "\"\$as_me:4917: $ac_compile\"" >&5)
  4366. (eval "$ac_compile" 2>conftest.err)
  4367. cat conftest.err >&5
  4368. (eval echo "\"\$as_me:4920: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4369. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4370. cat conftest.err >&5
  4371. (eval echo "\"\$as_me:4923: output\"" >&5)
  4372. cat conftest.out >&5
  4373. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4374. lt_cv_nm_interface="MS dumpbin"
  4375. fi
  4376. rm -f conftest*
  4377. fi
  4378. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4379. $as_echo "$lt_cv_nm_interface" >&6; }
  4380. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4381. $as_echo_n "checking whether ln -s works... " >&6; }
  4382. LN_S=$as_ln_s
  4383. if test "$LN_S" = "ln -s"; then
  4384. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4385. $as_echo "yes" >&6; }
  4386. else
  4387. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4388. $as_echo "no, using $LN_S" >&6; }
  4389. fi
  4390. # find the maximum length of command line arguments
  4391. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4392. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4393. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4394. $as_echo_n "(cached) " >&6
  4395. else
  4396. i=0
  4397. teststring="ABCD"
  4398. case $build_os in
  4399. msdosdjgpp*)
  4400. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4401. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4402. # during glob expansion). Even if it were fixed, the result of this
  4403. # check would be larger than it should be.
  4404. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4405. ;;
  4406. gnu*)
  4407. # Under GNU Hurd, this test is not required because there is
  4408. # no limit to the length of command line arguments.
  4409. # Libtool will interpret -1 as no limit whatsoever
  4410. lt_cv_sys_max_cmd_len=-1;
  4411. ;;
  4412. cygwin* | mingw* | cegcc*)
  4413. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4414. # about 5 minutes as the teststring grows exponentially.
  4415. # Worse, since 9x/ME are not pre-emptively multitasking,
  4416. # you end up with a "frozen" computer, even though with patience
  4417. # the test eventually succeeds (with a max line length of 256k).
  4418. # Instead, let's just punt: use the minimum linelength reported by
  4419. # all of the supported platforms: 8192 (on NT/2K/XP).
  4420. lt_cv_sys_max_cmd_len=8192;
  4421. ;;
  4422. amigaos*)
  4423. # On AmigaOS with pdksh, this test takes hours, literally.
  4424. # So we just punt and use a minimum line length of 8192.
  4425. lt_cv_sys_max_cmd_len=8192;
  4426. ;;
  4427. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4428. # This has been around since 386BSD, at least. Likely further.
  4429. if test -x /sbin/sysctl; then
  4430. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4431. elif test -x /usr/sbin/sysctl; then
  4432. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4433. else
  4434. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4435. fi
  4436. # And add a safety zone
  4437. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4438. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4439. ;;
  4440. interix*)
  4441. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4442. lt_cv_sys_max_cmd_len=196608
  4443. ;;
  4444. osf*)
  4445. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4446. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4447. # nice to cause kernel panics so lets avoid the loop below.
  4448. # First set a reasonable default.
  4449. lt_cv_sys_max_cmd_len=16384
  4450. #
  4451. if test -x /sbin/sysconfig; then
  4452. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4453. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4454. esac
  4455. fi
  4456. ;;
  4457. sco3.2v5*)
  4458. lt_cv_sys_max_cmd_len=102400
  4459. ;;
  4460. sysv5* | sco5v6* | sysv4.2uw2*)
  4461. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4462. if test -n "$kargmax"; then
  4463. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4464. else
  4465. lt_cv_sys_max_cmd_len=32768
  4466. fi
  4467. ;;
  4468. *)
  4469. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4470. if test -n "$lt_cv_sys_max_cmd_len"; then
  4471. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4472. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4473. else
  4474. # Make teststring a little bigger before we do anything with it.
  4475. # a 1K string should be a reasonable start.
  4476. for i in 1 2 3 4 5 6 7 8 ; do
  4477. teststring=$teststring$teststring
  4478. done
  4479. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4480. # If test is not a shell built-in, we'll probably end up computing a
  4481. # maximum length that is only half of the actual maximum length, but
  4482. # we can't tell.
  4483. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4484. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4485. test $i != 17 # 1/2 MB should be enough
  4486. do
  4487. i=`expr $i + 1`
  4488. teststring=$teststring$teststring
  4489. done
  4490. # Only check the string length outside the loop.
  4491. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4492. teststring=
  4493. # Add a significant safety factor because C++ compilers can tack on
  4494. # massive amounts of additional arguments before passing them to the
  4495. # linker. It appears as though 1/2 is a usable value.
  4496. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4497. fi
  4498. ;;
  4499. esac
  4500. fi
  4501. if test -n $lt_cv_sys_max_cmd_len ; then
  4502. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4503. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4504. else
  4505. { $as_echo "$as_me:$LINENO: result: none" >&5
  4506. $as_echo "none" >&6; }
  4507. fi
  4508. max_cmd_len=$lt_cv_sys_max_cmd_len
  4509. : ${CP="cp -f"}
  4510. : ${MV="mv -f"}
  4511. : ${RM="rm -f"}
  4512. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4513. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4514. # Try some XSI features
  4515. xsi_shell=no
  4516. ( _lt_dummy="a/b/c"
  4517. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4518. = c,a/b,, \
  4519. && eval 'test $(( 1 + 1 )) -eq 2 \
  4520. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4521. && xsi_shell=yes
  4522. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4523. $as_echo "$xsi_shell" >&6; }
  4524. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4525. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4526. lt_shell_append=no
  4527. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4528. >/dev/null 2>&1 \
  4529. && lt_shell_append=yes
  4530. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4531. $as_echo "$lt_shell_append" >&6; }
  4532. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4533. lt_unset=unset
  4534. else
  4535. lt_unset=false
  4536. fi
  4537. # test EBCDIC or ASCII
  4538. case `echo X|tr X '\101'` in
  4539. A) # ASCII based system
  4540. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4541. lt_SP2NL='tr \040 \012'
  4542. lt_NL2SP='tr \015\012 \040\040'
  4543. ;;
  4544. *) # EBCDIC based system
  4545. lt_SP2NL='tr \100 \n'
  4546. lt_NL2SP='tr \r\n \100\100'
  4547. ;;
  4548. esac
  4549. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4550. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4551. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4552. $as_echo_n "(cached) " >&6
  4553. else
  4554. lt_cv_ld_reload_flag='-r'
  4555. fi
  4556. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4557. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4558. reload_flag=$lt_cv_ld_reload_flag
  4559. case $reload_flag in
  4560. "" | " "*) ;;
  4561. *) reload_flag=" $reload_flag" ;;
  4562. esac
  4563. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4564. case $host_os in
  4565. darwin*)
  4566. if test "$GCC" = yes; then
  4567. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4568. else
  4569. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4570. fi
  4571. ;;
  4572. esac
  4573. if test -n "$ac_tool_prefix"; then
  4574. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4575. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4576. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4577. $as_echo_n "checking for $ac_word... " >&6; }
  4578. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. if test -n "$OBJDUMP"; then
  4582. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4583. else
  4584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4585. for as_dir in $PATH
  4586. do
  4587. IFS=$as_save_IFS
  4588. test -z "$as_dir" && as_dir=.
  4589. for ac_exec_ext in '' $ac_executable_extensions; do
  4590. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4591. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4592. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4593. break 2
  4594. fi
  4595. done
  4596. done
  4597. IFS=$as_save_IFS
  4598. fi
  4599. fi
  4600. OBJDUMP=$ac_cv_prog_OBJDUMP
  4601. if test -n "$OBJDUMP"; then
  4602. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4603. $as_echo "$OBJDUMP" >&6; }
  4604. else
  4605. { $as_echo "$as_me:$LINENO: result: no" >&5
  4606. $as_echo "no" >&6; }
  4607. fi
  4608. fi
  4609. if test -z "$ac_cv_prog_OBJDUMP"; then
  4610. ac_ct_OBJDUMP=$OBJDUMP
  4611. # Extract the first word of "objdump", so it can be a program name with args.
  4612. set dummy objdump; ac_word=$2
  4613. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4614. $as_echo_n "checking for $ac_word... " >&6; }
  4615. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4616. $as_echo_n "(cached) " >&6
  4617. else
  4618. if test -n "$ac_ct_OBJDUMP"; then
  4619. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4620. else
  4621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4622. for as_dir in $PATH
  4623. do
  4624. IFS=$as_save_IFS
  4625. test -z "$as_dir" && as_dir=.
  4626. for ac_exec_ext in '' $ac_executable_extensions; do
  4627. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4628. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4629. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4630. break 2
  4631. fi
  4632. done
  4633. done
  4634. IFS=$as_save_IFS
  4635. fi
  4636. fi
  4637. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4638. if test -n "$ac_ct_OBJDUMP"; then
  4639. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4640. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4641. else
  4642. { $as_echo "$as_me:$LINENO: result: no" >&5
  4643. $as_echo "no" >&6; }
  4644. fi
  4645. if test "x$ac_ct_OBJDUMP" = x; then
  4646. OBJDUMP="false"
  4647. else
  4648. case $cross_compiling:$ac_tool_warned in
  4649. yes:)
  4650. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4651. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4652. ac_tool_warned=yes ;;
  4653. esac
  4654. OBJDUMP=$ac_ct_OBJDUMP
  4655. fi
  4656. else
  4657. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4658. fi
  4659. test -z "$OBJDUMP" && OBJDUMP=objdump
  4660. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4661. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4662. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4663. $as_echo_n "(cached) " >&6
  4664. else
  4665. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4666. lt_cv_file_magic_test_file=
  4667. lt_cv_deplibs_check_method='unknown'
  4668. # Need to set the preceding variable on all platforms that support
  4669. # interlibrary dependencies.
  4670. # 'none' -- dependencies not supported.
  4671. # `unknown' -- same as none, but documents that we really don't know.
  4672. # 'pass_all' -- all dependencies passed with no checks.
  4673. # 'test_compile' -- check by making test program.
  4674. # 'file_magic [[regex]]' -- check by looking for files in library path
  4675. # which responds to the $file_magic_cmd with a given extended regex.
  4676. # If you have `file' or equivalent on your system and you're not sure
  4677. # whether `pass_all' will *always* work, you probably want this one.
  4678. case $host_os in
  4679. aix[4-9]*)
  4680. lt_cv_deplibs_check_method=pass_all
  4681. ;;
  4682. beos*)
  4683. lt_cv_deplibs_check_method=pass_all
  4684. ;;
  4685. bsdi[45]*)
  4686. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4687. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4688. lt_cv_file_magic_test_file=/shlib/libc.so
  4689. ;;
  4690. cygwin*)
  4691. # func_win32_libid is a shell function defined in ltmain.sh
  4692. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4693. lt_cv_file_magic_cmd='func_win32_libid'
  4694. ;;
  4695. mingw* | pw32*)
  4696. # Base MSYS/MinGW do not provide the 'file' command needed by
  4697. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4698. # unless we find 'file', for example because we are cross-compiling.
  4699. if ( file / ) >/dev/null 2>&1; then
  4700. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4701. lt_cv_file_magic_cmd='func_win32_libid'
  4702. else
  4703. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4704. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4705. fi
  4706. ;;
  4707. cegcc)
  4708. # use the weaker test based on 'objdump'. See mingw*.
  4709. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4710. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4711. ;;
  4712. darwin* | rhapsody*)
  4713. lt_cv_deplibs_check_method=pass_all
  4714. ;;
  4715. freebsd* | dragonfly*)
  4716. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4717. case $host_cpu in
  4718. i*86 )
  4719. # Not sure whether the presence of OpenBSD here was a mistake.
  4720. # Let's accept both of them until this is cleared up.
  4721. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4722. lt_cv_file_magic_cmd=/usr/bin/file
  4723. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4724. ;;
  4725. esac
  4726. else
  4727. lt_cv_deplibs_check_method=pass_all
  4728. fi
  4729. ;;
  4730. gnu*)
  4731. lt_cv_deplibs_check_method=pass_all
  4732. ;;
  4733. hpux10.20* | hpux11*)
  4734. lt_cv_file_magic_cmd=/usr/bin/file
  4735. case $host_cpu in
  4736. ia64*)
  4737. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4738. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4739. ;;
  4740. hppa*64*)
  4741. 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]'
  4742. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4743. ;;
  4744. *)
  4745. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4746. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4747. ;;
  4748. esac
  4749. ;;
  4750. interix[3-9]*)
  4751. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4752. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4753. ;;
  4754. irix5* | irix6* | nonstopux*)
  4755. case $LD in
  4756. *-32|*"-32 ") libmagic=32-bit;;
  4757. *-n32|*"-n32 ") libmagic=N32;;
  4758. *-64|*"-64 ") libmagic=64-bit;;
  4759. *) libmagic=never-match;;
  4760. esac
  4761. lt_cv_deplibs_check_method=pass_all
  4762. ;;
  4763. # This must be Linux ELF.
  4764. linux* | k*bsd*-gnu)
  4765. lt_cv_deplibs_check_method=pass_all
  4766. ;;
  4767. netbsd* | netbsdelf*-gnu)
  4768. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4769. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4770. else
  4771. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4772. fi
  4773. ;;
  4774. newos6*)
  4775. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4776. lt_cv_file_magic_cmd=/usr/bin/file
  4777. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4778. ;;
  4779. *nto* | *qnx*)
  4780. lt_cv_deplibs_check_method=pass_all
  4781. ;;
  4782. openbsd*)
  4783. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4784. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4785. else
  4786. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4787. fi
  4788. ;;
  4789. osf3* | osf4* | osf5*)
  4790. lt_cv_deplibs_check_method=pass_all
  4791. ;;
  4792. rdos*)
  4793. lt_cv_deplibs_check_method=pass_all
  4794. ;;
  4795. solaris*)
  4796. lt_cv_deplibs_check_method=pass_all
  4797. ;;
  4798. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4799. lt_cv_deplibs_check_method=pass_all
  4800. ;;
  4801. sysv4 | sysv4.3*)
  4802. case $host_vendor in
  4803. motorola)
  4804. 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]'
  4805. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4806. ;;
  4807. ncr)
  4808. lt_cv_deplibs_check_method=pass_all
  4809. ;;
  4810. sequent)
  4811. lt_cv_file_magic_cmd='/bin/file'
  4812. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4813. ;;
  4814. sni)
  4815. lt_cv_file_magic_cmd='/bin/file'
  4816. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4817. lt_cv_file_magic_test_file=/lib/libc.so
  4818. ;;
  4819. siemens)
  4820. lt_cv_deplibs_check_method=pass_all
  4821. ;;
  4822. pc)
  4823. lt_cv_deplibs_check_method=pass_all
  4824. ;;
  4825. esac
  4826. ;;
  4827. tpf*)
  4828. lt_cv_deplibs_check_method=pass_all
  4829. ;;
  4830. esac
  4831. fi
  4832. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4833. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4834. file_magic_cmd=$lt_cv_file_magic_cmd
  4835. deplibs_check_method=$lt_cv_deplibs_check_method
  4836. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4837. if test -n "$ac_tool_prefix"; then
  4838. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4839. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4840. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4841. $as_echo_n "checking for $ac_word... " >&6; }
  4842. if test "${ac_cv_prog_AR+set}" = set; then
  4843. $as_echo_n "(cached) " >&6
  4844. else
  4845. if test -n "$AR"; then
  4846. ac_cv_prog_AR="$AR" # Let the user override the test.
  4847. else
  4848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4849. for as_dir in $PATH
  4850. do
  4851. IFS=$as_save_IFS
  4852. test -z "$as_dir" && as_dir=.
  4853. for ac_exec_ext in '' $ac_executable_extensions; do
  4854. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4855. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4856. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4857. break 2
  4858. fi
  4859. done
  4860. done
  4861. IFS=$as_save_IFS
  4862. fi
  4863. fi
  4864. AR=$ac_cv_prog_AR
  4865. if test -n "$AR"; then
  4866. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4867. $as_echo "$AR" >&6; }
  4868. else
  4869. { $as_echo "$as_me:$LINENO: result: no" >&5
  4870. $as_echo "no" >&6; }
  4871. fi
  4872. fi
  4873. if test -z "$ac_cv_prog_AR"; then
  4874. ac_ct_AR=$AR
  4875. # Extract the first word of "ar", so it can be a program name with args.
  4876. set dummy ar; ac_word=$2
  4877. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4878. $as_echo_n "checking for $ac_word... " >&6; }
  4879. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4880. $as_echo_n "(cached) " >&6
  4881. else
  4882. if test -n "$ac_ct_AR"; then
  4883. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4884. else
  4885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4886. for as_dir in $PATH
  4887. do
  4888. IFS=$as_save_IFS
  4889. test -z "$as_dir" && as_dir=.
  4890. for ac_exec_ext in '' $ac_executable_extensions; do
  4891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4892. ac_cv_prog_ac_ct_AR="ar"
  4893. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4894. break 2
  4895. fi
  4896. done
  4897. done
  4898. IFS=$as_save_IFS
  4899. fi
  4900. fi
  4901. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4902. if test -n "$ac_ct_AR"; then
  4903. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4904. $as_echo "$ac_ct_AR" >&6; }
  4905. else
  4906. { $as_echo "$as_me:$LINENO: result: no" >&5
  4907. $as_echo "no" >&6; }
  4908. fi
  4909. if test "x$ac_ct_AR" = x; then
  4910. AR="false"
  4911. else
  4912. case $cross_compiling:$ac_tool_warned in
  4913. yes:)
  4914. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4915. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4916. ac_tool_warned=yes ;;
  4917. esac
  4918. AR=$ac_ct_AR
  4919. fi
  4920. else
  4921. AR="$ac_cv_prog_AR"
  4922. fi
  4923. test -z "$AR" && AR=ar
  4924. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4925. if test -n "$ac_tool_prefix"; then
  4926. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4927. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4928. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4929. $as_echo_n "checking for $ac_word... " >&6; }
  4930. if test "${ac_cv_prog_STRIP+set}" = set; then
  4931. $as_echo_n "(cached) " >&6
  4932. else
  4933. if test -n "$STRIP"; then
  4934. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4935. else
  4936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4937. for as_dir in $PATH
  4938. do
  4939. IFS=$as_save_IFS
  4940. test -z "$as_dir" && as_dir=.
  4941. for ac_exec_ext in '' $ac_executable_extensions; do
  4942. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4943. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4944. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4945. break 2
  4946. fi
  4947. done
  4948. done
  4949. IFS=$as_save_IFS
  4950. fi
  4951. fi
  4952. STRIP=$ac_cv_prog_STRIP
  4953. if test -n "$STRIP"; then
  4954. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4955. $as_echo "$STRIP" >&6; }
  4956. else
  4957. { $as_echo "$as_me:$LINENO: result: no" >&5
  4958. $as_echo "no" >&6; }
  4959. fi
  4960. fi
  4961. if test -z "$ac_cv_prog_STRIP"; then
  4962. ac_ct_STRIP=$STRIP
  4963. # Extract the first word of "strip", so it can be a program name with args.
  4964. set dummy strip; ac_word=$2
  4965. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4966. $as_echo_n "checking for $ac_word... " >&6; }
  4967. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4968. $as_echo_n "(cached) " >&6
  4969. else
  4970. if test -n "$ac_ct_STRIP"; then
  4971. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4972. else
  4973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4974. for as_dir in $PATH
  4975. do
  4976. IFS=$as_save_IFS
  4977. test -z "$as_dir" && as_dir=.
  4978. for ac_exec_ext in '' $ac_executable_extensions; do
  4979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4980. ac_cv_prog_ac_ct_STRIP="strip"
  4981. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4982. break 2
  4983. fi
  4984. done
  4985. done
  4986. IFS=$as_save_IFS
  4987. fi
  4988. fi
  4989. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4990. if test -n "$ac_ct_STRIP"; then
  4991. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4992. $as_echo "$ac_ct_STRIP" >&6; }
  4993. else
  4994. { $as_echo "$as_me:$LINENO: result: no" >&5
  4995. $as_echo "no" >&6; }
  4996. fi
  4997. if test "x$ac_ct_STRIP" = x; then
  4998. STRIP=":"
  4999. else
  5000. case $cross_compiling:$ac_tool_warned in
  5001. yes:)
  5002. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5003. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5004. ac_tool_warned=yes ;;
  5005. esac
  5006. STRIP=$ac_ct_STRIP
  5007. fi
  5008. else
  5009. STRIP="$ac_cv_prog_STRIP"
  5010. fi
  5011. test -z "$STRIP" && STRIP=:
  5012. if test -n "$ac_tool_prefix"; then
  5013. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5014. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5015. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5016. $as_echo_n "checking for $ac_word... " >&6; }
  5017. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5018. $as_echo_n "(cached) " >&6
  5019. else
  5020. if test -n "$RANLIB"; then
  5021. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5022. else
  5023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5024. for as_dir in $PATH
  5025. do
  5026. IFS=$as_save_IFS
  5027. test -z "$as_dir" && as_dir=.
  5028. for ac_exec_ext in '' $ac_executable_extensions; do
  5029. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5030. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5031. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5032. break 2
  5033. fi
  5034. done
  5035. done
  5036. IFS=$as_save_IFS
  5037. fi
  5038. fi
  5039. RANLIB=$ac_cv_prog_RANLIB
  5040. if test -n "$RANLIB"; then
  5041. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5042. $as_echo "$RANLIB" >&6; }
  5043. else
  5044. { $as_echo "$as_me:$LINENO: result: no" >&5
  5045. $as_echo "no" >&6; }
  5046. fi
  5047. fi
  5048. if test -z "$ac_cv_prog_RANLIB"; then
  5049. ac_ct_RANLIB=$RANLIB
  5050. # Extract the first word of "ranlib", so it can be a program name with args.
  5051. set dummy ranlib; ac_word=$2
  5052. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5053. $as_echo_n "checking for $ac_word... " >&6; }
  5054. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. if test -n "$ac_ct_RANLIB"; then
  5058. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5059. else
  5060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5061. for as_dir in $PATH
  5062. do
  5063. IFS=$as_save_IFS
  5064. test -z "$as_dir" && as_dir=.
  5065. for ac_exec_ext in '' $ac_executable_extensions; do
  5066. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5067. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5068. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5069. break 2
  5070. fi
  5071. done
  5072. done
  5073. IFS=$as_save_IFS
  5074. fi
  5075. fi
  5076. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5077. if test -n "$ac_ct_RANLIB"; then
  5078. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5079. $as_echo "$ac_ct_RANLIB" >&6; }
  5080. else
  5081. { $as_echo "$as_me:$LINENO: result: no" >&5
  5082. $as_echo "no" >&6; }
  5083. fi
  5084. if test "x$ac_ct_RANLIB" = x; then
  5085. RANLIB=":"
  5086. else
  5087. case $cross_compiling:$ac_tool_warned in
  5088. yes:)
  5089. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5090. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5091. ac_tool_warned=yes ;;
  5092. esac
  5093. RANLIB=$ac_ct_RANLIB
  5094. fi
  5095. else
  5096. RANLIB="$ac_cv_prog_RANLIB"
  5097. fi
  5098. test -z "$RANLIB" && RANLIB=:
  5099. # Determine commands to create old-style static archives.
  5100. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5101. old_postinstall_cmds='chmod 644 $oldlib'
  5102. old_postuninstall_cmds=
  5103. if test -n "$RANLIB"; then
  5104. case $host_os in
  5105. openbsd*)
  5106. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5107. ;;
  5108. *)
  5109. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5110. ;;
  5111. esac
  5112. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5113. fi
  5114. # If no C compiler was specified, use CC.
  5115. LTCC=${LTCC-"$CC"}
  5116. # If no C compiler flags were specified, use CFLAGS.
  5117. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5118. # Allow CC to be a program name with arguments.
  5119. compiler=$CC
  5120. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5121. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5122. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5123. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5124. $as_echo_n "(cached) " >&6
  5125. else
  5126. # These are sane defaults that work on at least a few old systems.
  5127. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5128. # Character class describing NM global symbol codes.
  5129. symcode='[BCDEGRST]'
  5130. # Regexp to match symbols that can be accessed directly from C.
  5131. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5132. # Define system-specific variables.
  5133. case $host_os in
  5134. aix*)
  5135. symcode='[BCDT]'
  5136. ;;
  5137. cygwin* | mingw* | pw32* | cegcc*)
  5138. symcode='[ABCDGISTW]'
  5139. ;;
  5140. hpux*)
  5141. if test "$host_cpu" = ia64; then
  5142. symcode='[ABCDEGRST]'
  5143. fi
  5144. ;;
  5145. irix* | nonstopux*)
  5146. symcode='[BCDEGRST]'
  5147. ;;
  5148. osf*)
  5149. symcode='[BCDEGQRST]'
  5150. ;;
  5151. solaris*)
  5152. symcode='[BDRT]'
  5153. ;;
  5154. sco3.2v5*)
  5155. symcode='[DT]'
  5156. ;;
  5157. sysv4.2uw2*)
  5158. symcode='[DT]'
  5159. ;;
  5160. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5161. symcode='[ABDT]'
  5162. ;;
  5163. sysv4)
  5164. symcode='[DFNSTU]'
  5165. ;;
  5166. esac
  5167. # If we're using GNU nm, then use its standard symbol codes.
  5168. case `$NM -V 2>&1` in
  5169. *GNU* | *'with BFD'*)
  5170. symcode='[ABCDGIRSTW]' ;;
  5171. esac
  5172. # Transform an extracted symbol line into a proper C declaration.
  5173. # Some systems (esp. on ia64) link data and code symbols differently,
  5174. # so use this general approach.
  5175. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5176. # Transform an extracted symbol line into symbol name and symbol address
  5177. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5178. 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'"
  5179. # Handle CRLF in mingw tool chain
  5180. opt_cr=
  5181. case $build_os in
  5182. mingw*)
  5183. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5184. ;;
  5185. esac
  5186. # Try without a prefix underscore, then with it.
  5187. for ac_symprfx in "" "_"; do
  5188. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5189. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5190. # Write the raw and C identifiers.
  5191. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5192. # Fake it for dumpbin and say T for any non-static function
  5193. # and D for any global variable.
  5194. # Also find C++ and __fastcall symbols from MSVC++,
  5195. # which start with @ or ?.
  5196. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5197. " {last_section=section; section=\$ 3};"\
  5198. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5199. " \$ 0!~/External *\|/{next};"\
  5200. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5201. " {if(hide[section]) next};"\
  5202. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5203. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5204. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5205. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5206. " ' prfx=^$ac_symprfx"
  5207. else
  5208. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5209. fi
  5210. # Check to see that the pipe works correctly.
  5211. pipe_works=no
  5212. rm -f conftest*
  5213. cat > conftest.$ac_ext <<_LT_EOF
  5214. #ifdef __cplusplus
  5215. extern "C" {
  5216. #endif
  5217. char nm_test_var;
  5218. void nm_test_func(void);
  5219. void nm_test_func(void){}
  5220. #ifdef __cplusplus
  5221. }
  5222. #endif
  5223. int main(){nm_test_var='a';nm_test_func();return(0);}
  5224. _LT_EOF
  5225. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5226. (eval $ac_compile) 2>&5
  5227. ac_status=$?
  5228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5229. (exit $ac_status); }; then
  5230. # Now try to grab the symbols.
  5231. nlist=conftest.nm
  5232. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5233. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5234. ac_status=$?
  5235. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5236. (exit $ac_status); } && test -s "$nlist"; then
  5237. # Try sorting and uniquifying the output.
  5238. if sort "$nlist" | uniq > "$nlist"T; then
  5239. mv -f "$nlist"T "$nlist"
  5240. else
  5241. rm -f "$nlist"T
  5242. fi
  5243. # Make sure that we snagged all the symbols we need.
  5244. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5245. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5246. cat <<_LT_EOF > conftest.$ac_ext
  5247. #ifdef __cplusplus
  5248. extern "C" {
  5249. #endif
  5250. _LT_EOF
  5251. # Now generate the symbol file.
  5252. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5253. cat <<_LT_EOF >> conftest.$ac_ext
  5254. /* The mapping between symbol names and symbols. */
  5255. const struct {
  5256. const char *name;
  5257. void *address;
  5258. }
  5259. lt__PROGRAM__LTX_preloaded_symbols[] =
  5260. {
  5261. { "@PROGRAM@", (void *) 0 },
  5262. _LT_EOF
  5263. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5264. cat <<\_LT_EOF >> conftest.$ac_ext
  5265. {0, (void *) 0}
  5266. };
  5267. /* This works around a problem in FreeBSD linker */
  5268. #ifdef FREEBSD_WORKAROUND
  5269. static const void *lt_preloaded_setup() {
  5270. return lt__PROGRAM__LTX_preloaded_symbols;
  5271. }
  5272. #endif
  5273. #ifdef __cplusplus
  5274. }
  5275. #endif
  5276. _LT_EOF
  5277. # Now try linking the two files.
  5278. mv conftest.$ac_objext conftstm.$ac_objext
  5279. lt_save_LIBS="$LIBS"
  5280. lt_save_CFLAGS="$CFLAGS"
  5281. LIBS="conftstm.$ac_objext"
  5282. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5283. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5284. (eval $ac_link) 2>&5
  5285. ac_status=$?
  5286. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5287. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5288. pipe_works=yes
  5289. fi
  5290. LIBS="$lt_save_LIBS"
  5291. CFLAGS="$lt_save_CFLAGS"
  5292. else
  5293. echo "cannot find nm_test_func in $nlist" >&5
  5294. fi
  5295. else
  5296. echo "cannot find nm_test_var in $nlist" >&5
  5297. fi
  5298. else
  5299. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5300. fi
  5301. else
  5302. echo "$progname: failed program was:" >&5
  5303. cat conftest.$ac_ext >&5
  5304. fi
  5305. rm -rf conftest* conftst*
  5306. # Do not use the global_symbol_pipe unless it works.
  5307. if test "$pipe_works" = yes; then
  5308. break
  5309. else
  5310. lt_cv_sys_global_symbol_pipe=
  5311. fi
  5312. done
  5313. fi
  5314. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5315. lt_cv_sys_global_symbol_to_cdecl=
  5316. fi
  5317. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5318. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5319. $as_echo "failed" >&6; }
  5320. else
  5321. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5322. $as_echo "ok" >&6; }
  5323. fi
  5324. # Check whether --enable-libtool-lock was given.
  5325. if test "${enable_libtool_lock+set}" = set; then
  5326. enableval=$enable_libtool_lock;
  5327. fi
  5328. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5329. # Some flags need to be propagated to the compiler or linker for good
  5330. # libtool support.
  5331. case $host in
  5332. ia64-*-hpux*)
  5333. # Find out which ABI we are using.
  5334. echo 'int i;' > conftest.$ac_ext
  5335. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5336. (eval $ac_compile) 2>&5
  5337. ac_status=$?
  5338. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5339. (exit $ac_status); }; then
  5340. case `/usr/bin/file conftest.$ac_objext` in
  5341. *ELF-32*)
  5342. HPUX_IA64_MODE="32"
  5343. ;;
  5344. *ELF-64*)
  5345. HPUX_IA64_MODE="64"
  5346. ;;
  5347. esac
  5348. fi
  5349. rm -rf conftest*
  5350. ;;
  5351. *-*-irix6*)
  5352. # Find out which ABI we are using.
  5353. echo '#line 6129 "configure"' > conftest.$ac_ext
  5354. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5355. (eval $ac_compile) 2>&5
  5356. ac_status=$?
  5357. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5358. (exit $ac_status); }; then
  5359. if test "$lt_cv_prog_gnu_ld" = yes; then
  5360. case `/usr/bin/file conftest.$ac_objext` in
  5361. *32-bit*)
  5362. LD="${LD-ld} -melf32bsmip"
  5363. ;;
  5364. *N32*)
  5365. LD="${LD-ld} -melf32bmipn32"
  5366. ;;
  5367. *64-bit*)
  5368. LD="${LD-ld} -melf64bmip"
  5369. ;;
  5370. esac
  5371. else
  5372. case `/usr/bin/file conftest.$ac_objext` in
  5373. *32-bit*)
  5374. LD="${LD-ld} -32"
  5375. ;;
  5376. *N32*)
  5377. LD="${LD-ld} -n32"
  5378. ;;
  5379. *64-bit*)
  5380. LD="${LD-ld} -64"
  5381. ;;
  5382. esac
  5383. fi
  5384. fi
  5385. rm -rf conftest*
  5386. ;;
  5387. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5388. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5389. # Find out which ABI we are using.
  5390. echo 'int i;' > conftest.$ac_ext
  5391. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5392. (eval $ac_compile) 2>&5
  5393. ac_status=$?
  5394. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5395. (exit $ac_status); }; then
  5396. case `/usr/bin/file conftest.o` in
  5397. *32-bit*)
  5398. case $host in
  5399. x86_64-*kfreebsd*-gnu)
  5400. LD="${LD-ld} -m elf_i386_fbsd"
  5401. ;;
  5402. x86_64-*linux*)
  5403. LD="${LD-ld} -m elf_i386"
  5404. ;;
  5405. ppc64-*linux*|powerpc64-*linux*)
  5406. LD="${LD-ld} -m elf32ppclinux"
  5407. ;;
  5408. s390x-*linux*)
  5409. LD="${LD-ld} -m elf_s390"
  5410. ;;
  5411. sparc64-*linux*)
  5412. LD="${LD-ld} -m elf32_sparc"
  5413. ;;
  5414. esac
  5415. ;;
  5416. *64-bit*)
  5417. case $host in
  5418. x86_64-*kfreebsd*-gnu)
  5419. LD="${LD-ld} -m elf_x86_64_fbsd"
  5420. ;;
  5421. x86_64-*linux*)
  5422. LD="${LD-ld} -m elf_x86_64"
  5423. ;;
  5424. ppc*-*linux*|powerpc*-*linux*)
  5425. LD="${LD-ld} -m elf64ppc"
  5426. ;;
  5427. s390*-*linux*|s390*-*tpf*)
  5428. LD="${LD-ld} -m elf64_s390"
  5429. ;;
  5430. sparc*-*linux*)
  5431. LD="${LD-ld} -m elf64_sparc"
  5432. ;;
  5433. esac
  5434. ;;
  5435. esac
  5436. fi
  5437. rm -rf conftest*
  5438. ;;
  5439. *-*-sco3.2v5*)
  5440. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5441. SAVE_CFLAGS="$CFLAGS"
  5442. CFLAGS="$CFLAGS -belf"
  5443. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5444. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5445. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5446. $as_echo_n "(cached) " >&6
  5447. else
  5448. ac_ext=c
  5449. ac_cpp='$CPP $CPPFLAGS'
  5450. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5451. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5452. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5453. cat >conftest.$ac_ext <<_ACEOF
  5454. /* confdefs.h. */
  5455. _ACEOF
  5456. cat confdefs.h >>conftest.$ac_ext
  5457. cat >>conftest.$ac_ext <<_ACEOF
  5458. /* end confdefs.h. */
  5459. int
  5460. main ()
  5461. {
  5462. ;
  5463. return 0;
  5464. }
  5465. _ACEOF
  5466. rm -f conftest.$ac_objext conftest$ac_exeext
  5467. if { (ac_try="$ac_link"
  5468. case "(($ac_try" in
  5469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5470. *) ac_try_echo=$ac_try;;
  5471. esac
  5472. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5473. $as_echo "$ac_try_echo") >&5
  5474. (eval "$ac_link") 2>conftest.er1
  5475. ac_status=$?
  5476. grep -v '^ *+' conftest.er1 >conftest.err
  5477. rm -f conftest.er1
  5478. cat conftest.err >&5
  5479. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5480. (exit $ac_status); } && {
  5481. test -z "$ac_c_werror_flag" ||
  5482. test ! -s conftest.err
  5483. } && test -s conftest$ac_exeext && {
  5484. test "$cross_compiling" = yes ||
  5485. $as_test_x conftest$ac_exeext
  5486. }; then
  5487. lt_cv_cc_needs_belf=yes
  5488. else
  5489. $as_echo "$as_me: failed program was:" >&5
  5490. sed 's/^/| /' conftest.$ac_ext >&5
  5491. lt_cv_cc_needs_belf=no
  5492. fi
  5493. rm -rf conftest.dSYM
  5494. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5495. conftest$ac_exeext conftest.$ac_ext
  5496. ac_ext=c
  5497. ac_cpp='$CPP $CPPFLAGS'
  5498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5501. fi
  5502. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5503. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5504. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5505. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5506. CFLAGS="$SAVE_CFLAGS"
  5507. fi
  5508. ;;
  5509. sparc*-*solaris*)
  5510. # Find out which ABI we are using.
  5511. echo 'int i;' > conftest.$ac_ext
  5512. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5513. (eval $ac_compile) 2>&5
  5514. ac_status=$?
  5515. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5516. (exit $ac_status); }; then
  5517. case `/usr/bin/file conftest.o` in
  5518. *64-bit*)
  5519. case $lt_cv_prog_gnu_ld in
  5520. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5521. *)
  5522. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5523. LD="${LD-ld} -64"
  5524. fi
  5525. ;;
  5526. esac
  5527. ;;
  5528. esac
  5529. fi
  5530. rm -rf conftest*
  5531. ;;
  5532. esac
  5533. need_locks="$enable_libtool_lock"
  5534. case $host_os in
  5535. rhapsody* | darwin*)
  5536. if test -n "$ac_tool_prefix"; then
  5537. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5538. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5539. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5540. $as_echo_n "checking for $ac_word... " >&6; }
  5541. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. if test -n "$DSYMUTIL"; then
  5545. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5546. else
  5547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5548. for as_dir in $PATH
  5549. do
  5550. IFS=$as_save_IFS
  5551. test -z "$as_dir" && as_dir=.
  5552. for ac_exec_ext in '' $ac_executable_extensions; do
  5553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5554. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5555. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5556. break 2
  5557. fi
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. fi
  5562. fi
  5563. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5564. if test -n "$DSYMUTIL"; then
  5565. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5566. $as_echo "$DSYMUTIL" >&6; }
  5567. else
  5568. { $as_echo "$as_me:$LINENO: result: no" >&5
  5569. $as_echo "no" >&6; }
  5570. fi
  5571. fi
  5572. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5573. ac_ct_DSYMUTIL=$DSYMUTIL
  5574. # Extract the first word of "dsymutil", so it can be a program name with args.
  5575. set dummy dsymutil; ac_word=$2
  5576. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5577. $as_echo_n "checking for $ac_word... " >&6; }
  5578. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5579. $as_echo_n "(cached) " >&6
  5580. else
  5581. if test -n "$ac_ct_DSYMUTIL"; then
  5582. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5583. else
  5584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5585. for as_dir in $PATH
  5586. do
  5587. IFS=$as_save_IFS
  5588. test -z "$as_dir" && as_dir=.
  5589. for ac_exec_ext in '' $ac_executable_extensions; do
  5590. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5591. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5592. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5593. break 2
  5594. fi
  5595. done
  5596. done
  5597. IFS=$as_save_IFS
  5598. fi
  5599. fi
  5600. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5601. if test -n "$ac_ct_DSYMUTIL"; then
  5602. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5603. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5604. else
  5605. { $as_echo "$as_me:$LINENO: result: no" >&5
  5606. $as_echo "no" >&6; }
  5607. fi
  5608. if test "x$ac_ct_DSYMUTIL" = x; then
  5609. DSYMUTIL=":"
  5610. else
  5611. case $cross_compiling:$ac_tool_warned in
  5612. yes:)
  5613. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5614. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5615. ac_tool_warned=yes ;;
  5616. esac
  5617. DSYMUTIL=$ac_ct_DSYMUTIL
  5618. fi
  5619. else
  5620. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5621. fi
  5622. if test -n "$ac_tool_prefix"; then
  5623. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5624. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5625. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5626. $as_echo_n "checking for $ac_word... " >&6; }
  5627. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5628. $as_echo_n "(cached) " >&6
  5629. else
  5630. if test -n "$NMEDIT"; then
  5631. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5632. else
  5633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5634. for as_dir in $PATH
  5635. do
  5636. IFS=$as_save_IFS
  5637. test -z "$as_dir" && as_dir=.
  5638. for ac_exec_ext in '' $ac_executable_extensions; do
  5639. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5640. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5641. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5642. break 2
  5643. fi
  5644. done
  5645. done
  5646. IFS=$as_save_IFS
  5647. fi
  5648. fi
  5649. NMEDIT=$ac_cv_prog_NMEDIT
  5650. if test -n "$NMEDIT"; then
  5651. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5652. $as_echo "$NMEDIT" >&6; }
  5653. else
  5654. { $as_echo "$as_me:$LINENO: result: no" >&5
  5655. $as_echo "no" >&6; }
  5656. fi
  5657. fi
  5658. if test -z "$ac_cv_prog_NMEDIT"; then
  5659. ac_ct_NMEDIT=$NMEDIT
  5660. # Extract the first word of "nmedit", so it can be a program name with args.
  5661. set dummy nmedit; ac_word=$2
  5662. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5663. $as_echo_n "checking for $ac_word... " >&6; }
  5664. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5665. $as_echo_n "(cached) " >&6
  5666. else
  5667. if test -n "$ac_ct_NMEDIT"; then
  5668. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5669. else
  5670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5671. for as_dir in $PATH
  5672. do
  5673. IFS=$as_save_IFS
  5674. test -z "$as_dir" && as_dir=.
  5675. for ac_exec_ext in '' $ac_executable_extensions; do
  5676. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5677. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5678. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5679. break 2
  5680. fi
  5681. done
  5682. done
  5683. IFS=$as_save_IFS
  5684. fi
  5685. fi
  5686. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5687. if test -n "$ac_ct_NMEDIT"; then
  5688. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5689. $as_echo "$ac_ct_NMEDIT" >&6; }
  5690. else
  5691. { $as_echo "$as_me:$LINENO: result: no" >&5
  5692. $as_echo "no" >&6; }
  5693. fi
  5694. if test "x$ac_ct_NMEDIT" = x; then
  5695. NMEDIT=":"
  5696. else
  5697. case $cross_compiling:$ac_tool_warned in
  5698. yes:)
  5699. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5700. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5701. ac_tool_warned=yes ;;
  5702. esac
  5703. NMEDIT=$ac_ct_NMEDIT
  5704. fi
  5705. else
  5706. NMEDIT="$ac_cv_prog_NMEDIT"
  5707. fi
  5708. if test -n "$ac_tool_prefix"; then
  5709. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5710. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5711. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5712. $as_echo_n "checking for $ac_word... " >&6; }
  5713. if test "${ac_cv_prog_LIPO+set}" = set; then
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. if test -n "$LIPO"; then
  5717. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5718. else
  5719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5720. for as_dir in $PATH
  5721. do
  5722. IFS=$as_save_IFS
  5723. test -z "$as_dir" && as_dir=.
  5724. for ac_exec_ext in '' $ac_executable_extensions; do
  5725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5726. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5727. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5728. break 2
  5729. fi
  5730. done
  5731. done
  5732. IFS=$as_save_IFS
  5733. fi
  5734. fi
  5735. LIPO=$ac_cv_prog_LIPO
  5736. if test -n "$LIPO"; then
  5737. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5738. $as_echo "$LIPO" >&6; }
  5739. else
  5740. { $as_echo "$as_me:$LINENO: result: no" >&5
  5741. $as_echo "no" >&6; }
  5742. fi
  5743. fi
  5744. if test -z "$ac_cv_prog_LIPO"; then
  5745. ac_ct_LIPO=$LIPO
  5746. # Extract the first word of "lipo", so it can be a program name with args.
  5747. set dummy lipo; ac_word=$2
  5748. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5749. $as_echo_n "checking for $ac_word... " >&6; }
  5750. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5751. $as_echo_n "(cached) " >&6
  5752. else
  5753. if test -n "$ac_ct_LIPO"; then
  5754. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5755. else
  5756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5757. for as_dir in $PATH
  5758. do
  5759. IFS=$as_save_IFS
  5760. test -z "$as_dir" && as_dir=.
  5761. for ac_exec_ext in '' $ac_executable_extensions; do
  5762. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5763. ac_cv_prog_ac_ct_LIPO="lipo"
  5764. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5765. break 2
  5766. fi
  5767. done
  5768. done
  5769. IFS=$as_save_IFS
  5770. fi
  5771. fi
  5772. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5773. if test -n "$ac_ct_LIPO"; then
  5774. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5775. $as_echo "$ac_ct_LIPO" >&6; }
  5776. else
  5777. { $as_echo "$as_me:$LINENO: result: no" >&5
  5778. $as_echo "no" >&6; }
  5779. fi
  5780. if test "x$ac_ct_LIPO" = x; then
  5781. LIPO=":"
  5782. else
  5783. case $cross_compiling:$ac_tool_warned in
  5784. yes:)
  5785. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5786. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5787. ac_tool_warned=yes ;;
  5788. esac
  5789. LIPO=$ac_ct_LIPO
  5790. fi
  5791. else
  5792. LIPO="$ac_cv_prog_LIPO"
  5793. fi
  5794. if test -n "$ac_tool_prefix"; then
  5795. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5796. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5797. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5798. $as_echo_n "checking for $ac_word... " >&6; }
  5799. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5800. $as_echo_n "(cached) " >&6
  5801. else
  5802. if test -n "$OTOOL"; then
  5803. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5804. else
  5805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5806. for as_dir in $PATH
  5807. do
  5808. IFS=$as_save_IFS
  5809. test -z "$as_dir" && as_dir=.
  5810. for ac_exec_ext in '' $ac_executable_extensions; do
  5811. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5812. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5813. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5814. break 2
  5815. fi
  5816. done
  5817. done
  5818. IFS=$as_save_IFS
  5819. fi
  5820. fi
  5821. OTOOL=$ac_cv_prog_OTOOL
  5822. if test -n "$OTOOL"; then
  5823. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5824. $as_echo "$OTOOL" >&6; }
  5825. else
  5826. { $as_echo "$as_me:$LINENO: result: no" >&5
  5827. $as_echo "no" >&6; }
  5828. fi
  5829. fi
  5830. if test -z "$ac_cv_prog_OTOOL"; then
  5831. ac_ct_OTOOL=$OTOOL
  5832. # Extract the first word of "otool", so it can be a program name with args.
  5833. set dummy otool; ac_word=$2
  5834. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5835. $as_echo_n "checking for $ac_word... " >&6; }
  5836. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5837. $as_echo_n "(cached) " >&6
  5838. else
  5839. if test -n "$ac_ct_OTOOL"; then
  5840. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5841. else
  5842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5843. for as_dir in $PATH
  5844. do
  5845. IFS=$as_save_IFS
  5846. test -z "$as_dir" && as_dir=.
  5847. for ac_exec_ext in '' $ac_executable_extensions; do
  5848. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5849. ac_cv_prog_ac_ct_OTOOL="otool"
  5850. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5851. break 2
  5852. fi
  5853. done
  5854. done
  5855. IFS=$as_save_IFS
  5856. fi
  5857. fi
  5858. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5859. if test -n "$ac_ct_OTOOL"; then
  5860. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5861. $as_echo "$ac_ct_OTOOL" >&6; }
  5862. else
  5863. { $as_echo "$as_me:$LINENO: result: no" >&5
  5864. $as_echo "no" >&6; }
  5865. fi
  5866. if test "x$ac_ct_OTOOL" = x; then
  5867. OTOOL=":"
  5868. else
  5869. case $cross_compiling:$ac_tool_warned in
  5870. yes:)
  5871. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5872. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5873. ac_tool_warned=yes ;;
  5874. esac
  5875. OTOOL=$ac_ct_OTOOL
  5876. fi
  5877. else
  5878. OTOOL="$ac_cv_prog_OTOOL"
  5879. fi
  5880. if test -n "$ac_tool_prefix"; then
  5881. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5882. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5883. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5884. $as_echo_n "checking for $ac_word... " >&6; }
  5885. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5886. $as_echo_n "(cached) " >&6
  5887. else
  5888. if test -n "$OTOOL64"; then
  5889. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5890. else
  5891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5892. for as_dir in $PATH
  5893. do
  5894. IFS=$as_save_IFS
  5895. test -z "$as_dir" && as_dir=.
  5896. for ac_exec_ext in '' $ac_executable_extensions; do
  5897. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5898. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5899. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5900. break 2
  5901. fi
  5902. done
  5903. done
  5904. IFS=$as_save_IFS
  5905. fi
  5906. fi
  5907. OTOOL64=$ac_cv_prog_OTOOL64
  5908. if test -n "$OTOOL64"; then
  5909. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5910. $as_echo "$OTOOL64" >&6; }
  5911. else
  5912. { $as_echo "$as_me:$LINENO: result: no" >&5
  5913. $as_echo "no" >&6; }
  5914. fi
  5915. fi
  5916. if test -z "$ac_cv_prog_OTOOL64"; then
  5917. ac_ct_OTOOL64=$OTOOL64
  5918. # Extract the first word of "otool64", so it can be a program name with args.
  5919. set dummy otool64; ac_word=$2
  5920. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5921. $as_echo_n "checking for $ac_word... " >&6; }
  5922. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5923. $as_echo_n "(cached) " >&6
  5924. else
  5925. if test -n "$ac_ct_OTOOL64"; then
  5926. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5927. else
  5928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5929. for as_dir in $PATH
  5930. do
  5931. IFS=$as_save_IFS
  5932. test -z "$as_dir" && as_dir=.
  5933. for ac_exec_ext in '' $ac_executable_extensions; do
  5934. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5935. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5936. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5937. break 2
  5938. fi
  5939. done
  5940. done
  5941. IFS=$as_save_IFS
  5942. fi
  5943. fi
  5944. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5945. if test -n "$ac_ct_OTOOL64"; then
  5946. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5947. $as_echo "$ac_ct_OTOOL64" >&6; }
  5948. else
  5949. { $as_echo "$as_me:$LINENO: result: no" >&5
  5950. $as_echo "no" >&6; }
  5951. fi
  5952. if test "x$ac_ct_OTOOL64" = x; then
  5953. OTOOL64=":"
  5954. else
  5955. case $cross_compiling:$ac_tool_warned in
  5956. yes:)
  5957. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5958. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5959. ac_tool_warned=yes ;;
  5960. esac
  5961. OTOOL64=$ac_ct_OTOOL64
  5962. fi
  5963. else
  5964. OTOOL64="$ac_cv_prog_OTOOL64"
  5965. fi
  5966. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5967. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5968. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5969. $as_echo_n "(cached) " >&6
  5970. else
  5971. lt_cv_apple_cc_single_mod=no
  5972. if test -z "${LT_MULTI_MODULE}"; then
  5973. # By default we will add the -single_module flag. You can override
  5974. # by either setting the environment variable LT_MULTI_MODULE
  5975. # non-empty at configure time, or by adding -multi_module to the
  5976. # link flags.
  5977. rm -rf libconftest.dylib*
  5978. echo "int foo(void){return 1;}" > conftest.c
  5979. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5980. -dynamiclib -Wl,-single_module conftest.c" >&5
  5981. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5982. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5983. _lt_result=$?
  5984. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5985. lt_cv_apple_cc_single_mod=yes
  5986. else
  5987. cat conftest.err >&5
  5988. fi
  5989. rm -rf libconftest.dylib*
  5990. rm -f conftest.*
  5991. fi
  5992. fi
  5993. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5994. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5995. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5996. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5997. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5998. $as_echo_n "(cached) " >&6
  5999. else
  6000. lt_cv_ld_exported_symbols_list=no
  6001. save_LDFLAGS=$LDFLAGS
  6002. echo "_main" > conftest.sym
  6003. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6004. cat >conftest.$ac_ext <<_ACEOF
  6005. /* confdefs.h. */
  6006. _ACEOF
  6007. cat confdefs.h >>conftest.$ac_ext
  6008. cat >>conftest.$ac_ext <<_ACEOF
  6009. /* end confdefs.h. */
  6010. int
  6011. main ()
  6012. {
  6013. ;
  6014. return 0;
  6015. }
  6016. _ACEOF
  6017. rm -f conftest.$ac_objext conftest$ac_exeext
  6018. if { (ac_try="$ac_link"
  6019. case "(($ac_try" in
  6020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6021. *) ac_try_echo=$ac_try;;
  6022. esac
  6023. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6024. $as_echo "$ac_try_echo") >&5
  6025. (eval "$ac_link") 2>conftest.er1
  6026. ac_status=$?
  6027. grep -v '^ *+' conftest.er1 >conftest.err
  6028. rm -f conftest.er1
  6029. cat conftest.err >&5
  6030. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6031. (exit $ac_status); } && {
  6032. test -z "$ac_c_werror_flag" ||
  6033. test ! -s conftest.err
  6034. } && test -s conftest$ac_exeext && {
  6035. test "$cross_compiling" = yes ||
  6036. $as_test_x conftest$ac_exeext
  6037. }; then
  6038. lt_cv_ld_exported_symbols_list=yes
  6039. else
  6040. $as_echo "$as_me: failed program was:" >&5
  6041. sed 's/^/| /' conftest.$ac_ext >&5
  6042. lt_cv_ld_exported_symbols_list=no
  6043. fi
  6044. rm -rf conftest.dSYM
  6045. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6046. conftest$ac_exeext conftest.$ac_ext
  6047. LDFLAGS="$save_LDFLAGS"
  6048. fi
  6049. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6050. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6051. case $host_os in
  6052. rhapsody* | darwin1.[012])
  6053. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6054. darwin1.*)
  6055. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6056. darwin*) # darwin 5.x on
  6057. # if running on 10.5 or later, the deployment target defaults
  6058. # to the OS version, if on x86, and 10.4, the deployment
  6059. # target defaults to 10.4. Don't you love it?
  6060. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6061. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6062. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6063. 10.[012]*)
  6064. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6065. 10.*)
  6066. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6067. esac
  6068. ;;
  6069. esac
  6070. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6071. _lt_dar_single_mod='$single_module'
  6072. fi
  6073. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6074. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6075. else
  6076. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6077. fi
  6078. if test "$DSYMUTIL" != ":"; then
  6079. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6080. else
  6081. _lt_dsymutil=
  6082. fi
  6083. ;;
  6084. esac
  6085. ac_ext=c
  6086. ac_cpp='$CPP $CPPFLAGS'
  6087. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6088. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6089. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6090. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6091. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6092. # On Suns, sometimes $CPP names a directory.
  6093. if test -n "$CPP" && test -d "$CPP"; then
  6094. CPP=
  6095. fi
  6096. if test -z "$CPP"; then
  6097. if test "${ac_cv_prog_CPP+set}" = set; then
  6098. $as_echo_n "(cached) " >&6
  6099. else
  6100. # Double quotes because CPP needs to be expanded
  6101. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6102. do
  6103. ac_preproc_ok=false
  6104. for ac_c_preproc_warn_flag in '' yes
  6105. do
  6106. # Use a header file that comes with gcc, so configuring glibc
  6107. # with a fresh cross-compiler works.
  6108. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6109. # <limits.h> exists even on freestanding compilers.
  6110. # On the NeXT, cc -E runs the code through the compiler's parser,
  6111. # not just through cpp. "Syntax error" is here to catch this case.
  6112. cat >conftest.$ac_ext <<_ACEOF
  6113. /* confdefs.h. */
  6114. _ACEOF
  6115. cat confdefs.h >>conftest.$ac_ext
  6116. cat >>conftest.$ac_ext <<_ACEOF
  6117. /* end confdefs.h. */
  6118. #ifdef __STDC__
  6119. # include <limits.h>
  6120. #else
  6121. # include <assert.h>
  6122. #endif
  6123. Syntax error
  6124. _ACEOF
  6125. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6126. case "(($ac_try" in
  6127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6128. *) ac_try_echo=$ac_try;;
  6129. esac
  6130. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6131. $as_echo "$ac_try_echo") >&5
  6132. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6133. ac_status=$?
  6134. grep -v '^ *+' conftest.er1 >conftest.err
  6135. rm -f conftest.er1
  6136. cat conftest.err >&5
  6137. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6138. (exit $ac_status); } >/dev/null && {
  6139. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6140. test ! -s conftest.err
  6141. }; then
  6142. :
  6143. else
  6144. $as_echo "$as_me: failed program was:" >&5
  6145. sed 's/^/| /' conftest.$ac_ext >&5
  6146. # Broken: fails on valid input.
  6147. continue
  6148. fi
  6149. rm -f conftest.err conftest.$ac_ext
  6150. # OK, works on sane cases. Now check whether nonexistent headers
  6151. # can be detected and how.
  6152. cat >conftest.$ac_ext <<_ACEOF
  6153. /* confdefs.h. */
  6154. _ACEOF
  6155. cat confdefs.h >>conftest.$ac_ext
  6156. cat >>conftest.$ac_ext <<_ACEOF
  6157. /* end confdefs.h. */
  6158. #include <ac_nonexistent.h>
  6159. _ACEOF
  6160. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6161. case "(($ac_try" in
  6162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6163. *) ac_try_echo=$ac_try;;
  6164. esac
  6165. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6166. $as_echo "$ac_try_echo") >&5
  6167. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6168. ac_status=$?
  6169. grep -v '^ *+' conftest.er1 >conftest.err
  6170. rm -f conftest.er1
  6171. cat conftest.err >&5
  6172. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6173. (exit $ac_status); } >/dev/null && {
  6174. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6175. test ! -s conftest.err
  6176. }; then
  6177. # Broken: success on invalid input.
  6178. continue
  6179. else
  6180. $as_echo "$as_me: failed program was:" >&5
  6181. sed 's/^/| /' conftest.$ac_ext >&5
  6182. # Passes both tests.
  6183. ac_preproc_ok=:
  6184. break
  6185. fi
  6186. rm -f conftest.err conftest.$ac_ext
  6187. done
  6188. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6189. rm -f conftest.err conftest.$ac_ext
  6190. if $ac_preproc_ok; then
  6191. break
  6192. fi
  6193. done
  6194. ac_cv_prog_CPP=$CPP
  6195. fi
  6196. CPP=$ac_cv_prog_CPP
  6197. else
  6198. ac_cv_prog_CPP=$CPP
  6199. fi
  6200. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6201. $as_echo "$CPP" >&6; }
  6202. ac_preproc_ok=false
  6203. for ac_c_preproc_warn_flag in '' yes
  6204. do
  6205. # Use a header file that comes with gcc, so configuring glibc
  6206. # with a fresh cross-compiler works.
  6207. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6208. # <limits.h> exists even on freestanding compilers.
  6209. # On the NeXT, cc -E runs the code through the compiler's parser,
  6210. # not just through cpp. "Syntax error" is here to catch this case.
  6211. cat >conftest.$ac_ext <<_ACEOF
  6212. /* confdefs.h. */
  6213. _ACEOF
  6214. cat confdefs.h >>conftest.$ac_ext
  6215. cat >>conftest.$ac_ext <<_ACEOF
  6216. /* end confdefs.h. */
  6217. #ifdef __STDC__
  6218. # include <limits.h>
  6219. #else
  6220. # include <assert.h>
  6221. #endif
  6222. Syntax error
  6223. _ACEOF
  6224. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6225. case "(($ac_try" in
  6226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6227. *) ac_try_echo=$ac_try;;
  6228. esac
  6229. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6230. $as_echo "$ac_try_echo") >&5
  6231. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6232. ac_status=$?
  6233. grep -v '^ *+' conftest.er1 >conftest.err
  6234. rm -f conftest.er1
  6235. cat conftest.err >&5
  6236. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6237. (exit $ac_status); } >/dev/null && {
  6238. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6239. test ! -s conftest.err
  6240. }; then
  6241. :
  6242. else
  6243. $as_echo "$as_me: failed program was:" >&5
  6244. sed 's/^/| /' conftest.$ac_ext >&5
  6245. # Broken: fails on valid input.
  6246. continue
  6247. fi
  6248. rm -f conftest.err conftest.$ac_ext
  6249. # OK, works on sane cases. Now check whether nonexistent headers
  6250. # can be detected and how.
  6251. cat >conftest.$ac_ext <<_ACEOF
  6252. /* confdefs.h. */
  6253. _ACEOF
  6254. cat confdefs.h >>conftest.$ac_ext
  6255. cat >>conftest.$ac_ext <<_ACEOF
  6256. /* end confdefs.h. */
  6257. #include <ac_nonexistent.h>
  6258. _ACEOF
  6259. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6260. case "(($ac_try" in
  6261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6262. *) ac_try_echo=$ac_try;;
  6263. esac
  6264. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6265. $as_echo "$ac_try_echo") >&5
  6266. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6267. ac_status=$?
  6268. grep -v '^ *+' conftest.er1 >conftest.err
  6269. rm -f conftest.er1
  6270. cat conftest.err >&5
  6271. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6272. (exit $ac_status); } >/dev/null && {
  6273. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6274. test ! -s conftest.err
  6275. }; then
  6276. # Broken: success on invalid input.
  6277. continue
  6278. else
  6279. $as_echo "$as_me: failed program was:" >&5
  6280. sed 's/^/| /' conftest.$ac_ext >&5
  6281. # Passes both tests.
  6282. ac_preproc_ok=:
  6283. break
  6284. fi
  6285. rm -f conftest.err conftest.$ac_ext
  6286. done
  6287. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6288. rm -f conftest.err conftest.$ac_ext
  6289. if $ac_preproc_ok; then
  6290. :
  6291. else
  6292. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6293. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6294. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6295. See \`config.log' for more details." >&5
  6296. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6297. See \`config.log' for more details." >&2;}
  6298. { (exit 1); exit 1; }; }; }
  6299. fi
  6300. ac_ext=c
  6301. ac_cpp='$CPP $CPPFLAGS'
  6302. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6303. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6304. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6305. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6306. $as_echo_n "checking for ANSI C header files... " >&6; }
  6307. if test "${ac_cv_header_stdc+set}" = set; then
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. cat >conftest.$ac_ext <<_ACEOF
  6311. /* confdefs.h. */
  6312. _ACEOF
  6313. cat confdefs.h >>conftest.$ac_ext
  6314. cat >>conftest.$ac_ext <<_ACEOF
  6315. /* end confdefs.h. */
  6316. #include <stdlib.h>
  6317. #include <stdarg.h>
  6318. #include <string.h>
  6319. #include <float.h>
  6320. int
  6321. main ()
  6322. {
  6323. ;
  6324. return 0;
  6325. }
  6326. _ACEOF
  6327. rm -f conftest.$ac_objext
  6328. if { (ac_try="$ac_compile"
  6329. case "(($ac_try" in
  6330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6331. *) ac_try_echo=$ac_try;;
  6332. esac
  6333. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6334. $as_echo "$ac_try_echo") >&5
  6335. (eval "$ac_compile") 2>conftest.er1
  6336. ac_status=$?
  6337. grep -v '^ *+' conftest.er1 >conftest.err
  6338. rm -f conftest.er1
  6339. cat conftest.err >&5
  6340. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6341. (exit $ac_status); } && {
  6342. test -z "$ac_c_werror_flag" ||
  6343. test ! -s conftest.err
  6344. } && test -s conftest.$ac_objext; then
  6345. ac_cv_header_stdc=yes
  6346. else
  6347. $as_echo "$as_me: failed program was:" >&5
  6348. sed 's/^/| /' conftest.$ac_ext >&5
  6349. ac_cv_header_stdc=no
  6350. fi
  6351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6352. if test $ac_cv_header_stdc = yes; then
  6353. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6354. cat >conftest.$ac_ext <<_ACEOF
  6355. /* confdefs.h. */
  6356. _ACEOF
  6357. cat confdefs.h >>conftest.$ac_ext
  6358. cat >>conftest.$ac_ext <<_ACEOF
  6359. /* end confdefs.h. */
  6360. #include <string.h>
  6361. _ACEOF
  6362. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6363. $EGREP "memchr" >/dev/null 2>&1; then
  6364. :
  6365. else
  6366. ac_cv_header_stdc=no
  6367. fi
  6368. rm -f conftest*
  6369. fi
  6370. if test $ac_cv_header_stdc = yes; then
  6371. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6372. cat >conftest.$ac_ext <<_ACEOF
  6373. /* confdefs.h. */
  6374. _ACEOF
  6375. cat confdefs.h >>conftest.$ac_ext
  6376. cat >>conftest.$ac_ext <<_ACEOF
  6377. /* end confdefs.h. */
  6378. #include <stdlib.h>
  6379. _ACEOF
  6380. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6381. $EGREP "free" >/dev/null 2>&1; then
  6382. :
  6383. else
  6384. ac_cv_header_stdc=no
  6385. fi
  6386. rm -f conftest*
  6387. fi
  6388. if test $ac_cv_header_stdc = yes; then
  6389. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6390. if test "$cross_compiling" = yes; then
  6391. :
  6392. else
  6393. cat >conftest.$ac_ext <<_ACEOF
  6394. /* confdefs.h. */
  6395. _ACEOF
  6396. cat confdefs.h >>conftest.$ac_ext
  6397. cat >>conftest.$ac_ext <<_ACEOF
  6398. /* end confdefs.h. */
  6399. #include <ctype.h>
  6400. #include <stdlib.h>
  6401. #if ((' ' & 0x0FF) == 0x020)
  6402. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6403. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6404. #else
  6405. # define ISLOWER(c) \
  6406. (('a' <= (c) && (c) <= 'i') \
  6407. || ('j' <= (c) && (c) <= 'r') \
  6408. || ('s' <= (c) && (c) <= 'z'))
  6409. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6410. #endif
  6411. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6412. int
  6413. main ()
  6414. {
  6415. int i;
  6416. for (i = 0; i < 256; i++)
  6417. if (XOR (islower (i), ISLOWER (i))
  6418. || toupper (i) != TOUPPER (i))
  6419. return 2;
  6420. return 0;
  6421. }
  6422. _ACEOF
  6423. rm -f conftest$ac_exeext
  6424. if { (ac_try="$ac_link"
  6425. case "(($ac_try" in
  6426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6427. *) ac_try_echo=$ac_try;;
  6428. esac
  6429. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6430. $as_echo "$ac_try_echo") >&5
  6431. (eval "$ac_link") 2>&5
  6432. ac_status=$?
  6433. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6434. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6435. { (case "(($ac_try" in
  6436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6437. *) ac_try_echo=$ac_try;;
  6438. esac
  6439. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6440. $as_echo "$ac_try_echo") >&5
  6441. (eval "$ac_try") 2>&5
  6442. ac_status=$?
  6443. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6444. (exit $ac_status); }; }; then
  6445. :
  6446. else
  6447. $as_echo "$as_me: program exited with status $ac_status" >&5
  6448. $as_echo "$as_me: failed program was:" >&5
  6449. sed 's/^/| /' conftest.$ac_ext >&5
  6450. ( exit $ac_status )
  6451. ac_cv_header_stdc=no
  6452. fi
  6453. rm -rf conftest.dSYM
  6454. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6455. fi
  6456. fi
  6457. fi
  6458. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6459. $as_echo "$ac_cv_header_stdc" >&6; }
  6460. if test $ac_cv_header_stdc = yes; then
  6461. cat >>confdefs.h <<\_ACEOF
  6462. #define STDC_HEADERS 1
  6463. _ACEOF
  6464. fi
  6465. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6466. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6467. inttypes.h stdint.h unistd.h
  6468. do
  6469. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6470. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6471. $as_echo_n "checking for $ac_header... " >&6; }
  6472. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6473. $as_echo_n "(cached) " >&6
  6474. else
  6475. cat >conftest.$ac_ext <<_ACEOF
  6476. /* confdefs.h. */
  6477. _ACEOF
  6478. cat confdefs.h >>conftest.$ac_ext
  6479. cat >>conftest.$ac_ext <<_ACEOF
  6480. /* end confdefs.h. */
  6481. $ac_includes_default
  6482. #include <$ac_header>
  6483. _ACEOF
  6484. rm -f conftest.$ac_objext
  6485. if { (ac_try="$ac_compile"
  6486. case "(($ac_try" in
  6487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6488. *) ac_try_echo=$ac_try;;
  6489. esac
  6490. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6491. $as_echo "$ac_try_echo") >&5
  6492. (eval "$ac_compile") 2>conftest.er1
  6493. ac_status=$?
  6494. grep -v '^ *+' conftest.er1 >conftest.err
  6495. rm -f conftest.er1
  6496. cat conftest.err >&5
  6497. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6498. (exit $ac_status); } && {
  6499. test -z "$ac_c_werror_flag" ||
  6500. test ! -s conftest.err
  6501. } && test -s conftest.$ac_objext; then
  6502. eval "$as_ac_Header=yes"
  6503. else
  6504. $as_echo "$as_me: failed program was:" >&5
  6505. sed 's/^/| /' conftest.$ac_ext >&5
  6506. eval "$as_ac_Header=no"
  6507. fi
  6508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6509. fi
  6510. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6511. $as_echo "$as_val"'`
  6512. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6513. $as_echo "$ac_res" >&6; }
  6514. as_val=`eval 'as_val=${'$as_ac_Header'}
  6515. $as_echo "$as_val"'`
  6516. if test "x$as_val" = x""yes; then
  6517. cat >>confdefs.h <<_ACEOF
  6518. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6519. _ACEOF
  6520. fi
  6521. done
  6522. for ac_header in dlfcn.h
  6523. do
  6524. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6525. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6526. $as_echo_n "checking for $ac_header... " >&6; }
  6527. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6528. $as_echo_n "(cached) " >&6
  6529. else
  6530. cat >conftest.$ac_ext <<_ACEOF
  6531. /* confdefs.h. */
  6532. _ACEOF
  6533. cat confdefs.h >>conftest.$ac_ext
  6534. cat >>conftest.$ac_ext <<_ACEOF
  6535. /* end confdefs.h. */
  6536. $ac_includes_default
  6537. #include <$ac_header>
  6538. _ACEOF
  6539. rm -f conftest.$ac_objext
  6540. if { (ac_try="$ac_compile"
  6541. case "(($ac_try" in
  6542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6543. *) ac_try_echo=$ac_try;;
  6544. esac
  6545. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6546. $as_echo "$ac_try_echo") >&5
  6547. (eval "$ac_compile") 2>conftest.er1
  6548. ac_status=$?
  6549. grep -v '^ *+' conftest.er1 >conftest.err
  6550. rm -f conftest.er1
  6551. cat conftest.err >&5
  6552. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6553. (exit $ac_status); } && {
  6554. test -z "$ac_c_werror_flag" ||
  6555. test ! -s conftest.err
  6556. } && test -s conftest.$ac_objext; then
  6557. eval "$as_ac_Header=yes"
  6558. else
  6559. $as_echo "$as_me: failed program was:" >&5
  6560. sed 's/^/| /' conftest.$ac_ext >&5
  6561. eval "$as_ac_Header=no"
  6562. fi
  6563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6564. fi
  6565. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6566. $as_echo "$as_val"'`
  6567. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6568. $as_echo "$ac_res" >&6; }
  6569. as_val=`eval 'as_val=${'$as_ac_Header'}
  6570. $as_echo "$as_val"'`
  6571. if test "x$as_val" = x""yes; then
  6572. cat >>confdefs.h <<_ACEOF
  6573. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6574. _ACEOF
  6575. fi
  6576. done
  6577. ac_ext=cpp
  6578. ac_cpp='$CXXCPP $CPPFLAGS'
  6579. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6580. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6581. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6582. if test -z "$CXX"; then
  6583. if test -n "$CCC"; then
  6584. CXX=$CCC
  6585. else
  6586. if test -n "$ac_tool_prefix"; then
  6587. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6588. do
  6589. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6590. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6591. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6592. $as_echo_n "checking for $ac_word... " >&6; }
  6593. if test "${ac_cv_prog_CXX+set}" = set; then
  6594. $as_echo_n "(cached) " >&6
  6595. else
  6596. if test -n "$CXX"; then
  6597. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6598. else
  6599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6600. for as_dir in $PATH
  6601. do
  6602. IFS=$as_save_IFS
  6603. test -z "$as_dir" && as_dir=.
  6604. for ac_exec_ext in '' $ac_executable_extensions; do
  6605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6606. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6607. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6608. break 2
  6609. fi
  6610. done
  6611. done
  6612. IFS=$as_save_IFS
  6613. fi
  6614. fi
  6615. CXX=$ac_cv_prog_CXX
  6616. if test -n "$CXX"; then
  6617. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  6618. $as_echo "$CXX" >&6; }
  6619. else
  6620. { $as_echo "$as_me:$LINENO: result: no" >&5
  6621. $as_echo "no" >&6; }
  6622. fi
  6623. test -n "$CXX" && break
  6624. done
  6625. fi
  6626. if test -z "$CXX"; then
  6627. ac_ct_CXX=$CXX
  6628. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6629. do
  6630. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6631. set dummy $ac_prog; ac_word=$2
  6632. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6633. $as_echo_n "checking for $ac_word... " >&6; }
  6634. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  6635. $as_echo_n "(cached) " >&6
  6636. else
  6637. if test -n "$ac_ct_CXX"; then
  6638. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6639. else
  6640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6641. for as_dir in $PATH
  6642. do
  6643. IFS=$as_save_IFS
  6644. test -z "$as_dir" && as_dir=.
  6645. for ac_exec_ext in '' $ac_executable_extensions; do
  6646. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6647. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6648. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6649. break 2
  6650. fi
  6651. done
  6652. done
  6653. IFS=$as_save_IFS
  6654. fi
  6655. fi
  6656. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6657. if test -n "$ac_ct_CXX"; then
  6658. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  6659. $as_echo "$ac_ct_CXX" >&6; }
  6660. else
  6661. { $as_echo "$as_me:$LINENO: result: no" >&5
  6662. $as_echo "no" >&6; }
  6663. fi
  6664. test -n "$ac_ct_CXX" && break
  6665. done
  6666. if test "x$ac_ct_CXX" = x; then
  6667. CXX="g++"
  6668. else
  6669. case $cross_compiling:$ac_tool_warned in
  6670. yes:)
  6671. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6673. ac_tool_warned=yes ;;
  6674. esac
  6675. CXX=$ac_ct_CXX
  6676. fi
  6677. fi
  6678. fi
  6679. fi
  6680. # Provide some information about the compiler.
  6681. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  6682. set X $ac_compile
  6683. ac_compiler=$2
  6684. { (ac_try="$ac_compiler --version >&5"
  6685. case "(($ac_try" in
  6686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6687. *) ac_try_echo=$ac_try;;
  6688. esac
  6689. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6690. $as_echo "$ac_try_echo") >&5
  6691. (eval "$ac_compiler --version >&5") 2>&5
  6692. ac_status=$?
  6693. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6694. (exit $ac_status); }
  6695. { (ac_try="$ac_compiler -v >&5"
  6696. case "(($ac_try" in
  6697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6698. *) ac_try_echo=$ac_try;;
  6699. esac
  6700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6701. $as_echo "$ac_try_echo") >&5
  6702. (eval "$ac_compiler -v >&5") 2>&5
  6703. ac_status=$?
  6704. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6705. (exit $ac_status); }
  6706. { (ac_try="$ac_compiler -V >&5"
  6707. case "(($ac_try" in
  6708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6709. *) ac_try_echo=$ac_try;;
  6710. esac
  6711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6712. $as_echo "$ac_try_echo") >&5
  6713. (eval "$ac_compiler -V >&5") 2>&5
  6714. ac_status=$?
  6715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6716. (exit $ac_status); }
  6717. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  6718. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6719. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  6720. $as_echo_n "(cached) " >&6
  6721. else
  6722. cat >conftest.$ac_ext <<_ACEOF
  6723. /* confdefs.h. */
  6724. _ACEOF
  6725. cat confdefs.h >>conftest.$ac_ext
  6726. cat >>conftest.$ac_ext <<_ACEOF
  6727. /* end confdefs.h. */
  6728. int
  6729. main ()
  6730. {
  6731. #ifndef __GNUC__
  6732. choke me
  6733. #endif
  6734. ;
  6735. return 0;
  6736. }
  6737. _ACEOF
  6738. rm -f conftest.$ac_objext
  6739. if { (ac_try="$ac_compile"
  6740. case "(($ac_try" in
  6741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6742. *) ac_try_echo=$ac_try;;
  6743. esac
  6744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6745. $as_echo "$ac_try_echo") >&5
  6746. (eval "$ac_compile") 2>conftest.er1
  6747. ac_status=$?
  6748. grep -v '^ *+' conftest.er1 >conftest.err
  6749. rm -f conftest.er1
  6750. cat conftest.err >&5
  6751. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6752. (exit $ac_status); } && {
  6753. test -z "$ac_cxx_werror_flag" ||
  6754. test ! -s conftest.err
  6755. } && test -s conftest.$ac_objext; then
  6756. ac_compiler_gnu=yes
  6757. else
  6758. $as_echo "$as_me: failed program was:" >&5
  6759. sed 's/^/| /' conftest.$ac_ext >&5
  6760. ac_compiler_gnu=no
  6761. fi
  6762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6763. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6764. fi
  6765. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  6766. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6767. if test $ac_compiler_gnu = yes; then
  6768. GXX=yes
  6769. else
  6770. GXX=
  6771. fi
  6772. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6773. ac_save_CXXFLAGS=$CXXFLAGS
  6774. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  6775. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6776. if test "${ac_cv_prog_cxx_g+set}" = set; then
  6777. $as_echo_n "(cached) " >&6
  6778. else
  6779. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6780. ac_cxx_werror_flag=yes
  6781. ac_cv_prog_cxx_g=no
  6782. CXXFLAGS="-g"
  6783. cat >conftest.$ac_ext <<_ACEOF
  6784. /* confdefs.h. */
  6785. _ACEOF
  6786. cat confdefs.h >>conftest.$ac_ext
  6787. cat >>conftest.$ac_ext <<_ACEOF
  6788. /* end confdefs.h. */
  6789. int
  6790. main ()
  6791. {
  6792. ;
  6793. return 0;
  6794. }
  6795. _ACEOF
  6796. rm -f conftest.$ac_objext
  6797. if { (ac_try="$ac_compile"
  6798. case "(($ac_try" in
  6799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6800. *) ac_try_echo=$ac_try;;
  6801. esac
  6802. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6803. $as_echo "$ac_try_echo") >&5
  6804. (eval "$ac_compile") 2>conftest.er1
  6805. ac_status=$?
  6806. grep -v '^ *+' conftest.er1 >conftest.err
  6807. rm -f conftest.er1
  6808. cat conftest.err >&5
  6809. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6810. (exit $ac_status); } && {
  6811. test -z "$ac_cxx_werror_flag" ||
  6812. test ! -s conftest.err
  6813. } && test -s conftest.$ac_objext; then
  6814. ac_cv_prog_cxx_g=yes
  6815. else
  6816. $as_echo "$as_me: failed program was:" >&5
  6817. sed 's/^/| /' conftest.$ac_ext >&5
  6818. CXXFLAGS=""
  6819. cat >conftest.$ac_ext <<_ACEOF
  6820. /* confdefs.h. */
  6821. _ACEOF
  6822. cat confdefs.h >>conftest.$ac_ext
  6823. cat >>conftest.$ac_ext <<_ACEOF
  6824. /* end confdefs.h. */
  6825. int
  6826. main ()
  6827. {
  6828. ;
  6829. return 0;
  6830. }
  6831. _ACEOF
  6832. rm -f conftest.$ac_objext
  6833. if { (ac_try="$ac_compile"
  6834. case "(($ac_try" in
  6835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6836. *) ac_try_echo=$ac_try;;
  6837. esac
  6838. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6839. $as_echo "$ac_try_echo") >&5
  6840. (eval "$ac_compile") 2>conftest.er1
  6841. ac_status=$?
  6842. grep -v '^ *+' conftest.er1 >conftest.err
  6843. rm -f conftest.er1
  6844. cat conftest.err >&5
  6845. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6846. (exit $ac_status); } && {
  6847. test -z "$ac_cxx_werror_flag" ||
  6848. test ! -s conftest.err
  6849. } && test -s conftest.$ac_objext; then
  6850. :
  6851. else
  6852. $as_echo "$as_me: failed program was:" >&5
  6853. sed 's/^/| /' conftest.$ac_ext >&5
  6854. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6855. CXXFLAGS="-g"
  6856. cat >conftest.$ac_ext <<_ACEOF
  6857. /* confdefs.h. */
  6858. _ACEOF
  6859. cat confdefs.h >>conftest.$ac_ext
  6860. cat >>conftest.$ac_ext <<_ACEOF
  6861. /* end confdefs.h. */
  6862. int
  6863. main ()
  6864. {
  6865. ;
  6866. return 0;
  6867. }
  6868. _ACEOF
  6869. rm -f conftest.$ac_objext
  6870. if { (ac_try="$ac_compile"
  6871. case "(($ac_try" in
  6872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6873. *) ac_try_echo=$ac_try;;
  6874. esac
  6875. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6876. $as_echo "$ac_try_echo") >&5
  6877. (eval "$ac_compile") 2>conftest.er1
  6878. ac_status=$?
  6879. grep -v '^ *+' conftest.er1 >conftest.err
  6880. rm -f conftest.er1
  6881. cat conftest.err >&5
  6882. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6883. (exit $ac_status); } && {
  6884. test -z "$ac_cxx_werror_flag" ||
  6885. test ! -s conftest.err
  6886. } && test -s conftest.$ac_objext; then
  6887. ac_cv_prog_cxx_g=yes
  6888. else
  6889. $as_echo "$as_me: failed program was:" >&5
  6890. sed 's/^/| /' conftest.$ac_ext >&5
  6891. fi
  6892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6898. fi
  6899. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  6900. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6901. if test "$ac_test_CXXFLAGS" = set; then
  6902. CXXFLAGS=$ac_save_CXXFLAGS
  6903. elif test $ac_cv_prog_cxx_g = yes; then
  6904. if test "$GXX" = yes; then
  6905. CXXFLAGS="-g -O2"
  6906. else
  6907. CXXFLAGS="-g"
  6908. fi
  6909. else
  6910. if test "$GXX" = yes; then
  6911. CXXFLAGS="-O2"
  6912. else
  6913. CXXFLAGS=
  6914. fi
  6915. fi
  6916. ac_ext=cpp
  6917. ac_cpp='$CXXCPP $CPPFLAGS'
  6918. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6919. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6920. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6921. depcc="$CXX" am_compiler_list=
  6922. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6923. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6924. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  6925. $as_echo_n "(cached) " >&6
  6926. else
  6927. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6928. # We make a subdir and do the tests there. Otherwise we can end up
  6929. # making bogus files that we don't know about and never remove. For
  6930. # instance it was reported that on HP-UX the gcc test will end up
  6931. # making a dummy file named `D' -- because `-MD' means `put the output
  6932. # in D'.
  6933. mkdir conftest.dir
  6934. # Copy depcomp to subdir because otherwise we won't find it if we're
  6935. # using a relative directory.
  6936. cp "$am_depcomp" conftest.dir
  6937. cd conftest.dir
  6938. # We will build objects and dependencies in a subdirectory because
  6939. # it helps to detect inapplicable dependency modes. For instance
  6940. # both Tru64's cc and ICC support -MD to output dependencies as a
  6941. # side effect of compilation, but ICC will put the dependencies in
  6942. # the current directory while Tru64 will put them in the object
  6943. # directory.
  6944. mkdir sub
  6945. am_cv_CXX_dependencies_compiler_type=none
  6946. if test "$am_compiler_list" = ""; then
  6947. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6948. fi
  6949. for depmode in $am_compiler_list; do
  6950. # Setup a source with many dependencies, because some compilers
  6951. # like to wrap large dependency lists on column 80 (with \), and
  6952. # we should not choose a depcomp mode which is confused by this.
  6953. #
  6954. # We need to recreate these files for each test, as the compiler may
  6955. # overwrite some of them when testing with obscure command lines.
  6956. # This happens at least with the AIX C compiler.
  6957. : > sub/conftest.c
  6958. for i in 1 2 3 4 5 6; do
  6959. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6960. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6961. # Solaris 8's {/usr,}/bin/sh.
  6962. touch sub/conftst$i.h
  6963. done
  6964. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6965. case $depmode in
  6966. nosideeffect)
  6967. # after this tag, mechanisms are not by side-effect, so they'll
  6968. # only be used when explicitly requested
  6969. if test "x$enable_dependency_tracking" = xyes; then
  6970. continue
  6971. else
  6972. break
  6973. fi
  6974. ;;
  6975. none) break ;;
  6976. esac
  6977. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6978. # mode. It turns out that the SunPro C++ compiler does not properly
  6979. # handle `-M -o', and we need to detect this.
  6980. if depmode=$depmode \
  6981. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6982. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6983. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6984. >/dev/null 2>conftest.err &&
  6985. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6986. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6987. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6988. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6989. # icc doesn't choke on unknown options, it will just issue warnings
  6990. # or remarks (even with -Werror). So we grep stderr for any message
  6991. # that says an option was ignored or not supported.
  6992. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6993. # icc: Command line warning: ignoring option '-M'; no argument required
  6994. # The diagnosis changed in icc 8.0:
  6995. # icc: Command line remark: option '-MP' not supported
  6996. if (grep 'ignoring option' conftest.err ||
  6997. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6998. am_cv_CXX_dependencies_compiler_type=$depmode
  6999. break
  7000. fi
  7001. fi
  7002. done
  7003. cd ..
  7004. rm -rf conftest.dir
  7005. else
  7006. am_cv_CXX_dependencies_compiler_type=none
  7007. fi
  7008. fi
  7009. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7010. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7011. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7012. if
  7013. test "x$enable_dependency_tracking" != xno \
  7014. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7015. am__fastdepCXX_TRUE=
  7016. am__fastdepCXX_FALSE='#'
  7017. else
  7018. am__fastdepCXX_TRUE='#'
  7019. am__fastdepCXX_FALSE=
  7020. fi
  7021. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7022. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7023. (test "X$CXX" != "Xg++"))) ; then
  7024. ac_ext=cpp
  7025. ac_cpp='$CXXCPP $CPPFLAGS'
  7026. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7027. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7028. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7029. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  7030. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7031. if test -z "$CXXCPP"; then
  7032. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  7033. $as_echo_n "(cached) " >&6
  7034. else
  7035. # Double quotes because CXXCPP needs to be expanded
  7036. for CXXCPP in "$CXX -E" "/lib/cpp"
  7037. do
  7038. ac_preproc_ok=false
  7039. for ac_cxx_preproc_warn_flag in '' yes
  7040. do
  7041. # Use a header file that comes with gcc, so configuring glibc
  7042. # with a fresh cross-compiler works.
  7043. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7044. # <limits.h> exists even on freestanding compilers.
  7045. # On the NeXT, cc -E runs the code through the compiler's parser,
  7046. # not just through cpp. "Syntax error" is here to catch this case.
  7047. cat >conftest.$ac_ext <<_ACEOF
  7048. /* confdefs.h. */
  7049. _ACEOF
  7050. cat confdefs.h >>conftest.$ac_ext
  7051. cat >>conftest.$ac_ext <<_ACEOF
  7052. /* end confdefs.h. */
  7053. #ifdef __STDC__
  7054. # include <limits.h>
  7055. #else
  7056. # include <assert.h>
  7057. #endif
  7058. Syntax error
  7059. _ACEOF
  7060. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7061. case "(($ac_try" in
  7062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7063. *) ac_try_echo=$ac_try;;
  7064. esac
  7065. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7066. $as_echo "$ac_try_echo") >&5
  7067. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7068. ac_status=$?
  7069. grep -v '^ *+' conftest.er1 >conftest.err
  7070. rm -f conftest.er1
  7071. cat conftest.err >&5
  7072. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7073. (exit $ac_status); } >/dev/null && {
  7074. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7075. test ! -s conftest.err
  7076. }; then
  7077. :
  7078. else
  7079. $as_echo "$as_me: failed program was:" >&5
  7080. sed 's/^/| /' conftest.$ac_ext >&5
  7081. # Broken: fails on valid input.
  7082. continue
  7083. fi
  7084. rm -f conftest.err conftest.$ac_ext
  7085. # OK, works on sane cases. Now check whether nonexistent headers
  7086. # can be detected and how.
  7087. cat >conftest.$ac_ext <<_ACEOF
  7088. /* confdefs.h. */
  7089. _ACEOF
  7090. cat confdefs.h >>conftest.$ac_ext
  7091. cat >>conftest.$ac_ext <<_ACEOF
  7092. /* end confdefs.h. */
  7093. #include <ac_nonexistent.h>
  7094. _ACEOF
  7095. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7096. case "(($ac_try" in
  7097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7098. *) ac_try_echo=$ac_try;;
  7099. esac
  7100. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7101. $as_echo "$ac_try_echo") >&5
  7102. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7103. ac_status=$?
  7104. grep -v '^ *+' conftest.er1 >conftest.err
  7105. rm -f conftest.er1
  7106. cat conftest.err >&5
  7107. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7108. (exit $ac_status); } >/dev/null && {
  7109. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7110. test ! -s conftest.err
  7111. }; then
  7112. # Broken: success on invalid input.
  7113. continue
  7114. else
  7115. $as_echo "$as_me: failed program was:" >&5
  7116. sed 's/^/| /' conftest.$ac_ext >&5
  7117. # Passes both tests.
  7118. ac_preproc_ok=:
  7119. break
  7120. fi
  7121. rm -f conftest.err conftest.$ac_ext
  7122. done
  7123. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7124. rm -f conftest.err conftest.$ac_ext
  7125. if $ac_preproc_ok; then
  7126. break
  7127. fi
  7128. done
  7129. ac_cv_prog_CXXCPP=$CXXCPP
  7130. fi
  7131. CXXCPP=$ac_cv_prog_CXXCPP
  7132. else
  7133. ac_cv_prog_CXXCPP=$CXXCPP
  7134. fi
  7135. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  7136. $as_echo "$CXXCPP" >&6; }
  7137. ac_preproc_ok=false
  7138. for ac_cxx_preproc_warn_flag in '' yes
  7139. do
  7140. # Use a header file that comes with gcc, so configuring glibc
  7141. # with a fresh cross-compiler works.
  7142. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7143. # <limits.h> exists even on freestanding compilers.
  7144. # On the NeXT, cc -E runs the code through the compiler's parser,
  7145. # not just through cpp. "Syntax error" is here to catch this case.
  7146. cat >conftest.$ac_ext <<_ACEOF
  7147. /* confdefs.h. */
  7148. _ACEOF
  7149. cat confdefs.h >>conftest.$ac_ext
  7150. cat >>conftest.$ac_ext <<_ACEOF
  7151. /* end confdefs.h. */
  7152. #ifdef __STDC__
  7153. # include <limits.h>
  7154. #else
  7155. # include <assert.h>
  7156. #endif
  7157. Syntax error
  7158. _ACEOF
  7159. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7160. case "(($ac_try" in
  7161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7162. *) ac_try_echo=$ac_try;;
  7163. esac
  7164. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7165. $as_echo "$ac_try_echo") >&5
  7166. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7167. ac_status=$?
  7168. grep -v '^ *+' conftest.er1 >conftest.err
  7169. rm -f conftest.er1
  7170. cat conftest.err >&5
  7171. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7172. (exit $ac_status); } >/dev/null && {
  7173. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7174. test ! -s conftest.err
  7175. }; then
  7176. :
  7177. else
  7178. $as_echo "$as_me: failed program was:" >&5
  7179. sed 's/^/| /' conftest.$ac_ext >&5
  7180. # Broken: fails on valid input.
  7181. continue
  7182. fi
  7183. rm -f conftest.err conftest.$ac_ext
  7184. # OK, works on sane cases. Now check whether nonexistent headers
  7185. # can be detected and how.
  7186. cat >conftest.$ac_ext <<_ACEOF
  7187. /* confdefs.h. */
  7188. _ACEOF
  7189. cat confdefs.h >>conftest.$ac_ext
  7190. cat >>conftest.$ac_ext <<_ACEOF
  7191. /* end confdefs.h. */
  7192. #include <ac_nonexistent.h>
  7193. _ACEOF
  7194. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7195. case "(($ac_try" in
  7196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7197. *) ac_try_echo=$ac_try;;
  7198. esac
  7199. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7200. $as_echo "$ac_try_echo") >&5
  7201. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7202. ac_status=$?
  7203. grep -v '^ *+' conftest.er1 >conftest.err
  7204. rm -f conftest.er1
  7205. cat conftest.err >&5
  7206. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7207. (exit $ac_status); } >/dev/null && {
  7208. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7209. test ! -s conftest.err
  7210. }; then
  7211. # Broken: success on invalid input.
  7212. continue
  7213. else
  7214. $as_echo "$as_me: failed program was:" >&5
  7215. sed 's/^/| /' conftest.$ac_ext >&5
  7216. # Passes both tests.
  7217. ac_preproc_ok=:
  7218. break
  7219. fi
  7220. rm -f conftest.err conftest.$ac_ext
  7221. done
  7222. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7223. rm -f conftest.err conftest.$ac_ext
  7224. if $ac_preproc_ok; then
  7225. :
  7226. else
  7227. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7228. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7229. _lt_caught_CXX_error=yes; }
  7230. fi
  7231. ac_ext=cpp
  7232. ac_cpp='$CXXCPP $CPPFLAGS'
  7233. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7234. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7235. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7236. else
  7237. _lt_caught_CXX_error=yes
  7238. fi
  7239. # Set options
  7240. enable_dlopen=no
  7241. enable_win32_dll=no
  7242. # Check whether --with-pic was given.
  7243. if test "${with_pic+set}" = set; then
  7244. withval=$with_pic; pic_mode="$withval"
  7245. else
  7246. pic_mode=default
  7247. fi
  7248. test -z "$pic_mode" && pic_mode=default
  7249. # Check whether --enable-fast-install was given.
  7250. if test "${enable_fast_install+set}" = set; then
  7251. enableval=$enable_fast_install; p=${PACKAGE-default}
  7252. case $enableval in
  7253. yes) enable_fast_install=yes ;;
  7254. no) enable_fast_install=no ;;
  7255. *)
  7256. enable_fast_install=no
  7257. # Look at the argument we got. We use all the common list separators.
  7258. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7259. for pkg in $enableval; do
  7260. IFS="$lt_save_ifs"
  7261. if test "X$pkg" = "X$p"; then
  7262. enable_fast_install=yes
  7263. fi
  7264. done
  7265. IFS="$lt_save_ifs"
  7266. ;;
  7267. esac
  7268. else
  7269. enable_fast_install=yes
  7270. fi
  7271. # This can be used to rebuild libtool when needed
  7272. LIBTOOL_DEPS="$ltmain"
  7273. # Always use our own libtool.
  7274. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7275. test -z "$LN_S" && LN_S="ln -s"
  7276. if test -n "${ZSH_VERSION+set}" ; then
  7277. setopt NO_GLOB_SUBST
  7278. fi
  7279. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7280. $as_echo_n "checking for objdir... " >&6; }
  7281. if test "${lt_cv_objdir+set}" = set; then
  7282. $as_echo_n "(cached) " >&6
  7283. else
  7284. rm -f .libs 2>/dev/null
  7285. mkdir .libs 2>/dev/null
  7286. if test -d .libs; then
  7287. lt_cv_objdir=.libs
  7288. else
  7289. # MS-DOS does not allow filenames that begin with a dot.
  7290. lt_cv_objdir=_libs
  7291. fi
  7292. rmdir .libs 2>/dev/null
  7293. fi
  7294. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7295. $as_echo "$lt_cv_objdir" >&6; }
  7296. objdir=$lt_cv_objdir
  7297. cat >>confdefs.h <<_ACEOF
  7298. #define LT_OBJDIR "$lt_cv_objdir/"
  7299. _ACEOF
  7300. case $host_os in
  7301. aix3*)
  7302. # AIX sometimes has problems with the GCC collect2 program. For some
  7303. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7304. # vanish in a puff of smoke.
  7305. if test "X${COLLECT_NAMES+set}" != Xset; then
  7306. COLLECT_NAMES=
  7307. export COLLECT_NAMES
  7308. fi
  7309. ;;
  7310. esac
  7311. # Sed substitution that helps us do robust quoting. It backslashifies
  7312. # metacharacters that are still active within double-quoted strings.
  7313. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7314. # Same as above, but do not quote variable references.
  7315. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7316. # Sed substitution to delay expansion of an escaped shell variable in a
  7317. # double_quote_subst'ed string.
  7318. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7319. # Sed substitution to delay expansion of an escaped single quote.
  7320. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7321. # Sed substitution to avoid accidental globbing in evaled expressions
  7322. no_glob_subst='s/\*/\\\*/g'
  7323. # Global variables:
  7324. ofile=libtool
  7325. can_build_shared=yes
  7326. # All known linkers require a `.a' archive for static linking (except MSVC,
  7327. # which needs '.lib').
  7328. libext=a
  7329. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7330. old_CC="$CC"
  7331. old_CFLAGS="$CFLAGS"
  7332. # Set sane defaults for various variables
  7333. test -z "$CC" && CC=cc
  7334. test -z "$LTCC" && LTCC=$CC
  7335. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7336. test -z "$LD" && LD=ld
  7337. test -z "$ac_objext" && ac_objext=o
  7338. for cc_temp in $compiler""; do
  7339. case $cc_temp in
  7340. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7341. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7342. \-*) ;;
  7343. *) break;;
  7344. esac
  7345. done
  7346. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7347. # Only perform the check for file, if the check method requires it
  7348. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7349. case $deplibs_check_method in
  7350. file_magic*)
  7351. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7352. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7353. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7354. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7355. $as_echo_n "(cached) " >&6
  7356. else
  7357. case $MAGIC_CMD in
  7358. [\\/*] | ?:[\\/]*)
  7359. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7360. ;;
  7361. *)
  7362. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7363. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7364. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7365. for ac_dir in $ac_dummy; do
  7366. IFS="$lt_save_ifs"
  7367. test -z "$ac_dir" && ac_dir=.
  7368. if test -f $ac_dir/${ac_tool_prefix}file; then
  7369. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7370. if test -n "$file_magic_test_file"; then
  7371. case $deplibs_check_method in
  7372. "file_magic "*)
  7373. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7374. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7375. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7376. $EGREP "$file_magic_regex" > /dev/null; then
  7377. :
  7378. else
  7379. cat <<_LT_EOF 1>&2
  7380. *** Warning: the command libtool uses to detect shared libraries,
  7381. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7382. *** The result is that libtool may fail to recognize shared libraries
  7383. *** as such. This will affect the creation of libtool libraries that
  7384. *** depend on shared libraries, but programs linked with such libtool
  7385. *** libraries will work regardless of this problem. Nevertheless, you
  7386. *** may want to report the problem to your system manager and/or to
  7387. *** [email protected]
  7388. _LT_EOF
  7389. fi ;;
  7390. esac
  7391. fi
  7392. break
  7393. fi
  7394. done
  7395. IFS="$lt_save_ifs"
  7396. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7397. ;;
  7398. esac
  7399. fi
  7400. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7401. if test -n "$MAGIC_CMD"; then
  7402. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7403. $as_echo "$MAGIC_CMD" >&6; }
  7404. else
  7405. { $as_echo "$as_me:$LINENO: result: no" >&5
  7406. $as_echo "no" >&6; }
  7407. fi
  7408. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7409. if test -n "$ac_tool_prefix"; then
  7410. { $as_echo "$as_me:$LINENO: checking for file" >&5
  7411. $as_echo_n "checking for file... " >&6; }
  7412. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7413. $as_echo_n "(cached) " >&6
  7414. else
  7415. case $MAGIC_CMD in
  7416. [\\/*] | ?:[\\/]*)
  7417. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7418. ;;
  7419. *)
  7420. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7421. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7422. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7423. for ac_dir in $ac_dummy; do
  7424. IFS="$lt_save_ifs"
  7425. test -z "$ac_dir" && ac_dir=.
  7426. if test -f $ac_dir/file; then
  7427. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7428. if test -n "$file_magic_test_file"; then
  7429. case $deplibs_check_method in
  7430. "file_magic "*)
  7431. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7432. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7433. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7434. $EGREP "$file_magic_regex" > /dev/null; then
  7435. :
  7436. else
  7437. cat <<_LT_EOF 1>&2
  7438. *** Warning: the command libtool uses to detect shared libraries,
  7439. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7440. *** The result is that libtool may fail to recognize shared libraries
  7441. *** as such. This will affect the creation of libtool libraries that
  7442. *** depend on shared libraries, but programs linked with such libtool
  7443. *** libraries will work regardless of this problem. Nevertheless, you
  7444. *** may want to report the problem to your system manager and/or to
  7445. *** [email protected]
  7446. _LT_EOF
  7447. fi ;;
  7448. esac
  7449. fi
  7450. break
  7451. fi
  7452. done
  7453. IFS="$lt_save_ifs"
  7454. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7455. ;;
  7456. esac
  7457. fi
  7458. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7459. if test -n "$MAGIC_CMD"; then
  7460. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7461. $as_echo "$MAGIC_CMD" >&6; }
  7462. else
  7463. { $as_echo "$as_me:$LINENO: result: no" >&5
  7464. $as_echo "no" >&6; }
  7465. fi
  7466. else
  7467. MAGIC_CMD=:
  7468. fi
  7469. fi
  7470. fi
  7471. ;;
  7472. esac
  7473. # Use C for the default configuration in the libtool script
  7474. lt_save_CC="$CC"
  7475. ac_ext=c
  7476. ac_cpp='$CPP $CPPFLAGS'
  7477. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7478. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7479. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7480. # Source file extension for C test sources.
  7481. ac_ext=c
  7482. # Object file extension for compiled C test sources.
  7483. objext=o
  7484. objext=$objext
  7485. # Code to be used in simple compile tests
  7486. lt_simple_compile_test_code="int some_variable = 0;"
  7487. # Code to be used in simple link tests
  7488. lt_simple_link_test_code='int main(){return(0);}'
  7489. # If no C compiler was specified, use CC.
  7490. LTCC=${LTCC-"$CC"}
  7491. # If no C compiler flags were specified, use CFLAGS.
  7492. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7493. # Allow CC to be a program name with arguments.
  7494. compiler=$CC
  7495. # Save the default compiler, since it gets overwritten when the other
  7496. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7497. compiler_DEFAULT=$CC
  7498. # save warnings/boilerplate of simple test code
  7499. ac_outfile=conftest.$ac_objext
  7500. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7501. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7502. _lt_compiler_boilerplate=`cat conftest.err`
  7503. $RM conftest*
  7504. ac_outfile=conftest.$ac_objext
  7505. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7506. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7507. _lt_linker_boilerplate=`cat conftest.err`
  7508. $RM -r conftest*
  7509. ## CAVEAT EMPTOR:
  7510. ## There is no encapsulation within the following macros, do not change
  7511. ## the running order or otherwise move them around unless you know exactly
  7512. ## what you are doing...
  7513. if test -n "$compiler"; then
  7514. lt_prog_compiler_no_builtin_flag=
  7515. if test "$GCC" = yes; then
  7516. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7517. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7518. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7519. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7520. $as_echo_n "(cached) " >&6
  7521. else
  7522. lt_cv_prog_compiler_rtti_exceptions=no
  7523. ac_outfile=conftest.$ac_objext
  7524. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7525. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7526. # Insert the option either (1) after the last *FLAGS variable, or
  7527. # (2) before a word containing "conftest.", or (3) at the end.
  7528. # Note that $ac_compile itself does not contain backslashes and begins
  7529. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7530. # The option is referenced via a variable to avoid confusing sed.
  7531. lt_compile=`echo "$ac_compile" | $SED \
  7532. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7533. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7534. -e 's:$: $lt_compiler_flag:'`
  7535. (eval echo "\"\$as_me:8645: $lt_compile\"" >&5)
  7536. (eval "$lt_compile" 2>conftest.err)
  7537. ac_status=$?
  7538. cat conftest.err >&5
  7539. echo "$as_me:8649: \$? = $ac_status" >&5
  7540. if (exit $ac_status) && test -s "$ac_outfile"; then
  7541. # The compiler can only warn and ignore the option if not recognized
  7542. # So say no if there are warnings other than the usual output.
  7543. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7544. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7545. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7546. lt_cv_prog_compiler_rtti_exceptions=yes
  7547. fi
  7548. fi
  7549. $RM conftest*
  7550. fi
  7551. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7552. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7553. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7554. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7555. else
  7556. :
  7557. fi
  7558. fi
  7559. lt_prog_compiler_wl=
  7560. lt_prog_compiler_pic=
  7561. lt_prog_compiler_static=
  7562. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7563. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7564. if test "$GCC" = yes; then
  7565. lt_prog_compiler_wl='-Wl,'
  7566. lt_prog_compiler_static='-static'
  7567. case $host_os in
  7568. aix*)
  7569. # All AIX code is PIC.
  7570. if test "$host_cpu" = ia64; then
  7571. # AIX 5 now supports IA64 processor
  7572. lt_prog_compiler_static='-Bstatic'
  7573. fi
  7574. ;;
  7575. amigaos*)
  7576. case $host_cpu in
  7577. powerpc)
  7578. # see comment about AmigaOS4 .so support
  7579. lt_prog_compiler_pic='-fPIC'
  7580. ;;
  7581. m68k)
  7582. # FIXME: we need at least 68020 code to build shared libraries, but
  7583. # adding the `-m68020' flag to GCC prevents building anything better,
  7584. # like `-m68040'.
  7585. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7586. ;;
  7587. esac
  7588. ;;
  7589. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7590. # PIC is the default for these OSes.
  7591. ;;
  7592. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7593. # This hack is so that the source file can tell whether it is being
  7594. # built for inclusion in a dll (and should export symbols for example).
  7595. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7596. # (--disable-auto-import) libraries
  7597. lt_prog_compiler_pic='-DDLL_EXPORT'
  7598. ;;
  7599. darwin* | rhapsody*)
  7600. # PIC is the default on this platform
  7601. # Common symbols not allowed in MH_DYLIB files
  7602. lt_prog_compiler_pic='-fno-common'
  7603. ;;
  7604. hpux*)
  7605. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7606. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7607. # sets the default TLS model and affects inlining.
  7608. case $host_cpu in
  7609. hppa*64*)
  7610. # +Z the default
  7611. ;;
  7612. *)
  7613. lt_prog_compiler_pic='-fPIC'
  7614. ;;
  7615. esac
  7616. ;;
  7617. interix[3-9]*)
  7618. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7619. # Instead, we relocate shared libraries at runtime.
  7620. ;;
  7621. msdosdjgpp*)
  7622. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7623. # on systems that don't support them.
  7624. lt_prog_compiler_can_build_shared=no
  7625. enable_shared=no
  7626. ;;
  7627. *nto* | *qnx*)
  7628. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7629. # it will coredump.
  7630. lt_prog_compiler_pic='-fPIC -shared'
  7631. ;;
  7632. sysv4*MP*)
  7633. if test -d /usr/nec; then
  7634. lt_prog_compiler_pic=-Kconform_pic
  7635. fi
  7636. ;;
  7637. *)
  7638. lt_prog_compiler_pic='-fPIC'
  7639. ;;
  7640. esac
  7641. else
  7642. # PORTME Check for flag to pass linker flags through the system compiler.
  7643. case $host_os in
  7644. aix*)
  7645. lt_prog_compiler_wl='-Wl,'
  7646. if test "$host_cpu" = ia64; then
  7647. # AIX 5 now supports IA64 processor
  7648. lt_prog_compiler_static='-Bstatic'
  7649. else
  7650. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7651. fi
  7652. ;;
  7653. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7654. # This hack is so that the source file can tell whether it is being
  7655. # built for inclusion in a dll (and should export symbols for example).
  7656. lt_prog_compiler_pic='-DDLL_EXPORT'
  7657. ;;
  7658. hpux9* | hpux10* | hpux11*)
  7659. lt_prog_compiler_wl='-Wl,'
  7660. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7661. # not for PA HP-UX.
  7662. case $host_cpu in
  7663. hppa*64*|ia64*)
  7664. # +Z the default
  7665. ;;
  7666. *)
  7667. lt_prog_compiler_pic='+Z'
  7668. ;;
  7669. esac
  7670. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7671. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7672. ;;
  7673. irix5* | irix6* | nonstopux*)
  7674. lt_prog_compiler_wl='-Wl,'
  7675. # PIC (with -KPIC) is the default.
  7676. lt_prog_compiler_static='-non_shared'
  7677. ;;
  7678. linux* | k*bsd*-gnu)
  7679. case $cc_basename in
  7680. # old Intel for x86_64 which still supported -KPIC.
  7681. ecc*)
  7682. lt_prog_compiler_wl='-Wl,'
  7683. lt_prog_compiler_pic='-KPIC'
  7684. lt_prog_compiler_static='-static'
  7685. ;;
  7686. # icc used to be incompatible with GCC.
  7687. # ICC 10 doesn't accept -KPIC any more.
  7688. icc* | ifort*)
  7689. lt_prog_compiler_wl='-Wl,'
  7690. lt_prog_compiler_pic='-fPIC'
  7691. lt_prog_compiler_static='-static'
  7692. ;;
  7693. # Lahey Fortran 8.1.
  7694. lf95*)
  7695. lt_prog_compiler_wl='-Wl,'
  7696. lt_prog_compiler_pic='--shared'
  7697. lt_prog_compiler_static='--static'
  7698. ;;
  7699. pgcc* | pgf77* | pgf90* | pgf95*)
  7700. # Portland Group compilers (*not* the Pentium gcc compiler,
  7701. # which looks to be a dead project)
  7702. lt_prog_compiler_wl='-Wl,'
  7703. lt_prog_compiler_pic='-fpic'
  7704. lt_prog_compiler_static='-Bstatic'
  7705. ;;
  7706. ccc*)
  7707. lt_prog_compiler_wl='-Wl,'
  7708. # All Alpha code is PIC.
  7709. lt_prog_compiler_static='-non_shared'
  7710. ;;
  7711. xl*)
  7712. # IBM XL C 8.0/Fortran 10.1 on PPC
  7713. lt_prog_compiler_wl='-Wl,'
  7714. lt_prog_compiler_pic='-qpic'
  7715. lt_prog_compiler_static='-qstaticlink'
  7716. ;;
  7717. *)
  7718. case `$CC -V 2>&1 | sed 5q` in
  7719. *Sun\ C*)
  7720. # Sun C 5.9
  7721. lt_prog_compiler_pic='-KPIC'
  7722. lt_prog_compiler_static='-Bstatic'
  7723. lt_prog_compiler_wl='-Wl,'
  7724. ;;
  7725. *Sun\ F*)
  7726. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7727. lt_prog_compiler_pic='-KPIC'
  7728. lt_prog_compiler_static='-Bstatic'
  7729. lt_prog_compiler_wl=''
  7730. ;;
  7731. esac
  7732. ;;
  7733. esac
  7734. ;;
  7735. newsos6)
  7736. lt_prog_compiler_pic='-KPIC'
  7737. lt_prog_compiler_static='-Bstatic'
  7738. ;;
  7739. *nto* | *qnx*)
  7740. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7741. # it will coredump.
  7742. lt_prog_compiler_pic='-fPIC -shared'
  7743. ;;
  7744. osf3* | osf4* | osf5*)
  7745. lt_prog_compiler_wl='-Wl,'
  7746. # All OSF/1 code is PIC.
  7747. lt_prog_compiler_static='-non_shared'
  7748. ;;
  7749. rdos*)
  7750. lt_prog_compiler_static='-non_shared'
  7751. ;;
  7752. solaris*)
  7753. lt_prog_compiler_pic='-KPIC'
  7754. lt_prog_compiler_static='-Bstatic'
  7755. case $cc_basename in
  7756. f77* | f90* | f95*)
  7757. lt_prog_compiler_wl='-Qoption ld ';;
  7758. *)
  7759. lt_prog_compiler_wl='-Wl,';;
  7760. esac
  7761. ;;
  7762. sunos4*)
  7763. lt_prog_compiler_wl='-Qoption ld '
  7764. lt_prog_compiler_pic='-PIC'
  7765. lt_prog_compiler_static='-Bstatic'
  7766. ;;
  7767. sysv4 | sysv4.2uw2* | sysv4.3*)
  7768. lt_prog_compiler_wl='-Wl,'
  7769. lt_prog_compiler_pic='-KPIC'
  7770. lt_prog_compiler_static='-Bstatic'
  7771. ;;
  7772. sysv4*MP*)
  7773. if test -d /usr/nec ;then
  7774. lt_prog_compiler_pic='-Kconform_pic'
  7775. lt_prog_compiler_static='-Bstatic'
  7776. fi
  7777. ;;
  7778. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7779. lt_prog_compiler_wl='-Wl,'
  7780. lt_prog_compiler_pic='-KPIC'
  7781. lt_prog_compiler_static='-Bstatic'
  7782. ;;
  7783. unicos*)
  7784. lt_prog_compiler_wl='-Wl,'
  7785. lt_prog_compiler_can_build_shared=no
  7786. ;;
  7787. uts4*)
  7788. lt_prog_compiler_pic='-pic'
  7789. lt_prog_compiler_static='-Bstatic'
  7790. ;;
  7791. *)
  7792. lt_prog_compiler_can_build_shared=no
  7793. ;;
  7794. esac
  7795. fi
  7796. case $host_os in
  7797. # For platforms which do not support PIC, -DPIC is meaningless:
  7798. *djgpp*)
  7799. lt_prog_compiler_pic=
  7800. ;;
  7801. *)
  7802. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7803. ;;
  7804. esac
  7805. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7806. $as_echo "$lt_prog_compiler_pic" >&6; }
  7807. #
  7808. # Check to make sure the PIC flag actually works.
  7809. #
  7810. if test -n "$lt_prog_compiler_pic"; then
  7811. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7812. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7813. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7814. $as_echo_n "(cached) " >&6
  7815. else
  7816. lt_cv_prog_compiler_pic_works=no
  7817. ac_outfile=conftest.$ac_objext
  7818. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7819. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7820. # Insert the option either (1) after the last *FLAGS variable, or
  7821. # (2) before a word containing "conftest.", or (3) at the end.
  7822. # Note that $ac_compile itself does not contain backslashes and begins
  7823. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7824. # The option is referenced via a variable to avoid confusing sed.
  7825. lt_compile=`echo "$ac_compile" | $SED \
  7826. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7827. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7828. -e 's:$: $lt_compiler_flag:'`
  7829. (eval echo "\"\$as_me:8984: $lt_compile\"" >&5)
  7830. (eval "$lt_compile" 2>conftest.err)
  7831. ac_status=$?
  7832. cat conftest.err >&5
  7833. echo "$as_me:8988: \$? = $ac_status" >&5
  7834. if (exit $ac_status) && test -s "$ac_outfile"; then
  7835. # The compiler can only warn and ignore the option if not recognized
  7836. # So say no if there are warnings other than the usual output.
  7837. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7838. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7839. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7840. lt_cv_prog_compiler_pic_works=yes
  7841. fi
  7842. fi
  7843. $RM conftest*
  7844. fi
  7845. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  7846. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7847. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7848. case $lt_prog_compiler_pic in
  7849. "" | " "*) ;;
  7850. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7851. esac
  7852. else
  7853. lt_prog_compiler_pic=
  7854. lt_prog_compiler_can_build_shared=no
  7855. fi
  7856. fi
  7857. #
  7858. # Check to make sure the static flag actually works.
  7859. #
  7860. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7861. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7862. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7863. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7864. $as_echo_n "(cached) " >&6
  7865. else
  7866. lt_cv_prog_compiler_static_works=no
  7867. save_LDFLAGS="$LDFLAGS"
  7868. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7869. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7870. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7871. # The linker can only warn and ignore the option if not recognized
  7872. # So say no if there are warnings
  7873. if test -s conftest.err; then
  7874. # Append any errors to the config.log.
  7875. cat conftest.err 1>&5
  7876. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7877. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7878. if diff conftest.exp conftest.er2 >/dev/null; then
  7879. lt_cv_prog_compiler_static_works=yes
  7880. fi
  7881. else
  7882. lt_cv_prog_compiler_static_works=yes
  7883. fi
  7884. fi
  7885. $RM -r conftest*
  7886. LDFLAGS="$save_LDFLAGS"
  7887. fi
  7888. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7889. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7890. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7891. :
  7892. else
  7893. lt_prog_compiler_static=
  7894. fi
  7895. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7896. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7897. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7898. $as_echo_n "(cached) " >&6
  7899. else
  7900. lt_cv_prog_compiler_c_o=no
  7901. $RM -r conftest 2>/dev/null
  7902. mkdir conftest
  7903. cd conftest
  7904. mkdir out
  7905. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7906. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7907. # Insert the option either (1) after the last *FLAGS variable, or
  7908. # (2) before a word containing "conftest.", or (3) at the end.
  7909. # Note that $ac_compile itself does not contain backslashes and begins
  7910. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7911. lt_compile=`echo "$ac_compile" | $SED \
  7912. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7913. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7914. -e 's:$: $lt_compiler_flag:'`
  7915. (eval echo "\"\$as_me:9089: $lt_compile\"" >&5)
  7916. (eval "$lt_compile" 2>out/conftest.err)
  7917. ac_status=$?
  7918. cat out/conftest.err >&5
  7919. echo "$as_me:9093: \$? = $ac_status" >&5
  7920. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7921. then
  7922. # The compiler can only warn and ignore the option if not recognized
  7923. # So say no if there are warnings
  7924. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7925. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7926. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7927. lt_cv_prog_compiler_c_o=yes
  7928. fi
  7929. fi
  7930. chmod u+w . 2>&5
  7931. $RM conftest*
  7932. # SGI C++ compiler will create directory out/ii_files/ for
  7933. # template instantiation
  7934. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7935. $RM out/* && rmdir out
  7936. cd ..
  7937. $RM -r conftest
  7938. $RM conftest*
  7939. fi
  7940. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7941. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7942. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7943. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7944. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7945. $as_echo_n "(cached) " >&6
  7946. else
  7947. lt_cv_prog_compiler_c_o=no
  7948. $RM -r conftest 2>/dev/null
  7949. mkdir conftest
  7950. cd conftest
  7951. mkdir out
  7952. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7953. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7954. # Insert the option either (1) after the last *FLAGS variable, or
  7955. # (2) before a word containing "conftest.", or (3) at the end.
  7956. # Note that $ac_compile itself does not contain backslashes and begins
  7957. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7958. lt_compile=`echo "$ac_compile" | $SED \
  7959. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7960. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7961. -e 's:$: $lt_compiler_flag:'`
  7962. (eval echo "\"\$as_me:9144: $lt_compile\"" >&5)
  7963. (eval "$lt_compile" 2>out/conftest.err)
  7964. ac_status=$?
  7965. cat out/conftest.err >&5
  7966. echo "$as_me:9148: \$? = $ac_status" >&5
  7967. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7968. then
  7969. # The compiler can only warn and ignore the option if not recognized
  7970. # So say no if there are warnings
  7971. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7972. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7973. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7974. lt_cv_prog_compiler_c_o=yes
  7975. fi
  7976. fi
  7977. chmod u+w . 2>&5
  7978. $RM conftest*
  7979. # SGI C++ compiler will create directory out/ii_files/ for
  7980. # template instantiation
  7981. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7982. $RM out/* && rmdir out
  7983. cd ..
  7984. $RM -r conftest
  7985. $RM conftest*
  7986. fi
  7987. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7988. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7989. hard_links="nottested"
  7990. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7991. # do not overwrite the value of need_locks provided by the user
  7992. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7993. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7994. hard_links=yes
  7995. $RM conftest*
  7996. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7997. touch conftest.a
  7998. ln conftest.a conftest.b 2>&5 || hard_links=no
  7999. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8000. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8001. $as_echo "$hard_links" >&6; }
  8002. if test "$hard_links" = no; then
  8003. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8004. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8005. need_locks=warn
  8006. fi
  8007. else
  8008. need_locks=no
  8009. fi
  8010. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8011. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8012. runpath_var=
  8013. allow_undefined_flag=
  8014. always_export_symbols=no
  8015. archive_cmds=
  8016. archive_expsym_cmds=
  8017. compiler_needs_object=no
  8018. enable_shared_with_static_runtimes=no
  8019. export_dynamic_flag_spec=
  8020. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8021. hardcode_automatic=no
  8022. hardcode_direct=no
  8023. hardcode_direct_absolute=no
  8024. hardcode_libdir_flag_spec=
  8025. hardcode_libdir_flag_spec_ld=
  8026. hardcode_libdir_separator=
  8027. hardcode_minus_L=no
  8028. hardcode_shlibpath_var=unsupported
  8029. inherit_rpath=no
  8030. link_all_deplibs=unknown
  8031. module_cmds=
  8032. module_expsym_cmds=
  8033. old_archive_from_new_cmds=
  8034. old_archive_from_expsyms_cmds=
  8035. thread_safe_flag_spec=
  8036. whole_archive_flag_spec=
  8037. # include_expsyms should be a list of space-separated symbols to be *always*
  8038. # included in the symbol list
  8039. include_expsyms=
  8040. # exclude_expsyms can be an extended regexp of symbols to exclude
  8041. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8042. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8043. # as well as any symbol that contains `d'.
  8044. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8045. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8046. # platforms (ab)use it in PIC code, but their linkers get confused if
  8047. # the symbol is explicitly referenced. Since portable code cannot
  8048. # rely on this symbol name, it's probably fine to never include it in
  8049. # preloaded symbol tables.
  8050. # Exclude shared library initialization/finalization symbols.
  8051. extract_expsyms_cmds=
  8052. case $host_os in
  8053. cygwin* | mingw* | pw32* | cegcc*)
  8054. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8055. # When not using gcc, we currently assume that we are using
  8056. # Microsoft Visual C++.
  8057. if test "$GCC" != yes; then
  8058. with_gnu_ld=no
  8059. fi
  8060. ;;
  8061. interix*)
  8062. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8063. with_gnu_ld=yes
  8064. ;;
  8065. openbsd*)
  8066. with_gnu_ld=no
  8067. ;;
  8068. esac
  8069. ld_shlibs=yes
  8070. if test "$with_gnu_ld" = yes; then
  8071. # If archive_cmds runs LD, not CC, wlarc should be empty
  8072. wlarc='${wl}'
  8073. # Set some defaults for GNU ld with shared library support. These
  8074. # are reset later if shared libraries are not supported. Putting them
  8075. # here allows them to be overridden if necessary.
  8076. runpath_var=LD_RUN_PATH
  8077. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8078. export_dynamic_flag_spec='${wl}--export-dynamic'
  8079. # ancient GNU ld didn't support --whole-archive et. al.
  8080. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8081. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8082. else
  8083. whole_archive_flag_spec=
  8084. fi
  8085. supports_anon_versioning=no
  8086. case `$LD -v 2>&1` in
  8087. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8088. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8089. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8090. *\ 2.11.*) ;; # other 2.11 versions
  8091. *) supports_anon_versioning=yes ;;
  8092. esac
  8093. # See if GNU ld supports shared libraries.
  8094. case $host_os in
  8095. aix[3-9]*)
  8096. # On AIX/PPC, the GNU linker is very broken
  8097. if test "$host_cpu" != ia64; then
  8098. ld_shlibs=no
  8099. cat <<_LT_EOF 1>&2
  8100. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8101. *** to be unable to reliably create shared libraries on AIX.
  8102. *** Therefore, libtool is disabling shared libraries support. If you
  8103. *** really care for shared libraries, you may want to modify your PATH
  8104. *** so that a non-GNU linker is found, and then restart.
  8105. _LT_EOF
  8106. fi
  8107. ;;
  8108. amigaos*)
  8109. case $host_cpu in
  8110. powerpc)
  8111. # see comment about AmigaOS4 .so support
  8112. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8113. archive_expsym_cmds=''
  8114. ;;
  8115. m68k)
  8116. 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)'
  8117. hardcode_libdir_flag_spec='-L$libdir'
  8118. hardcode_minus_L=yes
  8119. ;;
  8120. esac
  8121. ;;
  8122. beos*)
  8123. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8124. allow_undefined_flag=unsupported
  8125. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8126. # support --undefined. This deserves some investigation. FIXME
  8127. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8128. else
  8129. ld_shlibs=no
  8130. fi
  8131. ;;
  8132. cygwin* | mingw* | pw32* | cegcc*)
  8133. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8134. # as there is no search path for DLLs.
  8135. hardcode_libdir_flag_spec='-L$libdir'
  8136. allow_undefined_flag=unsupported
  8137. always_export_symbols=no
  8138. enable_shared_with_static_runtimes=yes
  8139. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8140. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8141. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8142. # If the export-symbols file already is a .def file (1st line
  8143. # is EXPORTS), use it as is; otherwise, prepend...
  8144. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8145. cp $export_symbols $output_objdir/$soname.def;
  8146. else
  8147. echo EXPORTS > $output_objdir/$soname.def;
  8148. cat $export_symbols >> $output_objdir/$soname.def;
  8149. fi~
  8150. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8151. else
  8152. ld_shlibs=no
  8153. fi
  8154. ;;
  8155. interix[3-9]*)
  8156. hardcode_direct=no
  8157. hardcode_shlibpath_var=no
  8158. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8159. export_dynamic_flag_spec='${wl}-E'
  8160. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8161. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8162. # default) and relocated if they conflict, which is a slow very memory
  8163. # consuming and fragmenting process. To avoid this, we pick a random,
  8164. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8165. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8166. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8167. 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'
  8168. ;;
  8169. gnu* | linux* | tpf* | k*bsd*-gnu)
  8170. tmp_diet=no
  8171. if test "$host_os" = linux-dietlibc; then
  8172. case $cc_basename in
  8173. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8174. esac
  8175. fi
  8176. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8177. && test "$tmp_diet" = no
  8178. then
  8179. tmp_addflag=
  8180. tmp_sharedflag='-shared'
  8181. case $cc_basename,$host_cpu in
  8182. pgcc*) # Portland Group C compiler
  8183. 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'
  8184. tmp_addflag=' $pic_flag'
  8185. ;;
  8186. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8187. 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'
  8188. tmp_addflag=' $pic_flag -Mnomain' ;;
  8189. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8190. tmp_addflag=' -i_dynamic' ;;
  8191. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8192. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8193. ifc* | ifort*) # Intel Fortran compiler
  8194. tmp_addflag=' -nofor_main' ;;
  8195. lf95*) # Lahey Fortran 8.1
  8196. whole_archive_flag_spec=
  8197. tmp_sharedflag='--shared' ;;
  8198. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8199. tmp_sharedflag='-qmkshrobj'
  8200. tmp_addflag= ;;
  8201. esac
  8202. case `$CC -V 2>&1 | sed 5q` in
  8203. *Sun\ C*) # Sun C 5.9
  8204. 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'
  8205. compiler_needs_object=yes
  8206. tmp_sharedflag='-G' ;;
  8207. *Sun\ F*) # Sun Fortran 8.3
  8208. tmp_sharedflag='-G' ;;
  8209. esac
  8210. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8211. if test "x$supports_anon_versioning" = xyes; then
  8212. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8213. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8214. echo "local: *; };" >> $output_objdir/$libname.ver~
  8215. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8216. fi
  8217. case $cc_basename in
  8218. xlf*)
  8219. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8220. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8221. hardcode_libdir_flag_spec=
  8222. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8223. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8224. if test "x$supports_anon_versioning" = xyes; then
  8225. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8226. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8227. echo "local: *; };" >> $output_objdir/$libname.ver~
  8228. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8229. fi
  8230. ;;
  8231. esac
  8232. else
  8233. ld_shlibs=no
  8234. fi
  8235. ;;
  8236. netbsd* | netbsdelf*-gnu)
  8237. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8238. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8239. wlarc=
  8240. else
  8241. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8242. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8243. fi
  8244. ;;
  8245. solaris*)
  8246. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8247. ld_shlibs=no
  8248. cat <<_LT_EOF 1>&2
  8249. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8250. *** create shared libraries on Solaris systems. Therefore, libtool
  8251. *** is disabling shared libraries support. We urge you to upgrade GNU
  8252. *** binutils to release 2.9.1 or newer. Another option is to modify
  8253. *** your PATH or compiler configuration so that the native linker is
  8254. *** used, and then restart.
  8255. _LT_EOF
  8256. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8257. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8258. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8259. else
  8260. ld_shlibs=no
  8261. fi
  8262. ;;
  8263. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8264. case `$LD -v 2>&1` in
  8265. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8266. ld_shlibs=no
  8267. cat <<_LT_EOF 1>&2
  8268. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8269. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8270. *** is disabling shared libraries support. We urge you to upgrade GNU
  8271. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8272. *** your PATH or compiler configuration so that the native linker is
  8273. *** used, and then restart.
  8274. _LT_EOF
  8275. ;;
  8276. *)
  8277. # For security reasons, it is highly recommended that you always
  8278. # use absolute paths for naming shared libraries, and exclude the
  8279. # DT_RUNPATH tag from executables and libraries. But doing so
  8280. # requires that you compile everything twice, which is a pain.
  8281. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8282. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8283. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8284. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8285. else
  8286. ld_shlibs=no
  8287. fi
  8288. ;;
  8289. esac
  8290. ;;
  8291. sunos4*)
  8292. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8293. wlarc=
  8294. hardcode_direct=yes
  8295. hardcode_shlibpath_var=no
  8296. ;;
  8297. *)
  8298. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8299. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8300. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8301. else
  8302. ld_shlibs=no
  8303. fi
  8304. ;;
  8305. esac
  8306. if test "$ld_shlibs" = no; then
  8307. runpath_var=
  8308. hardcode_libdir_flag_spec=
  8309. export_dynamic_flag_spec=
  8310. whole_archive_flag_spec=
  8311. fi
  8312. else
  8313. # PORTME fill in a description of your system's linker (not GNU ld)
  8314. case $host_os in
  8315. aix3*)
  8316. allow_undefined_flag=unsupported
  8317. always_export_symbols=yes
  8318. 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'
  8319. # Note: this linker hardcodes the directories in LIBPATH if there
  8320. # are no directories specified by -L.
  8321. hardcode_minus_L=yes
  8322. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8323. # Neither direct hardcoding nor static linking is supported with a
  8324. # broken collect2.
  8325. hardcode_direct=unsupported
  8326. fi
  8327. ;;
  8328. aix[4-9]*)
  8329. if test "$host_cpu" = ia64; then
  8330. # On IA64, the linker does run time linking by default, so we don't
  8331. # have to do anything special.
  8332. aix_use_runtimelinking=no
  8333. exp_sym_flag='-Bexport'
  8334. no_entry_flag=""
  8335. else
  8336. # If we're using GNU nm, then we don't want the "-C" option.
  8337. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8338. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8339. 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'
  8340. else
  8341. 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'
  8342. fi
  8343. aix_use_runtimelinking=no
  8344. # Test if we are trying to use run time linking or normal
  8345. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8346. # need to do runtime linking.
  8347. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8348. for ld_flag in $LDFLAGS; do
  8349. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8350. aix_use_runtimelinking=yes
  8351. break
  8352. fi
  8353. done
  8354. ;;
  8355. esac
  8356. exp_sym_flag='-bexport'
  8357. no_entry_flag='-bnoentry'
  8358. fi
  8359. # When large executables or shared objects are built, AIX ld can
  8360. # have problems creating the table of contents. If linking a library
  8361. # or program results in "error TOC overflow" add -mminimal-toc to
  8362. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8363. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8364. archive_cmds=''
  8365. hardcode_direct=yes
  8366. hardcode_direct_absolute=yes
  8367. hardcode_libdir_separator=':'
  8368. link_all_deplibs=yes
  8369. file_list_spec='${wl}-f,'
  8370. if test "$GCC" = yes; then
  8371. case $host_os in aix4.[012]|aix4.[012].*)
  8372. # We only want to do this on AIX 4.2 and lower, the check
  8373. # below for broken collect2 doesn't work under 4.3+
  8374. collect2name=`${CC} -print-prog-name=collect2`
  8375. if test -f "$collect2name" &&
  8376. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8377. then
  8378. # We have reworked collect2
  8379. :
  8380. else
  8381. # We have old collect2
  8382. hardcode_direct=unsupported
  8383. # It fails to find uninstalled libraries when the uninstalled
  8384. # path is not listed in the libpath. Setting hardcode_minus_L
  8385. # to unsupported forces relinking
  8386. hardcode_minus_L=yes
  8387. hardcode_libdir_flag_spec='-L$libdir'
  8388. hardcode_libdir_separator=
  8389. fi
  8390. ;;
  8391. esac
  8392. shared_flag='-shared'
  8393. if test "$aix_use_runtimelinking" = yes; then
  8394. shared_flag="$shared_flag "'${wl}-G'
  8395. fi
  8396. link_all_deplibs=no
  8397. else
  8398. # not using gcc
  8399. if test "$host_cpu" = ia64; then
  8400. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8401. # chokes on -Wl,-G. The following line is correct:
  8402. shared_flag='-G'
  8403. else
  8404. if test "$aix_use_runtimelinking" = yes; then
  8405. shared_flag='${wl}-G'
  8406. else
  8407. shared_flag='${wl}-bM:SRE'
  8408. fi
  8409. fi
  8410. fi
  8411. export_dynamic_flag_spec='${wl}-bexpall'
  8412. # It seems that -bexpall does not export symbols beginning with
  8413. # underscore (_), so it is better to generate a list of symbols to export.
  8414. always_export_symbols=yes
  8415. if test "$aix_use_runtimelinking" = yes; then
  8416. # Warning - without using the other runtime loading flags (-brtl),
  8417. # -berok will link without error, but may produce a broken library.
  8418. allow_undefined_flag='-berok'
  8419. # Determine the default libpath from the value encoded in an
  8420. # empty executable.
  8421. cat >conftest.$ac_ext <<_ACEOF
  8422. /* confdefs.h. */
  8423. _ACEOF
  8424. cat confdefs.h >>conftest.$ac_ext
  8425. cat >>conftest.$ac_ext <<_ACEOF
  8426. /* end confdefs.h. */
  8427. int
  8428. main ()
  8429. {
  8430. ;
  8431. return 0;
  8432. }
  8433. _ACEOF
  8434. rm -f conftest.$ac_objext conftest$ac_exeext
  8435. if { (ac_try="$ac_link"
  8436. case "(($ac_try" in
  8437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8438. *) ac_try_echo=$ac_try;;
  8439. esac
  8440. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8441. $as_echo "$ac_try_echo") >&5
  8442. (eval "$ac_link") 2>conftest.er1
  8443. ac_status=$?
  8444. grep -v '^ *+' conftest.er1 >conftest.err
  8445. rm -f conftest.er1
  8446. cat conftest.err >&5
  8447. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8448. (exit $ac_status); } && {
  8449. test -z "$ac_c_werror_flag" ||
  8450. test ! -s conftest.err
  8451. } && test -s conftest$ac_exeext && {
  8452. test "$cross_compiling" = yes ||
  8453. $as_test_x conftest$ac_exeext
  8454. }; then
  8455. lt_aix_libpath_sed='
  8456. /Import File Strings/,/^$/ {
  8457. /^0/ {
  8458. s/^0 *\(.*\)$/\1/
  8459. p
  8460. }
  8461. }'
  8462. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8463. # Check for a 64-bit object if we didn't find anything.
  8464. if test -z "$aix_libpath"; then
  8465. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8466. fi
  8467. else
  8468. $as_echo "$as_me: failed program was:" >&5
  8469. sed 's/^/| /' conftest.$ac_ext >&5
  8470. fi
  8471. rm -rf conftest.dSYM
  8472. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8473. conftest$ac_exeext conftest.$ac_ext
  8474. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8475. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8476. 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"
  8477. else
  8478. if test "$host_cpu" = ia64; then
  8479. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8480. allow_undefined_flag="-z nodefs"
  8481. 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"
  8482. else
  8483. # Determine the default libpath from the value encoded in an
  8484. # empty executable.
  8485. cat >conftest.$ac_ext <<_ACEOF
  8486. /* confdefs.h. */
  8487. _ACEOF
  8488. cat confdefs.h >>conftest.$ac_ext
  8489. cat >>conftest.$ac_ext <<_ACEOF
  8490. /* end confdefs.h. */
  8491. int
  8492. main ()
  8493. {
  8494. ;
  8495. return 0;
  8496. }
  8497. _ACEOF
  8498. rm -f conftest.$ac_objext conftest$ac_exeext
  8499. if { (ac_try="$ac_link"
  8500. case "(($ac_try" in
  8501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8502. *) ac_try_echo=$ac_try;;
  8503. esac
  8504. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8505. $as_echo "$ac_try_echo") >&5
  8506. (eval "$ac_link") 2>conftest.er1
  8507. ac_status=$?
  8508. grep -v '^ *+' conftest.er1 >conftest.err
  8509. rm -f conftest.er1
  8510. cat conftest.err >&5
  8511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8512. (exit $ac_status); } && {
  8513. test -z "$ac_c_werror_flag" ||
  8514. test ! -s conftest.err
  8515. } && test -s conftest$ac_exeext && {
  8516. test "$cross_compiling" = yes ||
  8517. $as_test_x conftest$ac_exeext
  8518. }; then
  8519. lt_aix_libpath_sed='
  8520. /Import File Strings/,/^$/ {
  8521. /^0/ {
  8522. s/^0 *\(.*\)$/\1/
  8523. p
  8524. }
  8525. }'
  8526. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8527. # Check for a 64-bit object if we didn't find anything.
  8528. if test -z "$aix_libpath"; then
  8529. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8530. fi
  8531. else
  8532. $as_echo "$as_me: failed program was:" >&5
  8533. sed 's/^/| /' conftest.$ac_ext >&5
  8534. fi
  8535. rm -rf conftest.dSYM
  8536. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8537. conftest$ac_exeext conftest.$ac_ext
  8538. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8539. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8540. # Warning - without using the other run time loading flags,
  8541. # -berok will link without error, but may produce a broken library.
  8542. no_undefined_flag=' ${wl}-bernotok'
  8543. allow_undefined_flag=' ${wl}-berok'
  8544. # Exported symbols can be pulled into shared objects from archives
  8545. whole_archive_flag_spec='$convenience'
  8546. archive_cmds_need_lc=yes
  8547. # This is similar to how AIX traditionally builds its shared libraries.
  8548. 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'
  8549. fi
  8550. fi
  8551. ;;
  8552. amigaos*)
  8553. case $host_cpu in
  8554. powerpc)
  8555. # see comment about AmigaOS4 .so support
  8556. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8557. archive_expsym_cmds=''
  8558. ;;
  8559. m68k)
  8560. 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)'
  8561. hardcode_libdir_flag_spec='-L$libdir'
  8562. hardcode_minus_L=yes
  8563. ;;
  8564. esac
  8565. ;;
  8566. bsdi[45]*)
  8567. export_dynamic_flag_spec=-rdynamic
  8568. ;;
  8569. cygwin* | mingw* | pw32* | cegcc*)
  8570. # When not using gcc, we currently assume that we are using
  8571. # Microsoft Visual C++.
  8572. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8573. # no search path for DLLs.
  8574. hardcode_libdir_flag_spec=' '
  8575. allow_undefined_flag=unsupported
  8576. # Tell ltmain to make .lib files, not .a files.
  8577. libext=lib
  8578. # Tell ltmain to make .dll files, not .so files.
  8579. shrext_cmds=".dll"
  8580. # FIXME: Setting linknames here is a bad hack.
  8581. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8582. # The linker will automatically build a .lib file if we build a DLL.
  8583. old_archive_from_new_cmds='true'
  8584. # FIXME: Should let the user specify the lib program.
  8585. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8586. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8587. enable_shared_with_static_runtimes=yes
  8588. ;;
  8589. darwin* | rhapsody*)
  8590. archive_cmds_need_lc=no
  8591. hardcode_direct=no
  8592. hardcode_automatic=yes
  8593. hardcode_shlibpath_var=unsupported
  8594. whole_archive_flag_spec=''
  8595. link_all_deplibs=yes
  8596. allow_undefined_flag="$_lt_dar_allow_undefined"
  8597. case $cc_basename in
  8598. ifort*) _lt_dar_can_shared=yes ;;
  8599. *) _lt_dar_can_shared=$GCC ;;
  8600. esac
  8601. if test "$_lt_dar_can_shared" = "yes"; then
  8602. output_verbose_link_cmd=echo
  8603. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8604. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8605. 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}"
  8606. 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}"
  8607. else
  8608. ld_shlibs=no
  8609. fi
  8610. ;;
  8611. dgux*)
  8612. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8613. hardcode_libdir_flag_spec='-L$libdir'
  8614. hardcode_shlibpath_var=no
  8615. ;;
  8616. freebsd1*)
  8617. ld_shlibs=no
  8618. ;;
  8619. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8620. # support. Future versions do this automatically, but an explicit c++rt0.o
  8621. # does not break anything, and helps significantly (at the cost of a little
  8622. # extra space).
  8623. freebsd2.2*)
  8624. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8625. hardcode_libdir_flag_spec='-R$libdir'
  8626. hardcode_direct=yes
  8627. hardcode_shlibpath_var=no
  8628. ;;
  8629. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8630. freebsd2*)
  8631. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8632. hardcode_direct=yes
  8633. hardcode_minus_L=yes
  8634. hardcode_shlibpath_var=no
  8635. ;;
  8636. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8637. freebsd* | dragonfly*)
  8638. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8639. hardcode_libdir_flag_spec='-R$libdir'
  8640. hardcode_direct=yes
  8641. hardcode_shlibpath_var=no
  8642. ;;
  8643. hpux9*)
  8644. if test "$GCC" = yes; then
  8645. 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'
  8646. else
  8647. 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'
  8648. fi
  8649. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8650. hardcode_libdir_separator=:
  8651. hardcode_direct=yes
  8652. # hardcode_minus_L: Not really in the search PATH,
  8653. # but as the default location of the library.
  8654. hardcode_minus_L=yes
  8655. export_dynamic_flag_spec='${wl}-E'
  8656. ;;
  8657. hpux10*)
  8658. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8659. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8660. else
  8661. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8662. fi
  8663. if test "$with_gnu_ld" = no; then
  8664. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8665. hardcode_libdir_flag_spec_ld='+b $libdir'
  8666. hardcode_libdir_separator=:
  8667. hardcode_direct=yes
  8668. hardcode_direct_absolute=yes
  8669. export_dynamic_flag_spec='${wl}-E'
  8670. # hardcode_minus_L: Not really in the search PATH,
  8671. # but as the default location of the library.
  8672. hardcode_minus_L=yes
  8673. fi
  8674. ;;
  8675. hpux11*)
  8676. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8677. case $host_cpu in
  8678. hppa*64*)
  8679. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8680. ;;
  8681. ia64*)
  8682. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8683. ;;
  8684. *)
  8685. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8686. ;;
  8687. esac
  8688. else
  8689. case $host_cpu in
  8690. hppa*64*)
  8691. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8692. ;;
  8693. ia64*)
  8694. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8695. ;;
  8696. *)
  8697. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8698. ;;
  8699. esac
  8700. fi
  8701. if test "$with_gnu_ld" = no; then
  8702. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8703. hardcode_libdir_separator=:
  8704. case $host_cpu in
  8705. hppa*64*|ia64*)
  8706. hardcode_direct=no
  8707. hardcode_shlibpath_var=no
  8708. ;;
  8709. *)
  8710. hardcode_direct=yes
  8711. hardcode_direct_absolute=yes
  8712. export_dynamic_flag_spec='${wl}-E'
  8713. # hardcode_minus_L: Not really in the search PATH,
  8714. # but as the default location of the library.
  8715. hardcode_minus_L=yes
  8716. ;;
  8717. esac
  8718. fi
  8719. ;;
  8720. irix5* | irix6* | nonstopux*)
  8721. if test "$GCC" = yes; then
  8722. 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'
  8723. # Try to use the -exported_symbol ld option, if it does not
  8724. # work, assume that -exports_file does not work either and
  8725. # implicitly export all symbols.
  8726. save_LDFLAGS="$LDFLAGS"
  8727. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8728. cat >conftest.$ac_ext <<_ACEOF
  8729. int foo(void) {}
  8730. _ACEOF
  8731. rm -f conftest.$ac_objext conftest$ac_exeext
  8732. if { (ac_try="$ac_link"
  8733. case "(($ac_try" in
  8734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8735. *) ac_try_echo=$ac_try;;
  8736. esac
  8737. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8738. $as_echo "$ac_try_echo") >&5
  8739. (eval "$ac_link") 2>conftest.er1
  8740. ac_status=$?
  8741. grep -v '^ *+' conftest.er1 >conftest.err
  8742. rm -f conftest.er1
  8743. cat conftest.err >&5
  8744. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8745. (exit $ac_status); } && {
  8746. test -z "$ac_c_werror_flag" ||
  8747. test ! -s conftest.err
  8748. } && test -s conftest$ac_exeext && {
  8749. test "$cross_compiling" = yes ||
  8750. $as_test_x conftest$ac_exeext
  8751. }; then
  8752. 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'
  8753. else
  8754. $as_echo "$as_me: failed program was:" >&5
  8755. sed 's/^/| /' conftest.$ac_ext >&5
  8756. fi
  8757. rm -rf conftest.dSYM
  8758. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8759. conftest$ac_exeext conftest.$ac_ext
  8760. LDFLAGS="$save_LDFLAGS"
  8761. else
  8762. 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'
  8763. 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'
  8764. fi
  8765. archive_cmds_need_lc='no'
  8766. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8767. hardcode_libdir_separator=:
  8768. inherit_rpath=yes
  8769. link_all_deplibs=yes
  8770. ;;
  8771. netbsd* | netbsdelf*-gnu)
  8772. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8773. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8774. else
  8775. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8776. fi
  8777. hardcode_libdir_flag_spec='-R$libdir'
  8778. hardcode_direct=yes
  8779. hardcode_shlibpath_var=no
  8780. ;;
  8781. newsos6)
  8782. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8783. hardcode_direct=yes
  8784. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8785. hardcode_libdir_separator=:
  8786. hardcode_shlibpath_var=no
  8787. ;;
  8788. *nto* | *qnx*)
  8789. ;;
  8790. openbsd*)
  8791. if test -f /usr/libexec/ld.so; then
  8792. hardcode_direct=yes
  8793. hardcode_shlibpath_var=no
  8794. hardcode_direct_absolute=yes
  8795. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8796. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8797. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8798. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8799. export_dynamic_flag_spec='${wl}-E'
  8800. else
  8801. case $host_os in
  8802. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8803. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8804. hardcode_libdir_flag_spec='-R$libdir'
  8805. ;;
  8806. *)
  8807. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8808. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8809. ;;
  8810. esac
  8811. fi
  8812. else
  8813. ld_shlibs=no
  8814. fi
  8815. ;;
  8816. os2*)
  8817. hardcode_libdir_flag_spec='-L$libdir'
  8818. hardcode_minus_L=yes
  8819. allow_undefined_flag=unsupported
  8820. 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'
  8821. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8822. ;;
  8823. osf3*)
  8824. if test "$GCC" = yes; then
  8825. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8826. 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'
  8827. else
  8828. allow_undefined_flag=' -expect_unresolved \*'
  8829. 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'
  8830. fi
  8831. archive_cmds_need_lc='no'
  8832. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8833. hardcode_libdir_separator=:
  8834. ;;
  8835. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8836. if test "$GCC" = yes; then
  8837. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8838. 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'
  8839. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8840. else
  8841. allow_undefined_flag=' -expect_unresolved \*'
  8842. 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'
  8843. 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~
  8844. $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'
  8845. # Both c and cxx compiler support -rpath directly
  8846. hardcode_libdir_flag_spec='-rpath $libdir'
  8847. fi
  8848. archive_cmds_need_lc='no'
  8849. hardcode_libdir_separator=:
  8850. ;;
  8851. solaris*)
  8852. no_undefined_flag=' -z defs'
  8853. if test "$GCC" = yes; then
  8854. wlarc='${wl}'
  8855. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8856. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8857. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8858. else
  8859. case `$CC -V 2>&1` in
  8860. *"Compilers 5.0"*)
  8861. wlarc=''
  8862. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8863. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8864. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8865. ;;
  8866. *)
  8867. wlarc='${wl}'
  8868. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8869. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8870. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8871. ;;
  8872. esac
  8873. fi
  8874. hardcode_libdir_flag_spec='-R$libdir'
  8875. hardcode_shlibpath_var=no
  8876. case $host_os in
  8877. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8878. *)
  8879. # The compiler driver will combine and reorder linker options,
  8880. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8881. # but is careful enough not to reorder.
  8882. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8883. if test "$GCC" = yes; then
  8884. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8885. else
  8886. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8887. fi
  8888. ;;
  8889. esac
  8890. link_all_deplibs=yes
  8891. ;;
  8892. sunos4*)
  8893. if test "x$host_vendor" = xsequent; then
  8894. # Use $CC to link under sequent, because it throws in some extra .o
  8895. # files that make .init and .fini sections work.
  8896. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8897. else
  8898. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8899. fi
  8900. hardcode_libdir_flag_spec='-L$libdir'
  8901. hardcode_direct=yes
  8902. hardcode_minus_L=yes
  8903. hardcode_shlibpath_var=no
  8904. ;;
  8905. sysv4)
  8906. case $host_vendor in
  8907. sni)
  8908. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8909. hardcode_direct=yes # is this really true???
  8910. ;;
  8911. siemens)
  8912. ## LD is ld it makes a PLAMLIB
  8913. ## CC just makes a GrossModule.
  8914. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8915. reload_cmds='$CC -r -o $output$reload_objs'
  8916. hardcode_direct=no
  8917. ;;
  8918. motorola)
  8919. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8920. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8921. ;;
  8922. esac
  8923. runpath_var='LD_RUN_PATH'
  8924. hardcode_shlibpath_var=no
  8925. ;;
  8926. sysv4.3*)
  8927. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8928. hardcode_shlibpath_var=no
  8929. export_dynamic_flag_spec='-Bexport'
  8930. ;;
  8931. sysv4*MP*)
  8932. if test -d /usr/nec; then
  8933. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8934. hardcode_shlibpath_var=no
  8935. runpath_var=LD_RUN_PATH
  8936. hardcode_runpath_var=yes
  8937. ld_shlibs=yes
  8938. fi
  8939. ;;
  8940. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8941. no_undefined_flag='${wl}-z,text'
  8942. archive_cmds_need_lc=no
  8943. hardcode_shlibpath_var=no
  8944. runpath_var='LD_RUN_PATH'
  8945. if test "$GCC" = yes; then
  8946. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8947. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8948. else
  8949. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8950. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8951. fi
  8952. ;;
  8953. sysv5* | sco3.2v5* | sco5v6*)
  8954. # Note: We can NOT use -z defs as we might desire, because we do not
  8955. # link with -lc, and that would cause any symbols used from libc to
  8956. # always be unresolved, which means just about no library would
  8957. # ever link correctly. If we're not using GNU ld we use -z text
  8958. # though, which does catch some bad symbols but isn't as heavy-handed
  8959. # as -z defs.
  8960. no_undefined_flag='${wl}-z,text'
  8961. allow_undefined_flag='${wl}-z,nodefs'
  8962. archive_cmds_need_lc=no
  8963. hardcode_shlibpath_var=no
  8964. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8965. hardcode_libdir_separator=':'
  8966. link_all_deplibs=yes
  8967. export_dynamic_flag_spec='${wl}-Bexport'
  8968. runpath_var='LD_RUN_PATH'
  8969. if test "$GCC" = yes; then
  8970. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8971. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8972. else
  8973. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8974. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8975. fi
  8976. ;;
  8977. uts4*)
  8978. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8979. hardcode_libdir_flag_spec='-L$libdir'
  8980. hardcode_shlibpath_var=no
  8981. ;;
  8982. *)
  8983. ld_shlibs=no
  8984. ;;
  8985. esac
  8986. if test x$host_vendor = xsni; then
  8987. case $host in
  8988. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8989. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8990. ;;
  8991. esac
  8992. fi
  8993. fi
  8994. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8995. $as_echo "$ld_shlibs" >&6; }
  8996. test "$ld_shlibs" = no && can_build_shared=no
  8997. with_gnu_ld=$with_gnu_ld
  8998. #
  8999. # Do we need to explicitly link libc?
  9000. #
  9001. case "x$archive_cmds_need_lc" in
  9002. x|xyes)
  9003. # Assume -lc should be added
  9004. archive_cmds_need_lc=yes
  9005. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9006. case $archive_cmds in
  9007. *'~'*)
  9008. # FIXME: we may have to deal with multi-command sequences.
  9009. ;;
  9010. '$CC '*)
  9011. # Test whether the compiler implicitly links with -lc since on some
  9012. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9013. # to ld, don't add -lc before -lgcc.
  9014. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9015. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9016. $RM conftest*
  9017. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9018. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9019. (eval $ac_compile) 2>&5
  9020. ac_status=$?
  9021. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9022. (exit $ac_status); } 2>conftest.err; then
  9023. soname=conftest
  9024. lib=conftest
  9025. libobjs=conftest.$ac_objext
  9026. deplibs=
  9027. wl=$lt_prog_compiler_wl
  9028. pic_flag=$lt_prog_compiler_pic
  9029. compiler_flags=-v
  9030. linker_flags=-v
  9031. verstring=
  9032. output_objdir=.
  9033. libname=conftest
  9034. lt_save_allow_undefined_flag=$allow_undefined_flag
  9035. allow_undefined_flag=
  9036. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9037. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9038. ac_status=$?
  9039. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9040. (exit $ac_status); }
  9041. then
  9042. archive_cmds_need_lc=no
  9043. else
  9044. archive_cmds_need_lc=yes
  9045. fi
  9046. allow_undefined_flag=$lt_save_allow_undefined_flag
  9047. else
  9048. cat conftest.err 1>&5
  9049. fi
  9050. $RM conftest*
  9051. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9052. $as_echo "$archive_cmds_need_lc" >&6; }
  9053. ;;
  9054. esac
  9055. fi
  9056. ;;
  9057. esac
  9058. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9059. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9060. if test "$GCC" = yes; then
  9061. case $host_os in
  9062. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9063. *) lt_awk_arg="/^libraries:/" ;;
  9064. esac
  9065. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9066. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9067. # if the path contains ";" then we assume it to be the separator
  9068. # otherwise default to the standard path separator (i.e. ":") - it is
  9069. # assumed that no part of a normal pathname contains ";" but that should
  9070. # okay in the real world where ";" in dirpaths is itself problematic.
  9071. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9072. else
  9073. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9074. fi
  9075. # Ok, now we have the path, separated by spaces, we can step through it
  9076. # and add multilib dir if necessary.
  9077. lt_tmp_lt_search_path_spec=
  9078. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9079. for lt_sys_path in $lt_search_path_spec; do
  9080. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9081. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9082. else
  9083. test -d "$lt_sys_path" && \
  9084. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9085. fi
  9086. done
  9087. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9088. BEGIN {RS=" "; FS="/|\n";} {
  9089. lt_foo="";
  9090. lt_count=0;
  9091. for (lt_i = NF; lt_i > 0; lt_i--) {
  9092. if ($lt_i != "" && $lt_i != ".") {
  9093. if ($lt_i == "..") {
  9094. lt_count++;
  9095. } else {
  9096. if (lt_count == 0) {
  9097. lt_foo="/" $lt_i lt_foo;
  9098. } else {
  9099. lt_count--;
  9100. }
  9101. }
  9102. }
  9103. }
  9104. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9105. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9106. }'`
  9107. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9108. else
  9109. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9110. fi
  9111. library_names_spec=
  9112. libname_spec='lib$name'
  9113. soname_spec=
  9114. shrext_cmds=".so"
  9115. postinstall_cmds=
  9116. postuninstall_cmds=
  9117. finish_cmds=
  9118. finish_eval=
  9119. shlibpath_var=
  9120. shlibpath_overrides_runpath=unknown
  9121. version_type=none
  9122. dynamic_linker="$host_os ld.so"
  9123. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9124. need_lib_prefix=unknown
  9125. hardcode_into_libs=no
  9126. # when you set need_version to no, make sure it does not cause -set_version
  9127. # flags to be left without arguments
  9128. need_version=unknown
  9129. case $host_os in
  9130. aix3*)
  9131. version_type=linux
  9132. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9133. shlibpath_var=LIBPATH
  9134. # AIX 3 has no versioning support, so we append a major version to the name.
  9135. soname_spec='${libname}${release}${shared_ext}$major'
  9136. ;;
  9137. aix[4-9]*)
  9138. version_type=linux
  9139. need_lib_prefix=no
  9140. need_version=no
  9141. hardcode_into_libs=yes
  9142. if test "$host_cpu" = ia64; then
  9143. # AIX 5 supports IA64
  9144. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9145. shlibpath_var=LD_LIBRARY_PATH
  9146. else
  9147. # With GCC up to 2.95.x, collect2 would create an import file
  9148. # for dependence libraries. The import file would start with
  9149. # the line `#! .'. This would cause the generated library to
  9150. # depend on `.', always an invalid library. This was fixed in
  9151. # development snapshots of GCC prior to 3.0.
  9152. case $host_os in
  9153. aix4 | aix4.[01] | aix4.[01].*)
  9154. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9155. echo ' yes '
  9156. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9157. :
  9158. else
  9159. can_build_shared=no
  9160. fi
  9161. ;;
  9162. esac
  9163. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9164. # soname into executable. Probably we can add versioning support to
  9165. # collect2, so additional links can be useful in future.
  9166. if test "$aix_use_runtimelinking" = yes; then
  9167. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9168. # instead of lib<name>.a to let people know that these are not
  9169. # typical AIX shared libraries.
  9170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9171. else
  9172. # We preserve .a as extension for shared libraries through AIX4.2
  9173. # and later when we are not doing run time linking.
  9174. library_names_spec='${libname}${release}.a $libname.a'
  9175. soname_spec='${libname}${release}${shared_ext}$major'
  9176. fi
  9177. shlibpath_var=LIBPATH
  9178. fi
  9179. ;;
  9180. amigaos*)
  9181. case $host_cpu in
  9182. powerpc)
  9183. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9184. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9186. ;;
  9187. m68k)
  9188. library_names_spec='$libname.ixlibrary $libname.a'
  9189. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9190. 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'
  9191. ;;
  9192. esac
  9193. ;;
  9194. beos*)
  9195. library_names_spec='${libname}${shared_ext}'
  9196. dynamic_linker="$host_os ld.so"
  9197. shlibpath_var=LIBRARY_PATH
  9198. ;;
  9199. bsdi[45]*)
  9200. version_type=linux
  9201. need_version=no
  9202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9203. soname_spec='${libname}${release}${shared_ext}$major'
  9204. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9205. shlibpath_var=LD_LIBRARY_PATH
  9206. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9207. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9208. # the default ld.so.conf also contains /usr/contrib/lib and
  9209. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9210. # libtool to hard-code these into programs
  9211. ;;
  9212. cygwin* | mingw* | pw32* | cegcc*)
  9213. version_type=windows
  9214. shrext_cmds=".dll"
  9215. need_version=no
  9216. need_lib_prefix=no
  9217. case $GCC,$host_os in
  9218. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9219. library_names_spec='$libname.dll.a'
  9220. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9221. postinstall_cmds='base_file=`basename \${file}`~
  9222. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9223. dldir=$destdir/`dirname \$dlpath`~
  9224. test -d \$dldir || mkdir -p \$dldir~
  9225. $install_prog $dir/$dlname \$dldir/$dlname~
  9226. chmod a+x \$dldir/$dlname~
  9227. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9228. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9229. fi'
  9230. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9231. dlpath=$dir/\$dldll~
  9232. $RM \$dlpath'
  9233. shlibpath_overrides_runpath=yes
  9234. case $host_os in
  9235. cygwin*)
  9236. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9237. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9238. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9239. ;;
  9240. mingw* | cegcc*)
  9241. # MinGW DLLs use traditional 'lib' prefix
  9242. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9243. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9244. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9245. # It is most probably a Windows format PATH printed by
  9246. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9247. # path with ; separators, and with drive letters. We can handle the
  9248. # drive letters (cygwin fileutils understands them), so leave them,
  9249. # especially as we might pass files found there to a mingw objdump,
  9250. # which wouldn't understand a cygwinified path. Ahh.
  9251. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9252. else
  9253. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9254. fi
  9255. ;;
  9256. pw32*)
  9257. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9258. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9259. ;;
  9260. esac
  9261. ;;
  9262. *)
  9263. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9264. ;;
  9265. esac
  9266. dynamic_linker='Win32 ld.exe'
  9267. # FIXME: first we should search . and the directory the executable is in
  9268. shlibpath_var=PATH
  9269. ;;
  9270. darwin* | rhapsody*)
  9271. dynamic_linker="$host_os dyld"
  9272. version_type=darwin
  9273. need_lib_prefix=no
  9274. need_version=no
  9275. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9276. soname_spec='${libname}${release}${major}$shared_ext'
  9277. shlibpath_overrides_runpath=yes
  9278. shlibpath_var=DYLD_LIBRARY_PATH
  9279. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9280. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9281. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9282. ;;
  9283. dgux*)
  9284. version_type=linux
  9285. need_lib_prefix=no
  9286. need_version=no
  9287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9288. soname_spec='${libname}${release}${shared_ext}$major'
  9289. shlibpath_var=LD_LIBRARY_PATH
  9290. ;;
  9291. freebsd1*)
  9292. dynamic_linker=no
  9293. ;;
  9294. freebsd* | dragonfly*)
  9295. # DragonFly does not have aout. When/if they implement a new
  9296. # versioning mechanism, adjust this.
  9297. if test -x /usr/bin/objformat; then
  9298. objformat=`/usr/bin/objformat`
  9299. else
  9300. case $host_os in
  9301. freebsd[123]*) objformat=aout ;;
  9302. *) objformat=elf ;;
  9303. esac
  9304. fi
  9305. version_type=freebsd-$objformat
  9306. case $version_type in
  9307. freebsd-elf*)
  9308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9309. need_version=no
  9310. need_lib_prefix=no
  9311. ;;
  9312. freebsd-*)
  9313. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9314. need_version=yes
  9315. ;;
  9316. esac
  9317. shlibpath_var=LD_LIBRARY_PATH
  9318. case $host_os in
  9319. freebsd2*)
  9320. shlibpath_overrides_runpath=yes
  9321. ;;
  9322. freebsd3.[01]* | freebsdelf3.[01]*)
  9323. shlibpath_overrides_runpath=yes
  9324. hardcode_into_libs=yes
  9325. ;;
  9326. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9327. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9328. shlibpath_overrides_runpath=no
  9329. hardcode_into_libs=yes
  9330. ;;
  9331. *) # from 4.6 on, and DragonFly
  9332. shlibpath_overrides_runpath=yes
  9333. hardcode_into_libs=yes
  9334. ;;
  9335. esac
  9336. ;;
  9337. gnu*)
  9338. version_type=linux
  9339. need_lib_prefix=no
  9340. need_version=no
  9341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9342. soname_spec='${libname}${release}${shared_ext}$major'
  9343. shlibpath_var=LD_LIBRARY_PATH
  9344. hardcode_into_libs=yes
  9345. ;;
  9346. hpux9* | hpux10* | hpux11*)
  9347. # Give a soname corresponding to the major version so that dld.sl refuses to
  9348. # link against other versions.
  9349. version_type=sunos
  9350. need_lib_prefix=no
  9351. need_version=no
  9352. case $host_cpu in
  9353. ia64*)
  9354. shrext_cmds='.so'
  9355. hardcode_into_libs=yes
  9356. dynamic_linker="$host_os dld.so"
  9357. shlibpath_var=LD_LIBRARY_PATH
  9358. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9360. soname_spec='${libname}${release}${shared_ext}$major'
  9361. if test "X$HPUX_IA64_MODE" = X32; then
  9362. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9363. else
  9364. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9365. fi
  9366. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9367. ;;
  9368. hppa*64*)
  9369. shrext_cmds='.sl'
  9370. hardcode_into_libs=yes
  9371. dynamic_linker="$host_os dld.sl"
  9372. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9373. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9375. soname_spec='${libname}${release}${shared_ext}$major'
  9376. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9377. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9378. ;;
  9379. *)
  9380. shrext_cmds='.sl'
  9381. dynamic_linker="$host_os dld.sl"
  9382. shlibpath_var=SHLIB_PATH
  9383. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9385. soname_spec='${libname}${release}${shared_ext}$major'
  9386. ;;
  9387. esac
  9388. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9389. postinstall_cmds='chmod 555 $lib'
  9390. ;;
  9391. interix[3-9]*)
  9392. version_type=linux
  9393. need_lib_prefix=no
  9394. need_version=no
  9395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9396. soname_spec='${libname}${release}${shared_ext}$major'
  9397. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9398. shlibpath_var=LD_LIBRARY_PATH
  9399. shlibpath_overrides_runpath=no
  9400. hardcode_into_libs=yes
  9401. ;;
  9402. irix5* | irix6* | nonstopux*)
  9403. case $host_os in
  9404. nonstopux*) version_type=nonstopux ;;
  9405. *)
  9406. if test "$lt_cv_prog_gnu_ld" = yes; then
  9407. version_type=linux
  9408. else
  9409. version_type=irix
  9410. fi ;;
  9411. esac
  9412. need_lib_prefix=no
  9413. need_version=no
  9414. soname_spec='${libname}${release}${shared_ext}$major'
  9415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9416. case $host_os in
  9417. irix5* | nonstopux*)
  9418. libsuff= shlibsuff=
  9419. ;;
  9420. *)
  9421. case $LD in # libtool.m4 will add one of these switches to LD
  9422. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9423. libsuff= shlibsuff= libmagic=32-bit;;
  9424. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9425. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9426. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9427. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9428. *) libsuff= shlibsuff= libmagic=never-match;;
  9429. esac
  9430. ;;
  9431. esac
  9432. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9433. shlibpath_overrides_runpath=no
  9434. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9435. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9436. hardcode_into_libs=yes
  9437. ;;
  9438. # No shared lib support for Linux oldld, aout, or coff.
  9439. linux*oldld* | linux*aout* | linux*coff*)
  9440. dynamic_linker=no
  9441. ;;
  9442. # This must be Linux ELF.
  9443. linux* | k*bsd*-gnu)
  9444. version_type=linux
  9445. need_lib_prefix=no
  9446. need_version=no
  9447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9448. soname_spec='${libname}${release}${shared_ext}$major'
  9449. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9450. shlibpath_var=LD_LIBRARY_PATH
  9451. shlibpath_overrides_runpath=no
  9452. # Some binutils ld are patched to set DT_RUNPATH
  9453. save_LDFLAGS=$LDFLAGS
  9454. save_libdir=$libdir
  9455. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9456. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9457. cat >conftest.$ac_ext <<_ACEOF
  9458. /* confdefs.h. */
  9459. _ACEOF
  9460. cat confdefs.h >>conftest.$ac_ext
  9461. cat >>conftest.$ac_ext <<_ACEOF
  9462. /* end confdefs.h. */
  9463. int
  9464. main ()
  9465. {
  9466. ;
  9467. return 0;
  9468. }
  9469. _ACEOF
  9470. rm -f conftest.$ac_objext conftest$ac_exeext
  9471. if { (ac_try="$ac_link"
  9472. case "(($ac_try" in
  9473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9474. *) ac_try_echo=$ac_try;;
  9475. esac
  9476. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9477. $as_echo "$ac_try_echo") >&5
  9478. (eval "$ac_link") 2>conftest.er1
  9479. ac_status=$?
  9480. grep -v '^ *+' conftest.er1 >conftest.err
  9481. rm -f conftest.er1
  9482. cat conftest.err >&5
  9483. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9484. (exit $ac_status); } && {
  9485. test -z "$ac_c_werror_flag" ||
  9486. test ! -s conftest.err
  9487. } && test -s conftest$ac_exeext && {
  9488. test "$cross_compiling" = yes ||
  9489. $as_test_x conftest$ac_exeext
  9490. }; then
  9491. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  9492. shlibpath_overrides_runpath=yes
  9493. fi
  9494. else
  9495. $as_echo "$as_me: failed program was:" >&5
  9496. sed 's/^/| /' conftest.$ac_ext >&5
  9497. fi
  9498. rm -rf conftest.dSYM
  9499. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9500. conftest$ac_exeext conftest.$ac_ext
  9501. LDFLAGS=$save_LDFLAGS
  9502. libdir=$save_libdir
  9503. # This implies no fast_install, which is unacceptable.
  9504. # Some rework will be needed to allow for fast_install
  9505. # before this can be enabled.
  9506. hardcode_into_libs=yes
  9507. # Append ld.so.conf contents to the search path
  9508. if test -f /etc/ld.so.conf; then
  9509. 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' ' '`
  9510. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9511. fi
  9512. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9513. # powerpc, because MkLinux only supported shared libraries with the
  9514. # GNU dynamic linker. Since this was broken with cross compilers,
  9515. # most powerpc-linux boxes support dynamic linking these days and
  9516. # people can always --disable-shared, the test was removed, and we
  9517. # assume the GNU/Linux dynamic linker is in use.
  9518. dynamic_linker='GNU/Linux ld.so'
  9519. ;;
  9520. netbsdelf*-gnu)
  9521. version_type=linux
  9522. need_lib_prefix=no
  9523. need_version=no
  9524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9525. soname_spec='${libname}${release}${shared_ext}$major'
  9526. shlibpath_var=LD_LIBRARY_PATH
  9527. shlibpath_overrides_runpath=no
  9528. hardcode_into_libs=yes
  9529. dynamic_linker='NetBSD ld.elf_so'
  9530. ;;
  9531. netbsd*)
  9532. version_type=sunos
  9533. need_lib_prefix=no
  9534. need_version=no
  9535. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9537. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9538. dynamic_linker='NetBSD (a.out) ld.so'
  9539. else
  9540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9541. soname_spec='${libname}${release}${shared_ext}$major'
  9542. dynamic_linker='NetBSD ld.elf_so'
  9543. fi
  9544. shlibpath_var=LD_LIBRARY_PATH
  9545. shlibpath_overrides_runpath=yes
  9546. hardcode_into_libs=yes
  9547. ;;
  9548. newsos6)
  9549. version_type=linux
  9550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9551. shlibpath_var=LD_LIBRARY_PATH
  9552. shlibpath_overrides_runpath=yes
  9553. ;;
  9554. *nto* | *qnx*)
  9555. version_type=qnx
  9556. need_lib_prefix=no
  9557. need_version=no
  9558. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9559. soname_spec='${libname}${release}${shared_ext}$major'
  9560. shlibpath_var=LD_LIBRARY_PATH
  9561. shlibpath_overrides_runpath=no
  9562. hardcode_into_libs=yes
  9563. dynamic_linker='ldqnx.so'
  9564. ;;
  9565. openbsd*)
  9566. version_type=sunos
  9567. sys_lib_dlsearch_path_spec="/usr/lib"
  9568. need_lib_prefix=no
  9569. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9570. case $host_os in
  9571. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9572. *) need_version=no ;;
  9573. esac
  9574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9575. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9576. shlibpath_var=LD_LIBRARY_PATH
  9577. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9578. case $host_os in
  9579. openbsd2.[89] | openbsd2.[89].*)
  9580. shlibpath_overrides_runpath=no
  9581. ;;
  9582. *)
  9583. shlibpath_overrides_runpath=yes
  9584. ;;
  9585. esac
  9586. else
  9587. shlibpath_overrides_runpath=yes
  9588. fi
  9589. ;;
  9590. os2*)
  9591. libname_spec='$name'
  9592. shrext_cmds=".dll"
  9593. need_lib_prefix=no
  9594. library_names_spec='$libname${shared_ext} $libname.a'
  9595. dynamic_linker='OS/2 ld.exe'
  9596. shlibpath_var=LIBPATH
  9597. ;;
  9598. osf3* | osf4* | osf5*)
  9599. version_type=osf
  9600. need_lib_prefix=no
  9601. need_version=no
  9602. soname_spec='${libname}${release}${shared_ext}$major'
  9603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9604. shlibpath_var=LD_LIBRARY_PATH
  9605. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9606. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9607. ;;
  9608. rdos*)
  9609. dynamic_linker=no
  9610. ;;
  9611. solaris*)
  9612. version_type=linux
  9613. need_lib_prefix=no
  9614. need_version=no
  9615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9616. soname_spec='${libname}${release}${shared_ext}$major'
  9617. shlibpath_var=LD_LIBRARY_PATH
  9618. shlibpath_overrides_runpath=yes
  9619. hardcode_into_libs=yes
  9620. # ldd complains unless libraries are executable
  9621. postinstall_cmds='chmod +x $lib'
  9622. ;;
  9623. sunos4*)
  9624. version_type=sunos
  9625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9626. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9627. shlibpath_var=LD_LIBRARY_PATH
  9628. shlibpath_overrides_runpath=yes
  9629. if test "$with_gnu_ld" = yes; then
  9630. need_lib_prefix=no
  9631. fi
  9632. need_version=yes
  9633. ;;
  9634. sysv4 | sysv4.3*)
  9635. version_type=linux
  9636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9637. soname_spec='${libname}${release}${shared_ext}$major'
  9638. shlibpath_var=LD_LIBRARY_PATH
  9639. case $host_vendor in
  9640. sni)
  9641. shlibpath_overrides_runpath=no
  9642. need_lib_prefix=no
  9643. runpath_var=LD_RUN_PATH
  9644. ;;
  9645. siemens)
  9646. need_lib_prefix=no
  9647. ;;
  9648. motorola)
  9649. need_lib_prefix=no
  9650. need_version=no
  9651. shlibpath_overrides_runpath=no
  9652. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9653. ;;
  9654. esac
  9655. ;;
  9656. sysv4*MP*)
  9657. if test -d /usr/nec ;then
  9658. version_type=linux
  9659. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9660. soname_spec='$libname${shared_ext}.$major'
  9661. shlibpath_var=LD_LIBRARY_PATH
  9662. fi
  9663. ;;
  9664. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9665. version_type=freebsd-elf
  9666. need_lib_prefix=no
  9667. need_version=no
  9668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9669. soname_spec='${libname}${release}${shared_ext}$major'
  9670. shlibpath_var=LD_LIBRARY_PATH
  9671. shlibpath_overrides_runpath=yes
  9672. hardcode_into_libs=yes
  9673. if test "$with_gnu_ld" = yes; then
  9674. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9675. else
  9676. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9677. case $host_os in
  9678. sco3.2v5*)
  9679. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9680. ;;
  9681. esac
  9682. fi
  9683. sys_lib_dlsearch_path_spec='/usr/lib'
  9684. ;;
  9685. tpf*)
  9686. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9687. version_type=linux
  9688. need_lib_prefix=no
  9689. need_version=no
  9690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9691. shlibpath_var=LD_LIBRARY_PATH
  9692. shlibpath_overrides_runpath=no
  9693. hardcode_into_libs=yes
  9694. ;;
  9695. uts4*)
  9696. version_type=linux
  9697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9698. soname_spec='${libname}${release}${shared_ext}$major'
  9699. shlibpath_var=LD_LIBRARY_PATH
  9700. ;;
  9701. *)
  9702. dynamic_linker=no
  9703. ;;
  9704. esac
  9705. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9706. $as_echo "$dynamic_linker" >&6; }
  9707. test "$dynamic_linker" = no && can_build_shared=no
  9708. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9709. if test "$GCC" = yes; then
  9710. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9711. fi
  9712. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9713. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9714. fi
  9715. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9716. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9717. fi
  9718. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9719. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9720. hardcode_action=
  9721. if test -n "$hardcode_libdir_flag_spec" ||
  9722. test -n "$runpath_var" ||
  9723. test "X$hardcode_automatic" = "Xyes" ; then
  9724. # We can hardcode non-existent directories.
  9725. if test "$hardcode_direct" != no &&
  9726. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9727. # have to relink, otherwise we might link with an installed library
  9728. # when we should be linking with a yet-to-be-installed one
  9729. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9730. test "$hardcode_minus_L" != no; then
  9731. # Linking always hardcodes the temporary library directory.
  9732. hardcode_action=relink
  9733. else
  9734. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9735. hardcode_action=immediate
  9736. fi
  9737. else
  9738. # We cannot hardcode anything, or else we can only hardcode existing
  9739. # directories.
  9740. hardcode_action=unsupported
  9741. fi
  9742. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9743. $as_echo "$hardcode_action" >&6; }
  9744. if test "$hardcode_action" = relink ||
  9745. test "$inherit_rpath" = yes; then
  9746. # Fast installation is not supported
  9747. enable_fast_install=no
  9748. elif test "$shlibpath_overrides_runpath" = yes ||
  9749. test "$enable_shared" = no; then
  9750. # Fast installation is not necessary
  9751. enable_fast_install=needless
  9752. fi
  9753. if test "x$enable_dlopen" != xyes; then
  9754. enable_dlopen=unknown
  9755. enable_dlopen_self=unknown
  9756. enable_dlopen_self_static=unknown
  9757. else
  9758. lt_cv_dlopen=no
  9759. lt_cv_dlopen_libs=
  9760. case $host_os in
  9761. beos*)
  9762. lt_cv_dlopen="load_add_on"
  9763. lt_cv_dlopen_libs=
  9764. lt_cv_dlopen_self=yes
  9765. ;;
  9766. mingw* | pw32* | cegcc*)
  9767. lt_cv_dlopen="LoadLibrary"
  9768. lt_cv_dlopen_libs=
  9769. ;;
  9770. cygwin*)
  9771. lt_cv_dlopen="dlopen"
  9772. lt_cv_dlopen_libs=
  9773. ;;
  9774. darwin*)
  9775. # if libdl is installed we need to link against it
  9776. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9777. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9778. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9779. $as_echo_n "(cached) " >&6
  9780. else
  9781. ac_check_lib_save_LIBS=$LIBS
  9782. LIBS="-ldl $LIBS"
  9783. cat >conftest.$ac_ext <<_ACEOF
  9784. /* confdefs.h. */
  9785. _ACEOF
  9786. cat confdefs.h >>conftest.$ac_ext
  9787. cat >>conftest.$ac_ext <<_ACEOF
  9788. /* end confdefs.h. */
  9789. /* Override any GCC internal prototype to avoid an error.
  9790. Use char because int might match the return type of a GCC
  9791. builtin and then its argument prototype would still apply. */
  9792. #ifdef __cplusplus
  9793. extern "C"
  9794. #endif
  9795. char dlopen ();
  9796. int
  9797. main ()
  9798. {
  9799. return dlopen ();
  9800. ;
  9801. return 0;
  9802. }
  9803. _ACEOF
  9804. rm -f conftest.$ac_objext conftest$ac_exeext
  9805. if { (ac_try="$ac_link"
  9806. case "(($ac_try" in
  9807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9808. *) ac_try_echo=$ac_try;;
  9809. esac
  9810. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9811. $as_echo "$ac_try_echo") >&5
  9812. (eval "$ac_link") 2>conftest.er1
  9813. ac_status=$?
  9814. grep -v '^ *+' conftest.er1 >conftest.err
  9815. rm -f conftest.er1
  9816. cat conftest.err >&5
  9817. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9818. (exit $ac_status); } && {
  9819. test -z "$ac_c_werror_flag" ||
  9820. test ! -s conftest.err
  9821. } && test -s conftest$ac_exeext && {
  9822. test "$cross_compiling" = yes ||
  9823. $as_test_x conftest$ac_exeext
  9824. }; then
  9825. ac_cv_lib_dl_dlopen=yes
  9826. else
  9827. $as_echo "$as_me: failed program was:" >&5
  9828. sed 's/^/| /' conftest.$ac_ext >&5
  9829. ac_cv_lib_dl_dlopen=no
  9830. fi
  9831. rm -rf conftest.dSYM
  9832. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9833. conftest$ac_exeext conftest.$ac_ext
  9834. LIBS=$ac_check_lib_save_LIBS
  9835. fi
  9836. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9837. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9838. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9839. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9840. else
  9841. lt_cv_dlopen="dyld"
  9842. lt_cv_dlopen_libs=
  9843. lt_cv_dlopen_self=yes
  9844. fi
  9845. ;;
  9846. *)
  9847. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  9848. $as_echo_n "checking for shl_load... " >&6; }
  9849. if test "${ac_cv_func_shl_load+set}" = set; then
  9850. $as_echo_n "(cached) " >&6
  9851. else
  9852. cat >conftest.$ac_ext <<_ACEOF
  9853. /* confdefs.h. */
  9854. _ACEOF
  9855. cat confdefs.h >>conftest.$ac_ext
  9856. cat >>conftest.$ac_ext <<_ACEOF
  9857. /* end confdefs.h. */
  9858. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9859. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9860. #define shl_load innocuous_shl_load
  9861. /* System header to define __stub macros and hopefully few prototypes,
  9862. which can conflict with char shl_load (); below.
  9863. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9864. <limits.h> exists even on freestanding compilers. */
  9865. #ifdef __STDC__
  9866. # include <limits.h>
  9867. #else
  9868. # include <assert.h>
  9869. #endif
  9870. #undef shl_load
  9871. /* Override any GCC internal prototype to avoid an error.
  9872. Use char because int might match the return type of a GCC
  9873. builtin and then its argument prototype would still apply. */
  9874. #ifdef __cplusplus
  9875. extern "C"
  9876. #endif
  9877. char shl_load ();
  9878. /* The GNU C library defines this for functions which it implements
  9879. to always fail with ENOSYS. Some functions are actually named
  9880. something starting with __ and the normal name is an alias. */
  9881. #if defined __stub_shl_load || defined __stub___shl_load
  9882. choke me
  9883. #endif
  9884. int
  9885. main ()
  9886. {
  9887. return shl_load ();
  9888. ;
  9889. return 0;
  9890. }
  9891. _ACEOF
  9892. rm -f conftest.$ac_objext conftest$ac_exeext
  9893. if { (ac_try="$ac_link"
  9894. case "(($ac_try" in
  9895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9896. *) ac_try_echo=$ac_try;;
  9897. esac
  9898. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9899. $as_echo "$ac_try_echo") >&5
  9900. (eval "$ac_link") 2>conftest.er1
  9901. ac_status=$?
  9902. grep -v '^ *+' conftest.er1 >conftest.err
  9903. rm -f conftest.er1
  9904. cat conftest.err >&5
  9905. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9906. (exit $ac_status); } && {
  9907. test -z "$ac_c_werror_flag" ||
  9908. test ! -s conftest.err
  9909. } && test -s conftest$ac_exeext && {
  9910. test "$cross_compiling" = yes ||
  9911. $as_test_x conftest$ac_exeext
  9912. }; then
  9913. ac_cv_func_shl_load=yes
  9914. else
  9915. $as_echo "$as_me: failed program was:" >&5
  9916. sed 's/^/| /' conftest.$ac_ext >&5
  9917. ac_cv_func_shl_load=no
  9918. fi
  9919. rm -rf conftest.dSYM
  9920. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9921. conftest$ac_exeext conftest.$ac_ext
  9922. fi
  9923. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9924. $as_echo "$ac_cv_func_shl_load" >&6; }
  9925. if test "x$ac_cv_func_shl_load" = x""yes; then
  9926. lt_cv_dlopen="shl_load"
  9927. else
  9928. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9929. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9930. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9931. $as_echo_n "(cached) " >&6
  9932. else
  9933. ac_check_lib_save_LIBS=$LIBS
  9934. LIBS="-ldld $LIBS"
  9935. cat >conftest.$ac_ext <<_ACEOF
  9936. /* confdefs.h. */
  9937. _ACEOF
  9938. cat confdefs.h >>conftest.$ac_ext
  9939. cat >>conftest.$ac_ext <<_ACEOF
  9940. /* end confdefs.h. */
  9941. /* Override any GCC internal prototype to avoid an error.
  9942. Use char because int might match the return type of a GCC
  9943. builtin and then its argument prototype would still apply. */
  9944. #ifdef __cplusplus
  9945. extern "C"
  9946. #endif
  9947. char shl_load ();
  9948. int
  9949. main ()
  9950. {
  9951. return shl_load ();
  9952. ;
  9953. return 0;
  9954. }
  9955. _ACEOF
  9956. rm -f conftest.$ac_objext conftest$ac_exeext
  9957. if { (ac_try="$ac_link"
  9958. case "(($ac_try" in
  9959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9960. *) ac_try_echo=$ac_try;;
  9961. esac
  9962. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9963. $as_echo "$ac_try_echo") >&5
  9964. (eval "$ac_link") 2>conftest.er1
  9965. ac_status=$?
  9966. grep -v '^ *+' conftest.er1 >conftest.err
  9967. rm -f conftest.er1
  9968. cat conftest.err >&5
  9969. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9970. (exit $ac_status); } && {
  9971. test -z "$ac_c_werror_flag" ||
  9972. test ! -s conftest.err
  9973. } && test -s conftest$ac_exeext && {
  9974. test "$cross_compiling" = yes ||
  9975. $as_test_x conftest$ac_exeext
  9976. }; then
  9977. ac_cv_lib_dld_shl_load=yes
  9978. else
  9979. $as_echo "$as_me: failed program was:" >&5
  9980. sed 's/^/| /' conftest.$ac_ext >&5
  9981. ac_cv_lib_dld_shl_load=no
  9982. fi
  9983. rm -rf conftest.dSYM
  9984. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9985. conftest$ac_exeext conftest.$ac_ext
  9986. LIBS=$ac_check_lib_save_LIBS
  9987. fi
  9988. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9989. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9990. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  9991. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9992. else
  9993. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  9994. $as_echo_n "checking for dlopen... " >&6; }
  9995. if test "${ac_cv_func_dlopen+set}" = set; then
  9996. $as_echo_n "(cached) " >&6
  9997. else
  9998. cat >conftest.$ac_ext <<_ACEOF
  9999. /* confdefs.h. */
  10000. _ACEOF
  10001. cat confdefs.h >>conftest.$ac_ext
  10002. cat >>conftest.$ac_ext <<_ACEOF
  10003. /* end confdefs.h. */
  10004. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10005. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10006. #define dlopen innocuous_dlopen
  10007. /* System header to define __stub macros and hopefully few prototypes,
  10008. which can conflict with char dlopen (); below.
  10009. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10010. <limits.h> exists even on freestanding compilers. */
  10011. #ifdef __STDC__
  10012. # include <limits.h>
  10013. #else
  10014. # include <assert.h>
  10015. #endif
  10016. #undef dlopen
  10017. /* Override any GCC internal prototype to avoid an error.
  10018. Use char because int might match the return type of a GCC
  10019. builtin and then its argument prototype would still apply. */
  10020. #ifdef __cplusplus
  10021. extern "C"
  10022. #endif
  10023. char dlopen ();
  10024. /* The GNU C library defines this for functions which it implements
  10025. to always fail with ENOSYS. Some functions are actually named
  10026. something starting with __ and the normal name is an alias. */
  10027. #if defined __stub_dlopen || defined __stub___dlopen
  10028. choke me
  10029. #endif
  10030. int
  10031. main ()
  10032. {
  10033. return dlopen ();
  10034. ;
  10035. return 0;
  10036. }
  10037. _ACEOF
  10038. rm -f conftest.$ac_objext conftest$ac_exeext
  10039. if { (ac_try="$ac_link"
  10040. case "(($ac_try" in
  10041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10042. *) ac_try_echo=$ac_try;;
  10043. esac
  10044. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10045. $as_echo "$ac_try_echo") >&5
  10046. (eval "$ac_link") 2>conftest.er1
  10047. ac_status=$?
  10048. grep -v '^ *+' conftest.er1 >conftest.err
  10049. rm -f conftest.er1
  10050. cat conftest.err >&5
  10051. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10052. (exit $ac_status); } && {
  10053. test -z "$ac_c_werror_flag" ||
  10054. test ! -s conftest.err
  10055. } && test -s conftest$ac_exeext && {
  10056. test "$cross_compiling" = yes ||
  10057. $as_test_x conftest$ac_exeext
  10058. }; then
  10059. ac_cv_func_dlopen=yes
  10060. else
  10061. $as_echo "$as_me: failed program was:" >&5
  10062. sed 's/^/| /' conftest.$ac_ext >&5
  10063. ac_cv_func_dlopen=no
  10064. fi
  10065. rm -rf conftest.dSYM
  10066. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10067. conftest$ac_exeext conftest.$ac_ext
  10068. fi
  10069. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10070. $as_echo "$ac_cv_func_dlopen" >&6; }
  10071. if test "x$ac_cv_func_dlopen" = x""yes; then
  10072. lt_cv_dlopen="dlopen"
  10073. else
  10074. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10075. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10076. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10077. $as_echo_n "(cached) " >&6
  10078. else
  10079. ac_check_lib_save_LIBS=$LIBS
  10080. LIBS="-ldl $LIBS"
  10081. cat >conftest.$ac_ext <<_ACEOF
  10082. /* confdefs.h. */
  10083. _ACEOF
  10084. cat confdefs.h >>conftest.$ac_ext
  10085. cat >>conftest.$ac_ext <<_ACEOF
  10086. /* end confdefs.h. */
  10087. /* Override any GCC internal prototype to avoid an error.
  10088. Use char because int might match the return type of a GCC
  10089. builtin and then its argument prototype would still apply. */
  10090. #ifdef __cplusplus
  10091. extern "C"
  10092. #endif
  10093. char dlopen ();
  10094. int
  10095. main ()
  10096. {
  10097. return dlopen ();
  10098. ;
  10099. return 0;
  10100. }
  10101. _ACEOF
  10102. rm -f conftest.$ac_objext conftest$ac_exeext
  10103. if { (ac_try="$ac_link"
  10104. case "(($ac_try" in
  10105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10106. *) ac_try_echo=$ac_try;;
  10107. esac
  10108. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10109. $as_echo "$ac_try_echo") >&5
  10110. (eval "$ac_link") 2>conftest.er1
  10111. ac_status=$?
  10112. grep -v '^ *+' conftest.er1 >conftest.err
  10113. rm -f conftest.er1
  10114. cat conftest.err >&5
  10115. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10116. (exit $ac_status); } && {
  10117. test -z "$ac_c_werror_flag" ||
  10118. test ! -s conftest.err
  10119. } && test -s conftest$ac_exeext && {
  10120. test "$cross_compiling" = yes ||
  10121. $as_test_x conftest$ac_exeext
  10122. }; then
  10123. ac_cv_lib_dl_dlopen=yes
  10124. else
  10125. $as_echo "$as_me: failed program was:" >&5
  10126. sed 's/^/| /' conftest.$ac_ext >&5
  10127. ac_cv_lib_dl_dlopen=no
  10128. fi
  10129. rm -rf conftest.dSYM
  10130. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10131. conftest$ac_exeext conftest.$ac_ext
  10132. LIBS=$ac_check_lib_save_LIBS
  10133. fi
  10134. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10135. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10136. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10137. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10138. else
  10139. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10140. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10141. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10142. $as_echo_n "(cached) " >&6
  10143. else
  10144. ac_check_lib_save_LIBS=$LIBS
  10145. LIBS="-lsvld $LIBS"
  10146. cat >conftest.$ac_ext <<_ACEOF
  10147. /* confdefs.h. */
  10148. _ACEOF
  10149. cat confdefs.h >>conftest.$ac_ext
  10150. cat >>conftest.$ac_ext <<_ACEOF
  10151. /* end confdefs.h. */
  10152. /* Override any GCC internal prototype to avoid an error.
  10153. Use char because int might match the return type of a GCC
  10154. builtin and then its argument prototype would still apply. */
  10155. #ifdef __cplusplus
  10156. extern "C"
  10157. #endif
  10158. char dlopen ();
  10159. int
  10160. main ()
  10161. {
  10162. return dlopen ();
  10163. ;
  10164. return 0;
  10165. }
  10166. _ACEOF
  10167. rm -f conftest.$ac_objext conftest$ac_exeext
  10168. if { (ac_try="$ac_link"
  10169. case "(($ac_try" in
  10170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10171. *) ac_try_echo=$ac_try;;
  10172. esac
  10173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10174. $as_echo "$ac_try_echo") >&5
  10175. (eval "$ac_link") 2>conftest.er1
  10176. ac_status=$?
  10177. grep -v '^ *+' conftest.er1 >conftest.err
  10178. rm -f conftest.er1
  10179. cat conftest.err >&5
  10180. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10181. (exit $ac_status); } && {
  10182. test -z "$ac_c_werror_flag" ||
  10183. test ! -s conftest.err
  10184. } && test -s conftest$ac_exeext && {
  10185. test "$cross_compiling" = yes ||
  10186. $as_test_x conftest$ac_exeext
  10187. }; then
  10188. ac_cv_lib_svld_dlopen=yes
  10189. else
  10190. $as_echo "$as_me: failed program was:" >&5
  10191. sed 's/^/| /' conftest.$ac_ext >&5
  10192. ac_cv_lib_svld_dlopen=no
  10193. fi
  10194. rm -rf conftest.dSYM
  10195. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10196. conftest$ac_exeext conftest.$ac_ext
  10197. LIBS=$ac_check_lib_save_LIBS
  10198. fi
  10199. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10200. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10201. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10202. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10203. else
  10204. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10205. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10206. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10207. $as_echo_n "(cached) " >&6
  10208. else
  10209. ac_check_lib_save_LIBS=$LIBS
  10210. LIBS="-ldld $LIBS"
  10211. cat >conftest.$ac_ext <<_ACEOF
  10212. /* confdefs.h. */
  10213. _ACEOF
  10214. cat confdefs.h >>conftest.$ac_ext
  10215. cat >>conftest.$ac_ext <<_ACEOF
  10216. /* end confdefs.h. */
  10217. /* Override any GCC internal prototype to avoid an error.
  10218. Use char because int might match the return type of a GCC
  10219. builtin and then its argument prototype would still apply. */
  10220. #ifdef __cplusplus
  10221. extern "C"
  10222. #endif
  10223. char dld_link ();
  10224. int
  10225. main ()
  10226. {
  10227. return dld_link ();
  10228. ;
  10229. return 0;
  10230. }
  10231. _ACEOF
  10232. rm -f conftest.$ac_objext conftest$ac_exeext
  10233. if { (ac_try="$ac_link"
  10234. case "(($ac_try" in
  10235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10236. *) ac_try_echo=$ac_try;;
  10237. esac
  10238. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10239. $as_echo "$ac_try_echo") >&5
  10240. (eval "$ac_link") 2>conftest.er1
  10241. ac_status=$?
  10242. grep -v '^ *+' conftest.er1 >conftest.err
  10243. rm -f conftest.er1
  10244. cat conftest.err >&5
  10245. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10246. (exit $ac_status); } && {
  10247. test -z "$ac_c_werror_flag" ||
  10248. test ! -s conftest.err
  10249. } && test -s conftest$ac_exeext && {
  10250. test "$cross_compiling" = yes ||
  10251. $as_test_x conftest$ac_exeext
  10252. }; then
  10253. ac_cv_lib_dld_dld_link=yes
  10254. else
  10255. $as_echo "$as_me: failed program was:" >&5
  10256. sed 's/^/| /' conftest.$ac_ext >&5
  10257. ac_cv_lib_dld_dld_link=no
  10258. fi
  10259. rm -rf conftest.dSYM
  10260. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10261. conftest$ac_exeext conftest.$ac_ext
  10262. LIBS=$ac_check_lib_save_LIBS
  10263. fi
  10264. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10265. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10266. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10267. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10268. fi
  10269. fi
  10270. fi
  10271. fi
  10272. fi
  10273. fi
  10274. ;;
  10275. esac
  10276. if test "x$lt_cv_dlopen" != xno; then
  10277. enable_dlopen=yes
  10278. else
  10279. enable_dlopen=no
  10280. fi
  10281. case $lt_cv_dlopen in
  10282. dlopen)
  10283. save_CPPFLAGS="$CPPFLAGS"
  10284. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10285. save_LDFLAGS="$LDFLAGS"
  10286. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10287. save_LIBS="$LIBS"
  10288. LIBS="$lt_cv_dlopen_libs $LIBS"
  10289. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10290. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10291. if test "${lt_cv_dlopen_self+set}" = set; then
  10292. $as_echo_n "(cached) " >&6
  10293. else
  10294. if test "$cross_compiling" = yes; then :
  10295. lt_cv_dlopen_self=cross
  10296. else
  10297. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10298. lt_status=$lt_dlunknown
  10299. cat > conftest.$ac_ext <<_LT_EOF
  10300. #line 11957 "configure"
  10301. #include "confdefs.h"
  10302. #if HAVE_DLFCN_H
  10303. #include <dlfcn.h>
  10304. #endif
  10305. #include <stdio.h>
  10306. #ifdef RTLD_GLOBAL
  10307. # define LT_DLGLOBAL RTLD_GLOBAL
  10308. #else
  10309. # ifdef DL_GLOBAL
  10310. # define LT_DLGLOBAL DL_GLOBAL
  10311. # else
  10312. # define LT_DLGLOBAL 0
  10313. # endif
  10314. #endif
  10315. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10316. find out it does not work in some platform. */
  10317. #ifndef LT_DLLAZY_OR_NOW
  10318. # ifdef RTLD_LAZY
  10319. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10320. # else
  10321. # ifdef DL_LAZY
  10322. # define LT_DLLAZY_OR_NOW DL_LAZY
  10323. # else
  10324. # ifdef RTLD_NOW
  10325. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10326. # else
  10327. # ifdef DL_NOW
  10328. # define LT_DLLAZY_OR_NOW DL_NOW
  10329. # else
  10330. # define LT_DLLAZY_OR_NOW 0
  10331. # endif
  10332. # endif
  10333. # endif
  10334. # endif
  10335. #endif
  10336. void fnord() { int i=42;}
  10337. int main ()
  10338. {
  10339. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10340. int status = $lt_dlunknown;
  10341. if (self)
  10342. {
  10343. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10344. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10345. /* dlclose (self); */
  10346. }
  10347. else
  10348. puts (dlerror ());
  10349. return status;
  10350. }
  10351. _LT_EOF
  10352. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10353. (eval $ac_link) 2>&5
  10354. ac_status=$?
  10355. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10356. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10357. (./conftest; exit; ) >&5 2>/dev/null
  10358. lt_status=$?
  10359. case x$lt_status in
  10360. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10361. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10362. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10363. esac
  10364. else :
  10365. # compilation failed
  10366. lt_cv_dlopen_self=no
  10367. fi
  10368. fi
  10369. rm -fr conftest*
  10370. fi
  10371. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10372. $as_echo "$lt_cv_dlopen_self" >&6; }
  10373. if test "x$lt_cv_dlopen_self" = xyes; then
  10374. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10375. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10376. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10377. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10378. $as_echo_n "(cached) " >&6
  10379. else
  10380. if test "$cross_compiling" = yes; then :
  10381. lt_cv_dlopen_self_static=cross
  10382. else
  10383. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10384. lt_status=$lt_dlunknown
  10385. cat > conftest.$ac_ext <<_LT_EOF
  10386. #line 12053 "configure"
  10387. #include "confdefs.h"
  10388. #if HAVE_DLFCN_H
  10389. #include <dlfcn.h>
  10390. #endif
  10391. #include <stdio.h>
  10392. #ifdef RTLD_GLOBAL
  10393. # define LT_DLGLOBAL RTLD_GLOBAL
  10394. #else
  10395. # ifdef DL_GLOBAL
  10396. # define LT_DLGLOBAL DL_GLOBAL
  10397. # else
  10398. # define LT_DLGLOBAL 0
  10399. # endif
  10400. #endif
  10401. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10402. find out it does not work in some platform. */
  10403. #ifndef LT_DLLAZY_OR_NOW
  10404. # ifdef RTLD_LAZY
  10405. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10406. # else
  10407. # ifdef DL_LAZY
  10408. # define LT_DLLAZY_OR_NOW DL_LAZY
  10409. # else
  10410. # ifdef RTLD_NOW
  10411. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10412. # else
  10413. # ifdef DL_NOW
  10414. # define LT_DLLAZY_OR_NOW DL_NOW
  10415. # else
  10416. # define LT_DLLAZY_OR_NOW 0
  10417. # endif
  10418. # endif
  10419. # endif
  10420. # endif
  10421. #endif
  10422. void fnord() { int i=42;}
  10423. int main ()
  10424. {
  10425. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10426. int status = $lt_dlunknown;
  10427. if (self)
  10428. {
  10429. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10430. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10431. /* dlclose (self); */
  10432. }
  10433. else
  10434. puts (dlerror ());
  10435. return status;
  10436. }
  10437. _LT_EOF
  10438. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10439. (eval $ac_link) 2>&5
  10440. ac_status=$?
  10441. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10442. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10443. (./conftest; exit; ) >&5 2>/dev/null
  10444. lt_status=$?
  10445. case x$lt_status in
  10446. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10447. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10448. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10449. esac
  10450. else :
  10451. # compilation failed
  10452. lt_cv_dlopen_self_static=no
  10453. fi
  10454. fi
  10455. rm -fr conftest*
  10456. fi
  10457. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10458. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10459. fi
  10460. CPPFLAGS="$save_CPPFLAGS"
  10461. LDFLAGS="$save_LDFLAGS"
  10462. LIBS="$save_LIBS"
  10463. ;;
  10464. esac
  10465. case $lt_cv_dlopen_self in
  10466. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10467. *) enable_dlopen_self=unknown ;;
  10468. esac
  10469. case $lt_cv_dlopen_self_static in
  10470. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10471. *) enable_dlopen_self_static=unknown ;;
  10472. esac
  10473. fi
  10474. striplib=
  10475. old_striplib=
  10476. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10477. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10478. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10479. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10480. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10481. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10482. $as_echo "yes" >&6; }
  10483. else
  10484. # FIXME - insert some real tests, host_os isn't really good enough
  10485. case $host_os in
  10486. darwin*)
  10487. if test -n "$STRIP" ; then
  10488. striplib="$STRIP -x"
  10489. old_striplib="$STRIP -S"
  10490. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10491. $as_echo "yes" >&6; }
  10492. else
  10493. { $as_echo "$as_me:$LINENO: result: no" >&5
  10494. $as_echo "no" >&6; }
  10495. fi
  10496. ;;
  10497. *)
  10498. { $as_echo "$as_me:$LINENO: result: no" >&5
  10499. $as_echo "no" >&6; }
  10500. ;;
  10501. esac
  10502. fi
  10503. # Report which library types will actually be built
  10504. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10505. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10506. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10507. $as_echo "$can_build_shared" >&6; }
  10508. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10509. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10510. test "$can_build_shared" = "no" && enable_shared=no
  10511. # On AIX, shared libraries and static libraries use the same namespace, and
  10512. # are all built from PIC.
  10513. case $host_os in
  10514. aix3*)
  10515. test "$enable_shared" = yes && enable_static=no
  10516. if test -n "$RANLIB"; then
  10517. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10518. postinstall_cmds='$RANLIB $lib'
  10519. fi
  10520. ;;
  10521. aix[4-9]*)
  10522. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10523. test "$enable_shared" = yes && enable_static=no
  10524. fi
  10525. ;;
  10526. esac
  10527. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  10528. $as_echo "$enable_shared" >&6; }
  10529. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10530. $as_echo_n "checking whether to build static libraries... " >&6; }
  10531. # Make sure either enable_shared or enable_static is yes.
  10532. test "$enable_shared" = yes || enable_static=yes
  10533. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  10534. $as_echo "$enable_static" >&6; }
  10535. fi
  10536. ac_ext=cpp
  10537. ac_cpp='$CXXCPP $CPPFLAGS'
  10538. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10539. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10540. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10541. CC="$lt_save_CC"
  10542. ac_ext=cpp
  10543. ac_cpp='$CXXCPP $CPPFLAGS'
  10544. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10545. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10546. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10547. archive_cmds_need_lc_CXX=no
  10548. allow_undefined_flag_CXX=
  10549. always_export_symbols_CXX=no
  10550. archive_expsym_cmds_CXX=
  10551. compiler_needs_object_CXX=no
  10552. export_dynamic_flag_spec_CXX=
  10553. hardcode_direct_CXX=no
  10554. hardcode_direct_absolute_CXX=no
  10555. hardcode_libdir_flag_spec_CXX=
  10556. hardcode_libdir_flag_spec_ld_CXX=
  10557. hardcode_libdir_separator_CXX=
  10558. hardcode_minus_L_CXX=no
  10559. hardcode_shlibpath_var_CXX=unsupported
  10560. hardcode_automatic_CXX=no
  10561. inherit_rpath_CXX=no
  10562. module_cmds_CXX=
  10563. module_expsym_cmds_CXX=
  10564. link_all_deplibs_CXX=unknown
  10565. old_archive_cmds_CXX=$old_archive_cmds
  10566. no_undefined_flag_CXX=
  10567. whole_archive_flag_spec_CXX=
  10568. enable_shared_with_static_runtimes_CXX=no
  10569. # Source file extension for C++ test sources.
  10570. ac_ext=cpp
  10571. # Object file extension for compiled C++ test sources.
  10572. objext=o
  10573. objext_CXX=$objext
  10574. # No sense in running all these tests if we already determined that
  10575. # the CXX compiler isn't working. Some variables (like enable_shared)
  10576. # are currently assumed to apply to all compilers on this platform,
  10577. # and will be corrupted by setting them based on a non-working compiler.
  10578. if test "$_lt_caught_CXX_error" != yes; then
  10579. # Code to be used in simple compile tests
  10580. lt_simple_compile_test_code="int some_variable = 0;"
  10581. # Code to be used in simple link tests
  10582. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10583. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10584. # If no C compiler was specified, use CC.
  10585. LTCC=${LTCC-"$CC"}
  10586. # If no C compiler flags were specified, use CFLAGS.
  10587. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10588. # Allow CC to be a program name with arguments.
  10589. compiler=$CC
  10590. # save warnings/boilerplate of simple test code
  10591. ac_outfile=conftest.$ac_objext
  10592. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10593. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10594. _lt_compiler_boilerplate=`cat conftest.err`
  10595. $RM conftest*
  10596. ac_outfile=conftest.$ac_objext
  10597. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10598. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10599. _lt_linker_boilerplate=`cat conftest.err`
  10600. $RM -r conftest*
  10601. # Allow CC to be a program name with arguments.
  10602. lt_save_CC=$CC
  10603. lt_save_LD=$LD
  10604. lt_save_GCC=$GCC
  10605. GCC=$GXX
  10606. lt_save_with_gnu_ld=$with_gnu_ld
  10607. lt_save_path_LD=$lt_cv_path_LD
  10608. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10609. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10610. else
  10611. $as_unset lt_cv_prog_gnu_ld
  10612. fi
  10613. if test -n "${lt_cv_path_LDCXX+set}"; then
  10614. lt_cv_path_LD=$lt_cv_path_LDCXX
  10615. else
  10616. $as_unset lt_cv_path_LD
  10617. fi
  10618. test -z "${LDCXX+set}" || LD=$LDCXX
  10619. CC=${CXX-"c++"}
  10620. compiler=$CC
  10621. compiler_CXX=$CC
  10622. for cc_temp in $compiler""; do
  10623. case $cc_temp in
  10624. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10625. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10626. \-*) ;;
  10627. *) break;;
  10628. esac
  10629. done
  10630. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10631. if test -n "$compiler"; then
  10632. # We don't want -fno-exception when compiling C++ code, so set the
  10633. # no_builtin_flag separately
  10634. if test "$GXX" = yes; then
  10635. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10636. else
  10637. lt_prog_compiler_no_builtin_flag_CXX=
  10638. fi
  10639. if test "$GXX" = yes; then
  10640. # Set up default GNU C++ configuration
  10641. # Check whether --with-gnu-ld was given.
  10642. if test "${with_gnu_ld+set}" = set; then
  10643. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10644. else
  10645. with_gnu_ld=no
  10646. fi
  10647. ac_prog=ld
  10648. if test "$GCC" = yes; then
  10649. # Check if gcc -print-prog-name=ld gives a path.
  10650. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10651. $as_echo_n "checking for ld used by $CC... " >&6; }
  10652. case $host in
  10653. *-*-mingw*)
  10654. # gcc leaves a trailing carriage return which upsets mingw
  10655. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10656. *)
  10657. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10658. esac
  10659. case $ac_prog in
  10660. # Accept absolute paths.
  10661. [\\/]* | ?:[\\/]*)
  10662. re_direlt='/[^/][^/]*/\.\./'
  10663. # Canonicalize the pathname of ld
  10664. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10665. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10666. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10667. done
  10668. test -z "$LD" && LD="$ac_prog"
  10669. ;;
  10670. "")
  10671. # If it fails, then pretend we aren't using GCC.
  10672. ac_prog=ld
  10673. ;;
  10674. *)
  10675. # If it is relative, then search for the first ld in PATH.
  10676. with_gnu_ld=unknown
  10677. ;;
  10678. esac
  10679. elif test "$with_gnu_ld" = yes; then
  10680. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  10681. $as_echo_n "checking for GNU ld... " >&6; }
  10682. else
  10683. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10684. $as_echo_n "checking for non-GNU ld... " >&6; }
  10685. fi
  10686. if test "${lt_cv_path_LD+set}" = set; then
  10687. $as_echo_n "(cached) " >&6
  10688. else
  10689. if test -z "$LD"; then
  10690. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10691. for ac_dir in $PATH; do
  10692. IFS="$lt_save_ifs"
  10693. test -z "$ac_dir" && ac_dir=.
  10694. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10695. lt_cv_path_LD="$ac_dir/$ac_prog"
  10696. # Check to see if the program is GNU ld. I'd rather use --version,
  10697. # but apparently some variants of GNU ld only accept -v.
  10698. # Break only if it was the GNU/non-GNU ld that we prefer.
  10699. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10700. *GNU* | *'with BFD'*)
  10701. test "$with_gnu_ld" != no && break
  10702. ;;
  10703. *)
  10704. test "$with_gnu_ld" != yes && break
  10705. ;;
  10706. esac
  10707. fi
  10708. done
  10709. IFS="$lt_save_ifs"
  10710. else
  10711. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10712. fi
  10713. fi
  10714. LD="$lt_cv_path_LD"
  10715. if test -n "$LD"; then
  10716. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  10717. $as_echo "$LD" >&6; }
  10718. else
  10719. { $as_echo "$as_me:$LINENO: result: no" >&5
  10720. $as_echo "no" >&6; }
  10721. fi
  10722. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10723. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10724. { (exit 1); exit 1; }; }
  10725. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10726. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10727. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10728. $as_echo_n "(cached) " >&6
  10729. else
  10730. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10731. case `$LD -v 2>&1 </dev/null` in
  10732. *GNU* | *'with BFD'*)
  10733. lt_cv_prog_gnu_ld=yes
  10734. ;;
  10735. *)
  10736. lt_cv_prog_gnu_ld=no
  10737. ;;
  10738. esac
  10739. fi
  10740. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10741. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10742. with_gnu_ld=$lt_cv_prog_gnu_ld
  10743. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10744. # archiving commands below assume that GNU ld is being used.
  10745. if test "$with_gnu_ld" = yes; then
  10746. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10747. 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'
  10748. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10749. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10750. # If archive_cmds runs LD, not CC, wlarc should be empty
  10751. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10752. # investigate it a little bit more. (MM)
  10753. wlarc='${wl}'
  10754. # ancient GNU ld didn't support --whole-archive et. al.
  10755. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10756. $GREP 'no-whole-archive' > /dev/null; then
  10757. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10758. else
  10759. whole_archive_flag_spec_CXX=
  10760. fi
  10761. else
  10762. with_gnu_ld=no
  10763. wlarc=
  10764. # A generic and very simple default shared library creation
  10765. # command for GNU C++ for the case where it uses the native
  10766. # linker, instead of GNU ld. If possible, this setting should
  10767. # overridden to take advantage of the native linker features on
  10768. # the platform it is being used on.
  10769. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10770. fi
  10771. # Commands to make compiler produce verbose output that lists
  10772. # what "hidden" libraries, object files and flags are used when
  10773. # linking a shared library.
  10774. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10775. else
  10776. GXX=no
  10777. with_gnu_ld=no
  10778. wlarc=
  10779. fi
  10780. # PORTME: fill in a description of your system's C++ link characteristics
  10781. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10782. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10783. ld_shlibs_CXX=yes
  10784. case $host_os in
  10785. aix3*)
  10786. # FIXME: insert proper C++ library support
  10787. ld_shlibs_CXX=no
  10788. ;;
  10789. aix[4-9]*)
  10790. if test "$host_cpu" = ia64; then
  10791. # On IA64, the linker does run time linking by default, so we don't
  10792. # have to do anything special.
  10793. aix_use_runtimelinking=no
  10794. exp_sym_flag='-Bexport'
  10795. no_entry_flag=""
  10796. else
  10797. aix_use_runtimelinking=no
  10798. # Test if we are trying to use run time linking or normal
  10799. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10800. # need to do runtime linking.
  10801. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10802. for ld_flag in $LDFLAGS; do
  10803. case $ld_flag in
  10804. *-brtl*)
  10805. aix_use_runtimelinking=yes
  10806. break
  10807. ;;
  10808. esac
  10809. done
  10810. ;;
  10811. esac
  10812. exp_sym_flag='-bexport'
  10813. no_entry_flag='-bnoentry'
  10814. fi
  10815. # When large executables or shared objects are built, AIX ld can
  10816. # have problems creating the table of contents. If linking a library
  10817. # or program results in "error TOC overflow" add -mminimal-toc to
  10818. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10819. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10820. archive_cmds_CXX=''
  10821. hardcode_direct_CXX=yes
  10822. hardcode_direct_absolute_CXX=yes
  10823. hardcode_libdir_separator_CXX=':'
  10824. link_all_deplibs_CXX=yes
  10825. file_list_spec_CXX='${wl}-f,'
  10826. if test "$GXX" = yes; then
  10827. case $host_os in aix4.[012]|aix4.[012].*)
  10828. # We only want to do this on AIX 4.2 and lower, the check
  10829. # below for broken collect2 doesn't work under 4.3+
  10830. collect2name=`${CC} -print-prog-name=collect2`
  10831. if test -f "$collect2name" &&
  10832. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10833. then
  10834. # We have reworked collect2
  10835. :
  10836. else
  10837. # We have old collect2
  10838. hardcode_direct_CXX=unsupported
  10839. # It fails to find uninstalled libraries when the uninstalled
  10840. # path is not listed in the libpath. Setting hardcode_minus_L
  10841. # to unsupported forces relinking
  10842. hardcode_minus_L_CXX=yes
  10843. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10844. hardcode_libdir_separator_CXX=
  10845. fi
  10846. esac
  10847. shared_flag='-shared'
  10848. if test "$aix_use_runtimelinking" = yes; then
  10849. shared_flag="$shared_flag "'${wl}-G'
  10850. fi
  10851. else
  10852. # not using gcc
  10853. if test "$host_cpu" = ia64; then
  10854. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10855. # chokes on -Wl,-G. The following line is correct:
  10856. shared_flag='-G'
  10857. else
  10858. if test "$aix_use_runtimelinking" = yes; then
  10859. shared_flag='${wl}-G'
  10860. else
  10861. shared_flag='${wl}-bM:SRE'
  10862. fi
  10863. fi
  10864. fi
  10865. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10866. # It seems that -bexpall does not export symbols beginning with
  10867. # underscore (_), so it is better to generate a list of symbols to
  10868. # export.
  10869. always_export_symbols_CXX=yes
  10870. if test "$aix_use_runtimelinking" = yes; then
  10871. # Warning - without using the other runtime loading flags (-brtl),
  10872. # -berok will link without error, but may produce a broken library.
  10873. allow_undefined_flag_CXX='-berok'
  10874. # Determine the default libpath from the value encoded in an empty
  10875. # executable.
  10876. cat >conftest.$ac_ext <<_ACEOF
  10877. /* confdefs.h. */
  10878. _ACEOF
  10879. cat confdefs.h >>conftest.$ac_ext
  10880. cat >>conftest.$ac_ext <<_ACEOF
  10881. /* end confdefs.h. */
  10882. int
  10883. main ()
  10884. {
  10885. ;
  10886. return 0;
  10887. }
  10888. _ACEOF
  10889. rm -f conftest.$ac_objext conftest$ac_exeext
  10890. if { (ac_try="$ac_link"
  10891. case "(($ac_try" in
  10892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10893. *) ac_try_echo=$ac_try;;
  10894. esac
  10895. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10896. $as_echo "$ac_try_echo") >&5
  10897. (eval "$ac_link") 2>conftest.er1
  10898. ac_status=$?
  10899. grep -v '^ *+' conftest.er1 >conftest.err
  10900. rm -f conftest.er1
  10901. cat conftest.err >&5
  10902. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10903. (exit $ac_status); } && {
  10904. test -z "$ac_cxx_werror_flag" ||
  10905. test ! -s conftest.err
  10906. } && test -s conftest$ac_exeext && {
  10907. test "$cross_compiling" = yes ||
  10908. $as_test_x conftest$ac_exeext
  10909. }; then
  10910. lt_aix_libpath_sed='
  10911. /Import File Strings/,/^$/ {
  10912. /^0/ {
  10913. s/^0 *\(.*\)$/\1/
  10914. p
  10915. }
  10916. }'
  10917. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10918. # Check for a 64-bit object if we didn't find anything.
  10919. if test -z "$aix_libpath"; then
  10920. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10921. fi
  10922. else
  10923. $as_echo "$as_me: failed program was:" >&5
  10924. sed 's/^/| /' conftest.$ac_ext >&5
  10925. fi
  10926. rm -rf conftest.dSYM
  10927. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10928. conftest$ac_exeext conftest.$ac_ext
  10929. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10930. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10931. 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"
  10932. else
  10933. if test "$host_cpu" = ia64; then
  10934. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10935. allow_undefined_flag_CXX="-z nodefs"
  10936. 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"
  10937. else
  10938. # Determine the default libpath from the value encoded in an
  10939. # empty executable.
  10940. cat >conftest.$ac_ext <<_ACEOF
  10941. /* confdefs.h. */
  10942. _ACEOF
  10943. cat confdefs.h >>conftest.$ac_ext
  10944. cat >>conftest.$ac_ext <<_ACEOF
  10945. /* end confdefs.h. */
  10946. int
  10947. main ()
  10948. {
  10949. ;
  10950. return 0;
  10951. }
  10952. _ACEOF
  10953. rm -f conftest.$ac_objext conftest$ac_exeext
  10954. if { (ac_try="$ac_link"
  10955. case "(($ac_try" in
  10956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10957. *) ac_try_echo=$ac_try;;
  10958. esac
  10959. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10960. $as_echo "$ac_try_echo") >&5
  10961. (eval "$ac_link") 2>conftest.er1
  10962. ac_status=$?
  10963. grep -v '^ *+' conftest.er1 >conftest.err
  10964. rm -f conftest.er1
  10965. cat conftest.err >&5
  10966. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10967. (exit $ac_status); } && {
  10968. test -z "$ac_cxx_werror_flag" ||
  10969. test ! -s conftest.err
  10970. } && test -s conftest$ac_exeext && {
  10971. test "$cross_compiling" = yes ||
  10972. $as_test_x conftest$ac_exeext
  10973. }; then
  10974. lt_aix_libpath_sed='
  10975. /Import File Strings/,/^$/ {
  10976. /^0/ {
  10977. s/^0 *\(.*\)$/\1/
  10978. p
  10979. }
  10980. }'
  10981. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10982. # Check for a 64-bit object if we didn't find anything.
  10983. if test -z "$aix_libpath"; then
  10984. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10985. fi
  10986. else
  10987. $as_echo "$as_me: failed program was:" >&5
  10988. sed 's/^/| /' conftest.$ac_ext >&5
  10989. fi
  10990. rm -rf conftest.dSYM
  10991. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10992. conftest$ac_exeext conftest.$ac_ext
  10993. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10994. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10995. # Warning - without using the other run time loading flags,
  10996. # -berok will link without error, but may produce a broken library.
  10997. no_undefined_flag_CXX=' ${wl}-bernotok'
  10998. allow_undefined_flag_CXX=' ${wl}-berok'
  10999. # Exported symbols can be pulled into shared objects from archives
  11000. whole_archive_flag_spec_CXX='$convenience'
  11001. archive_cmds_need_lc_CXX=yes
  11002. # This is similar to how AIX traditionally builds its shared
  11003. # libraries.
  11004. 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'
  11005. fi
  11006. fi
  11007. ;;
  11008. beos*)
  11009. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11010. allow_undefined_flag_CXX=unsupported
  11011. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11012. # support --undefined. This deserves some investigation. FIXME
  11013. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11014. else
  11015. ld_shlibs_CXX=no
  11016. fi
  11017. ;;
  11018. chorus*)
  11019. case $cc_basename in
  11020. *)
  11021. # FIXME: insert proper C++ library support
  11022. ld_shlibs_CXX=no
  11023. ;;
  11024. esac
  11025. ;;
  11026. cygwin* | mingw* | pw32* | cegcc*)
  11027. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11028. # as there is no search path for DLLs.
  11029. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11030. allow_undefined_flag_CXX=unsupported
  11031. always_export_symbols_CXX=no
  11032. enable_shared_with_static_runtimes_CXX=yes
  11033. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11034. 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'
  11035. # If the export-symbols file already is a .def file (1st line
  11036. # is EXPORTS), use it as is; otherwise, prepend...
  11037. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11038. cp $export_symbols $output_objdir/$soname.def;
  11039. else
  11040. echo EXPORTS > $output_objdir/$soname.def;
  11041. cat $export_symbols >> $output_objdir/$soname.def;
  11042. fi~
  11043. $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'
  11044. else
  11045. ld_shlibs_CXX=no
  11046. fi
  11047. ;;
  11048. darwin* | rhapsody*)
  11049. archive_cmds_need_lc_CXX=no
  11050. hardcode_direct_CXX=no
  11051. hardcode_automatic_CXX=yes
  11052. hardcode_shlibpath_var_CXX=unsupported
  11053. whole_archive_flag_spec_CXX=''
  11054. link_all_deplibs_CXX=yes
  11055. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11056. case $cc_basename in
  11057. ifort*) _lt_dar_can_shared=yes ;;
  11058. *) _lt_dar_can_shared=$GCC ;;
  11059. esac
  11060. if test "$_lt_dar_can_shared" = "yes"; then
  11061. output_verbose_link_cmd=echo
  11062. 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}"
  11063. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11064. 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}"
  11065. 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}"
  11066. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11067. 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}"
  11068. 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}"
  11069. fi
  11070. else
  11071. ld_shlibs_CXX=no
  11072. fi
  11073. ;;
  11074. dgux*)
  11075. case $cc_basename in
  11076. ec++*)
  11077. # FIXME: insert proper C++ library support
  11078. ld_shlibs_CXX=no
  11079. ;;
  11080. ghcx*)
  11081. # Green Hills C++ Compiler
  11082. # FIXME: insert proper C++ library support
  11083. ld_shlibs_CXX=no
  11084. ;;
  11085. *)
  11086. # FIXME: insert proper C++ library support
  11087. ld_shlibs_CXX=no
  11088. ;;
  11089. esac
  11090. ;;
  11091. freebsd[12]*)
  11092. # C++ shared libraries reported to be fairly broken before
  11093. # switch to ELF
  11094. ld_shlibs_CXX=no
  11095. ;;
  11096. freebsd-elf*)
  11097. archive_cmds_need_lc_CXX=no
  11098. ;;
  11099. freebsd* | dragonfly*)
  11100. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11101. # conventions
  11102. ld_shlibs_CXX=yes
  11103. ;;
  11104. gnu*)
  11105. ;;
  11106. hpux9*)
  11107. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11108. hardcode_libdir_separator_CXX=:
  11109. export_dynamic_flag_spec_CXX='${wl}-E'
  11110. hardcode_direct_CXX=yes
  11111. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11112. # but as the default
  11113. # location of the library.
  11114. case $cc_basename in
  11115. CC*)
  11116. # FIXME: insert proper C++ library support
  11117. ld_shlibs_CXX=no
  11118. ;;
  11119. aCC*)
  11120. 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'
  11121. # Commands to make compiler produce verbose output that lists
  11122. # what "hidden" libraries, object files and flags are used when
  11123. # linking a shared library.
  11124. #
  11125. # There doesn't appear to be a way to prevent this compiler from
  11126. # explicitly linking system object files so we need to strip them
  11127. # from the output so that they don't get included in the library
  11128. # dependencies.
  11129. 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'
  11130. ;;
  11131. *)
  11132. if test "$GXX" = yes; then
  11133. 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'
  11134. else
  11135. # FIXME: insert proper C++ library support
  11136. ld_shlibs_CXX=no
  11137. fi
  11138. ;;
  11139. esac
  11140. ;;
  11141. hpux10*|hpux11*)
  11142. if test $with_gnu_ld = no; then
  11143. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11144. hardcode_libdir_separator_CXX=:
  11145. case $host_cpu in
  11146. hppa*64*|ia64*)
  11147. ;;
  11148. *)
  11149. export_dynamic_flag_spec_CXX='${wl}-E'
  11150. ;;
  11151. esac
  11152. fi
  11153. case $host_cpu in
  11154. hppa*64*|ia64*)
  11155. hardcode_direct_CXX=no
  11156. hardcode_shlibpath_var_CXX=no
  11157. ;;
  11158. *)
  11159. hardcode_direct_CXX=yes
  11160. hardcode_direct_absolute_CXX=yes
  11161. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11162. # but as the default
  11163. # location of the library.
  11164. ;;
  11165. esac
  11166. case $cc_basename in
  11167. CC*)
  11168. # FIXME: insert proper C++ library support
  11169. ld_shlibs_CXX=no
  11170. ;;
  11171. aCC*)
  11172. case $host_cpu in
  11173. hppa*64*)
  11174. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11175. ;;
  11176. ia64*)
  11177. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11178. ;;
  11179. *)
  11180. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11181. ;;
  11182. esac
  11183. # Commands to make compiler produce verbose output that lists
  11184. # what "hidden" libraries, object files and flags are used when
  11185. # linking a shared library.
  11186. #
  11187. # There doesn't appear to be a way to prevent this compiler from
  11188. # explicitly linking system object files so we need to strip them
  11189. # from the output so that they don't get included in the library
  11190. # dependencies.
  11191. 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'
  11192. ;;
  11193. *)
  11194. if test "$GXX" = yes; then
  11195. if test $with_gnu_ld = no; then
  11196. case $host_cpu in
  11197. hppa*64*)
  11198. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11199. ;;
  11200. ia64*)
  11201. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11202. ;;
  11203. *)
  11204. 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'
  11205. ;;
  11206. esac
  11207. fi
  11208. else
  11209. # FIXME: insert proper C++ library support
  11210. ld_shlibs_CXX=no
  11211. fi
  11212. ;;
  11213. esac
  11214. ;;
  11215. interix[3-9]*)
  11216. hardcode_direct_CXX=no
  11217. hardcode_shlibpath_var_CXX=no
  11218. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11219. export_dynamic_flag_spec_CXX='${wl}-E'
  11220. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11221. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11222. # default) and relocated if they conflict, which is a slow very memory
  11223. # consuming and fragmenting process. To avoid this, we pick a random,
  11224. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11225. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11226. 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'
  11227. 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'
  11228. ;;
  11229. irix5* | irix6*)
  11230. case $cc_basename in
  11231. CC*)
  11232. # SGI C++
  11233. 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'
  11234. # Archives containing C++ object files must be created using
  11235. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11236. # necessary to make sure instantiated templates are included
  11237. # in the archive.
  11238. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11239. ;;
  11240. *)
  11241. if test "$GXX" = yes; then
  11242. if test "$with_gnu_ld" = no; then
  11243. 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'
  11244. else
  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` -o $lib'
  11246. fi
  11247. fi
  11248. link_all_deplibs_CXX=yes
  11249. ;;
  11250. esac
  11251. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11252. hardcode_libdir_separator_CXX=:
  11253. inherit_rpath_CXX=yes
  11254. ;;
  11255. linux* | k*bsd*-gnu)
  11256. case $cc_basename in
  11257. KCC*)
  11258. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11259. # KCC will only create a shared library if the output file
  11260. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11261. # to its proper name (with version) after linking.
  11262. 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'
  11263. 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'
  11264. # Commands to make compiler produce verbose output that lists
  11265. # what "hidden" libraries, object files and flags are used when
  11266. # linking a shared library.
  11267. #
  11268. # There doesn't appear to be a way to prevent this compiler from
  11269. # explicitly linking system object files so we need to strip them
  11270. # from the output so that they don't get included in the library
  11271. # dependencies.
  11272. 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'
  11273. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11274. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11275. # Archives containing C++ object files must be created using
  11276. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11277. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11278. ;;
  11279. icpc* | ecpc* )
  11280. # Intel C++
  11281. with_gnu_ld=yes
  11282. # version 8.0 and above of icpc choke on multiply defined symbols
  11283. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11284. # earlier do not add the objects themselves.
  11285. case `$CC -V 2>&1` in
  11286. *"Version 7."*)
  11287. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11288. 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'
  11289. ;;
  11290. *) # Version 8.0 or newer
  11291. tmp_idyn=
  11292. case $host_cpu in
  11293. ia64*) tmp_idyn=' -i_dynamic';;
  11294. esac
  11295. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11296. 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'
  11297. ;;
  11298. esac
  11299. archive_cmds_need_lc_CXX=no
  11300. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11301. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11302. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11303. ;;
  11304. pgCC* | pgcpp*)
  11305. # Portland Group C++ compiler
  11306. case `$CC -V` in
  11307. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11308. prelink_cmds_CXX='tpldir=Template.dir~
  11309. rm -rf $tpldir~
  11310. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11311. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11312. old_archive_cmds_CXX='tpldir=Template.dir~
  11313. rm -rf $tpldir~
  11314. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11315. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11316. $RANLIB $oldlib'
  11317. archive_cmds_CXX='tpldir=Template.dir~
  11318. rm -rf $tpldir~
  11319. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11320. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11321. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11322. rm -rf $tpldir~
  11323. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11324. $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'
  11325. ;;
  11326. *) # Version 6 will use weak symbols
  11327. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11328. 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'
  11329. ;;
  11330. esac
  11331. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11332. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11333. 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'
  11334. ;;
  11335. cxx*)
  11336. # Compaq C++
  11337. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11338. 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'
  11339. runpath_var=LD_RUN_PATH
  11340. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11341. hardcode_libdir_separator_CXX=:
  11342. # Commands to make compiler produce verbose output that lists
  11343. # what "hidden" libraries, object files and flags are used when
  11344. # linking a shared library.
  11345. #
  11346. # There doesn't appear to be a way to prevent this compiler from
  11347. # explicitly linking system object files so we need to strip them
  11348. # from the output so that they don't get included in the library
  11349. # dependencies.
  11350. 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'
  11351. ;;
  11352. xl*)
  11353. # IBM XL 8.0 on PPC, with GNU ld
  11354. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11355. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11356. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11357. if test "x$supports_anon_versioning" = xyes; then
  11358. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11359. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11360. echo "local: *; };" >> $output_objdir/$libname.ver~
  11361. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11362. fi
  11363. ;;
  11364. *)
  11365. case `$CC -V 2>&1 | sed 5q` in
  11366. *Sun\ C*)
  11367. # Sun C++ 5.9
  11368. no_undefined_flag_CXX=' -zdefs'
  11369. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11370. 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'
  11371. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11372. 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'
  11373. compiler_needs_object_CXX=yes
  11374. # Not sure whether something based on
  11375. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11376. # would be better.
  11377. output_verbose_link_cmd='echo'
  11378. # Archives containing C++ object files must be created using
  11379. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11380. # necessary to make sure instantiated templates are included
  11381. # in the archive.
  11382. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11383. ;;
  11384. esac
  11385. ;;
  11386. esac
  11387. ;;
  11388. lynxos*)
  11389. # FIXME: insert proper C++ library support
  11390. ld_shlibs_CXX=no
  11391. ;;
  11392. m88k*)
  11393. # FIXME: insert proper C++ library support
  11394. ld_shlibs_CXX=no
  11395. ;;
  11396. mvs*)
  11397. case $cc_basename in
  11398. cxx*)
  11399. # FIXME: insert proper C++ library support
  11400. ld_shlibs_CXX=no
  11401. ;;
  11402. *)
  11403. # FIXME: insert proper C++ library support
  11404. ld_shlibs_CXX=no
  11405. ;;
  11406. esac
  11407. ;;
  11408. netbsd*)
  11409. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11410. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11411. wlarc=
  11412. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11413. hardcode_direct_CXX=yes
  11414. hardcode_shlibpath_var_CXX=no
  11415. fi
  11416. # Workaround some broken pre-1.5 toolchains
  11417. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11418. ;;
  11419. *nto* | *qnx*)
  11420. ld_shlibs_CXX=yes
  11421. ;;
  11422. openbsd2*)
  11423. # C++ shared libraries are fairly broken
  11424. ld_shlibs_CXX=no
  11425. ;;
  11426. openbsd*)
  11427. if test -f /usr/libexec/ld.so; then
  11428. hardcode_direct_CXX=yes
  11429. hardcode_shlibpath_var_CXX=no
  11430. hardcode_direct_absolute_CXX=yes
  11431. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11432. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11433. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11434. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11435. export_dynamic_flag_spec_CXX='${wl}-E'
  11436. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11437. fi
  11438. output_verbose_link_cmd=echo
  11439. else
  11440. ld_shlibs_CXX=no
  11441. fi
  11442. ;;
  11443. osf3* | osf4* | osf5*)
  11444. case $cc_basename in
  11445. KCC*)
  11446. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11447. # KCC will only create a shared library if the output file
  11448. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11449. # to its proper name (with version) after linking.
  11450. 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'
  11451. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11452. hardcode_libdir_separator_CXX=:
  11453. # Archives containing C++ object files must be created using
  11454. # the KAI C++ compiler.
  11455. case $host in
  11456. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11457. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11458. esac
  11459. ;;
  11460. RCC*)
  11461. # Rational C++ 2.4.1
  11462. # FIXME: insert proper C++ library support
  11463. ld_shlibs_CXX=no
  11464. ;;
  11465. cxx*)
  11466. case $host in
  11467. osf3*)
  11468. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11469. 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'
  11470. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11471. ;;
  11472. *)
  11473. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11474. 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'
  11475. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11476. echo "-hidden">> $lib.exp~
  11477. $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~
  11478. $RM $lib.exp'
  11479. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11480. ;;
  11481. esac
  11482. hardcode_libdir_separator_CXX=:
  11483. # Commands to make compiler produce verbose output that lists
  11484. # what "hidden" libraries, object files and flags are used when
  11485. # linking a shared library.
  11486. #
  11487. # There doesn't appear to be a way to prevent this compiler from
  11488. # explicitly linking system object files so we need to strip them
  11489. # from the output so that they don't get included in the library
  11490. # dependencies.
  11491. 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'
  11492. ;;
  11493. *)
  11494. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11495. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11496. case $host in
  11497. osf3*)
  11498. 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'
  11499. ;;
  11500. *)
  11501. 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'
  11502. ;;
  11503. esac
  11504. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11505. hardcode_libdir_separator_CXX=:
  11506. # Commands to make compiler produce verbose output that lists
  11507. # what "hidden" libraries, object files and flags are used when
  11508. # linking a shared library.
  11509. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11510. else
  11511. # FIXME: insert proper C++ library support
  11512. ld_shlibs_CXX=no
  11513. fi
  11514. ;;
  11515. esac
  11516. ;;
  11517. psos*)
  11518. # FIXME: insert proper C++ library support
  11519. ld_shlibs_CXX=no
  11520. ;;
  11521. sunos4*)
  11522. case $cc_basename in
  11523. CC*)
  11524. # Sun C++ 4.x
  11525. # FIXME: insert proper C++ library support
  11526. ld_shlibs_CXX=no
  11527. ;;
  11528. lcc*)
  11529. # Lucid
  11530. # FIXME: insert proper C++ library support
  11531. ld_shlibs_CXX=no
  11532. ;;
  11533. *)
  11534. # FIXME: insert proper C++ library support
  11535. ld_shlibs_CXX=no
  11536. ;;
  11537. esac
  11538. ;;
  11539. solaris*)
  11540. case $cc_basename in
  11541. CC*)
  11542. # Sun C++ 4.2, 5.x and Centerline C++
  11543. archive_cmds_need_lc_CXX=yes
  11544. no_undefined_flag_CXX=' -zdefs'
  11545. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11546. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11547. $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'
  11548. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11549. hardcode_shlibpath_var_CXX=no
  11550. case $host_os in
  11551. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11552. *)
  11553. # The compiler driver will combine and reorder linker options,
  11554. # but understands `-z linker_flag'.
  11555. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11556. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11557. ;;
  11558. esac
  11559. link_all_deplibs_CXX=yes
  11560. output_verbose_link_cmd='echo'
  11561. # Archives containing C++ object files must be created using
  11562. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11563. # necessary to make sure instantiated templates are included
  11564. # in the archive.
  11565. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11566. ;;
  11567. gcx*)
  11568. # Green Hills C++ Compiler
  11569. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11570. # The C++ compiler must be used to create the archive.
  11571. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11572. ;;
  11573. *)
  11574. # GNU C++ compiler with Solaris linker
  11575. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11576. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11577. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11578. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11579. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11580. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11581. # Commands to make compiler produce verbose output that lists
  11582. # what "hidden" libraries, object files and flags are used when
  11583. # linking a shared library.
  11584. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11585. else
  11586. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11587. # platform.
  11588. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11589. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11590. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11591. # Commands to make compiler produce verbose output that lists
  11592. # what "hidden" libraries, object files and flags are used when
  11593. # linking a shared library.
  11594. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11595. fi
  11596. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11597. case $host_os in
  11598. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11599. *)
  11600. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11601. ;;
  11602. esac
  11603. fi
  11604. ;;
  11605. esac
  11606. ;;
  11607. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11608. no_undefined_flag_CXX='${wl}-z,text'
  11609. archive_cmds_need_lc_CXX=no
  11610. hardcode_shlibpath_var_CXX=no
  11611. runpath_var='LD_RUN_PATH'
  11612. case $cc_basename in
  11613. CC*)
  11614. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11615. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11616. ;;
  11617. *)
  11618. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11619. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11620. ;;
  11621. esac
  11622. ;;
  11623. sysv5* | sco3.2v5* | sco5v6*)
  11624. # Note: We can NOT use -z defs as we might desire, because we do not
  11625. # link with -lc, and that would cause any symbols used from libc to
  11626. # always be unresolved, which means just about no library would
  11627. # ever link correctly. If we're not using GNU ld we use -z text
  11628. # though, which does catch some bad symbols but isn't as heavy-handed
  11629. # as -z defs.
  11630. no_undefined_flag_CXX='${wl}-z,text'
  11631. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11632. archive_cmds_need_lc_CXX=no
  11633. hardcode_shlibpath_var_CXX=no
  11634. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11635. hardcode_libdir_separator_CXX=':'
  11636. link_all_deplibs_CXX=yes
  11637. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11638. runpath_var='LD_RUN_PATH'
  11639. case $cc_basename in
  11640. CC*)
  11641. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11642. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11643. ;;
  11644. *)
  11645. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11646. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11647. ;;
  11648. esac
  11649. ;;
  11650. tandem*)
  11651. case $cc_basename in
  11652. NCC*)
  11653. # NonStop-UX NCC 3.20
  11654. # FIXME: insert proper C++ library support
  11655. ld_shlibs_CXX=no
  11656. ;;
  11657. *)
  11658. # FIXME: insert proper C++ library support
  11659. ld_shlibs_CXX=no
  11660. ;;
  11661. esac
  11662. ;;
  11663. vxworks*)
  11664. # FIXME: insert proper C++ library support
  11665. ld_shlibs_CXX=no
  11666. ;;
  11667. *)
  11668. # FIXME: insert proper C++ library support
  11669. ld_shlibs_CXX=no
  11670. ;;
  11671. esac
  11672. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11673. $as_echo "$ld_shlibs_CXX" >&6; }
  11674. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11675. GCC_CXX="$GXX"
  11676. LD_CXX="$LD"
  11677. ## CAVEAT EMPTOR:
  11678. ## There is no encapsulation within the following macros, do not change
  11679. ## the running order or otherwise move them around unless you know exactly
  11680. ## what you are doing...
  11681. # Dependencies to place before and after the object being linked:
  11682. predep_objects_CXX=
  11683. postdep_objects_CXX=
  11684. predeps_CXX=
  11685. postdeps_CXX=
  11686. compiler_lib_search_path_CXX=
  11687. cat > conftest.$ac_ext <<_LT_EOF
  11688. class Foo
  11689. {
  11690. public:
  11691. Foo (void) { a = 0; }
  11692. private:
  11693. int a;
  11694. };
  11695. _LT_EOF
  11696. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11697. (eval $ac_compile) 2>&5
  11698. ac_status=$?
  11699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11700. (exit $ac_status); }; then
  11701. # Parse the compiler output and extract the necessary
  11702. # objects, libraries and library flags.
  11703. # Sentinel used to keep track of whether or not we are before
  11704. # the conftest object file.
  11705. pre_test_object_deps_done=no
  11706. for p in `eval "$output_verbose_link_cmd"`; do
  11707. case $p in
  11708. -L* | -R* | -l*)
  11709. # Some compilers place space between "-{L,R}" and the path.
  11710. # Remove the space.
  11711. if test $p = "-L" ||
  11712. test $p = "-R"; then
  11713. prev=$p
  11714. continue
  11715. else
  11716. prev=
  11717. fi
  11718. if test "$pre_test_object_deps_done" = no; then
  11719. case $p in
  11720. -L* | -R*)
  11721. # Internal compiler library paths should come after those
  11722. # provided the user. The postdeps already come after the
  11723. # user supplied libs so there is no need to process them.
  11724. if test -z "$compiler_lib_search_path_CXX"; then
  11725. compiler_lib_search_path_CXX="${prev}${p}"
  11726. else
  11727. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11728. fi
  11729. ;;
  11730. # The "-l" case would never come before the object being
  11731. # linked, so don't bother handling this case.
  11732. esac
  11733. else
  11734. if test -z "$postdeps_CXX"; then
  11735. postdeps_CXX="${prev}${p}"
  11736. else
  11737. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11738. fi
  11739. fi
  11740. ;;
  11741. *.$objext)
  11742. # This assumes that the test object file only shows up
  11743. # once in the compiler output.
  11744. if test "$p" = "conftest.$objext"; then
  11745. pre_test_object_deps_done=yes
  11746. continue
  11747. fi
  11748. if test "$pre_test_object_deps_done" = no; then
  11749. if test -z "$predep_objects_CXX"; then
  11750. predep_objects_CXX="$p"
  11751. else
  11752. predep_objects_CXX="$predep_objects_CXX $p"
  11753. fi
  11754. else
  11755. if test -z "$postdep_objects_CXX"; then
  11756. postdep_objects_CXX="$p"
  11757. else
  11758. postdep_objects_CXX="$postdep_objects_CXX $p"
  11759. fi
  11760. fi
  11761. ;;
  11762. *) ;; # Ignore the rest.
  11763. esac
  11764. done
  11765. # Clean up.
  11766. rm -f a.out a.exe
  11767. else
  11768. echo "libtool.m4: error: problem compiling CXX test program"
  11769. fi
  11770. $RM -f confest.$objext
  11771. # PORTME: override above test on systems where it is broken
  11772. case $host_os in
  11773. interix[3-9]*)
  11774. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11775. # hack all around it, let's just trust "g++" to DTRT.
  11776. predep_objects_CXX=
  11777. postdep_objects_CXX=
  11778. postdeps_CXX=
  11779. ;;
  11780. linux*)
  11781. case `$CC -V 2>&1 | sed 5q` in
  11782. *Sun\ C*)
  11783. # Sun C++ 5.9
  11784. # The more standards-conforming stlport4 library is
  11785. # incompatible with the Cstd library. Avoid specifying
  11786. # it if it's in CXXFLAGS. Ignore libCrun as
  11787. # -library=stlport4 depends on it.
  11788. case " $CXX $CXXFLAGS " in
  11789. *" -library=stlport4 "*)
  11790. solaris_use_stlport4=yes
  11791. ;;
  11792. esac
  11793. if test "$solaris_use_stlport4" != yes; then
  11794. postdeps_CXX='-library=Cstd -library=Crun'
  11795. fi
  11796. ;;
  11797. esac
  11798. ;;
  11799. solaris*)
  11800. case $cc_basename in
  11801. CC*)
  11802. # The more standards-conforming stlport4 library is
  11803. # incompatible with the Cstd library. Avoid specifying
  11804. # it if it's in CXXFLAGS. Ignore libCrun as
  11805. # -library=stlport4 depends on it.
  11806. case " $CXX $CXXFLAGS " in
  11807. *" -library=stlport4 "*)
  11808. solaris_use_stlport4=yes
  11809. ;;
  11810. esac
  11811. # Adding this requires a known-good setup of shared libraries for
  11812. # Sun compiler versions before 5.6, else PIC objects from an old
  11813. # archive will be linked into the output, leading to subtle bugs.
  11814. if test "$solaris_use_stlport4" != yes; then
  11815. postdeps_CXX='-library=Cstd -library=Crun'
  11816. fi
  11817. ;;
  11818. esac
  11819. ;;
  11820. esac
  11821. case " $postdeps_CXX " in
  11822. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11823. esac
  11824. compiler_lib_search_dirs_CXX=
  11825. if test -n "${compiler_lib_search_path_CXX}"; then
  11826. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11827. fi
  11828. lt_prog_compiler_wl_CXX=
  11829. lt_prog_compiler_pic_CXX=
  11830. lt_prog_compiler_static_CXX=
  11831. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11832. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11833. # C++ specific cases for pic, static, wl, etc.
  11834. if test "$GXX" = yes; then
  11835. lt_prog_compiler_wl_CXX='-Wl,'
  11836. lt_prog_compiler_static_CXX='-static'
  11837. case $host_os in
  11838. aix*)
  11839. # All AIX code is PIC.
  11840. if test "$host_cpu" = ia64; then
  11841. # AIX 5 now supports IA64 processor
  11842. lt_prog_compiler_static_CXX='-Bstatic'
  11843. fi
  11844. ;;
  11845. amigaos*)
  11846. case $host_cpu in
  11847. powerpc)
  11848. # see comment about AmigaOS4 .so support
  11849. lt_prog_compiler_pic_CXX='-fPIC'
  11850. ;;
  11851. m68k)
  11852. # FIXME: we need at least 68020 code to build shared libraries, but
  11853. # adding the `-m68020' flag to GCC prevents building anything better,
  11854. # like `-m68040'.
  11855. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11856. ;;
  11857. esac
  11858. ;;
  11859. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11860. # PIC is the default for these OSes.
  11861. ;;
  11862. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11863. # This hack is so that the source file can tell whether it is being
  11864. # built for inclusion in a dll (and should export symbols for example).
  11865. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11866. # (--disable-auto-import) libraries
  11867. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11868. ;;
  11869. darwin* | rhapsody*)
  11870. # PIC is the default on this platform
  11871. # Common symbols not allowed in MH_DYLIB files
  11872. lt_prog_compiler_pic_CXX='-fno-common'
  11873. ;;
  11874. *djgpp*)
  11875. # DJGPP does not support shared libraries at all
  11876. lt_prog_compiler_pic_CXX=
  11877. ;;
  11878. interix[3-9]*)
  11879. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11880. # Instead, we relocate shared libraries at runtime.
  11881. ;;
  11882. sysv4*MP*)
  11883. if test -d /usr/nec; then
  11884. lt_prog_compiler_pic_CXX=-Kconform_pic
  11885. fi
  11886. ;;
  11887. hpux*)
  11888. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11889. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11890. # sets the default TLS model and affects inlining.
  11891. case $host_cpu in
  11892. hppa*64*)
  11893. ;;
  11894. *)
  11895. lt_prog_compiler_pic_CXX='-fPIC'
  11896. ;;
  11897. esac
  11898. ;;
  11899. *qnx* | *nto*)
  11900. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11901. # it will coredump.
  11902. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11903. ;;
  11904. *)
  11905. lt_prog_compiler_pic_CXX='-fPIC'
  11906. ;;
  11907. esac
  11908. else
  11909. case $host_os in
  11910. aix[4-9]*)
  11911. # All AIX code is PIC.
  11912. if test "$host_cpu" = ia64; then
  11913. # AIX 5 now supports IA64 processor
  11914. lt_prog_compiler_static_CXX='-Bstatic'
  11915. else
  11916. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11917. fi
  11918. ;;
  11919. chorus*)
  11920. case $cc_basename in
  11921. cxch68*)
  11922. # Green Hills C++ Compiler
  11923. # _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"
  11924. ;;
  11925. esac
  11926. ;;
  11927. dgux*)
  11928. case $cc_basename in
  11929. ec++*)
  11930. lt_prog_compiler_pic_CXX='-KPIC'
  11931. ;;
  11932. ghcx*)
  11933. # Green Hills C++ Compiler
  11934. lt_prog_compiler_pic_CXX='-pic'
  11935. ;;
  11936. *)
  11937. ;;
  11938. esac
  11939. ;;
  11940. freebsd* | dragonfly*)
  11941. # FreeBSD uses GNU C++
  11942. ;;
  11943. hpux9* | hpux10* | hpux11*)
  11944. case $cc_basename in
  11945. CC*)
  11946. lt_prog_compiler_wl_CXX='-Wl,'
  11947. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11948. if test "$host_cpu" != ia64; then
  11949. lt_prog_compiler_pic_CXX='+Z'
  11950. fi
  11951. ;;
  11952. aCC*)
  11953. lt_prog_compiler_wl_CXX='-Wl,'
  11954. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11955. case $host_cpu in
  11956. hppa*64*|ia64*)
  11957. # +Z the default
  11958. ;;
  11959. *)
  11960. lt_prog_compiler_pic_CXX='+Z'
  11961. ;;
  11962. esac
  11963. ;;
  11964. *)
  11965. ;;
  11966. esac
  11967. ;;
  11968. interix*)
  11969. # This is c89, which is MS Visual C++ (no shared libs)
  11970. # Anyone wants to do a port?
  11971. ;;
  11972. irix5* | irix6* | nonstopux*)
  11973. case $cc_basename in
  11974. CC*)
  11975. lt_prog_compiler_wl_CXX='-Wl,'
  11976. lt_prog_compiler_static_CXX='-non_shared'
  11977. # CC pic flag -KPIC is the default.
  11978. ;;
  11979. *)
  11980. ;;
  11981. esac
  11982. ;;
  11983. linux* | k*bsd*-gnu)
  11984. case $cc_basename in
  11985. KCC*)
  11986. # KAI C++ Compiler
  11987. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11988. lt_prog_compiler_pic_CXX='-fPIC'
  11989. ;;
  11990. ecpc* )
  11991. # old Intel C++ for x86_64 which still supported -KPIC.
  11992. lt_prog_compiler_wl_CXX='-Wl,'
  11993. lt_prog_compiler_pic_CXX='-KPIC'
  11994. lt_prog_compiler_static_CXX='-static'
  11995. ;;
  11996. icpc* )
  11997. # Intel C++, used to be incompatible with GCC.
  11998. # ICC 10 doesn't accept -KPIC any more.
  11999. lt_prog_compiler_wl_CXX='-Wl,'
  12000. lt_prog_compiler_pic_CXX='-fPIC'
  12001. lt_prog_compiler_static_CXX='-static'
  12002. ;;
  12003. pgCC* | pgcpp*)
  12004. # Portland Group C++ compiler
  12005. lt_prog_compiler_wl_CXX='-Wl,'
  12006. lt_prog_compiler_pic_CXX='-fpic'
  12007. lt_prog_compiler_static_CXX='-Bstatic'
  12008. ;;
  12009. cxx*)
  12010. # Compaq C++
  12011. # Make sure the PIC flag is empty. It appears that all Alpha
  12012. # Linux and Compaq Tru64 Unix objects are PIC.
  12013. lt_prog_compiler_pic_CXX=
  12014. lt_prog_compiler_static_CXX='-non_shared'
  12015. ;;
  12016. xlc* | xlC*)
  12017. # IBM XL 8.0 on PPC
  12018. lt_prog_compiler_wl_CXX='-Wl,'
  12019. lt_prog_compiler_pic_CXX='-qpic'
  12020. lt_prog_compiler_static_CXX='-qstaticlink'
  12021. ;;
  12022. *)
  12023. case `$CC -V 2>&1 | sed 5q` in
  12024. *Sun\ C*)
  12025. # Sun C++ 5.9
  12026. lt_prog_compiler_pic_CXX='-KPIC'
  12027. lt_prog_compiler_static_CXX='-Bstatic'
  12028. lt_prog_compiler_wl_CXX='-Qoption ld '
  12029. ;;
  12030. esac
  12031. ;;
  12032. esac
  12033. ;;
  12034. lynxos*)
  12035. ;;
  12036. m88k*)
  12037. ;;
  12038. mvs*)
  12039. case $cc_basename in
  12040. cxx*)
  12041. lt_prog_compiler_pic_CXX='-W c,exportall'
  12042. ;;
  12043. *)
  12044. ;;
  12045. esac
  12046. ;;
  12047. netbsd* | netbsdelf*-gnu)
  12048. ;;
  12049. *qnx* | *nto*)
  12050. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12051. # it will coredump.
  12052. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12053. ;;
  12054. osf3* | osf4* | osf5*)
  12055. case $cc_basename in
  12056. KCC*)
  12057. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12058. ;;
  12059. RCC*)
  12060. # Rational C++ 2.4.1
  12061. lt_prog_compiler_pic_CXX='-pic'
  12062. ;;
  12063. cxx*)
  12064. # Digital/Compaq C++
  12065. lt_prog_compiler_wl_CXX='-Wl,'
  12066. # Make sure the PIC flag is empty. It appears that all Alpha
  12067. # Linux and Compaq Tru64 Unix objects are PIC.
  12068. lt_prog_compiler_pic_CXX=
  12069. lt_prog_compiler_static_CXX='-non_shared'
  12070. ;;
  12071. *)
  12072. ;;
  12073. esac
  12074. ;;
  12075. psos*)
  12076. ;;
  12077. solaris*)
  12078. case $cc_basename in
  12079. CC*)
  12080. # Sun C++ 4.2, 5.x and Centerline C++
  12081. lt_prog_compiler_pic_CXX='-KPIC'
  12082. lt_prog_compiler_static_CXX='-Bstatic'
  12083. lt_prog_compiler_wl_CXX='-Qoption ld '
  12084. ;;
  12085. gcx*)
  12086. # Green Hills C++ Compiler
  12087. lt_prog_compiler_pic_CXX='-PIC'
  12088. ;;
  12089. *)
  12090. ;;
  12091. esac
  12092. ;;
  12093. sunos4*)
  12094. case $cc_basename in
  12095. CC*)
  12096. # Sun C++ 4.x
  12097. lt_prog_compiler_pic_CXX='-pic'
  12098. lt_prog_compiler_static_CXX='-Bstatic'
  12099. ;;
  12100. lcc*)
  12101. # Lucid
  12102. lt_prog_compiler_pic_CXX='-pic'
  12103. ;;
  12104. *)
  12105. ;;
  12106. esac
  12107. ;;
  12108. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12109. case $cc_basename in
  12110. CC*)
  12111. lt_prog_compiler_wl_CXX='-Wl,'
  12112. lt_prog_compiler_pic_CXX='-KPIC'
  12113. lt_prog_compiler_static_CXX='-Bstatic'
  12114. ;;
  12115. esac
  12116. ;;
  12117. tandem*)
  12118. case $cc_basename in
  12119. NCC*)
  12120. # NonStop-UX NCC 3.20
  12121. lt_prog_compiler_pic_CXX='-KPIC'
  12122. ;;
  12123. *)
  12124. ;;
  12125. esac
  12126. ;;
  12127. vxworks*)
  12128. ;;
  12129. *)
  12130. lt_prog_compiler_can_build_shared_CXX=no
  12131. ;;
  12132. esac
  12133. fi
  12134. case $host_os in
  12135. # For platforms which do not support PIC, -DPIC is meaningless:
  12136. *djgpp*)
  12137. lt_prog_compiler_pic_CXX=
  12138. ;;
  12139. *)
  12140. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12141. ;;
  12142. esac
  12143. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12144. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12145. #
  12146. # Check to make sure the PIC flag actually works.
  12147. #
  12148. if test -n "$lt_prog_compiler_pic_CXX"; then
  12149. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12150. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12151. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12152. $as_echo_n "(cached) " >&6
  12153. else
  12154. lt_cv_prog_compiler_pic_works_CXX=no
  12155. ac_outfile=conftest.$ac_objext
  12156. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12157. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12158. # Insert the option either (1) after the last *FLAGS variable, or
  12159. # (2) before a word containing "conftest.", or (3) at the end.
  12160. # Note that $ac_compile itself does not contain backslashes and begins
  12161. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12162. # The option is referenced via a variable to avoid confusing sed.
  12163. lt_compile=`echo "$ac_compile" | $SED \
  12164. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12165. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12166. -e 's:$: $lt_compiler_flag:'`
  12167. (eval echo "\"\$as_me:14073: $lt_compile\"" >&5)
  12168. (eval "$lt_compile" 2>conftest.err)
  12169. ac_status=$?
  12170. cat conftest.err >&5
  12171. echo "$as_me:14077: \$? = $ac_status" >&5
  12172. if (exit $ac_status) && test -s "$ac_outfile"; then
  12173. # The compiler can only warn and ignore the option if not recognized
  12174. # So say no if there are warnings other than the usual output.
  12175. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12176. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12177. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12178. lt_cv_prog_compiler_pic_works_CXX=yes
  12179. fi
  12180. fi
  12181. $RM conftest*
  12182. fi
  12183. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12184. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12185. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12186. case $lt_prog_compiler_pic_CXX in
  12187. "" | " "*) ;;
  12188. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12189. esac
  12190. else
  12191. lt_prog_compiler_pic_CXX=
  12192. lt_prog_compiler_can_build_shared_CXX=no
  12193. fi
  12194. fi
  12195. #
  12196. # Check to make sure the static flag actually works.
  12197. #
  12198. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12199. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12200. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12201. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12202. $as_echo_n "(cached) " >&6
  12203. else
  12204. lt_cv_prog_compiler_static_works_CXX=no
  12205. save_LDFLAGS="$LDFLAGS"
  12206. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12207. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12208. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12209. # The linker can only warn and ignore the option if not recognized
  12210. # So say no if there are warnings
  12211. if test -s conftest.err; then
  12212. # Append any errors to the config.log.
  12213. cat conftest.err 1>&5
  12214. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12215. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12216. if diff conftest.exp conftest.er2 >/dev/null; then
  12217. lt_cv_prog_compiler_static_works_CXX=yes
  12218. fi
  12219. else
  12220. lt_cv_prog_compiler_static_works_CXX=yes
  12221. fi
  12222. fi
  12223. $RM -r conftest*
  12224. LDFLAGS="$save_LDFLAGS"
  12225. fi
  12226. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12227. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12228. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12229. :
  12230. else
  12231. lt_prog_compiler_static_CXX=
  12232. fi
  12233. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12234. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12235. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12236. $as_echo_n "(cached) " >&6
  12237. else
  12238. lt_cv_prog_compiler_c_o_CXX=no
  12239. $RM -r conftest 2>/dev/null
  12240. mkdir conftest
  12241. cd conftest
  12242. mkdir out
  12243. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12244. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12245. # Insert the option either (1) after the last *FLAGS variable, or
  12246. # (2) before a word containing "conftest.", or (3) at the end.
  12247. # Note that $ac_compile itself does not contain backslashes and begins
  12248. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12249. lt_compile=`echo "$ac_compile" | $SED \
  12250. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12252. -e 's:$: $lt_compiler_flag:'`
  12253. (eval echo "\"\$as_me:14172: $lt_compile\"" >&5)
  12254. (eval "$lt_compile" 2>out/conftest.err)
  12255. ac_status=$?
  12256. cat out/conftest.err >&5
  12257. echo "$as_me:14176: \$? = $ac_status" >&5
  12258. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12259. then
  12260. # The compiler can only warn and ignore the option if not recognized
  12261. # So say no if there are warnings
  12262. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12263. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12264. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12265. lt_cv_prog_compiler_c_o_CXX=yes
  12266. fi
  12267. fi
  12268. chmod u+w . 2>&5
  12269. $RM conftest*
  12270. # SGI C++ compiler will create directory out/ii_files/ for
  12271. # template instantiation
  12272. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12273. $RM out/* && rmdir out
  12274. cd ..
  12275. $RM -r conftest
  12276. $RM conftest*
  12277. fi
  12278. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12279. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12280. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12281. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12282. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12283. $as_echo_n "(cached) " >&6
  12284. else
  12285. lt_cv_prog_compiler_c_o_CXX=no
  12286. $RM -r conftest 2>/dev/null
  12287. mkdir conftest
  12288. cd conftest
  12289. mkdir out
  12290. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12291. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12292. # Insert the option either (1) after the last *FLAGS variable, or
  12293. # (2) before a word containing "conftest.", or (3) at the end.
  12294. # Note that $ac_compile itself does not contain backslashes and begins
  12295. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12296. lt_compile=`echo "$ac_compile" | $SED \
  12297. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12298. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12299. -e 's:$: $lt_compiler_flag:'`
  12300. (eval echo "\"\$as_me:14224: $lt_compile\"" >&5)
  12301. (eval "$lt_compile" 2>out/conftest.err)
  12302. ac_status=$?
  12303. cat out/conftest.err >&5
  12304. echo "$as_me:14228: \$? = $ac_status" >&5
  12305. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12306. then
  12307. # The compiler can only warn and ignore the option if not recognized
  12308. # So say no if there are warnings
  12309. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12310. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12311. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12312. lt_cv_prog_compiler_c_o_CXX=yes
  12313. fi
  12314. fi
  12315. chmod u+w . 2>&5
  12316. $RM conftest*
  12317. # SGI C++ compiler will create directory out/ii_files/ for
  12318. # template instantiation
  12319. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12320. $RM out/* && rmdir out
  12321. cd ..
  12322. $RM -r conftest
  12323. $RM conftest*
  12324. fi
  12325. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12326. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12327. hard_links="nottested"
  12328. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12329. # do not overwrite the value of need_locks provided by the user
  12330. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12331. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12332. hard_links=yes
  12333. $RM conftest*
  12334. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12335. touch conftest.a
  12336. ln conftest.a conftest.b 2>&5 || hard_links=no
  12337. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12338. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  12339. $as_echo "$hard_links" >&6; }
  12340. if test "$hard_links" = no; then
  12341. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12342. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12343. need_locks=warn
  12344. fi
  12345. else
  12346. need_locks=no
  12347. fi
  12348. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12349. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12350. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12351. case $host_os in
  12352. aix[4-9]*)
  12353. # If we're using GNU nm, then we don't want the "-C" option.
  12354. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12355. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12356. 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'
  12357. else
  12358. 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'
  12359. fi
  12360. ;;
  12361. pw32*)
  12362. export_symbols_cmds_CXX="$ltdll_cmds"
  12363. ;;
  12364. cygwin* | mingw* | cegcc*)
  12365. 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'
  12366. ;;
  12367. linux* | k*bsd*-gnu)
  12368. link_all_deplibs_CXX=no
  12369. ;;
  12370. *)
  12371. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12372. ;;
  12373. esac
  12374. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12375. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12376. $as_echo "$ld_shlibs_CXX" >&6; }
  12377. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12378. with_gnu_ld_CXX=$with_gnu_ld
  12379. #
  12380. # Do we need to explicitly link libc?
  12381. #
  12382. case "x$archive_cmds_need_lc_CXX" in
  12383. x|xyes)
  12384. # Assume -lc should be added
  12385. archive_cmds_need_lc_CXX=yes
  12386. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12387. case $archive_cmds_CXX in
  12388. *'~'*)
  12389. # FIXME: we may have to deal with multi-command sequences.
  12390. ;;
  12391. '$CC '*)
  12392. # Test whether the compiler implicitly links with -lc since on some
  12393. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12394. # to ld, don't add -lc before -lgcc.
  12395. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12396. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12397. $RM conftest*
  12398. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12399. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12400. (eval $ac_compile) 2>&5
  12401. ac_status=$?
  12402. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12403. (exit $ac_status); } 2>conftest.err; then
  12404. soname=conftest
  12405. lib=conftest
  12406. libobjs=conftest.$ac_objext
  12407. deplibs=
  12408. wl=$lt_prog_compiler_wl_CXX
  12409. pic_flag=$lt_prog_compiler_pic_CXX
  12410. compiler_flags=-v
  12411. linker_flags=-v
  12412. verstring=
  12413. output_objdir=.
  12414. libname=conftest
  12415. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12416. allow_undefined_flag_CXX=
  12417. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12418. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12419. ac_status=$?
  12420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12421. (exit $ac_status); }
  12422. then
  12423. archive_cmds_need_lc_CXX=no
  12424. else
  12425. archive_cmds_need_lc_CXX=yes
  12426. fi
  12427. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12428. else
  12429. cat conftest.err 1>&5
  12430. fi
  12431. $RM conftest*
  12432. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12433. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  12434. ;;
  12435. esac
  12436. fi
  12437. ;;
  12438. esac
  12439. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12440. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12441. library_names_spec=
  12442. libname_spec='lib$name'
  12443. soname_spec=
  12444. shrext_cmds=".so"
  12445. postinstall_cmds=
  12446. postuninstall_cmds=
  12447. finish_cmds=
  12448. finish_eval=
  12449. shlibpath_var=
  12450. shlibpath_overrides_runpath=unknown
  12451. version_type=none
  12452. dynamic_linker="$host_os ld.so"
  12453. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12454. need_lib_prefix=unknown
  12455. hardcode_into_libs=no
  12456. # when you set need_version to no, make sure it does not cause -set_version
  12457. # flags to be left without arguments
  12458. need_version=unknown
  12459. case $host_os in
  12460. aix3*)
  12461. version_type=linux
  12462. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12463. shlibpath_var=LIBPATH
  12464. # AIX 3 has no versioning support, so we append a major version to the name.
  12465. soname_spec='${libname}${release}${shared_ext}$major'
  12466. ;;
  12467. aix[4-9]*)
  12468. version_type=linux
  12469. need_lib_prefix=no
  12470. need_version=no
  12471. hardcode_into_libs=yes
  12472. if test "$host_cpu" = ia64; then
  12473. # AIX 5 supports IA64
  12474. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12475. shlibpath_var=LD_LIBRARY_PATH
  12476. else
  12477. # With GCC up to 2.95.x, collect2 would create an import file
  12478. # for dependence libraries. The import file would start with
  12479. # the line `#! .'. This would cause the generated library to
  12480. # depend on `.', always an invalid library. This was fixed in
  12481. # development snapshots of GCC prior to 3.0.
  12482. case $host_os in
  12483. aix4 | aix4.[01] | aix4.[01].*)
  12484. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12485. echo ' yes '
  12486. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12487. :
  12488. else
  12489. can_build_shared=no
  12490. fi
  12491. ;;
  12492. esac
  12493. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12494. # soname into executable. Probably we can add versioning support to
  12495. # collect2, so additional links can be useful in future.
  12496. if test "$aix_use_runtimelinking" = yes; then
  12497. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12498. # instead of lib<name>.a to let people know that these are not
  12499. # typical AIX shared libraries.
  12500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12501. else
  12502. # We preserve .a as extension for shared libraries through AIX4.2
  12503. # and later when we are not doing run time linking.
  12504. library_names_spec='${libname}${release}.a $libname.a'
  12505. soname_spec='${libname}${release}${shared_ext}$major'
  12506. fi
  12507. shlibpath_var=LIBPATH
  12508. fi
  12509. ;;
  12510. amigaos*)
  12511. case $host_cpu in
  12512. powerpc)
  12513. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12514. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12516. ;;
  12517. m68k)
  12518. library_names_spec='$libname.ixlibrary $libname.a'
  12519. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12520. 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'
  12521. ;;
  12522. esac
  12523. ;;
  12524. beos*)
  12525. library_names_spec='${libname}${shared_ext}'
  12526. dynamic_linker="$host_os ld.so"
  12527. shlibpath_var=LIBRARY_PATH
  12528. ;;
  12529. bsdi[45]*)
  12530. version_type=linux
  12531. need_version=no
  12532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12533. soname_spec='${libname}${release}${shared_ext}$major'
  12534. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12535. shlibpath_var=LD_LIBRARY_PATH
  12536. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12537. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12538. # the default ld.so.conf also contains /usr/contrib/lib and
  12539. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12540. # libtool to hard-code these into programs
  12541. ;;
  12542. cygwin* | mingw* | pw32* | cegcc*)
  12543. version_type=windows
  12544. shrext_cmds=".dll"
  12545. need_version=no
  12546. need_lib_prefix=no
  12547. case $GCC,$host_os in
  12548. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12549. library_names_spec='$libname.dll.a'
  12550. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12551. postinstall_cmds='base_file=`basename \${file}`~
  12552. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12553. dldir=$destdir/`dirname \$dlpath`~
  12554. test -d \$dldir || mkdir -p \$dldir~
  12555. $install_prog $dir/$dlname \$dldir/$dlname~
  12556. chmod a+x \$dldir/$dlname~
  12557. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12558. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12559. fi'
  12560. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12561. dlpath=$dir/\$dldll~
  12562. $RM \$dlpath'
  12563. shlibpath_overrides_runpath=yes
  12564. case $host_os in
  12565. cygwin*)
  12566. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12567. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12568. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12569. ;;
  12570. mingw* | cegcc*)
  12571. # MinGW DLLs use traditional 'lib' prefix
  12572. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12573. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12574. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12575. # It is most probably a Windows format PATH printed by
  12576. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12577. # path with ; separators, and with drive letters. We can handle the
  12578. # drive letters (cygwin fileutils understands them), so leave them,
  12579. # especially as we might pass files found there to a mingw objdump,
  12580. # which wouldn't understand a cygwinified path. Ahh.
  12581. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12582. else
  12583. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12584. fi
  12585. ;;
  12586. pw32*)
  12587. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12588. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12589. ;;
  12590. esac
  12591. ;;
  12592. *)
  12593. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12594. ;;
  12595. esac
  12596. dynamic_linker='Win32 ld.exe'
  12597. # FIXME: first we should search . and the directory the executable is in
  12598. shlibpath_var=PATH
  12599. ;;
  12600. darwin* | rhapsody*)
  12601. dynamic_linker="$host_os dyld"
  12602. version_type=darwin
  12603. need_lib_prefix=no
  12604. need_version=no
  12605. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12606. soname_spec='${libname}${release}${major}$shared_ext'
  12607. shlibpath_overrides_runpath=yes
  12608. shlibpath_var=DYLD_LIBRARY_PATH
  12609. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12610. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12611. ;;
  12612. dgux*)
  12613. version_type=linux
  12614. need_lib_prefix=no
  12615. need_version=no
  12616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12617. soname_spec='${libname}${release}${shared_ext}$major'
  12618. shlibpath_var=LD_LIBRARY_PATH
  12619. ;;
  12620. freebsd1*)
  12621. dynamic_linker=no
  12622. ;;
  12623. freebsd* | dragonfly*)
  12624. # DragonFly does not have aout. When/if they implement a new
  12625. # versioning mechanism, adjust this.
  12626. if test -x /usr/bin/objformat; then
  12627. objformat=`/usr/bin/objformat`
  12628. else
  12629. case $host_os in
  12630. freebsd[123]*) objformat=aout ;;
  12631. *) objformat=elf ;;
  12632. esac
  12633. fi
  12634. version_type=freebsd-$objformat
  12635. case $version_type in
  12636. freebsd-elf*)
  12637. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12638. need_version=no
  12639. need_lib_prefix=no
  12640. ;;
  12641. freebsd-*)
  12642. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12643. need_version=yes
  12644. ;;
  12645. esac
  12646. shlibpath_var=LD_LIBRARY_PATH
  12647. case $host_os in
  12648. freebsd2*)
  12649. shlibpath_overrides_runpath=yes
  12650. ;;
  12651. freebsd3.[01]* | freebsdelf3.[01]*)
  12652. shlibpath_overrides_runpath=yes
  12653. hardcode_into_libs=yes
  12654. ;;
  12655. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12656. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12657. shlibpath_overrides_runpath=no
  12658. hardcode_into_libs=yes
  12659. ;;
  12660. *) # from 4.6 on, and DragonFly
  12661. shlibpath_overrides_runpath=yes
  12662. hardcode_into_libs=yes
  12663. ;;
  12664. esac
  12665. ;;
  12666. gnu*)
  12667. version_type=linux
  12668. need_lib_prefix=no
  12669. need_version=no
  12670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12671. soname_spec='${libname}${release}${shared_ext}$major'
  12672. shlibpath_var=LD_LIBRARY_PATH
  12673. hardcode_into_libs=yes
  12674. ;;
  12675. hpux9* | hpux10* | hpux11*)
  12676. # Give a soname corresponding to the major version so that dld.sl refuses to
  12677. # link against other versions.
  12678. version_type=sunos
  12679. need_lib_prefix=no
  12680. need_version=no
  12681. case $host_cpu in
  12682. ia64*)
  12683. shrext_cmds='.so'
  12684. hardcode_into_libs=yes
  12685. dynamic_linker="$host_os dld.so"
  12686. shlibpath_var=LD_LIBRARY_PATH
  12687. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12689. soname_spec='${libname}${release}${shared_ext}$major'
  12690. if test "X$HPUX_IA64_MODE" = X32; then
  12691. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12692. else
  12693. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12694. fi
  12695. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12696. ;;
  12697. hppa*64*)
  12698. shrext_cmds='.sl'
  12699. hardcode_into_libs=yes
  12700. dynamic_linker="$host_os dld.sl"
  12701. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12702. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12704. soname_spec='${libname}${release}${shared_ext}$major'
  12705. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12706. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12707. ;;
  12708. *)
  12709. shrext_cmds='.sl'
  12710. dynamic_linker="$host_os dld.sl"
  12711. shlibpath_var=SHLIB_PATH
  12712. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12713. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12714. soname_spec='${libname}${release}${shared_ext}$major'
  12715. ;;
  12716. esac
  12717. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12718. postinstall_cmds='chmod 555 $lib'
  12719. ;;
  12720. interix[3-9]*)
  12721. version_type=linux
  12722. need_lib_prefix=no
  12723. need_version=no
  12724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12725. soname_spec='${libname}${release}${shared_ext}$major'
  12726. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12727. shlibpath_var=LD_LIBRARY_PATH
  12728. shlibpath_overrides_runpath=no
  12729. hardcode_into_libs=yes
  12730. ;;
  12731. irix5* | irix6* | nonstopux*)
  12732. case $host_os in
  12733. nonstopux*) version_type=nonstopux ;;
  12734. *)
  12735. if test "$lt_cv_prog_gnu_ld" = yes; then
  12736. version_type=linux
  12737. else
  12738. version_type=irix
  12739. fi ;;
  12740. esac
  12741. need_lib_prefix=no
  12742. need_version=no
  12743. soname_spec='${libname}${release}${shared_ext}$major'
  12744. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12745. case $host_os in
  12746. irix5* | nonstopux*)
  12747. libsuff= shlibsuff=
  12748. ;;
  12749. *)
  12750. case $LD in # libtool.m4 will add one of these switches to LD
  12751. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12752. libsuff= shlibsuff= libmagic=32-bit;;
  12753. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12754. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12755. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12756. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12757. *) libsuff= shlibsuff= libmagic=never-match;;
  12758. esac
  12759. ;;
  12760. esac
  12761. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12762. shlibpath_overrides_runpath=no
  12763. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12764. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12765. hardcode_into_libs=yes
  12766. ;;
  12767. # No shared lib support for Linux oldld, aout, or coff.
  12768. linux*oldld* | linux*aout* | linux*coff*)
  12769. dynamic_linker=no
  12770. ;;
  12771. # This must be Linux ELF.
  12772. linux* | k*bsd*-gnu)
  12773. version_type=linux
  12774. need_lib_prefix=no
  12775. need_version=no
  12776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12777. soname_spec='${libname}${release}${shared_ext}$major'
  12778. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12779. shlibpath_var=LD_LIBRARY_PATH
  12780. shlibpath_overrides_runpath=no
  12781. # Some binutils ld are patched to set DT_RUNPATH
  12782. save_LDFLAGS=$LDFLAGS
  12783. save_libdir=$libdir
  12784. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12785. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12786. cat >conftest.$ac_ext <<_ACEOF
  12787. /* confdefs.h. */
  12788. _ACEOF
  12789. cat confdefs.h >>conftest.$ac_ext
  12790. cat >>conftest.$ac_ext <<_ACEOF
  12791. /* end confdefs.h. */
  12792. int
  12793. main ()
  12794. {
  12795. ;
  12796. return 0;
  12797. }
  12798. _ACEOF
  12799. rm -f conftest.$ac_objext conftest$ac_exeext
  12800. if { (ac_try="$ac_link"
  12801. case "(($ac_try" in
  12802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12803. *) ac_try_echo=$ac_try;;
  12804. esac
  12805. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12806. $as_echo "$ac_try_echo") >&5
  12807. (eval "$ac_link") 2>conftest.er1
  12808. ac_status=$?
  12809. grep -v '^ *+' conftest.er1 >conftest.err
  12810. rm -f conftest.er1
  12811. cat conftest.err >&5
  12812. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12813. (exit $ac_status); } && {
  12814. test -z "$ac_cxx_werror_flag" ||
  12815. test ! -s conftest.err
  12816. } && test -s conftest$ac_exeext && {
  12817. test "$cross_compiling" = yes ||
  12818. $as_test_x conftest$ac_exeext
  12819. }; then
  12820. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  12821. shlibpath_overrides_runpath=yes
  12822. fi
  12823. else
  12824. $as_echo "$as_me: failed program was:" >&5
  12825. sed 's/^/| /' conftest.$ac_ext >&5
  12826. fi
  12827. rm -rf conftest.dSYM
  12828. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12829. conftest$ac_exeext conftest.$ac_ext
  12830. LDFLAGS=$save_LDFLAGS
  12831. libdir=$save_libdir
  12832. # This implies no fast_install, which is unacceptable.
  12833. # Some rework will be needed to allow for fast_install
  12834. # before this can be enabled.
  12835. hardcode_into_libs=yes
  12836. # Append ld.so.conf contents to the search path
  12837. if test -f /etc/ld.so.conf; then
  12838. 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' ' '`
  12839. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12840. fi
  12841. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12842. # powerpc, because MkLinux only supported shared libraries with the
  12843. # GNU dynamic linker. Since this was broken with cross compilers,
  12844. # most powerpc-linux boxes support dynamic linking these days and
  12845. # people can always --disable-shared, the test was removed, and we
  12846. # assume the GNU/Linux dynamic linker is in use.
  12847. dynamic_linker='GNU/Linux ld.so'
  12848. ;;
  12849. netbsdelf*-gnu)
  12850. version_type=linux
  12851. need_lib_prefix=no
  12852. need_version=no
  12853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12854. soname_spec='${libname}${release}${shared_ext}$major'
  12855. shlibpath_var=LD_LIBRARY_PATH
  12856. shlibpath_overrides_runpath=no
  12857. hardcode_into_libs=yes
  12858. dynamic_linker='NetBSD ld.elf_so'
  12859. ;;
  12860. netbsd*)
  12861. version_type=sunos
  12862. need_lib_prefix=no
  12863. need_version=no
  12864. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12866. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12867. dynamic_linker='NetBSD (a.out) ld.so'
  12868. else
  12869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12870. soname_spec='${libname}${release}${shared_ext}$major'
  12871. dynamic_linker='NetBSD ld.elf_so'
  12872. fi
  12873. shlibpath_var=LD_LIBRARY_PATH
  12874. shlibpath_overrides_runpath=yes
  12875. hardcode_into_libs=yes
  12876. ;;
  12877. newsos6)
  12878. version_type=linux
  12879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12880. shlibpath_var=LD_LIBRARY_PATH
  12881. shlibpath_overrides_runpath=yes
  12882. ;;
  12883. *nto* | *qnx*)
  12884. version_type=qnx
  12885. need_lib_prefix=no
  12886. need_version=no
  12887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12888. soname_spec='${libname}${release}${shared_ext}$major'
  12889. shlibpath_var=LD_LIBRARY_PATH
  12890. shlibpath_overrides_runpath=no
  12891. hardcode_into_libs=yes
  12892. dynamic_linker='ldqnx.so'
  12893. ;;
  12894. openbsd*)
  12895. version_type=sunos
  12896. sys_lib_dlsearch_path_spec="/usr/lib"
  12897. need_lib_prefix=no
  12898. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12899. case $host_os in
  12900. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12901. *) need_version=no ;;
  12902. esac
  12903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12904. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12905. shlibpath_var=LD_LIBRARY_PATH
  12906. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12907. case $host_os in
  12908. openbsd2.[89] | openbsd2.[89].*)
  12909. shlibpath_overrides_runpath=no
  12910. ;;
  12911. *)
  12912. shlibpath_overrides_runpath=yes
  12913. ;;
  12914. esac
  12915. else
  12916. shlibpath_overrides_runpath=yes
  12917. fi
  12918. ;;
  12919. os2*)
  12920. libname_spec='$name'
  12921. shrext_cmds=".dll"
  12922. need_lib_prefix=no
  12923. library_names_spec='$libname${shared_ext} $libname.a'
  12924. dynamic_linker='OS/2 ld.exe'
  12925. shlibpath_var=LIBPATH
  12926. ;;
  12927. osf3* | osf4* | osf5*)
  12928. version_type=osf
  12929. need_lib_prefix=no
  12930. need_version=no
  12931. soname_spec='${libname}${release}${shared_ext}$major'
  12932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12933. shlibpath_var=LD_LIBRARY_PATH
  12934. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12935. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12936. ;;
  12937. rdos*)
  12938. dynamic_linker=no
  12939. ;;
  12940. solaris*)
  12941. version_type=linux
  12942. need_lib_prefix=no
  12943. need_version=no
  12944. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12945. soname_spec='${libname}${release}${shared_ext}$major'
  12946. shlibpath_var=LD_LIBRARY_PATH
  12947. shlibpath_overrides_runpath=yes
  12948. hardcode_into_libs=yes
  12949. # ldd complains unless libraries are executable
  12950. postinstall_cmds='chmod +x $lib'
  12951. ;;
  12952. sunos4*)
  12953. version_type=sunos
  12954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12955. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12956. shlibpath_var=LD_LIBRARY_PATH
  12957. shlibpath_overrides_runpath=yes
  12958. if test "$with_gnu_ld" = yes; then
  12959. need_lib_prefix=no
  12960. fi
  12961. need_version=yes
  12962. ;;
  12963. sysv4 | sysv4.3*)
  12964. version_type=linux
  12965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12966. soname_spec='${libname}${release}${shared_ext}$major'
  12967. shlibpath_var=LD_LIBRARY_PATH
  12968. case $host_vendor in
  12969. sni)
  12970. shlibpath_overrides_runpath=no
  12971. need_lib_prefix=no
  12972. runpath_var=LD_RUN_PATH
  12973. ;;
  12974. siemens)
  12975. need_lib_prefix=no
  12976. ;;
  12977. motorola)
  12978. need_lib_prefix=no
  12979. need_version=no
  12980. shlibpath_overrides_runpath=no
  12981. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12982. ;;
  12983. esac
  12984. ;;
  12985. sysv4*MP*)
  12986. if test -d /usr/nec ;then
  12987. version_type=linux
  12988. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12989. soname_spec='$libname${shared_ext}.$major'
  12990. shlibpath_var=LD_LIBRARY_PATH
  12991. fi
  12992. ;;
  12993. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12994. version_type=freebsd-elf
  12995. need_lib_prefix=no
  12996. need_version=no
  12997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12998. soname_spec='${libname}${release}${shared_ext}$major'
  12999. shlibpath_var=LD_LIBRARY_PATH
  13000. shlibpath_overrides_runpath=yes
  13001. hardcode_into_libs=yes
  13002. if test "$with_gnu_ld" = yes; then
  13003. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13004. else
  13005. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13006. case $host_os in
  13007. sco3.2v5*)
  13008. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13009. ;;
  13010. esac
  13011. fi
  13012. sys_lib_dlsearch_path_spec='/usr/lib'
  13013. ;;
  13014. tpf*)
  13015. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13016. version_type=linux
  13017. need_lib_prefix=no
  13018. need_version=no
  13019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13020. shlibpath_var=LD_LIBRARY_PATH
  13021. shlibpath_overrides_runpath=no
  13022. hardcode_into_libs=yes
  13023. ;;
  13024. uts4*)
  13025. version_type=linux
  13026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13027. soname_spec='${libname}${release}${shared_ext}$major'
  13028. shlibpath_var=LD_LIBRARY_PATH
  13029. ;;
  13030. *)
  13031. dynamic_linker=no
  13032. ;;
  13033. esac
  13034. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13035. $as_echo "$dynamic_linker" >&6; }
  13036. test "$dynamic_linker" = no && can_build_shared=no
  13037. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13038. if test "$GCC" = yes; then
  13039. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13040. fi
  13041. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13042. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13043. fi
  13044. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13045. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13046. fi
  13047. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13048. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13049. hardcode_action_CXX=
  13050. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13051. test -n "$runpath_var_CXX" ||
  13052. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13053. # We can hardcode non-existent directories.
  13054. if test "$hardcode_direct_CXX" != no &&
  13055. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13056. # have to relink, otherwise we might link with an installed library
  13057. # when we should be linking with a yet-to-be-installed one
  13058. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13059. test "$hardcode_minus_L_CXX" != no; then
  13060. # Linking always hardcodes the temporary library directory.
  13061. hardcode_action_CXX=relink
  13062. else
  13063. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13064. hardcode_action_CXX=immediate
  13065. fi
  13066. else
  13067. # We cannot hardcode anything, or else we can only hardcode existing
  13068. # directories.
  13069. hardcode_action_CXX=unsupported
  13070. fi
  13071. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13072. $as_echo "$hardcode_action_CXX" >&6; }
  13073. if test "$hardcode_action_CXX" = relink ||
  13074. test "$inherit_rpath_CXX" = yes; then
  13075. # Fast installation is not supported
  13076. enable_fast_install=no
  13077. elif test "$shlibpath_overrides_runpath" = yes ||
  13078. test "$enable_shared" = no; then
  13079. # Fast installation is not necessary
  13080. enable_fast_install=needless
  13081. fi
  13082. fi # test -n "$compiler"
  13083. CC=$lt_save_CC
  13084. LDCXX=$LD
  13085. LD=$lt_save_LD
  13086. GCC=$lt_save_GCC
  13087. with_gnu_ld=$lt_save_with_gnu_ld
  13088. lt_cv_path_LDCXX=$lt_cv_path_LD
  13089. lt_cv_path_LD=$lt_save_path_LD
  13090. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13091. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13092. fi # test "$_lt_caught_CXX_error" != yes
  13093. ac_ext=cpp
  13094. ac_cpp='$CXXCPP $CPPFLAGS'
  13095. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13096. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13097. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13098. ac_config_commands="$ac_config_commands libtool"
  13099. # Only expand once:
  13100. # Check whether --enable-debug was given.
  13101. if test "${enable_debug+set}" = set; then
  13102. enableval=$enable_debug; if test x$enableval = xyes ; then
  13103. enable_debug="yes"
  13104. else
  13105. enable_debug="no"
  13106. fi
  13107. else
  13108. enable_debug="yes"
  13109. fi
  13110. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  13111. CXXFLAGS="-O0 -ggdb -Wall -Wcast-align -Wmissing-declarations -Wpointer-arith"
  13112. fi
  13113. # Check for Boost libraries
  13114. # Check whether --with-boost was given.
  13115. if test "${with_boost+set}" = set; then
  13116. withval=$with_boost;
  13117. if test "$withval" = "no"; then
  13118. want_boost="no"
  13119. elif test "$withval" = "yes"; then
  13120. want_boost="yes"
  13121. ac_boost_path=""
  13122. else
  13123. want_boost="yes"
  13124. ac_boost_path="$withval"
  13125. fi
  13126. else
  13127. want_boost="yes"
  13128. fi
  13129. # Check whether --with-boost-libdir was given.
  13130. if test "${with_boost_libdir+set}" = set; then
  13131. withval=$with_boost_libdir;
  13132. if test -d $withval
  13133. then
  13134. ac_boost_lib_path="$withval"
  13135. else
  13136. { { $as_echo "$as_me:$LINENO: error: --with-boost-libdir expected directory name" >&5
  13137. $as_echo "$as_me: error: --with-boost-libdir expected directory name" >&2;}
  13138. { (exit 1); exit 1; }; }
  13139. fi
  13140. else
  13141. ac_boost_lib_path=""
  13142. fi
  13143. if test "x$want_boost" = "xyes"; then
  13144. boost_lib_version_req=1.36
  13145. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  13146. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  13147. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  13148. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  13149. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  13150. boost_lib_version_req_sub_minor="0"
  13151. fi
  13152. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  13153. { $as_echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
  13154. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  13155. succeeded=no
  13156. if test "$ac_boost_path" != ""; then
  13157. BOOST_LDFLAGS="-L$ac_boost_path/lib"
  13158. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  13159. else
  13160. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  13161. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  13162. BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
  13163. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  13164. break;
  13165. fi
  13166. done
  13167. fi
  13168. if test "$ac_boost_lib_path" != ""; then
  13169. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  13170. fi
  13171. CPPFLAGS_SAVED="$CPPFLAGS"
  13172. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13173. export CPPFLAGS
  13174. LDFLAGS_SAVED="$LDFLAGS"
  13175. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13176. export LDFLAGS
  13177. ac_ext=cpp
  13178. ac_cpp='$CXXCPP $CPPFLAGS'
  13179. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13180. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13181. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13182. cat >conftest.$ac_ext <<_ACEOF
  13183. /* confdefs.h. */
  13184. _ACEOF
  13185. cat confdefs.h >>conftest.$ac_ext
  13186. cat >>conftest.$ac_ext <<_ACEOF
  13187. /* end confdefs.h. */
  13188. #include <boost/version.hpp>
  13189. int
  13190. main ()
  13191. {
  13192. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13193. // Everything is okay
  13194. #else
  13195. # error Boost version is too old
  13196. #endif
  13197. ;
  13198. return 0;
  13199. }
  13200. _ACEOF
  13201. rm -f conftest.$ac_objext
  13202. if { (ac_try="$ac_compile"
  13203. case "(($ac_try" in
  13204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13205. *) ac_try_echo=$ac_try;;
  13206. esac
  13207. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13208. $as_echo "$ac_try_echo") >&5
  13209. (eval "$ac_compile") 2>conftest.er1
  13210. ac_status=$?
  13211. grep -v '^ *+' conftest.er1 >conftest.err
  13212. rm -f conftest.er1
  13213. cat conftest.err >&5
  13214. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13215. (exit $ac_status); } && {
  13216. test -z "$ac_cxx_werror_flag" ||
  13217. test ! -s conftest.err
  13218. } && test -s conftest.$ac_objext; then
  13219. { $as_echo "$as_me:$LINENO: result: yes" >&5
  13220. $as_echo "yes" >&6; }
  13221. succeeded=yes
  13222. found_system=yes
  13223. else
  13224. $as_echo "$as_me: failed program was:" >&5
  13225. sed 's/^/| /' conftest.$ac_ext >&5
  13226. fi
  13227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13228. ac_ext=cpp
  13229. ac_cpp='$CXXCPP $CPPFLAGS'
  13230. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13231. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13232. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13233. if test "x$succeeded" != "xyes"; then
  13234. _version=0
  13235. if test "$ac_boost_path" != ""; then
  13236. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13237. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13238. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13239. V_CHECK=`expr $_version_tmp \> $_version`
  13240. if test "$V_CHECK" = "1" ; then
  13241. _version=$_version_tmp
  13242. fi
  13243. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13244. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  13245. done
  13246. fi
  13247. else
  13248. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  13249. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13250. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13251. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13252. V_CHECK=`expr $_version_tmp \> $_version`
  13253. if test "$V_CHECK" = "1" ; then
  13254. _version=$_version_tmp
  13255. best_path=$ac_boost_path
  13256. fi
  13257. done
  13258. fi
  13259. done
  13260. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13261. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  13262. if test "$ac_boost_lib_path" = ""
  13263. then
  13264. BOOST_LDFLAGS="-L$best_path/lib"
  13265. fi
  13266. if test "x$BOOST_ROOT" != "x"; then
  13267. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
  13268. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  13269. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  13270. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  13271. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  13272. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  13273. { $as_echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
  13274. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  13275. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  13276. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
  13277. fi
  13278. fi
  13279. fi
  13280. fi
  13281. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13282. export CPPFLAGS
  13283. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13284. export LDFLAGS
  13285. ac_ext=cpp
  13286. ac_cpp='$CXXCPP $CPPFLAGS'
  13287. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13288. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13289. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13290. cat >conftest.$ac_ext <<_ACEOF
  13291. /* confdefs.h. */
  13292. _ACEOF
  13293. cat confdefs.h >>conftest.$ac_ext
  13294. cat >>conftest.$ac_ext <<_ACEOF
  13295. /* end confdefs.h. */
  13296. #include <boost/version.hpp>
  13297. int
  13298. main ()
  13299. {
  13300. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13301. // Everything is okay
  13302. #else
  13303. # error Boost version is too old
  13304. #endif
  13305. ;
  13306. return 0;
  13307. }
  13308. _ACEOF
  13309. rm -f conftest.$ac_objext
  13310. if { (ac_try="$ac_compile"
  13311. case "(($ac_try" in
  13312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13313. *) ac_try_echo=$ac_try;;
  13314. esac
  13315. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13316. $as_echo "$ac_try_echo") >&5
  13317. (eval "$ac_compile") 2>conftest.er1
  13318. ac_status=$?
  13319. grep -v '^ *+' conftest.er1 >conftest.err
  13320. rm -f conftest.er1
  13321. cat conftest.err >&5
  13322. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13323. (exit $ac_status); } && {
  13324. test -z "$ac_cxx_werror_flag" ||
  13325. test ! -s conftest.err
  13326. } && test -s conftest.$ac_objext; then
  13327. { $as_echo "$as_me:$LINENO: result: yes" >&5
  13328. $as_echo "yes" >&6; }
  13329. succeeded=yes
  13330. found_system=yes
  13331. else
  13332. $as_echo "$as_me: failed program was:" >&5
  13333. sed 's/^/| /' conftest.$ac_ext >&5
  13334. fi
  13335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13336. ac_ext=cpp
  13337. ac_cpp='$CXXCPP $CPPFLAGS'
  13338. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13339. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13340. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13341. fi
  13342. if test "$succeeded" != "yes" ; then
  13343. if test "$_version" = "0" ; then
  13344. { { $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
  13345. $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;}
  13346. { (exit 1); exit 1; }; }
  13347. else
  13348. { $as_echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
  13349. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  13350. fi
  13351. else
  13352. cat >>confdefs.h <<\_ACEOF
  13353. #define HAVE_BOOST /**/
  13354. _ACEOF
  13355. fi
  13356. CPPFLAGS="$CPPFLAGS_SAVED"
  13357. LDFLAGS="$LDFLAGS_SAVED"
  13358. fi
  13359. # Check whether --with-boost-system was given.
  13360. if test "${with_boost_system+set}" = set; then
  13361. withval=$with_boost_system;
  13362. if test "$withval" = "no"; then
  13363. want_boost="no"
  13364. elif test "$withval" = "yes"; then
  13365. want_boost="yes"
  13366. ax_boost_user_system_lib=""
  13367. else
  13368. want_boost="yes"
  13369. ax_boost_user_system_lib="$withval"
  13370. fi
  13371. else
  13372. want_boost="yes"
  13373. fi
  13374. if test "x$want_boost" = "xyes"; then
  13375. CPPFLAGS_SAVED="$CPPFLAGS"
  13376. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13377. export CPPFLAGS
  13378. LDFLAGS_SAVED="$LDFLAGS"
  13379. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13380. export LDFLAGS
  13381. { $as_echo "$as_me:$LINENO: checking whether the Boost::System library is available" >&5
  13382. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  13383. if test "${ax_cv_boost_system+set}" = set; then
  13384. $as_echo_n "(cached) " >&6
  13385. else
  13386. ac_ext=cpp
  13387. ac_cpp='$CXXCPP $CPPFLAGS'
  13388. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13389. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13390. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13391. CXXFLAGS_SAVE=$CXXFLAGS
  13392. cat >conftest.$ac_ext <<_ACEOF
  13393. /* confdefs.h. */
  13394. _ACEOF
  13395. cat confdefs.h >>conftest.$ac_ext
  13396. cat >>conftest.$ac_ext <<_ACEOF
  13397. /* end confdefs.h. */
  13398. #include <boost/system/error_code.hpp>
  13399. int
  13400. main ()
  13401. {
  13402. boost::system::system_category
  13403. ;
  13404. return 0;
  13405. }
  13406. _ACEOF
  13407. rm -f conftest.$ac_objext
  13408. if { (ac_try="$ac_compile"
  13409. case "(($ac_try" in
  13410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13411. *) ac_try_echo=$ac_try;;
  13412. esac
  13413. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13414. $as_echo "$ac_try_echo") >&5
  13415. (eval "$ac_compile") 2>conftest.er1
  13416. ac_status=$?
  13417. grep -v '^ *+' conftest.er1 >conftest.err
  13418. rm -f conftest.er1
  13419. cat conftest.err >&5
  13420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13421. (exit $ac_status); } && {
  13422. test -z "$ac_cxx_werror_flag" ||
  13423. test ! -s conftest.err
  13424. } && test -s conftest.$ac_objext; then
  13425. ax_cv_boost_system=yes
  13426. else
  13427. $as_echo "$as_me: failed program was:" >&5
  13428. sed 's/^/| /' conftest.$ac_ext >&5
  13429. ax_cv_boost_system=no
  13430. fi
  13431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13432. CXXFLAGS=$CXXFLAGS_SAVE
  13433. ac_ext=cpp
  13434. ac_cpp='$CXXCPP $CPPFLAGS'
  13435. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13436. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13437. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13438. fi
  13439. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_system" >&5
  13440. $as_echo "$ax_cv_boost_system" >&6; }
  13441. if test "x$ax_cv_boost_system" = "xyes"; then
  13442. cat >>confdefs.h <<\_ACEOF
  13443. #define HAVE_BOOST_SYSTEM /**/
  13444. _ACEOF
  13445. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13446. LDFLAGS_SAVE=$LDFLAGS
  13447. if test "x$ax_boost_user_system_lib" = "x"; then
  13448. 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
  13449. ax_lib=${libextension}
  13450. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13451. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13452. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13453. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13454. $as_echo_n "(cached) " >&6
  13455. else
  13456. ac_check_lib_save_LIBS=$LIBS
  13457. LIBS="-l$ax_lib $LIBS"
  13458. cat >conftest.$ac_ext <<_ACEOF
  13459. /* confdefs.h. */
  13460. _ACEOF
  13461. cat confdefs.h >>conftest.$ac_ext
  13462. cat >>conftest.$ac_ext <<_ACEOF
  13463. /* end confdefs.h. */
  13464. /* Override any GCC internal prototype to avoid an error.
  13465. Use char because int might match the return type of a GCC
  13466. builtin and then its argument prototype would still apply. */
  13467. #ifdef __cplusplus
  13468. extern "C"
  13469. #endif
  13470. char exit ();
  13471. int
  13472. main ()
  13473. {
  13474. return exit ();
  13475. ;
  13476. return 0;
  13477. }
  13478. _ACEOF
  13479. rm -f conftest.$ac_objext conftest$ac_exeext
  13480. if { (ac_try="$ac_link"
  13481. case "(($ac_try" in
  13482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13483. *) ac_try_echo=$ac_try;;
  13484. esac
  13485. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13486. $as_echo "$ac_try_echo") >&5
  13487. (eval "$ac_link") 2>conftest.er1
  13488. ac_status=$?
  13489. grep -v '^ *+' conftest.er1 >conftest.err
  13490. rm -f conftest.er1
  13491. cat conftest.err >&5
  13492. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13493. (exit $ac_status); } && {
  13494. test -z "$ac_cxx_werror_flag" ||
  13495. test ! -s conftest.err
  13496. } && test -s conftest$ac_exeext && {
  13497. test "$cross_compiling" = yes ||
  13498. $as_test_x conftest$ac_exeext
  13499. }; then
  13500. eval "$as_ac_Lib=yes"
  13501. else
  13502. $as_echo "$as_me: failed program was:" >&5
  13503. sed 's/^/| /' conftest.$ac_ext >&5
  13504. eval "$as_ac_Lib=no"
  13505. fi
  13506. rm -rf conftest.dSYM
  13507. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13508. conftest$ac_exeext conftest.$ac_ext
  13509. LIBS=$ac_check_lib_save_LIBS
  13510. fi
  13511. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13512. $as_echo "$as_val"'`
  13513. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13514. $as_echo "$ac_res" >&6; }
  13515. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13516. $as_echo "$as_val"'`
  13517. if test "x$as_val" = x""yes; then
  13518. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13519. else
  13520. link_system="no"
  13521. fi
  13522. done
  13523. if test "x$link_system" != "xyes"; then
  13524. 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
  13525. ax_lib=${libextension}
  13526. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13527. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13528. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13529. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13530. $as_echo_n "(cached) " >&6
  13531. else
  13532. ac_check_lib_save_LIBS=$LIBS
  13533. LIBS="-l$ax_lib $LIBS"
  13534. cat >conftest.$ac_ext <<_ACEOF
  13535. /* confdefs.h. */
  13536. _ACEOF
  13537. cat confdefs.h >>conftest.$ac_ext
  13538. cat >>conftest.$ac_ext <<_ACEOF
  13539. /* end confdefs.h. */
  13540. /* Override any GCC internal prototype to avoid an error.
  13541. Use char because int might match the return type of a GCC
  13542. builtin and then its argument prototype would still apply. */
  13543. #ifdef __cplusplus
  13544. extern "C"
  13545. #endif
  13546. char exit ();
  13547. int
  13548. main ()
  13549. {
  13550. return exit ();
  13551. ;
  13552. return 0;
  13553. }
  13554. _ACEOF
  13555. rm -f conftest.$ac_objext conftest$ac_exeext
  13556. if { (ac_try="$ac_link"
  13557. case "(($ac_try" in
  13558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13559. *) ac_try_echo=$ac_try;;
  13560. esac
  13561. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13562. $as_echo "$ac_try_echo") >&5
  13563. (eval "$ac_link") 2>conftest.er1
  13564. ac_status=$?
  13565. grep -v '^ *+' conftest.er1 >conftest.err
  13566. rm -f conftest.er1
  13567. cat conftest.err >&5
  13568. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13569. (exit $ac_status); } && {
  13570. test -z "$ac_cxx_werror_flag" ||
  13571. test ! -s conftest.err
  13572. } && test -s conftest$ac_exeext && {
  13573. test "$cross_compiling" = yes ||
  13574. $as_test_x conftest$ac_exeext
  13575. }; then
  13576. eval "$as_ac_Lib=yes"
  13577. else
  13578. $as_echo "$as_me: failed program was:" >&5
  13579. sed 's/^/| /' conftest.$ac_ext >&5
  13580. eval "$as_ac_Lib=no"
  13581. fi
  13582. rm -rf conftest.dSYM
  13583. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13584. conftest$ac_exeext conftest.$ac_ext
  13585. LIBS=$ac_check_lib_save_LIBS
  13586. fi
  13587. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13588. $as_echo "$as_val"'`
  13589. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13590. $as_echo "$ac_res" >&6; }
  13591. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13592. $as_echo "$as_val"'`
  13593. if test "x$as_val" = x""yes; then
  13594. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13595. else
  13596. link_system="no"
  13597. fi
  13598. done
  13599. fi
  13600. else
  13601. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  13602. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13603. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13604. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13605. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13606. $as_echo_n "(cached) " >&6
  13607. else
  13608. ac_check_lib_save_LIBS=$LIBS
  13609. LIBS="-l$ax_lib $LIBS"
  13610. cat >conftest.$ac_ext <<_ACEOF
  13611. /* confdefs.h. */
  13612. _ACEOF
  13613. cat confdefs.h >>conftest.$ac_ext
  13614. cat >>conftest.$ac_ext <<_ACEOF
  13615. /* end confdefs.h. */
  13616. /* Override any GCC internal prototype to avoid an error.
  13617. Use char because int might match the return type of a GCC
  13618. builtin and then its argument prototype would still apply. */
  13619. #ifdef __cplusplus
  13620. extern "C"
  13621. #endif
  13622. char exit ();
  13623. int
  13624. main ()
  13625. {
  13626. return exit ();
  13627. ;
  13628. return 0;
  13629. }
  13630. _ACEOF
  13631. rm -f conftest.$ac_objext conftest$ac_exeext
  13632. if { (ac_try="$ac_link"
  13633. case "(($ac_try" in
  13634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13635. *) ac_try_echo=$ac_try;;
  13636. esac
  13637. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13638. $as_echo "$ac_try_echo") >&5
  13639. (eval "$ac_link") 2>conftest.er1
  13640. ac_status=$?
  13641. grep -v '^ *+' conftest.er1 >conftest.err
  13642. rm -f conftest.er1
  13643. cat conftest.err >&5
  13644. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13645. (exit $ac_status); } && {
  13646. test -z "$ac_cxx_werror_flag" ||
  13647. test ! -s conftest.err
  13648. } && test -s conftest$ac_exeext && {
  13649. test "$cross_compiling" = yes ||
  13650. $as_test_x conftest$ac_exeext
  13651. }; then
  13652. eval "$as_ac_Lib=yes"
  13653. else
  13654. $as_echo "$as_me: failed program was:" >&5
  13655. sed 's/^/| /' conftest.$ac_ext >&5
  13656. eval "$as_ac_Lib=no"
  13657. fi
  13658. rm -rf conftest.dSYM
  13659. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13660. conftest$ac_exeext conftest.$ac_ext
  13661. LIBS=$ac_check_lib_save_LIBS
  13662. fi
  13663. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13664. $as_echo "$as_val"'`
  13665. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13666. $as_echo "$ac_res" >&6; }
  13667. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13668. $as_echo "$as_val"'`
  13669. if test "x$as_val" = x""yes; then
  13670. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13671. else
  13672. link_system="no"
  13673. fi
  13674. done
  13675. fi
  13676. if test "x$link_system" = "xno"; then
  13677. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  13678. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  13679. { (exit 1); exit 1; }; }
  13680. fi
  13681. fi
  13682. CPPFLAGS="$CPPFLAGS_SAVED"
  13683. LDFLAGS="$LDFLAGS_SAVED"
  13684. fi
  13685. # Check whether --with-boost-filesystem was given.
  13686. if test "${with_boost_filesystem+set}" = set; then
  13687. withval=$with_boost_filesystem;
  13688. if test "$withval" = "no"; then
  13689. want_boost="no"
  13690. elif test "$withval" = "yes"; then
  13691. want_boost="yes"
  13692. ax_boost_user_filesystem_lib=""
  13693. else
  13694. want_boost="yes"
  13695. ax_boost_user_filesystem_lib="$withval"
  13696. fi
  13697. else
  13698. want_boost="yes"
  13699. fi
  13700. if test "x$want_boost" = "xyes"; then
  13701. CPPFLAGS_SAVED="$CPPFLAGS"
  13702. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13703. export CPPFLAGS
  13704. LDFLAGS_SAVED="$LDFLAGS"
  13705. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13706. export LDFLAGS
  13707. { $as_echo "$as_me:$LINENO: checking whether the Boost::Filesystem library is available" >&5
  13708. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  13709. if test "${ax_cv_boost_filesystem+set}" = set; then
  13710. $as_echo_n "(cached) " >&6
  13711. else
  13712. ac_ext=cpp
  13713. ac_cpp='$CXXCPP $CPPFLAGS'
  13714. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13715. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13716. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13717. cat >conftest.$ac_ext <<_ACEOF
  13718. /* confdefs.h. */
  13719. _ACEOF
  13720. cat confdefs.h >>conftest.$ac_ext
  13721. cat >>conftest.$ac_ext <<_ACEOF
  13722. /* end confdefs.h. */
  13723. #include <boost/filesystem/path.hpp>
  13724. int
  13725. main ()
  13726. {
  13727. using namespace boost::filesystem;
  13728. path my_path( "foo/bar/data.txt" );
  13729. return 0;
  13730. ;
  13731. return 0;
  13732. }
  13733. _ACEOF
  13734. rm -f conftest.$ac_objext
  13735. if { (ac_try="$ac_compile"
  13736. case "(($ac_try" in
  13737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13738. *) ac_try_echo=$ac_try;;
  13739. esac
  13740. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13741. $as_echo "$ac_try_echo") >&5
  13742. (eval "$ac_compile") 2>conftest.er1
  13743. ac_status=$?
  13744. grep -v '^ *+' conftest.er1 >conftest.err
  13745. rm -f conftest.er1
  13746. cat conftest.err >&5
  13747. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13748. (exit $ac_status); } && {
  13749. test -z "$ac_cxx_werror_flag" ||
  13750. test ! -s conftest.err
  13751. } && test -s conftest.$ac_objext; then
  13752. ax_cv_boost_filesystem=yes
  13753. else
  13754. $as_echo "$as_me: failed program was:" >&5
  13755. sed 's/^/| /' conftest.$ac_ext >&5
  13756. ax_cv_boost_filesystem=no
  13757. fi
  13758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13759. ac_ext=cpp
  13760. ac_cpp='$CXXCPP $CPPFLAGS'
  13761. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13762. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13763. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13764. fi
  13765. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_filesystem" >&5
  13766. $as_echo "$ax_cv_boost_filesystem" >&6; }
  13767. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  13768. cat >>confdefs.h <<\_ACEOF
  13769. #define HAVE_BOOST_FILESYSTEM /**/
  13770. _ACEOF
  13771. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13772. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  13773. 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
  13774. ax_lib=${libextension}
  13775. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13776. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13777. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13778. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13779. $as_echo_n "(cached) " >&6
  13780. else
  13781. ac_check_lib_save_LIBS=$LIBS
  13782. LIBS="-l$ax_lib $LIBS"
  13783. cat >conftest.$ac_ext <<_ACEOF
  13784. /* confdefs.h. */
  13785. _ACEOF
  13786. cat confdefs.h >>conftest.$ac_ext
  13787. cat >>conftest.$ac_ext <<_ACEOF
  13788. /* end confdefs.h. */
  13789. /* Override any GCC internal prototype to avoid an error.
  13790. Use char because int might match the return type of a GCC
  13791. builtin and then its argument prototype would still apply. */
  13792. #ifdef __cplusplus
  13793. extern "C"
  13794. #endif
  13795. char exit ();
  13796. int
  13797. main ()
  13798. {
  13799. return exit ();
  13800. ;
  13801. return 0;
  13802. }
  13803. _ACEOF
  13804. rm -f conftest.$ac_objext conftest$ac_exeext
  13805. if { (ac_try="$ac_link"
  13806. case "(($ac_try" in
  13807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13808. *) ac_try_echo=$ac_try;;
  13809. esac
  13810. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13811. $as_echo "$ac_try_echo") >&5
  13812. (eval "$ac_link") 2>conftest.er1
  13813. ac_status=$?
  13814. grep -v '^ *+' conftest.er1 >conftest.err
  13815. rm -f conftest.er1
  13816. cat conftest.err >&5
  13817. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13818. (exit $ac_status); } && {
  13819. test -z "$ac_cxx_werror_flag" ||
  13820. test ! -s conftest.err
  13821. } && test -s conftest$ac_exeext && {
  13822. test "$cross_compiling" = yes ||
  13823. $as_test_x conftest$ac_exeext
  13824. }; then
  13825. eval "$as_ac_Lib=yes"
  13826. else
  13827. $as_echo "$as_me: failed program was:" >&5
  13828. sed 's/^/| /' conftest.$ac_ext >&5
  13829. eval "$as_ac_Lib=no"
  13830. fi
  13831. rm -rf conftest.dSYM
  13832. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13833. conftest$ac_exeext conftest.$ac_ext
  13834. LIBS=$ac_check_lib_save_LIBS
  13835. fi
  13836. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13837. $as_echo "$as_val"'`
  13838. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13839. $as_echo "$ac_res" >&6; }
  13840. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13841. $as_echo "$as_val"'`
  13842. if test "x$as_val" = x""yes; then
  13843. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13844. else
  13845. link_filesystem="no"
  13846. fi
  13847. done
  13848. if test "x$link_program_options" != "xyes"; then
  13849. 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
  13850. ax_lib=${libextension}
  13851. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13852. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13853. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13854. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13855. $as_echo_n "(cached) " >&6
  13856. else
  13857. ac_check_lib_save_LIBS=$LIBS
  13858. LIBS="-l$ax_lib $LIBS"
  13859. cat >conftest.$ac_ext <<_ACEOF
  13860. /* confdefs.h. */
  13861. _ACEOF
  13862. cat confdefs.h >>conftest.$ac_ext
  13863. cat >>conftest.$ac_ext <<_ACEOF
  13864. /* end confdefs.h. */
  13865. /* Override any GCC internal prototype to avoid an error.
  13866. Use char because int might match the return type of a GCC
  13867. builtin and then its argument prototype would still apply. */
  13868. #ifdef __cplusplus
  13869. extern "C"
  13870. #endif
  13871. char exit ();
  13872. int
  13873. main ()
  13874. {
  13875. return exit ();
  13876. ;
  13877. return 0;
  13878. }
  13879. _ACEOF
  13880. rm -f conftest.$ac_objext conftest$ac_exeext
  13881. if { (ac_try="$ac_link"
  13882. case "(($ac_try" in
  13883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13884. *) ac_try_echo=$ac_try;;
  13885. esac
  13886. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13887. $as_echo "$ac_try_echo") >&5
  13888. (eval "$ac_link") 2>conftest.er1
  13889. ac_status=$?
  13890. grep -v '^ *+' conftest.er1 >conftest.err
  13891. rm -f conftest.er1
  13892. cat conftest.err >&5
  13893. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13894. (exit $ac_status); } && {
  13895. test -z "$ac_cxx_werror_flag" ||
  13896. test ! -s conftest.err
  13897. } && test -s conftest$ac_exeext && {
  13898. test "$cross_compiling" = yes ||
  13899. $as_test_x conftest$ac_exeext
  13900. }; then
  13901. eval "$as_ac_Lib=yes"
  13902. else
  13903. $as_echo "$as_me: failed program was:" >&5
  13904. sed 's/^/| /' conftest.$ac_ext >&5
  13905. eval "$as_ac_Lib=no"
  13906. fi
  13907. rm -rf conftest.dSYM
  13908. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13909. conftest$ac_exeext conftest.$ac_ext
  13910. LIBS=$ac_check_lib_save_LIBS
  13911. fi
  13912. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13913. $as_echo "$as_val"'`
  13914. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13915. $as_echo "$ac_res" >&6; }
  13916. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13917. $as_echo "$as_val"'`
  13918. if test "x$as_val" = x""yes; then
  13919. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13920. else
  13921. link_filesystem="no"
  13922. fi
  13923. done
  13924. fi
  13925. else
  13926. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13927. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13928. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13929. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13930. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13931. $as_echo_n "(cached) " >&6
  13932. else
  13933. ac_check_lib_save_LIBS=$LIBS
  13934. LIBS="-l$ax_lib $LIBS"
  13935. cat >conftest.$ac_ext <<_ACEOF
  13936. /* confdefs.h. */
  13937. _ACEOF
  13938. cat confdefs.h >>conftest.$ac_ext
  13939. cat >>conftest.$ac_ext <<_ACEOF
  13940. /* end confdefs.h. */
  13941. /* Override any GCC internal prototype to avoid an error.
  13942. Use char because int might match the return type of a GCC
  13943. builtin and then its argument prototype would still apply. */
  13944. #ifdef __cplusplus
  13945. extern "C"
  13946. #endif
  13947. char exit ();
  13948. int
  13949. main ()
  13950. {
  13951. return exit ();
  13952. ;
  13953. return 0;
  13954. }
  13955. _ACEOF
  13956. rm -f conftest.$ac_objext conftest$ac_exeext
  13957. if { (ac_try="$ac_link"
  13958. case "(($ac_try" in
  13959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13960. *) ac_try_echo=$ac_try;;
  13961. esac
  13962. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13963. $as_echo "$ac_try_echo") >&5
  13964. (eval "$ac_link") 2>conftest.er1
  13965. ac_status=$?
  13966. grep -v '^ *+' conftest.er1 >conftest.err
  13967. rm -f conftest.er1
  13968. cat conftest.err >&5
  13969. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13970. (exit $ac_status); } && {
  13971. test -z "$ac_cxx_werror_flag" ||
  13972. test ! -s conftest.err
  13973. } && test -s conftest$ac_exeext && {
  13974. test "$cross_compiling" = yes ||
  13975. $as_test_x conftest$ac_exeext
  13976. }; then
  13977. eval "$as_ac_Lib=yes"
  13978. else
  13979. $as_echo "$as_me: failed program was:" >&5
  13980. sed 's/^/| /' conftest.$ac_ext >&5
  13981. eval "$as_ac_Lib=no"
  13982. fi
  13983. rm -rf conftest.dSYM
  13984. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13985. conftest$ac_exeext conftest.$ac_ext
  13986. LIBS=$ac_check_lib_save_LIBS
  13987. fi
  13988. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13989. $as_echo "$as_val"'`
  13990. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13991. $as_echo "$ac_res" >&6; }
  13992. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13993. $as_echo "$as_val"'`
  13994. if test "x$as_val" = x""yes; then
  13995. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13996. else
  13997. link_filesystem="no"
  13998. fi
  13999. done
  14000. fi
  14001. if test "x$link_filesystem" != "xyes"; then
  14002. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14003. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14004. { (exit 1); exit 1; }; }
  14005. fi
  14006. fi
  14007. CPPFLAGS="$CPPFLAGS_SAVED"
  14008. LDFLAGS="$LDFLAGS_SAVED"
  14009. fi
  14010. # Check whether --with-boost-thread was given.
  14011. if test "${with_boost_thread+set}" = set; then
  14012. withval=$with_boost_thread;
  14013. if test "$withval" = "no"; then
  14014. want_boost="no"
  14015. elif test "$withval" = "yes"; then
  14016. want_boost="yes"
  14017. ax_boost_user_thread_lib=""
  14018. else
  14019. want_boost="yes"
  14020. ax_boost_user_thread_lib="$withval"
  14021. fi
  14022. else
  14023. want_boost="yes"
  14024. fi
  14025. if test "x$want_boost" = "xyes"; then
  14026. CPPFLAGS_SAVED="$CPPFLAGS"
  14027. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14028. export CPPFLAGS
  14029. LDFLAGS_SAVED="$LDFLAGS"
  14030. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14031. export LDFLAGS
  14032. { $as_echo "$as_me:$LINENO: checking whether the Boost::Thread library is available" >&5
  14033. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  14034. if test "${ax_cv_boost_thread+set}" = set; then
  14035. $as_echo_n "(cached) " >&6
  14036. else
  14037. ac_ext=cpp
  14038. ac_cpp='$CXXCPP $CPPFLAGS'
  14039. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14040. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14041. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14042. CXXFLAGS_SAVE=$CXXFLAGS
  14043. if test "x$build_os" = "xsolaris" ; then
  14044. CXXFLAGS="-pthreads $CXXFLAGS"
  14045. elif test "x$build_os" = "xming32" ; then
  14046. CXXFLAGS="-mthreads $CXXFLAGS"
  14047. else
  14048. CXXFLAGS="-pthread $CXXFLAGS"
  14049. fi
  14050. cat >conftest.$ac_ext <<_ACEOF
  14051. /* confdefs.h. */
  14052. _ACEOF
  14053. cat confdefs.h >>conftest.$ac_ext
  14054. cat >>conftest.$ac_ext <<_ACEOF
  14055. /* end confdefs.h. */
  14056. #include <boost/thread/thread.hpp>
  14057. int
  14058. main ()
  14059. {
  14060. boost::thread_group thrds;
  14061. return 0;
  14062. ;
  14063. return 0;
  14064. }
  14065. _ACEOF
  14066. rm -f conftest.$ac_objext
  14067. if { (ac_try="$ac_compile"
  14068. case "(($ac_try" in
  14069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14070. *) ac_try_echo=$ac_try;;
  14071. esac
  14072. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14073. $as_echo "$ac_try_echo") >&5
  14074. (eval "$ac_compile") 2>conftest.er1
  14075. ac_status=$?
  14076. grep -v '^ *+' conftest.er1 >conftest.err
  14077. rm -f conftest.er1
  14078. cat conftest.err >&5
  14079. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14080. (exit $ac_status); } && {
  14081. test -z "$ac_cxx_werror_flag" ||
  14082. test ! -s conftest.err
  14083. } && test -s conftest.$ac_objext; then
  14084. ax_cv_boost_thread=yes
  14085. else
  14086. $as_echo "$as_me: failed program was:" >&5
  14087. sed 's/^/| /' conftest.$ac_ext >&5
  14088. ax_cv_boost_thread=no
  14089. fi
  14090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14091. CXXFLAGS=$CXXFLAGS_SAVE
  14092. ac_ext=cpp
  14093. ac_cpp='$CXXCPP $CPPFLAGS'
  14094. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14095. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14096. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14097. fi
  14098. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_thread" >&5
  14099. $as_echo "$ax_cv_boost_thread" >&6; }
  14100. if test "x$ax_cv_boost_thread" = "xyes"; then
  14101. if test "x$build_os" = "xsolaris" ; then
  14102. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  14103. elif test "x$build_os" = "xming32" ; then
  14104. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  14105. else
  14106. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  14107. fi
  14108. cat >>confdefs.h <<\_ACEOF
  14109. #define HAVE_BOOST_THREAD /**/
  14110. _ACEOF
  14111. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14112. LDFLAGS_SAVE=$LDFLAGS
  14113. case "x$build_os" in
  14114. *bsd* )
  14115. LDFLAGS="-pthread $LDFLAGS"
  14116. break;
  14117. ;;
  14118. esac
  14119. if test "x$ax_boost_user_thread_lib" = "x"; then
  14120. 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
  14121. ax_lib=${libextension}
  14122. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14123. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14124. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14125. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14126. $as_echo_n "(cached) " >&6
  14127. else
  14128. ac_check_lib_save_LIBS=$LIBS
  14129. LIBS="-l$ax_lib $LIBS"
  14130. cat >conftest.$ac_ext <<_ACEOF
  14131. /* confdefs.h. */
  14132. _ACEOF
  14133. cat confdefs.h >>conftest.$ac_ext
  14134. cat >>conftest.$ac_ext <<_ACEOF
  14135. /* end confdefs.h. */
  14136. /* Override any GCC internal prototype to avoid an error.
  14137. Use char because int might match the return type of a GCC
  14138. builtin and then its argument prototype would still apply. */
  14139. #ifdef __cplusplus
  14140. extern "C"
  14141. #endif
  14142. char exit ();
  14143. int
  14144. main ()
  14145. {
  14146. return exit ();
  14147. ;
  14148. return 0;
  14149. }
  14150. _ACEOF
  14151. rm -f conftest.$ac_objext conftest$ac_exeext
  14152. if { (ac_try="$ac_link"
  14153. case "(($ac_try" in
  14154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14155. *) ac_try_echo=$ac_try;;
  14156. esac
  14157. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14158. $as_echo "$ac_try_echo") >&5
  14159. (eval "$ac_link") 2>conftest.er1
  14160. ac_status=$?
  14161. grep -v '^ *+' conftest.er1 >conftest.err
  14162. rm -f conftest.er1
  14163. cat conftest.err >&5
  14164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14165. (exit $ac_status); } && {
  14166. test -z "$ac_cxx_werror_flag" ||
  14167. test ! -s conftest.err
  14168. } && test -s conftest$ac_exeext && {
  14169. test "$cross_compiling" = yes ||
  14170. $as_test_x conftest$ac_exeext
  14171. }; then
  14172. eval "$as_ac_Lib=yes"
  14173. else
  14174. $as_echo "$as_me: failed program was:" >&5
  14175. sed 's/^/| /' conftest.$ac_ext >&5
  14176. eval "$as_ac_Lib=no"
  14177. fi
  14178. rm -rf conftest.dSYM
  14179. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14180. conftest$ac_exeext conftest.$ac_ext
  14181. LIBS=$ac_check_lib_save_LIBS
  14182. fi
  14183. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14184. $as_echo "$as_val"'`
  14185. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14186. $as_echo "$ac_res" >&6; }
  14187. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14188. $as_echo "$as_val"'`
  14189. if test "x$as_val" = x""yes; then
  14190. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14191. else
  14192. link_thread="no"
  14193. fi
  14194. done
  14195. if test "x$link_thread" != "xyes"; then
  14196. 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
  14197. ax_lib=${libextension}
  14198. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14199. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14200. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14201. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14202. $as_echo_n "(cached) " >&6
  14203. else
  14204. ac_check_lib_save_LIBS=$LIBS
  14205. LIBS="-l$ax_lib $LIBS"
  14206. cat >conftest.$ac_ext <<_ACEOF
  14207. /* confdefs.h. */
  14208. _ACEOF
  14209. cat confdefs.h >>conftest.$ac_ext
  14210. cat >>conftest.$ac_ext <<_ACEOF
  14211. /* end confdefs.h. */
  14212. /* Override any GCC internal prototype to avoid an error.
  14213. Use char because int might match the return type of a GCC
  14214. builtin and then its argument prototype would still apply. */
  14215. #ifdef __cplusplus
  14216. extern "C"
  14217. #endif
  14218. char exit ();
  14219. int
  14220. main ()
  14221. {
  14222. return exit ();
  14223. ;
  14224. return 0;
  14225. }
  14226. _ACEOF
  14227. rm -f conftest.$ac_objext conftest$ac_exeext
  14228. if { (ac_try="$ac_link"
  14229. case "(($ac_try" in
  14230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14231. *) ac_try_echo=$ac_try;;
  14232. esac
  14233. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14234. $as_echo "$ac_try_echo") >&5
  14235. (eval "$ac_link") 2>conftest.er1
  14236. ac_status=$?
  14237. grep -v '^ *+' conftest.er1 >conftest.err
  14238. rm -f conftest.er1
  14239. cat conftest.err >&5
  14240. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14241. (exit $ac_status); } && {
  14242. test -z "$ac_cxx_werror_flag" ||
  14243. test ! -s conftest.err
  14244. } && test -s conftest$ac_exeext && {
  14245. test "$cross_compiling" = yes ||
  14246. $as_test_x conftest$ac_exeext
  14247. }; then
  14248. eval "$as_ac_Lib=yes"
  14249. else
  14250. $as_echo "$as_me: failed program was:" >&5
  14251. sed 's/^/| /' conftest.$ac_ext >&5
  14252. eval "$as_ac_Lib=no"
  14253. fi
  14254. rm -rf conftest.dSYM
  14255. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14256. conftest$ac_exeext conftest.$ac_ext
  14257. LIBS=$ac_check_lib_save_LIBS
  14258. fi
  14259. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14260. $as_echo "$as_val"'`
  14261. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14262. $as_echo "$ac_res" >&6; }
  14263. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14264. $as_echo "$as_val"'`
  14265. if test "x$as_val" = x""yes; then
  14266. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14267. else
  14268. link_thread="no"
  14269. fi
  14270. done
  14271. fi
  14272. else
  14273. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  14274. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14275. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14276. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14277. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14278. $as_echo_n "(cached) " >&6
  14279. else
  14280. ac_check_lib_save_LIBS=$LIBS
  14281. LIBS="-l$ax_lib $LIBS"
  14282. cat >conftest.$ac_ext <<_ACEOF
  14283. /* confdefs.h. */
  14284. _ACEOF
  14285. cat confdefs.h >>conftest.$ac_ext
  14286. cat >>conftest.$ac_ext <<_ACEOF
  14287. /* end confdefs.h. */
  14288. /* Override any GCC internal prototype to avoid an error.
  14289. Use char because int might match the return type of a GCC
  14290. builtin and then its argument prototype would still apply. */
  14291. #ifdef __cplusplus
  14292. extern "C"
  14293. #endif
  14294. char exit ();
  14295. int
  14296. main ()
  14297. {
  14298. return exit ();
  14299. ;
  14300. return 0;
  14301. }
  14302. _ACEOF
  14303. rm -f conftest.$ac_objext conftest$ac_exeext
  14304. if { (ac_try="$ac_link"
  14305. case "(($ac_try" in
  14306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14307. *) ac_try_echo=$ac_try;;
  14308. esac
  14309. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14310. $as_echo "$ac_try_echo") >&5
  14311. (eval "$ac_link") 2>conftest.er1
  14312. ac_status=$?
  14313. grep -v '^ *+' conftest.er1 >conftest.err
  14314. rm -f conftest.er1
  14315. cat conftest.err >&5
  14316. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14317. (exit $ac_status); } && {
  14318. test -z "$ac_cxx_werror_flag" ||
  14319. test ! -s conftest.err
  14320. } && test -s conftest$ac_exeext && {
  14321. test "$cross_compiling" = yes ||
  14322. $as_test_x conftest$ac_exeext
  14323. }; then
  14324. eval "$as_ac_Lib=yes"
  14325. else
  14326. $as_echo "$as_me: failed program was:" >&5
  14327. sed 's/^/| /' conftest.$ac_ext >&5
  14328. eval "$as_ac_Lib=no"
  14329. fi
  14330. rm -rf conftest.dSYM
  14331. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14332. conftest$ac_exeext conftest.$ac_ext
  14333. LIBS=$ac_check_lib_save_LIBS
  14334. fi
  14335. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14336. $as_echo "$as_val"'`
  14337. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14338. $as_echo "$ac_res" >&6; }
  14339. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14340. $as_echo "$as_val"'`
  14341. if test "x$as_val" = x""yes; then
  14342. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14343. else
  14344. link_thread="no"
  14345. fi
  14346. done
  14347. fi
  14348. if test "x$link_thread" = "xno"; then
  14349. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14350. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14351. { (exit 1); exit 1; }; }
  14352. else
  14353. case "x$build_os" in
  14354. *bsd* )
  14355. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  14356. break;
  14357. ;;
  14358. esac
  14359. fi
  14360. fi
  14361. CPPFLAGS="$CPPFLAGS_SAVED"
  14362. LDFLAGS="$LDFLAGS_SAVED"
  14363. fi
  14364. # Check whether --with-boost-iostreams was given.
  14365. if test "${with_boost_iostreams+set}" = set; then
  14366. withval=$with_boost_iostreams;
  14367. if test "$withval" = "no"; then
  14368. want_boost="no"
  14369. elif test "$withval" = "yes"; then
  14370. want_boost="yes"
  14371. ax_boost_user_iostreams_lib=""
  14372. else
  14373. want_boost="yes"
  14374. ax_boost_user_iostreams_lib="$withval"
  14375. fi
  14376. else
  14377. want_boost="yes"
  14378. fi
  14379. if test "x$want_boost" = "xyes"; then
  14380. CPPFLAGS_SAVED="$CPPFLAGS"
  14381. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14382. export CPPFLAGS
  14383. LDFLAGS_SAVED="$LDFLAGS"
  14384. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14385. export LDFLAGS
  14386. { $as_echo "$as_me:$LINENO: checking whether the Boost::IOStreams library is available" >&5
  14387. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  14388. if test "${ax_cv_boost_iostreams+set}" = set; then
  14389. $as_echo_n "(cached) " >&6
  14390. else
  14391. ac_ext=cpp
  14392. ac_cpp='$CXXCPP $CPPFLAGS'
  14393. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14394. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14395. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14396. cat >conftest.$ac_ext <<_ACEOF
  14397. /* confdefs.h. */
  14398. _ACEOF
  14399. cat confdefs.h >>conftest.$ac_ext
  14400. cat >>conftest.$ac_ext <<_ACEOF
  14401. /* end confdefs.h. */
  14402. #include <boost/iostreams/filtering_stream.hpp>
  14403. #include <boost/range/iterator_range.hpp>
  14404. int
  14405. main ()
  14406. {
  14407. std::string input = "Hello World!";
  14408. namespace io = boost::iostreams;
  14409. io::filtering_istream in(boost::make_iterator_range(input));
  14410. return 0;
  14411. ;
  14412. return 0;
  14413. }
  14414. _ACEOF
  14415. rm -f conftest.$ac_objext
  14416. if { (ac_try="$ac_compile"
  14417. case "(($ac_try" in
  14418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14419. *) ac_try_echo=$ac_try;;
  14420. esac
  14421. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14422. $as_echo "$ac_try_echo") >&5
  14423. (eval "$ac_compile") 2>conftest.er1
  14424. ac_status=$?
  14425. grep -v '^ *+' conftest.er1 >conftest.err
  14426. rm -f conftest.er1
  14427. cat conftest.err >&5
  14428. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14429. (exit $ac_status); } && {
  14430. test -z "$ac_cxx_werror_flag" ||
  14431. test ! -s conftest.err
  14432. } && test -s conftest.$ac_objext; then
  14433. ax_cv_boost_iostreams=yes
  14434. else
  14435. $as_echo "$as_me: failed program was:" >&5
  14436. sed 's/^/| /' conftest.$ac_ext >&5
  14437. ax_cv_boost_iostreams=no
  14438. fi
  14439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14440. ac_ext=cpp
  14441. ac_cpp='$CXXCPP $CPPFLAGS'
  14442. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14443. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14444. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14445. fi
  14446. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_iostreams" >&5
  14447. $as_echo "$ax_cv_boost_iostreams" >&6; }
  14448. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  14449. cat >>confdefs.h <<\_ACEOF
  14450. #define HAVE_BOOST_IOSTREAMS /**/
  14451. _ACEOF
  14452. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14453. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  14454. 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
  14455. ax_lib=${libextension}
  14456. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14457. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14458. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14459. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14460. $as_echo_n "(cached) " >&6
  14461. else
  14462. ac_check_lib_save_LIBS=$LIBS
  14463. LIBS="-l$ax_lib $LIBS"
  14464. cat >conftest.$ac_ext <<_ACEOF
  14465. /* confdefs.h. */
  14466. _ACEOF
  14467. cat confdefs.h >>conftest.$ac_ext
  14468. cat >>conftest.$ac_ext <<_ACEOF
  14469. /* end confdefs.h. */
  14470. /* Override any GCC internal prototype to avoid an error.
  14471. Use char because int might match the return type of a GCC
  14472. builtin and then its argument prototype would still apply. */
  14473. #ifdef __cplusplus
  14474. extern "C"
  14475. #endif
  14476. char exit ();
  14477. int
  14478. main ()
  14479. {
  14480. return exit ();
  14481. ;
  14482. return 0;
  14483. }
  14484. _ACEOF
  14485. rm -f conftest.$ac_objext conftest$ac_exeext
  14486. if { (ac_try="$ac_link"
  14487. case "(($ac_try" in
  14488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14489. *) ac_try_echo=$ac_try;;
  14490. esac
  14491. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14492. $as_echo "$ac_try_echo") >&5
  14493. (eval "$ac_link") 2>conftest.er1
  14494. ac_status=$?
  14495. grep -v '^ *+' conftest.er1 >conftest.err
  14496. rm -f conftest.er1
  14497. cat conftest.err >&5
  14498. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14499. (exit $ac_status); } && {
  14500. test -z "$ac_cxx_werror_flag" ||
  14501. test ! -s conftest.err
  14502. } && test -s conftest$ac_exeext && {
  14503. test "$cross_compiling" = yes ||
  14504. $as_test_x conftest$ac_exeext
  14505. }; then
  14506. eval "$as_ac_Lib=yes"
  14507. else
  14508. $as_echo "$as_me: failed program was:" >&5
  14509. sed 's/^/| /' conftest.$ac_ext >&5
  14510. eval "$as_ac_Lib=no"
  14511. fi
  14512. rm -rf conftest.dSYM
  14513. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14514. conftest$ac_exeext conftest.$ac_ext
  14515. LIBS=$ac_check_lib_save_LIBS
  14516. fi
  14517. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14518. $as_echo "$as_val"'`
  14519. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14520. $as_echo "$ac_res" >&6; }
  14521. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14522. $as_echo "$as_val"'`
  14523. if test "x$as_val" = x""yes; then
  14524. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14525. else
  14526. link_iostreams="no"
  14527. fi
  14528. done
  14529. if test "x$link_iostreams" != "xyes"; then
  14530. 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
  14531. ax_lib=${libextension}
  14532. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14533. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14534. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14535. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14536. $as_echo_n "(cached) " >&6
  14537. else
  14538. ac_check_lib_save_LIBS=$LIBS
  14539. LIBS="-l$ax_lib $LIBS"
  14540. cat >conftest.$ac_ext <<_ACEOF
  14541. /* confdefs.h. */
  14542. _ACEOF
  14543. cat confdefs.h >>conftest.$ac_ext
  14544. cat >>conftest.$ac_ext <<_ACEOF
  14545. /* end confdefs.h. */
  14546. /* Override any GCC internal prototype to avoid an error.
  14547. Use char because int might match the return type of a GCC
  14548. builtin and then its argument prototype would still apply. */
  14549. #ifdef __cplusplus
  14550. extern "C"
  14551. #endif
  14552. char exit ();
  14553. int
  14554. main ()
  14555. {
  14556. return exit ();
  14557. ;
  14558. return 0;
  14559. }
  14560. _ACEOF
  14561. rm -f conftest.$ac_objext conftest$ac_exeext
  14562. if { (ac_try="$ac_link"
  14563. case "(($ac_try" in
  14564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14565. *) ac_try_echo=$ac_try;;
  14566. esac
  14567. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14568. $as_echo "$ac_try_echo") >&5
  14569. (eval "$ac_link") 2>conftest.er1
  14570. ac_status=$?
  14571. grep -v '^ *+' conftest.er1 >conftest.err
  14572. rm -f conftest.er1
  14573. cat conftest.err >&5
  14574. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14575. (exit $ac_status); } && {
  14576. test -z "$ac_cxx_werror_flag" ||
  14577. test ! -s conftest.err
  14578. } && test -s conftest$ac_exeext && {
  14579. test "$cross_compiling" = yes ||
  14580. $as_test_x conftest$ac_exeext
  14581. }; then
  14582. eval "$as_ac_Lib=yes"
  14583. else
  14584. $as_echo "$as_me: failed program was:" >&5
  14585. sed 's/^/| /' conftest.$ac_ext >&5
  14586. eval "$as_ac_Lib=no"
  14587. fi
  14588. rm -rf conftest.dSYM
  14589. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14590. conftest$ac_exeext conftest.$ac_ext
  14591. LIBS=$ac_check_lib_save_LIBS
  14592. fi
  14593. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14594. $as_echo "$as_val"'`
  14595. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14596. $as_echo "$ac_res" >&6; }
  14597. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14598. $as_echo "$as_val"'`
  14599. if test "x$as_val" = x""yes; then
  14600. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14601. else
  14602. link_iostreams="no"
  14603. fi
  14604. done
  14605. fi
  14606. else
  14607. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  14608. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14609. { $as_echo "$as_me:$LINENO: checking for main in -l$ax_lib" >&5
  14610. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14611. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14612. $as_echo_n "(cached) " >&6
  14613. else
  14614. ac_check_lib_save_LIBS=$LIBS
  14615. LIBS="-l$ax_lib $LIBS"
  14616. cat >conftest.$ac_ext <<_ACEOF
  14617. /* confdefs.h. */
  14618. _ACEOF
  14619. cat confdefs.h >>conftest.$ac_ext
  14620. cat >>conftest.$ac_ext <<_ACEOF
  14621. /* end confdefs.h. */
  14622. int
  14623. main ()
  14624. {
  14625. return main ();
  14626. ;
  14627. return 0;
  14628. }
  14629. _ACEOF
  14630. rm -f conftest.$ac_objext conftest$ac_exeext
  14631. if { (ac_try="$ac_link"
  14632. case "(($ac_try" in
  14633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14634. *) ac_try_echo=$ac_try;;
  14635. esac
  14636. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14637. $as_echo "$ac_try_echo") >&5
  14638. (eval "$ac_link") 2>conftest.er1
  14639. ac_status=$?
  14640. grep -v '^ *+' conftest.er1 >conftest.err
  14641. rm -f conftest.er1
  14642. cat conftest.err >&5
  14643. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14644. (exit $ac_status); } && {
  14645. test -z "$ac_cxx_werror_flag" ||
  14646. test ! -s conftest.err
  14647. } && test -s conftest$ac_exeext && {
  14648. test "$cross_compiling" = yes ||
  14649. $as_test_x conftest$ac_exeext
  14650. }; then
  14651. eval "$as_ac_Lib=yes"
  14652. else
  14653. $as_echo "$as_me: failed program was:" >&5
  14654. sed 's/^/| /' conftest.$ac_ext >&5
  14655. eval "$as_ac_Lib=no"
  14656. fi
  14657. rm -rf conftest.dSYM
  14658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14659. conftest$ac_exeext conftest.$ac_ext
  14660. LIBS=$ac_check_lib_save_LIBS
  14661. fi
  14662. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14663. $as_echo "$as_val"'`
  14664. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14665. $as_echo "$ac_res" >&6; }
  14666. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14667. $as_echo "$as_val"'`
  14668. if test "x$as_val" = x""yes; then
  14669. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14670. else
  14671. link_iostreams="no"
  14672. fi
  14673. done
  14674. fi
  14675. if test "x$link_iostreams" != "xyes"; then
  14676. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14677. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14678. { (exit 1); exit 1; }; }
  14679. fi
  14680. fi
  14681. CPPFLAGS="$CPPFLAGS_SAVED"
  14682. LDFLAGS="$LDFLAGS_SAVED"
  14683. fi
  14684. # Check for SDL libraries
  14685. saved_LIBS=$LIBS
  14686. # Extract the first word of "sdl-config", so it can be a program name with args.
  14687. set dummy sdl-config; ac_word=$2
  14688. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14689. $as_echo_n "checking for $ac_word... " >&6; }
  14690. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then
  14691. $as_echo_n "(cached) " >&6
  14692. else
  14693. if test -n "$HAVE_SDL_CONFIG"; then
  14694. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  14695. else
  14696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14697. for as_dir in $PATH
  14698. do
  14699. IFS=$as_save_IFS
  14700. test -z "$as_dir" && as_dir=.
  14701. for ac_exec_ext in '' $ac_executable_extensions; do
  14702. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14703. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  14704. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14705. break 2
  14706. fi
  14707. done
  14708. done
  14709. IFS=$as_save_IFS
  14710. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  14711. fi
  14712. fi
  14713. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  14714. if test -n "$HAVE_SDL_CONFIG"; then
  14715. { $as_echo "$as_me:$LINENO: result: $HAVE_SDL_CONFIG" >&5
  14716. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  14717. else
  14718. { $as_echo "$as_me:$LINENO: result: no" >&5
  14719. $as_echo "no" >&6; }
  14720. fi
  14721. if test "$HAVE_SDL_CONFIG" = no; then
  14722. { { $as_echo "$as_me:$LINENO: error: sdl-config doesn't exist. Try to check the PATH enviroment." >&5
  14723. $as_echo "$as_me: error: sdl-config doesn't exist. Try to check the PATH enviroment." >&2;}
  14724. { (exit 1); exit 1; }; }
  14725. fi
  14726. { $as_echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
  14727. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  14728. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
  14729. $as_echo_n "(cached) " >&6
  14730. else
  14731. ac_check_lib_save_LIBS=$LIBS
  14732. LIBS="-lSDL $LIBS"
  14733. cat >conftest.$ac_ext <<_ACEOF
  14734. /* confdefs.h. */
  14735. _ACEOF
  14736. cat confdefs.h >>conftest.$ac_ext
  14737. cat >>conftest.$ac_ext <<_ACEOF
  14738. /* end confdefs.h. */
  14739. /* Override any GCC internal prototype to avoid an error.
  14740. Use char because int might match the return type of a GCC
  14741. builtin and then its argument prototype would still apply. */
  14742. #ifdef __cplusplus
  14743. extern "C"
  14744. #endif
  14745. char SDL_Init ();
  14746. int
  14747. main ()
  14748. {
  14749. return SDL_Init ();
  14750. ;
  14751. return 0;
  14752. }
  14753. _ACEOF
  14754. rm -f conftest.$ac_objext conftest$ac_exeext
  14755. if { (ac_try="$ac_link"
  14756. case "(($ac_try" in
  14757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14758. *) ac_try_echo=$ac_try;;
  14759. esac
  14760. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14761. $as_echo "$ac_try_echo") >&5
  14762. (eval "$ac_link") 2>conftest.er1
  14763. ac_status=$?
  14764. grep -v '^ *+' conftest.er1 >conftest.err
  14765. rm -f conftest.er1
  14766. cat conftest.err >&5
  14767. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14768. (exit $ac_status); } && {
  14769. test -z "$ac_cxx_werror_flag" ||
  14770. test ! -s conftest.err
  14771. } && test -s conftest$ac_exeext && {
  14772. test "$cross_compiling" = yes ||
  14773. $as_test_x conftest$ac_exeext
  14774. }; then
  14775. ac_cv_lib_SDL_SDL_Init=yes
  14776. else
  14777. $as_echo "$as_me: failed program was:" >&5
  14778. sed 's/^/| /' conftest.$ac_ext >&5
  14779. ac_cv_lib_SDL_SDL_Init=no
  14780. fi
  14781. rm -rf conftest.dSYM
  14782. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14783. conftest$ac_exeext conftest.$ac_ext
  14784. LIBS=$ac_check_lib_save_LIBS
  14785. fi
  14786. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5
  14787. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  14788. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then
  14789. cat >>confdefs.h <<_ACEOF
  14790. #define HAVE_LIBSDL 1
  14791. _ACEOF
  14792. LIBS="-lSDL $LIBS"
  14793. else
  14794. { { $as_echo "$as_me:$LINENO: error: SDL library not found. Please install it." >&5
  14795. $as_echo "$as_me: error: SDL library not found. Please install it." >&2;}
  14796. { (exit 1); exit 1; }; }
  14797. fi
  14798. { $as_echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
  14799. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  14800. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
  14801. $as_echo_n "(cached) " >&6
  14802. else
  14803. ac_check_lib_save_LIBS=$LIBS
  14804. LIBS="-lSDL_mixer $LIBS"
  14805. cat >conftest.$ac_ext <<_ACEOF
  14806. /* confdefs.h. */
  14807. _ACEOF
  14808. cat confdefs.h >>conftest.$ac_ext
  14809. cat >>conftest.$ac_ext <<_ACEOF
  14810. /* end confdefs.h. */
  14811. int
  14812. main ()
  14813. {
  14814. return main ();
  14815. ;
  14816. return 0;
  14817. }
  14818. _ACEOF
  14819. rm -f conftest.$ac_objext conftest$ac_exeext
  14820. if { (ac_try="$ac_link"
  14821. case "(($ac_try" in
  14822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14823. *) ac_try_echo=$ac_try;;
  14824. esac
  14825. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14826. $as_echo "$ac_try_echo") >&5
  14827. (eval "$ac_link") 2>conftest.er1
  14828. ac_status=$?
  14829. grep -v '^ *+' conftest.er1 >conftest.err
  14830. rm -f conftest.er1
  14831. cat conftest.err >&5
  14832. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14833. (exit $ac_status); } && {
  14834. test -z "$ac_cxx_werror_flag" ||
  14835. test ! -s conftest.err
  14836. } && test -s conftest$ac_exeext && {
  14837. test "$cross_compiling" = yes ||
  14838. $as_test_x conftest$ac_exeext
  14839. }; then
  14840. ac_cv_lib_SDL_mixer_main=yes
  14841. else
  14842. $as_echo "$as_me: failed program was:" >&5
  14843. sed 's/^/| /' conftest.$ac_ext >&5
  14844. ac_cv_lib_SDL_mixer_main=no
  14845. fi
  14846. rm -rf conftest.dSYM
  14847. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14848. conftest$ac_exeext conftest.$ac_ext
  14849. LIBS=$ac_check_lib_save_LIBS
  14850. fi
  14851. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
  14852. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  14853. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then
  14854. cat >>confdefs.h <<_ACEOF
  14855. #define HAVE_LIBSDL_MIXER 1
  14856. _ACEOF
  14857. LIBS="-lSDL_mixer $LIBS"
  14858. else
  14859. { { $as_echo "$as_me:$LINENO: error: SDL_mixer library not found. Please install it." >&5
  14860. $as_echo "$as_me: error: SDL_mixer library not found. Please install it." >&2;}
  14861. { (exit 1); exit 1; }; }
  14862. fi
  14863. { $as_echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5
  14864. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  14865. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then
  14866. $as_echo_n "(cached) " >&6
  14867. else
  14868. ac_check_lib_save_LIBS=$LIBS
  14869. LIBS="-lSDL_image $LIBS"
  14870. cat >conftest.$ac_ext <<_ACEOF
  14871. /* confdefs.h. */
  14872. _ACEOF
  14873. cat confdefs.h >>conftest.$ac_ext
  14874. cat >>conftest.$ac_ext <<_ACEOF
  14875. /* end confdefs.h. */
  14876. /* Override any GCC internal prototype to avoid an error.
  14877. Use char because int might match the return type of a GCC
  14878. builtin and then its argument prototype would still apply. */
  14879. #ifdef __cplusplus
  14880. extern "C"
  14881. #endif
  14882. char IMG_Load ();
  14883. int
  14884. main ()
  14885. {
  14886. return IMG_Load ();
  14887. ;
  14888. return 0;
  14889. }
  14890. _ACEOF
  14891. rm -f conftest.$ac_objext conftest$ac_exeext
  14892. if { (ac_try="$ac_link"
  14893. case "(($ac_try" in
  14894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14895. *) ac_try_echo=$ac_try;;
  14896. esac
  14897. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14898. $as_echo "$ac_try_echo") >&5
  14899. (eval "$ac_link") 2>conftest.er1
  14900. ac_status=$?
  14901. grep -v '^ *+' conftest.er1 >conftest.err
  14902. rm -f conftest.er1
  14903. cat conftest.err >&5
  14904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14905. (exit $ac_status); } && {
  14906. test -z "$ac_cxx_werror_flag" ||
  14907. test ! -s conftest.err
  14908. } && test -s conftest$ac_exeext && {
  14909. test "$cross_compiling" = yes ||
  14910. $as_test_x conftest$ac_exeext
  14911. }; then
  14912. ac_cv_lib_SDL_image_IMG_Load=yes
  14913. else
  14914. $as_echo "$as_me: failed program was:" >&5
  14915. sed 's/^/| /' conftest.$ac_ext >&5
  14916. ac_cv_lib_SDL_image_IMG_Load=no
  14917. fi
  14918. rm -rf conftest.dSYM
  14919. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14920. conftest$ac_exeext conftest.$ac_ext
  14921. LIBS=$ac_check_lib_save_LIBS
  14922. fi
  14923. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  14924. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  14925. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then
  14926. cat >>confdefs.h <<_ACEOF
  14927. #define HAVE_LIBSDL_IMAGE 1
  14928. _ACEOF
  14929. LIBS="-lSDL_image $LIBS"
  14930. else
  14931. { { $as_echo "$as_me:$LINENO: error: SDL_image library not found. Please install it." >&5
  14932. $as_echo "$as_me: error: SDL_image library not found. Please install it." >&2;}
  14933. { (exit 1); exit 1; }; }
  14934. fi
  14935. { $as_echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5
  14936. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  14937. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then
  14938. $as_echo_n "(cached) " >&6
  14939. else
  14940. ac_check_lib_save_LIBS=$LIBS
  14941. LIBS="-lSDL_ttf $LIBS"
  14942. cat >conftest.$ac_ext <<_ACEOF
  14943. /* confdefs.h. */
  14944. _ACEOF
  14945. cat confdefs.h >>conftest.$ac_ext
  14946. cat >>conftest.$ac_ext <<_ACEOF
  14947. /* end confdefs.h. */
  14948. int
  14949. main ()
  14950. {
  14951. return main ();
  14952. ;
  14953. return 0;
  14954. }
  14955. _ACEOF
  14956. rm -f conftest.$ac_objext conftest$ac_exeext
  14957. if { (ac_try="$ac_link"
  14958. case "(($ac_try" in
  14959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14960. *) ac_try_echo=$ac_try;;
  14961. esac
  14962. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14963. $as_echo "$ac_try_echo") >&5
  14964. (eval "$ac_link") 2>conftest.er1
  14965. ac_status=$?
  14966. grep -v '^ *+' conftest.er1 >conftest.err
  14967. rm -f conftest.er1
  14968. cat conftest.err >&5
  14969. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14970. (exit $ac_status); } && {
  14971. test -z "$ac_cxx_werror_flag" ||
  14972. test ! -s conftest.err
  14973. } && test -s conftest$ac_exeext && {
  14974. test "$cross_compiling" = yes ||
  14975. $as_test_x conftest$ac_exeext
  14976. }; then
  14977. ac_cv_lib_SDL_ttf_main=yes
  14978. else
  14979. $as_echo "$as_me: failed program was:" >&5
  14980. sed 's/^/| /' conftest.$ac_ext >&5
  14981. ac_cv_lib_SDL_ttf_main=no
  14982. fi
  14983. rm -rf conftest.dSYM
  14984. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14985. conftest$ac_exeext conftest.$ac_ext
  14986. LIBS=$ac_check_lib_save_LIBS
  14987. fi
  14988. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5
  14989. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  14990. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then
  14991. cat >>confdefs.h <<_ACEOF
  14992. #define HAVE_LIBSDL_TTF 1
  14993. _ACEOF
  14994. LIBS="-lSDL_ttf $LIBS"
  14995. else
  14996. { { $as_echo "$as_me:$LINENO: error: SDL_ttf library not found. Please install it." >&5
  14997. $as_echo "$as_me: error: SDL_ttf library not found. Please install it." >&2;}
  14998. { (exit 1); exit 1; }; }
  14999. fi
  15000. SDL_CXXFLAGS=`sdl-config --cflags`
  15001. SDL_LIBS="`sdl-config --libs` $LIBS"
  15002. LIBS=$saved_LIBS
  15003. # Check for ffmpeg libraries
  15004. { $as_echo "$as_me:$LINENO: checking for main in -lavformat" >&5
  15005. $as_echo_n "checking for main in -lavformat... " >&6; }
  15006. if test "${ac_cv_lib_avformat_main+set}" = set; then
  15007. $as_echo_n "(cached) " >&6
  15008. else
  15009. ac_check_lib_save_LIBS=$LIBS
  15010. LIBS="-lavformat $LIBS"
  15011. cat >conftest.$ac_ext <<_ACEOF
  15012. /* confdefs.h. */
  15013. _ACEOF
  15014. cat confdefs.h >>conftest.$ac_ext
  15015. cat >>conftest.$ac_ext <<_ACEOF
  15016. /* end confdefs.h. */
  15017. int
  15018. main ()
  15019. {
  15020. return main ();
  15021. ;
  15022. return 0;
  15023. }
  15024. _ACEOF
  15025. rm -f conftest.$ac_objext conftest$ac_exeext
  15026. if { (ac_try="$ac_link"
  15027. case "(($ac_try" in
  15028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15029. *) ac_try_echo=$ac_try;;
  15030. esac
  15031. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15032. $as_echo "$ac_try_echo") >&5
  15033. (eval "$ac_link") 2>conftest.er1
  15034. ac_status=$?
  15035. grep -v '^ *+' conftest.er1 >conftest.err
  15036. rm -f conftest.er1
  15037. cat conftest.err >&5
  15038. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15039. (exit $ac_status); } && {
  15040. test -z "$ac_cxx_werror_flag" ||
  15041. test ! -s conftest.err
  15042. } && test -s conftest$ac_exeext && {
  15043. test "$cross_compiling" = yes ||
  15044. $as_test_x conftest$ac_exeext
  15045. }; then
  15046. ac_cv_lib_avformat_main=yes
  15047. else
  15048. $as_echo "$as_me: failed program was:" >&5
  15049. sed 's/^/| /' conftest.$ac_ext >&5
  15050. ac_cv_lib_avformat_main=no
  15051. fi
  15052. rm -rf conftest.dSYM
  15053. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15054. conftest$ac_exeext conftest.$ac_ext
  15055. LIBS=$ac_check_lib_save_LIBS
  15056. fi
  15057. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_main" >&5
  15058. $as_echo "$ac_cv_lib_avformat_main" >&6; }
  15059. if test "x$ac_cv_lib_avformat_main" = x""yes; then
  15060. cat >>confdefs.h <<_ACEOF
  15061. #define HAVE_LIBAVFORMAT 1
  15062. _ACEOF
  15063. LIBS="-lavformat $LIBS"
  15064. else
  15065. { { $as_echo "$as_me:$LINENO: error: FFMpeg avformat library not found. Please install it." >&5
  15066. $as_echo "$as_me: error: FFMpeg avformat library not found. Please install it." >&2;}
  15067. { (exit 1); exit 1; }; }
  15068. fi
  15069. { $as_echo "$as_me:$LINENO: checking for main in -lswscale" >&5
  15070. $as_echo_n "checking for main in -lswscale... " >&6; }
  15071. if test "${ac_cv_lib_swscale_main+set}" = set; then
  15072. $as_echo_n "(cached) " >&6
  15073. else
  15074. ac_check_lib_save_LIBS=$LIBS
  15075. LIBS="-lswscale $LIBS"
  15076. cat >conftest.$ac_ext <<_ACEOF
  15077. /* confdefs.h. */
  15078. _ACEOF
  15079. cat confdefs.h >>conftest.$ac_ext
  15080. cat >>conftest.$ac_ext <<_ACEOF
  15081. /* end confdefs.h. */
  15082. int
  15083. main ()
  15084. {
  15085. return main ();
  15086. ;
  15087. return 0;
  15088. }
  15089. _ACEOF
  15090. rm -f conftest.$ac_objext conftest$ac_exeext
  15091. if { (ac_try="$ac_link"
  15092. case "(($ac_try" in
  15093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15094. *) ac_try_echo=$ac_try;;
  15095. esac
  15096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15097. $as_echo "$ac_try_echo") >&5
  15098. (eval "$ac_link") 2>conftest.er1
  15099. ac_status=$?
  15100. grep -v '^ *+' conftest.er1 >conftest.err
  15101. rm -f conftest.er1
  15102. cat conftest.err >&5
  15103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15104. (exit $ac_status); } && {
  15105. test -z "$ac_cxx_werror_flag" ||
  15106. test ! -s conftest.err
  15107. } && test -s conftest$ac_exeext && {
  15108. test "$cross_compiling" = yes ||
  15109. $as_test_x conftest$ac_exeext
  15110. }; then
  15111. ac_cv_lib_swscale_main=yes
  15112. else
  15113. $as_echo "$as_me: failed program was:" >&5
  15114. sed 's/^/| /' conftest.$ac_ext >&5
  15115. ac_cv_lib_swscale_main=no
  15116. fi
  15117. rm -rf conftest.dSYM
  15118. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15119. conftest$ac_exeext conftest.$ac_ext
  15120. LIBS=$ac_check_lib_save_LIBS
  15121. fi
  15122. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_main" >&5
  15123. $as_echo "$ac_cv_lib_swscale_main" >&6; }
  15124. if test "x$ac_cv_lib_swscale_main" = x""yes; then
  15125. cat >>confdefs.h <<_ACEOF
  15126. #define HAVE_LIBSWSCALE 1
  15127. _ACEOF
  15128. LIBS="-lswscale $LIBS"
  15129. else
  15130. { { $as_echo "$as_me:$LINENO: error: FFMpeg swscale library not found. Please install it." >&5
  15131. $as_echo "$as_me: error: FFMpeg swscale library not found. Please install it." >&2;}
  15132. { (exit 1); exit 1; }; }
  15133. fi
  15134. FFMPEG_LIBS="-lavformat -lswscale"
  15135. # Checks for header files.
  15136. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  15137. $as_echo_n "checking for ANSI C header files... " >&6; }
  15138. if test "${ac_cv_header_stdc+set}" = set; then
  15139. $as_echo_n "(cached) " >&6
  15140. else
  15141. cat >conftest.$ac_ext <<_ACEOF
  15142. /* confdefs.h. */
  15143. _ACEOF
  15144. cat confdefs.h >>conftest.$ac_ext
  15145. cat >>conftest.$ac_ext <<_ACEOF
  15146. /* end confdefs.h. */
  15147. #include <stdlib.h>
  15148. #include <stdarg.h>
  15149. #include <string.h>
  15150. #include <float.h>
  15151. int
  15152. main ()
  15153. {
  15154. ;
  15155. return 0;
  15156. }
  15157. _ACEOF
  15158. rm -f conftest.$ac_objext
  15159. if { (ac_try="$ac_compile"
  15160. case "(($ac_try" in
  15161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15162. *) ac_try_echo=$ac_try;;
  15163. esac
  15164. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15165. $as_echo "$ac_try_echo") >&5
  15166. (eval "$ac_compile") 2>conftest.er1
  15167. ac_status=$?
  15168. grep -v '^ *+' conftest.er1 >conftest.err
  15169. rm -f conftest.er1
  15170. cat conftest.err >&5
  15171. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15172. (exit $ac_status); } && {
  15173. test -z "$ac_cxx_werror_flag" ||
  15174. test ! -s conftest.err
  15175. } && test -s conftest.$ac_objext; then
  15176. ac_cv_header_stdc=yes
  15177. else
  15178. $as_echo "$as_me: failed program was:" >&5
  15179. sed 's/^/| /' conftest.$ac_ext >&5
  15180. ac_cv_header_stdc=no
  15181. fi
  15182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15183. if test $ac_cv_header_stdc = yes; then
  15184. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15185. cat >conftest.$ac_ext <<_ACEOF
  15186. /* confdefs.h. */
  15187. _ACEOF
  15188. cat confdefs.h >>conftest.$ac_ext
  15189. cat >>conftest.$ac_ext <<_ACEOF
  15190. /* end confdefs.h. */
  15191. #include <string.h>
  15192. _ACEOF
  15193. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15194. $EGREP "memchr" >/dev/null 2>&1; then
  15195. :
  15196. else
  15197. ac_cv_header_stdc=no
  15198. fi
  15199. rm -f conftest*
  15200. fi
  15201. if test $ac_cv_header_stdc = yes; then
  15202. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15203. cat >conftest.$ac_ext <<_ACEOF
  15204. /* confdefs.h. */
  15205. _ACEOF
  15206. cat confdefs.h >>conftest.$ac_ext
  15207. cat >>conftest.$ac_ext <<_ACEOF
  15208. /* end confdefs.h. */
  15209. #include <stdlib.h>
  15210. _ACEOF
  15211. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15212. $EGREP "free" >/dev/null 2>&1; then
  15213. :
  15214. else
  15215. ac_cv_header_stdc=no
  15216. fi
  15217. rm -f conftest*
  15218. fi
  15219. if test $ac_cv_header_stdc = yes; then
  15220. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15221. if test "$cross_compiling" = yes; then
  15222. :
  15223. else
  15224. cat >conftest.$ac_ext <<_ACEOF
  15225. /* confdefs.h. */
  15226. _ACEOF
  15227. cat confdefs.h >>conftest.$ac_ext
  15228. cat >>conftest.$ac_ext <<_ACEOF
  15229. /* end confdefs.h. */
  15230. #include <ctype.h>
  15231. #include <stdlib.h>
  15232. #if ((' ' & 0x0FF) == 0x020)
  15233. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15234. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15235. #else
  15236. # define ISLOWER(c) \
  15237. (('a' <= (c) && (c) <= 'i') \
  15238. || ('j' <= (c) && (c) <= 'r') \
  15239. || ('s' <= (c) && (c) <= 'z'))
  15240. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15241. #endif
  15242. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15243. int
  15244. main ()
  15245. {
  15246. int i;
  15247. for (i = 0; i < 256; i++)
  15248. if (XOR (islower (i), ISLOWER (i))
  15249. || toupper (i) != TOUPPER (i))
  15250. return 2;
  15251. return 0;
  15252. }
  15253. _ACEOF
  15254. rm -f conftest$ac_exeext
  15255. if { (ac_try="$ac_link"
  15256. case "(($ac_try" in
  15257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15258. *) ac_try_echo=$ac_try;;
  15259. esac
  15260. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15261. $as_echo "$ac_try_echo") >&5
  15262. (eval "$ac_link") 2>&5
  15263. ac_status=$?
  15264. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15265. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15266. { (case "(($ac_try" in
  15267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15268. *) ac_try_echo=$ac_try;;
  15269. esac
  15270. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15271. $as_echo "$ac_try_echo") >&5
  15272. (eval "$ac_try") 2>&5
  15273. ac_status=$?
  15274. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15275. (exit $ac_status); }; }; then
  15276. :
  15277. else
  15278. $as_echo "$as_me: program exited with status $ac_status" >&5
  15279. $as_echo "$as_me: failed program was:" >&5
  15280. sed 's/^/| /' conftest.$ac_ext >&5
  15281. ( exit $ac_status )
  15282. ac_cv_header_stdc=no
  15283. fi
  15284. rm -rf conftest.dSYM
  15285. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15286. fi
  15287. fi
  15288. fi
  15289. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  15290. $as_echo "$ac_cv_header_stdc" >&6; }
  15291. if test $ac_cv_header_stdc = yes; then
  15292. cat >>confdefs.h <<\_ACEOF
  15293. #define STDC_HEADERS 1
  15294. _ACEOF
  15295. fi
  15296. for ac_header in fcntl.h stdlib.h string.h
  15297. do
  15298. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15299. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15300. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15301. $as_echo_n "checking for $ac_header... " >&6; }
  15302. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15303. $as_echo_n "(cached) " >&6
  15304. fi
  15305. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15306. $as_echo "$as_val"'`
  15307. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15308. $as_echo "$ac_res" >&6; }
  15309. else
  15310. # Is the header compilable?
  15311. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15312. $as_echo_n "checking $ac_header usability... " >&6; }
  15313. cat >conftest.$ac_ext <<_ACEOF
  15314. /* confdefs.h. */
  15315. _ACEOF
  15316. cat confdefs.h >>conftest.$ac_ext
  15317. cat >>conftest.$ac_ext <<_ACEOF
  15318. /* end confdefs.h. */
  15319. $ac_includes_default
  15320. #include <$ac_header>
  15321. _ACEOF
  15322. rm -f conftest.$ac_objext
  15323. if { (ac_try="$ac_compile"
  15324. case "(($ac_try" in
  15325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15326. *) ac_try_echo=$ac_try;;
  15327. esac
  15328. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15329. $as_echo "$ac_try_echo") >&5
  15330. (eval "$ac_compile") 2>conftest.er1
  15331. ac_status=$?
  15332. grep -v '^ *+' conftest.er1 >conftest.err
  15333. rm -f conftest.er1
  15334. cat conftest.err >&5
  15335. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15336. (exit $ac_status); } && {
  15337. test -z "$ac_cxx_werror_flag" ||
  15338. test ! -s conftest.err
  15339. } && test -s conftest.$ac_objext; then
  15340. ac_header_compiler=yes
  15341. else
  15342. $as_echo "$as_me: failed program was:" >&5
  15343. sed 's/^/| /' conftest.$ac_ext >&5
  15344. ac_header_compiler=no
  15345. fi
  15346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15347. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15348. $as_echo "$ac_header_compiler" >&6; }
  15349. # Is the header present?
  15350. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15351. $as_echo_n "checking $ac_header presence... " >&6; }
  15352. cat >conftest.$ac_ext <<_ACEOF
  15353. /* confdefs.h. */
  15354. _ACEOF
  15355. cat confdefs.h >>conftest.$ac_ext
  15356. cat >>conftest.$ac_ext <<_ACEOF
  15357. /* end confdefs.h. */
  15358. #include <$ac_header>
  15359. _ACEOF
  15360. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15361. case "(($ac_try" in
  15362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15363. *) ac_try_echo=$ac_try;;
  15364. esac
  15365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15366. $as_echo "$ac_try_echo") >&5
  15367. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15368. ac_status=$?
  15369. grep -v '^ *+' conftest.er1 >conftest.err
  15370. rm -f conftest.er1
  15371. cat conftest.err >&5
  15372. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15373. (exit $ac_status); } >/dev/null && {
  15374. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15375. test ! -s conftest.err
  15376. }; then
  15377. ac_header_preproc=yes
  15378. else
  15379. $as_echo "$as_me: failed program was:" >&5
  15380. sed 's/^/| /' conftest.$ac_ext >&5
  15381. ac_header_preproc=no
  15382. fi
  15383. rm -f conftest.err conftest.$ac_ext
  15384. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15385. $as_echo "$ac_header_preproc" >&6; }
  15386. # So? What about this header?
  15387. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15388. yes:no: )
  15389. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15390. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15391. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15392. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15393. ac_header_preproc=yes
  15394. ;;
  15395. no:yes:* )
  15396. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15397. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15398. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15399. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15400. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15401. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15402. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15403. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15404. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15405. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15406. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15407. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15408. ;;
  15409. esac
  15410. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15411. $as_echo_n "checking for $ac_header... " >&6; }
  15412. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15413. $as_echo_n "(cached) " >&6
  15414. else
  15415. eval "$as_ac_Header=\$ac_header_preproc"
  15416. fi
  15417. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15418. $as_echo "$as_val"'`
  15419. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15420. $as_echo "$ac_res" >&6; }
  15421. fi
  15422. as_val=`eval 'as_val=${'$as_ac_Header'}
  15423. $as_echo "$as_val"'`
  15424. if test "x$as_val" = x""yes; then
  15425. cat >>confdefs.h <<_ACEOF
  15426. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15427. _ACEOF
  15428. fi
  15429. done
  15430. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  15431. 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
  15432. do
  15433. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15434. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15435. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15436. $as_echo_n "checking for $ac_header... " >&6; }
  15437. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15438. $as_echo_n "(cached) " >&6
  15439. fi
  15440. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15441. $as_echo "$as_val"'`
  15442. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15443. $as_echo "$ac_res" >&6; }
  15444. else
  15445. # Is the header compilable?
  15446. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15447. $as_echo_n "checking $ac_header usability... " >&6; }
  15448. cat >conftest.$ac_ext <<_ACEOF
  15449. /* confdefs.h. */
  15450. _ACEOF
  15451. cat confdefs.h >>conftest.$ac_ext
  15452. cat >>conftest.$ac_ext <<_ACEOF
  15453. /* end confdefs.h. */
  15454. $ac_includes_default
  15455. #include <$ac_header>
  15456. _ACEOF
  15457. rm -f conftest.$ac_objext
  15458. if { (ac_try="$ac_compile"
  15459. case "(($ac_try" in
  15460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15461. *) ac_try_echo=$ac_try;;
  15462. esac
  15463. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15464. $as_echo "$ac_try_echo") >&5
  15465. (eval "$ac_compile") 2>conftest.er1
  15466. ac_status=$?
  15467. grep -v '^ *+' conftest.er1 >conftest.err
  15468. rm -f conftest.er1
  15469. cat conftest.err >&5
  15470. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15471. (exit $ac_status); } && {
  15472. test -z "$ac_cxx_werror_flag" ||
  15473. test ! -s conftest.err
  15474. } && test -s conftest.$ac_objext; then
  15475. ac_header_compiler=yes
  15476. else
  15477. $as_echo "$as_me: failed program was:" >&5
  15478. sed 's/^/| /' conftest.$ac_ext >&5
  15479. ac_header_compiler=no
  15480. fi
  15481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15482. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15483. $as_echo "$ac_header_compiler" >&6; }
  15484. # Is the header present?
  15485. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15486. $as_echo_n "checking $ac_header presence... " >&6; }
  15487. cat >conftest.$ac_ext <<_ACEOF
  15488. /* confdefs.h. */
  15489. _ACEOF
  15490. cat confdefs.h >>conftest.$ac_ext
  15491. cat >>conftest.$ac_ext <<_ACEOF
  15492. /* end confdefs.h. */
  15493. #include <$ac_header>
  15494. _ACEOF
  15495. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15496. case "(($ac_try" in
  15497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15498. *) ac_try_echo=$ac_try;;
  15499. esac
  15500. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15501. $as_echo "$ac_try_echo") >&5
  15502. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15503. ac_status=$?
  15504. grep -v '^ *+' conftest.er1 >conftest.err
  15505. rm -f conftest.er1
  15506. cat conftest.err >&5
  15507. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15508. (exit $ac_status); } >/dev/null && {
  15509. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15510. test ! -s conftest.err
  15511. }; then
  15512. ac_header_preproc=yes
  15513. else
  15514. $as_echo "$as_me: failed program was:" >&5
  15515. sed 's/^/| /' conftest.$ac_ext >&5
  15516. ac_header_preproc=no
  15517. fi
  15518. rm -f conftest.err conftest.$ac_ext
  15519. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15520. $as_echo "$ac_header_preproc" >&6; }
  15521. # So? What about this header?
  15522. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15523. yes:no: )
  15524. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15525. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15526. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15527. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15528. ac_header_preproc=yes
  15529. ;;
  15530. no:yes:* )
  15531. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15532. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15533. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15534. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15535. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15536. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15537. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15538. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15539. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15540. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15541. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15542. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15543. ;;
  15544. esac
  15545. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15546. $as_echo_n "checking for $ac_header... " >&6; }
  15547. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15548. $as_echo_n "(cached) " >&6
  15549. else
  15550. eval "$as_ac_Header=\$ac_header_preproc"
  15551. fi
  15552. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15553. $as_echo "$as_val"'`
  15554. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15555. $as_echo "$ac_res" >&6; }
  15556. fi
  15557. as_val=`eval 'as_val=${'$as_ac_Header'}
  15558. $as_echo "$as_val"'`
  15559. if test "x$as_val" = x""yes; then
  15560. cat >>confdefs.h <<_ACEOF
  15561. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15562. _ACEOF
  15563. else
  15564. { { $as_echo "$as_me:$LINENO: error: Required boost headers not found. Please install it." >&5
  15565. $as_echo "$as_me: error: Required boost headers not found. Please install it." >&2;}
  15566. { (exit 1); exit 1; }; }
  15567. fi
  15568. done
  15569. # Checks for library functions.
  15570. for ac_func in atexit memset pow select sqrt
  15571. do
  15572. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15573. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15574. $as_echo_n "checking for $ac_func... " >&6; }
  15575. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15576. $as_echo_n "(cached) " >&6
  15577. else
  15578. cat >conftest.$ac_ext <<_ACEOF
  15579. /* confdefs.h. */
  15580. _ACEOF
  15581. cat confdefs.h >>conftest.$ac_ext
  15582. cat >>conftest.$ac_ext <<_ACEOF
  15583. /* end confdefs.h. */
  15584. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15585. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15586. #define $ac_func innocuous_$ac_func
  15587. /* System header to define __stub macros and hopefully few prototypes,
  15588. which can conflict with char $ac_func (); below.
  15589. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15590. <limits.h> exists even on freestanding compilers. */
  15591. #ifdef __STDC__
  15592. # include <limits.h>
  15593. #else
  15594. # include <assert.h>
  15595. #endif
  15596. #undef $ac_func
  15597. /* Override any GCC internal prototype to avoid an error.
  15598. Use char because int might match the return type of a GCC
  15599. builtin and then its argument prototype would still apply. */
  15600. #ifdef __cplusplus
  15601. extern "C"
  15602. #endif
  15603. char $ac_func ();
  15604. /* The GNU C library defines this for functions which it implements
  15605. to always fail with ENOSYS. Some functions are actually named
  15606. something starting with __ and the normal name is an alias. */
  15607. #if defined __stub_$ac_func || defined __stub___$ac_func
  15608. choke me
  15609. #endif
  15610. int
  15611. main ()
  15612. {
  15613. return $ac_func ();
  15614. ;
  15615. return 0;
  15616. }
  15617. _ACEOF
  15618. rm -f conftest.$ac_objext conftest$ac_exeext
  15619. if { (ac_try="$ac_link"
  15620. case "(($ac_try" in
  15621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15622. *) ac_try_echo=$ac_try;;
  15623. esac
  15624. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15625. $as_echo "$ac_try_echo") >&5
  15626. (eval "$ac_link") 2>conftest.er1
  15627. ac_status=$?
  15628. grep -v '^ *+' conftest.er1 >conftest.err
  15629. rm -f conftest.er1
  15630. cat conftest.err >&5
  15631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15632. (exit $ac_status); } && {
  15633. test -z "$ac_cxx_werror_flag" ||
  15634. test ! -s conftest.err
  15635. } && test -s conftest$ac_exeext && {
  15636. test "$cross_compiling" = yes ||
  15637. $as_test_x conftest$ac_exeext
  15638. }; then
  15639. eval "$as_ac_var=yes"
  15640. else
  15641. $as_echo "$as_me: failed program was:" >&5
  15642. sed 's/^/| /' conftest.$ac_ext >&5
  15643. eval "$as_ac_var=no"
  15644. fi
  15645. rm -rf conftest.dSYM
  15646. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15647. conftest$ac_exeext conftest.$ac_ext
  15648. fi
  15649. ac_res=`eval 'as_val=${'$as_ac_var'}
  15650. $as_echo "$as_val"'`
  15651. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15652. $as_echo "$ac_res" >&6; }
  15653. as_val=`eval 'as_val=${'$as_ac_var'}
  15654. $as_echo "$as_val"'`
  15655. if test "x$as_val" = x""yes; then
  15656. cat >>confdefs.h <<_ACEOF
  15657. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15658. _ACEOF
  15659. fi
  15660. done
  15661. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile"
  15662. cat >confcache <<\_ACEOF
  15663. # This file is a shell script that caches the results of configure
  15664. # tests run on this system so they can be shared between configure
  15665. # scripts and configure runs, see configure's option --config-cache.
  15666. # It is not useful on other systems. If it contains results you don't
  15667. # want to keep, you may remove or edit it.
  15668. #
  15669. # config.status only pays attention to the cache file if you give it
  15670. # the --recheck option to rerun configure.
  15671. #
  15672. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15673. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15674. # following values.
  15675. _ACEOF
  15676. # The following way of writing the cache mishandles newlines in values,
  15677. # but we know of no workaround that is simple, portable, and efficient.
  15678. # So, we kill variables containing newlines.
  15679. # Ultrix sh set writes to stderr and can't be redirected directly,
  15680. # and sets the high bit in the cache file unless we assign to the vars.
  15681. (
  15682. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15683. eval ac_val=\$$ac_var
  15684. case $ac_val in #(
  15685. *${as_nl}*)
  15686. case $ac_var in #(
  15687. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  15688. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15689. esac
  15690. case $ac_var in #(
  15691. _ | IFS | as_nl) ;; #(
  15692. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15693. *) $as_unset $ac_var ;;
  15694. esac ;;
  15695. esac
  15696. done
  15697. (set) 2>&1 |
  15698. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15699. *${as_nl}ac_space=\ *)
  15700. # `set' does not quote correctly, so add quotes (double-quote
  15701. # substitution turns \\\\ into \\, and sed turns \\ into \).
  15702. sed -n \
  15703. "s/'/'\\\\''/g;
  15704. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15705. ;; #(
  15706. *)
  15707. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15708. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15709. ;;
  15710. esac |
  15711. sort
  15712. ) |
  15713. sed '
  15714. /^ac_cv_env_/b end
  15715. t clear
  15716. :clear
  15717. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15718. t end
  15719. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15720. :end' >>confcache
  15721. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15722. if test -w "$cache_file"; then
  15723. test "x$cache_file" != "x/dev/null" &&
  15724. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  15725. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15726. cat confcache >$cache_file
  15727. else
  15728. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  15729. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15730. fi
  15731. fi
  15732. rm -f confcache
  15733. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15734. # Let make expand exec_prefix.
  15735. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15736. # Transform confdefs.h into DEFS.
  15737. # Protect against shell expansion while executing Makefile rules.
  15738. # Protect against Makefile macro expansion.
  15739. #
  15740. # If the first sed substitution is executed (which looks for macros that
  15741. # take arguments), then branch to the quote section. Otherwise,
  15742. # look for a macro that doesn't take arguments.
  15743. ac_script='
  15744. :mline
  15745. /\\$/{
  15746. N
  15747. s,\\\n,,
  15748. b mline
  15749. }
  15750. t clear
  15751. :clear
  15752. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  15753. t quote
  15754. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  15755. t quote
  15756. b any
  15757. :quote
  15758. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  15759. s/\[/\\&/g
  15760. s/\]/\\&/g
  15761. s/\$/$$/g
  15762. H
  15763. :any
  15764. ${
  15765. g
  15766. s/^\n//
  15767. s/\n/ /g
  15768. p
  15769. }
  15770. '
  15771. DEFS=`sed -n "$ac_script" confdefs.h`
  15772. ac_libobjs=
  15773. ac_ltlibobjs=
  15774. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15775. # 1. Remove the extension, and $U if already installed.
  15776. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15777. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15778. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15779. # will be set to the directory where LIBOBJS objects are built.
  15780. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15781. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  15782. done
  15783. LIBOBJS=$ac_libobjs
  15784. LTLIBOBJS=$ac_ltlibobjs
  15785. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15786. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  15787. Usually this means the macro was only invoked conditionally." >&5
  15788. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  15789. Usually this means the macro was only invoked conditionally." >&2;}
  15790. { (exit 1); exit 1; }; }
  15791. fi
  15792. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15793. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  15794. Usually this means the macro was only invoked conditionally." >&5
  15795. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  15796. Usually this means the macro was only invoked conditionally." >&2;}
  15797. { (exit 1); exit 1; }; }
  15798. fi
  15799. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15800. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  15801. Usually this means the macro was only invoked conditionally." >&5
  15802. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  15803. Usually this means the macro was only invoked conditionally." >&2;}
  15804. { (exit 1); exit 1; }; }
  15805. fi
  15806. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15807. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  15808. Usually this means the macro was only invoked conditionally." >&5
  15809. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  15810. Usually this means the macro was only invoked conditionally." >&2;}
  15811. { (exit 1); exit 1; }; }
  15812. fi
  15813. : ${CONFIG_STATUS=./config.status}
  15814. ac_write_fail=0
  15815. ac_clean_files_save=$ac_clean_files
  15816. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15817. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  15818. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15819. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15820. #! $SHELL
  15821. # Generated by $as_me.
  15822. # Run this file to recreate the current configuration.
  15823. # Compiler output produced by configure, useful for debugging
  15824. # configure, is in config.log if it exists.
  15825. debug=false
  15826. ac_cs_recheck=false
  15827. ac_cs_silent=false
  15828. SHELL=\${CONFIG_SHELL-$SHELL}
  15829. _ACEOF
  15830. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15831. ## --------------------- ##
  15832. ## M4sh Initialization. ##
  15833. ## --------------------- ##
  15834. # Be more Bourne compatible
  15835. DUALCASE=1; export DUALCASE # for MKS sh
  15836. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15837. emulate sh
  15838. NULLCMD=:
  15839. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15840. # is contrary to our usage. Disable this feature.
  15841. alias -g '${1+"$@"}'='"$@"'
  15842. setopt NO_GLOB_SUBST
  15843. else
  15844. case `(set -o) 2>/dev/null` in
  15845. *posix*) set -o posix ;;
  15846. esac
  15847. fi
  15848. # PATH needs CR
  15849. # Avoid depending upon Character Ranges.
  15850. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15851. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15852. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15853. as_cr_digits='0123456789'
  15854. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15855. as_nl='
  15856. '
  15857. export as_nl
  15858. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15859. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15860. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15861. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15862. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15863. as_echo='printf %s\n'
  15864. as_echo_n='printf %s'
  15865. else
  15866. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15867. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15868. as_echo_n='/usr/ucb/echo -n'
  15869. else
  15870. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15871. as_echo_n_body='eval
  15872. arg=$1;
  15873. case $arg in
  15874. *"$as_nl"*)
  15875. expr "X$arg" : "X\\(.*\\)$as_nl";
  15876. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15877. esac;
  15878. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15879. '
  15880. export as_echo_n_body
  15881. as_echo_n='sh -c $as_echo_n_body as_echo'
  15882. fi
  15883. export as_echo_body
  15884. as_echo='sh -c $as_echo_body as_echo'
  15885. fi
  15886. # The user is always right.
  15887. if test "${PATH_SEPARATOR+set}" != set; then
  15888. PATH_SEPARATOR=:
  15889. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15890. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15891. PATH_SEPARATOR=';'
  15892. }
  15893. fi
  15894. # Support unset when possible.
  15895. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  15896. as_unset=unset
  15897. else
  15898. as_unset=false
  15899. fi
  15900. # IFS
  15901. # We need space, tab and new line, in precisely that order. Quoting is
  15902. # there to prevent editors from complaining about space-tab.
  15903. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15904. # splitting by setting IFS to empty value.)
  15905. IFS=" "" $as_nl"
  15906. # Find who we are. Look in the path if we contain no directory separator.
  15907. case $0 in
  15908. *[\\/]* ) as_myself=$0 ;;
  15909. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15910. for as_dir in $PATH
  15911. do
  15912. IFS=$as_save_IFS
  15913. test -z "$as_dir" && as_dir=.
  15914. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15915. done
  15916. IFS=$as_save_IFS
  15917. ;;
  15918. esac
  15919. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15920. # in which case we are not to be found in the path.
  15921. if test "x$as_myself" = x; then
  15922. as_myself=$0
  15923. fi
  15924. if test ! -f "$as_myself"; then
  15925. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15926. { (exit 1); exit 1; }
  15927. fi
  15928. # Work around bugs in pre-3.0 UWIN ksh.
  15929. for as_var in ENV MAIL MAILPATH
  15930. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15931. done
  15932. PS1='$ '
  15933. PS2='> '
  15934. PS4='+ '
  15935. # NLS nuisances.
  15936. LC_ALL=C
  15937. export LC_ALL
  15938. LANGUAGE=C
  15939. export LANGUAGE
  15940. # Required to use basename.
  15941. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15942. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15943. as_expr=expr
  15944. else
  15945. as_expr=false
  15946. fi
  15947. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15948. as_basename=basename
  15949. else
  15950. as_basename=false
  15951. fi
  15952. # Name of the executable.
  15953. as_me=`$as_basename -- "$0" ||
  15954. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15955. X"$0" : 'X\(//\)$' \| \
  15956. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15957. $as_echo X/"$0" |
  15958. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15959. s//\1/
  15960. q
  15961. }
  15962. /^X\/\(\/\/\)$/{
  15963. s//\1/
  15964. q
  15965. }
  15966. /^X\/\(\/\).*/{
  15967. s//\1/
  15968. q
  15969. }
  15970. s/.*/./; q'`
  15971. # CDPATH.
  15972. $as_unset CDPATH
  15973. as_lineno_1=$LINENO
  15974. as_lineno_2=$LINENO
  15975. test "x$as_lineno_1" != "x$as_lineno_2" &&
  15976. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  15977. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  15978. # uniformly replaced by the line number. The first 'sed' inserts a
  15979. # line-number line after each line using $LINENO; the second 'sed'
  15980. # does the real work. The second script uses 'N' to pair each
  15981. # line-number line with the line containing $LINENO, and appends
  15982. # trailing '-' during substitution so that $LINENO is not a special
  15983. # case at line end.
  15984. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  15985. # scripts with optimization help from Paolo Bonzini. Blame Lee
  15986. # E. McMahon (1931-1989) for sed's syntax. :-)
  15987. sed -n '
  15988. p
  15989. /[$]LINENO/=
  15990. ' <$as_myself |
  15991. sed '
  15992. s/[$]LINENO.*/&-/
  15993. t lineno
  15994. b
  15995. :lineno
  15996. N
  15997. :loop
  15998. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  15999. t loop
  16000. s/-\n.*//
  16001. ' >$as_me.lineno &&
  16002. chmod +x "$as_me.lineno" ||
  16003. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  16004. { (exit 1); exit 1; }; }
  16005. # Don't try to exec as it changes $[0], causing all sort of problems
  16006. # (the dirname of $[0] is not the place where we might find the
  16007. # original and so on. Autoconf is especially sensitive to this).
  16008. . "./$as_me.lineno"
  16009. # Exit status is that of the last command.
  16010. exit
  16011. }
  16012. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16013. as_dirname=dirname
  16014. else
  16015. as_dirname=false
  16016. fi
  16017. ECHO_C= ECHO_N= ECHO_T=
  16018. case `echo -n x` in
  16019. -n*)
  16020. case `echo 'x\c'` in
  16021. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16022. *) ECHO_C='\c';;
  16023. esac;;
  16024. *)
  16025. ECHO_N='-n';;
  16026. esac
  16027. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16028. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16029. as_expr=expr
  16030. else
  16031. as_expr=false
  16032. fi
  16033. rm -f conf$$ conf$$.exe conf$$.file
  16034. if test -d conf$$.dir; then
  16035. rm -f conf$$.dir/conf$$.file
  16036. else
  16037. rm -f conf$$.dir
  16038. mkdir conf$$.dir 2>/dev/null
  16039. fi
  16040. if (echo >conf$$.file) 2>/dev/null; then
  16041. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16042. as_ln_s='ln -s'
  16043. # ... but there are two gotchas:
  16044. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16045. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16046. # In both cases, we have to default to `cp -p'.
  16047. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16048. as_ln_s='cp -p'
  16049. elif ln conf$$.file conf$$ 2>/dev/null; then
  16050. as_ln_s=ln
  16051. else
  16052. as_ln_s='cp -p'
  16053. fi
  16054. else
  16055. as_ln_s='cp -p'
  16056. fi
  16057. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16058. rmdir conf$$.dir 2>/dev/null
  16059. if mkdir -p . 2>/dev/null; then
  16060. as_mkdir_p=:
  16061. else
  16062. test -d ./-p && rmdir ./-p
  16063. as_mkdir_p=false
  16064. fi
  16065. if test -x / >/dev/null 2>&1; then
  16066. as_test_x='test -x'
  16067. else
  16068. if ls -dL / >/dev/null 2>&1; then
  16069. as_ls_L_option=L
  16070. else
  16071. as_ls_L_option=
  16072. fi
  16073. as_test_x='
  16074. eval sh -c '\''
  16075. if test -d "$1"; then
  16076. test -d "$1/.";
  16077. else
  16078. case $1 in
  16079. -*)set "./$1";;
  16080. esac;
  16081. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  16082. ???[sx]*):;;*)false;;esac;fi
  16083. '\'' sh
  16084. '
  16085. fi
  16086. as_executable_p=$as_test_x
  16087. # Sed expression to map a string onto a valid CPP name.
  16088. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16089. # Sed expression to map a string onto a valid variable name.
  16090. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16091. exec 6>&1
  16092. # Save the log message, to keep $[0] and so on meaningful, and to
  16093. # report actual input values of CONFIG_FILES etc. instead of their
  16094. # values after options handling.
  16095. ac_log="
  16096. This file was extended by vcmi $as_me VERSION, which was
  16097. generated by GNU Autoconf 2.63. Invocation command line was
  16098. CONFIG_FILES = $CONFIG_FILES
  16099. CONFIG_HEADERS = $CONFIG_HEADERS
  16100. CONFIG_LINKS = $CONFIG_LINKS
  16101. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16102. $ $0 $@
  16103. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16104. "
  16105. _ACEOF
  16106. case $ac_config_files in *"
  16107. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16108. esac
  16109. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16110. # Files that config.status was made for.
  16111. config_files="$ac_config_files"
  16112. config_commands="$ac_config_commands"
  16113. _ACEOF
  16114. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16115. ac_cs_usage="\
  16116. \`$as_me' instantiates files from templates according to the
  16117. current configuration.
  16118. Usage: $0 [OPTION]... [FILE]...
  16119. -h, --help print this help, then exit
  16120. -V, --version print version number and configuration settings, then exit
  16121. -q, --quiet, --silent
  16122. do not print progress messages
  16123. -d, --debug don't remove temporary files
  16124. --recheck update $as_me by reconfiguring in the same conditions
  16125. --file=FILE[:TEMPLATE]
  16126. instantiate the configuration file FILE
  16127. Configuration files:
  16128. $config_files
  16129. Configuration commands:
  16130. $config_commands
  16131. Report bugs to <[email protected]>."
  16132. _ACEOF
  16133. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16134. ac_cs_version="\\
  16135. vcmi config.status VERSION
  16136. configured by $0, generated by GNU Autoconf 2.63,
  16137. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  16138. Copyright (C) 2008 Free Software Foundation, Inc.
  16139. This config.status script is free software; the Free Software Foundation
  16140. gives unlimited permission to copy, distribute and modify it."
  16141. ac_pwd='$ac_pwd'
  16142. srcdir='$srcdir'
  16143. INSTALL='$INSTALL'
  16144. MKDIR_P='$MKDIR_P'
  16145. AWK='$AWK'
  16146. test -n "\$AWK" || AWK=awk
  16147. _ACEOF
  16148. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16149. # The default lists apply if the user does not specify any file.
  16150. ac_need_defaults=:
  16151. while test $# != 0
  16152. do
  16153. case $1 in
  16154. --*=*)
  16155. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16156. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16157. ac_shift=:
  16158. ;;
  16159. *)
  16160. ac_option=$1
  16161. ac_optarg=$2
  16162. ac_shift=shift
  16163. ;;
  16164. esac
  16165. case $ac_option in
  16166. # Handling of the options.
  16167. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16168. ac_cs_recheck=: ;;
  16169. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16170. $as_echo "$ac_cs_version"; exit ;;
  16171. --debug | --debu | --deb | --de | --d | -d )
  16172. debug=: ;;
  16173. --file | --fil | --fi | --f )
  16174. $ac_shift
  16175. case $ac_optarg in
  16176. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16177. esac
  16178. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  16179. ac_need_defaults=false;;
  16180. --he | --h | --help | --hel | -h )
  16181. $as_echo "$ac_cs_usage"; exit ;;
  16182. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16183. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16184. ac_cs_silent=: ;;
  16185. # This is an error.
  16186. -*) { $as_echo "$as_me: error: unrecognized option: $1
  16187. Try \`$0 --help' for more information." >&2
  16188. { (exit 1); exit 1; }; } ;;
  16189. *) ac_config_targets="$ac_config_targets $1"
  16190. ac_need_defaults=false ;;
  16191. esac
  16192. shift
  16193. done
  16194. ac_configure_extra_args=
  16195. if $ac_cs_silent; then
  16196. exec 6>/dev/null
  16197. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16198. fi
  16199. _ACEOF
  16200. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16201. if \$ac_cs_recheck; then
  16202. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16203. shift
  16204. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16205. CONFIG_SHELL='$SHELL'
  16206. export CONFIG_SHELL
  16207. exec "\$@"
  16208. fi
  16209. _ACEOF
  16210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16211. exec 5>>config.log
  16212. {
  16213. echo
  16214. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16215. ## Running $as_me. ##
  16216. _ASBOX
  16217. $as_echo "$ac_log"
  16218. } >&5
  16219. _ACEOF
  16220. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16221. #
  16222. # INIT-COMMANDS
  16223. #
  16224. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16225. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16226. # if CDPATH is set.
  16227. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16228. sed_quote_subst='$sed_quote_subst'
  16229. double_quote_subst='$double_quote_subst'
  16230. delay_variable_subst='$delay_variable_subst'
  16231. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  16232. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  16233. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  16234. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  16235. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  16236. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  16237. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  16238. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  16239. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  16240. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  16241. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  16242. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  16243. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  16244. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  16245. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  16246. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  16247. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  16248. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  16249. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  16250. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  16251. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  16252. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  16253. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  16254. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  16255. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  16256. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  16257. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16258. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16259. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  16260. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  16261. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  16262. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  16263. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  16264. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  16265. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  16266. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16267. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16268. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16269. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  16270. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  16271. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  16272. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  16273. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  16274. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  16275. 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"`'
  16276. 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"`'
  16277. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  16278. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  16279. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  16280. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  16281. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16282. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  16283. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  16284. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  16285. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  16286. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  16287. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  16288. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  16289. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  16290. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  16291. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  16292. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  16293. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16294. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16295. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  16296. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  16297. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16298. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16299. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  16300. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16301. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16302. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16303. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16304. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16305. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16306. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  16307. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16308. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16309. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16310. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  16311. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  16312. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  16313. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  16314. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  16315. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16316. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  16317. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  16318. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  16319. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  16320. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  16321. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16322. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  16323. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  16324. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16325. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16326. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  16327. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  16328. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  16329. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  16330. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16331. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16332. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  16333. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16334. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16335. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16336. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16337. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16338. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16339. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  16340. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  16341. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16342. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16343. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  16344. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  16345. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  16346. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  16347. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  16348. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  16349. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  16350. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  16351. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  16352. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  16353. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  16354. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  16355. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16356. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16357. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16358. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16359. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16360. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16361. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16362. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16363. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16364. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16365. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16366. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16367. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16368. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16369. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16370. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16371. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16372. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16373. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16374. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16375. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16376. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16377. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16378. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16379. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16380. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16381. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16382. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16383. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16384. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16385. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16386. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16387. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16388. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16389. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16390. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16391. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16392. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16393. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16394. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16395. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16396. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16397. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16398. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16399. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16400. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16401. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16402. LTCC='$LTCC'
  16403. LTCFLAGS='$LTCFLAGS'
  16404. compiler='$compiler_DEFAULT'
  16405. # Quote evaled strings.
  16406. for var in SED \
  16407. GREP \
  16408. EGREP \
  16409. FGREP \
  16410. LD \
  16411. NM \
  16412. LN_S \
  16413. lt_SP2NL \
  16414. lt_NL2SP \
  16415. reload_flag \
  16416. OBJDUMP \
  16417. deplibs_check_method \
  16418. file_magic_cmd \
  16419. AR \
  16420. AR_FLAGS \
  16421. STRIP \
  16422. RANLIB \
  16423. CC \
  16424. CFLAGS \
  16425. compiler \
  16426. lt_cv_sys_global_symbol_pipe \
  16427. lt_cv_sys_global_symbol_to_cdecl \
  16428. lt_cv_sys_global_symbol_to_c_name_address \
  16429. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16430. SHELL \
  16431. ECHO \
  16432. lt_prog_compiler_no_builtin_flag \
  16433. lt_prog_compiler_wl \
  16434. lt_prog_compiler_pic \
  16435. lt_prog_compiler_static \
  16436. lt_cv_prog_compiler_c_o \
  16437. need_locks \
  16438. DSYMUTIL \
  16439. NMEDIT \
  16440. LIPO \
  16441. OTOOL \
  16442. OTOOL64 \
  16443. shrext_cmds \
  16444. export_dynamic_flag_spec \
  16445. whole_archive_flag_spec \
  16446. compiler_needs_object \
  16447. with_gnu_ld \
  16448. allow_undefined_flag \
  16449. no_undefined_flag \
  16450. hardcode_libdir_flag_spec \
  16451. hardcode_libdir_flag_spec_ld \
  16452. hardcode_libdir_separator \
  16453. fix_srcfile_path \
  16454. exclude_expsyms \
  16455. include_expsyms \
  16456. file_list_spec \
  16457. variables_saved_for_relink \
  16458. libname_spec \
  16459. library_names_spec \
  16460. soname_spec \
  16461. finish_eval \
  16462. old_striplib \
  16463. striplib \
  16464. compiler_lib_search_dirs \
  16465. predep_objects \
  16466. postdep_objects \
  16467. predeps \
  16468. postdeps \
  16469. compiler_lib_search_path \
  16470. LD_CXX \
  16471. compiler_CXX \
  16472. lt_prog_compiler_no_builtin_flag_CXX \
  16473. lt_prog_compiler_wl_CXX \
  16474. lt_prog_compiler_pic_CXX \
  16475. lt_prog_compiler_static_CXX \
  16476. lt_cv_prog_compiler_c_o_CXX \
  16477. export_dynamic_flag_spec_CXX \
  16478. whole_archive_flag_spec_CXX \
  16479. compiler_needs_object_CXX \
  16480. with_gnu_ld_CXX \
  16481. allow_undefined_flag_CXX \
  16482. no_undefined_flag_CXX \
  16483. hardcode_libdir_flag_spec_CXX \
  16484. hardcode_libdir_flag_spec_ld_CXX \
  16485. hardcode_libdir_separator_CXX \
  16486. fix_srcfile_path_CXX \
  16487. exclude_expsyms_CXX \
  16488. include_expsyms_CXX \
  16489. file_list_spec_CXX \
  16490. compiler_lib_search_dirs_CXX \
  16491. predep_objects_CXX \
  16492. postdep_objects_CXX \
  16493. predeps_CXX \
  16494. postdeps_CXX \
  16495. compiler_lib_search_path_CXX; do
  16496. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  16497. *[\\\\\\\`\\"\\\$]*)
  16498. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16499. ;;
  16500. *)
  16501. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16502. ;;
  16503. esac
  16504. done
  16505. # Double-quote double-evaled strings.
  16506. for var in reload_cmds \
  16507. old_postinstall_cmds \
  16508. old_postuninstall_cmds \
  16509. old_archive_cmds \
  16510. extract_expsyms_cmds \
  16511. old_archive_from_new_cmds \
  16512. old_archive_from_expsyms_cmds \
  16513. archive_cmds \
  16514. archive_expsym_cmds \
  16515. module_cmds \
  16516. module_expsym_cmds \
  16517. export_symbols_cmds \
  16518. prelink_cmds \
  16519. postinstall_cmds \
  16520. postuninstall_cmds \
  16521. finish_cmds \
  16522. sys_lib_search_path_spec \
  16523. sys_lib_dlsearch_path_spec \
  16524. old_archive_cmds_CXX \
  16525. old_archive_from_new_cmds_CXX \
  16526. old_archive_from_expsyms_cmds_CXX \
  16527. archive_cmds_CXX \
  16528. archive_expsym_cmds_CXX \
  16529. module_cmds_CXX \
  16530. module_expsym_cmds_CXX \
  16531. export_symbols_cmds_CXX \
  16532. prelink_cmds_CXX; do
  16533. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  16534. *[\\\\\\\`\\"\\\$]*)
  16535. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16536. ;;
  16537. *)
  16538. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16539. ;;
  16540. esac
  16541. done
  16542. # Fix-up fallback echo if it was mangled by the above quoting rules.
  16543. case \$lt_ECHO in
  16544. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  16545. ;;
  16546. esac
  16547. ac_aux_dir='$ac_aux_dir'
  16548. xsi_shell='$xsi_shell'
  16549. lt_shell_append='$lt_shell_append'
  16550. # See if we are running on zsh, and set the options which allow our
  16551. # commands through without removal of \ escapes INIT.
  16552. if test -n "\${ZSH_VERSION+set}" ; then
  16553. setopt NO_GLOB_SUBST
  16554. fi
  16555. PACKAGE='$PACKAGE'
  16556. VERSION='$VERSION'
  16557. TIMESTAMP='$TIMESTAMP'
  16558. RM='$RM'
  16559. ofile='$ofile'
  16560. _ACEOF
  16561. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16562. # Handling of arguments.
  16563. for ac_config_target in $ac_config_targets
  16564. do
  16565. case $ac_config_target in
  16566. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16567. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16568. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16569. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  16570. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  16571. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  16572. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  16573. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  16574. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  16575. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  16576. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  16577. { (exit 1); exit 1; }; };;
  16578. esac
  16579. done
  16580. # If the user did not use the arguments to specify the items to instantiate,
  16581. # then the envvar interface is used. Set only those that are not.
  16582. # We use the long form for the default assignment because of an extremely
  16583. # bizarre bug on SunOS 4.1.3.
  16584. if $ac_need_defaults; then
  16585. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16586. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16587. fi
  16588. # Have a temporary directory for convenience. Make it in the build tree
  16589. # simply because there is no reason against having it here, and in addition,
  16590. # creating and moving files from /tmp can sometimes cause problems.
  16591. # Hook for its removal unless debugging.
  16592. # Note that there is a small window in which the directory will not be cleaned:
  16593. # after its creation but before its name has been assigned to `$tmp'.
  16594. $debug ||
  16595. {
  16596. tmp=
  16597. trap 'exit_status=$?
  16598. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  16599. ' 0
  16600. trap '{ (exit 1); exit 1; }' 1 2 13 15
  16601. }
  16602. # Create a (secure) tmp directory for tmp files.
  16603. {
  16604. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16605. test -n "$tmp" && test -d "$tmp"
  16606. } ||
  16607. {
  16608. tmp=./conf$$-$RANDOM
  16609. (umask 077 && mkdir "$tmp")
  16610. } ||
  16611. {
  16612. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  16613. { (exit 1); exit 1; }
  16614. }
  16615. # Set up the scripts for CONFIG_FILES section.
  16616. # No need to generate them if there are no CONFIG_FILES.
  16617. # This happens for instance with `./config.status config.h'.
  16618. if test -n "$CONFIG_FILES"; then
  16619. ac_cr=' '
  16620. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16621. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16622. ac_cs_awk_cr='\\r'
  16623. else
  16624. ac_cs_awk_cr=$ac_cr
  16625. fi
  16626. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  16627. _ACEOF
  16628. {
  16629. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16630. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16631. echo "_ACEOF"
  16632. } >conf$$subs.sh ||
  16633. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16634. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16635. { (exit 1); exit 1; }; }
  16636. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  16637. ac_delim='%!_!# '
  16638. for ac_last_try in false false false false false :; do
  16639. . ./conf$$subs.sh ||
  16640. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16641. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16642. { (exit 1); exit 1; }; }
  16643. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16644. if test $ac_delim_n = $ac_delim_num; then
  16645. break
  16646. elif $ac_last_try; then
  16647. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16648. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16649. { (exit 1); exit 1; }; }
  16650. else
  16651. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16652. fi
  16653. done
  16654. rm -f conf$$subs.sh
  16655. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16656. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  16657. _ACEOF
  16658. sed -n '
  16659. h
  16660. s/^/S["/; s/!.*/"]=/
  16661. p
  16662. g
  16663. s/^[^!]*!//
  16664. :repl
  16665. t repl
  16666. s/'"$ac_delim"'$//
  16667. t delim
  16668. :nl
  16669. h
  16670. s/\(.\{148\}\).*/\1/
  16671. t more1
  16672. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16673. p
  16674. n
  16675. b repl
  16676. :more1
  16677. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16678. p
  16679. g
  16680. s/.\{148\}//
  16681. t nl
  16682. :delim
  16683. h
  16684. s/\(.\{148\}\).*/\1/
  16685. t more2
  16686. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16687. p
  16688. b
  16689. :more2
  16690. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16691. p
  16692. g
  16693. s/.\{148\}//
  16694. t delim
  16695. ' <conf$$subs.awk | sed '
  16696. /^[^""]/{
  16697. N
  16698. s/\n//
  16699. }
  16700. ' >>$CONFIG_STATUS || ac_write_fail=1
  16701. rm -f conf$$subs.awk
  16702. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16703. _ACAWK
  16704. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  16705. for (key in S) S_is_set[key] = 1
  16706. FS = ""
  16707. }
  16708. {
  16709. line = $ 0
  16710. nfields = split(line, field, "@")
  16711. substed = 0
  16712. len = length(field[1])
  16713. for (i = 2; i < nfields; i++) {
  16714. key = field[i]
  16715. keylen = length(key)
  16716. if (S_is_set[key]) {
  16717. value = S[key]
  16718. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16719. len += length(value) + length(field[++i])
  16720. substed = 1
  16721. } else
  16722. len += 1 + keylen
  16723. }
  16724. print line
  16725. }
  16726. _ACAWK
  16727. _ACEOF
  16728. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16729. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16730. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16731. else
  16732. cat
  16733. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  16734. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  16735. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  16736. { (exit 1); exit 1; }; }
  16737. _ACEOF
  16738. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  16739. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  16740. # trailing colons and then remove the whole line if VPATH becomes empty
  16741. # (actually we leave an empty line to preserve line numbers).
  16742. if test "x$srcdir" = x.; then
  16743. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  16744. s/:*\$(srcdir):*/:/
  16745. s/:*\${srcdir}:*/:/
  16746. s/:*@srcdir@:*/:/
  16747. s/^\([^=]*=[ ]*\):*/\1/
  16748. s/:*$//
  16749. s/^[^=]*=[ ]*$//
  16750. }'
  16751. fi
  16752. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16753. fi # test -n "$CONFIG_FILES"
  16754. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  16755. shift
  16756. for ac_tag
  16757. do
  16758. case $ac_tag in
  16759. :[FHLC]) ac_mode=$ac_tag; continue;;
  16760. esac
  16761. case $ac_mode$ac_tag in
  16762. :[FHL]*:*);;
  16763. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  16764. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  16765. { (exit 1); exit 1; }; };;
  16766. :[FH]-) ac_tag=-:-;;
  16767. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16768. esac
  16769. ac_save_IFS=$IFS
  16770. IFS=:
  16771. set x $ac_tag
  16772. IFS=$ac_save_IFS
  16773. shift
  16774. ac_file=$1
  16775. shift
  16776. case $ac_mode in
  16777. :L) ac_source=$1;;
  16778. :[FH])
  16779. ac_file_inputs=
  16780. for ac_f
  16781. do
  16782. case $ac_f in
  16783. -) ac_f="$tmp/stdin";;
  16784. *) # Look for the file first in the build tree, then in the source tree
  16785. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16786. # because $ac_f cannot contain `:'.
  16787. test -f "$ac_f" ||
  16788. case $ac_f in
  16789. [\\/$]*) false;;
  16790. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16791. esac ||
  16792. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  16793. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  16794. { (exit 1); exit 1; }; };;
  16795. esac
  16796. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16797. ac_file_inputs="$ac_file_inputs '$ac_f'"
  16798. done
  16799. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16800. # use $as_me), people would be surprised to read:
  16801. # /* config.h. Generated by config.status. */
  16802. configure_input='Generated from '`
  16803. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16804. `' by configure.'
  16805. if test x"$ac_file" != x-; then
  16806. configure_input="$ac_file. $configure_input"
  16807. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  16808. $as_echo "$as_me: creating $ac_file" >&6;}
  16809. fi
  16810. # Neutralize special characters interpreted by sed in replacement strings.
  16811. case $configure_input in #(
  16812. *\&* | *\|* | *\\* )
  16813. ac_sed_conf_input=`$as_echo "$configure_input" |
  16814. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16815. *) ac_sed_conf_input=$configure_input;;
  16816. esac
  16817. case $ac_tag in
  16818. *:-:* | *:-) cat >"$tmp/stdin" \
  16819. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  16820. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  16821. { (exit 1); exit 1; }; } ;;
  16822. esac
  16823. ;;
  16824. esac
  16825. ac_dir=`$as_dirname -- "$ac_file" ||
  16826. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16827. X"$ac_file" : 'X\(//\)[^/]' \| \
  16828. X"$ac_file" : 'X\(//\)$' \| \
  16829. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16830. $as_echo X"$ac_file" |
  16831. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16832. s//\1/
  16833. q
  16834. }
  16835. /^X\(\/\/\)[^/].*/{
  16836. s//\1/
  16837. q
  16838. }
  16839. /^X\(\/\/\)$/{
  16840. s//\1/
  16841. q
  16842. }
  16843. /^X\(\/\).*/{
  16844. s//\1/
  16845. q
  16846. }
  16847. s/.*/./; q'`
  16848. { as_dir="$ac_dir"
  16849. case $as_dir in #(
  16850. -*) as_dir=./$as_dir;;
  16851. esac
  16852. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  16853. as_dirs=
  16854. while :; do
  16855. case $as_dir in #(
  16856. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16857. *) as_qdir=$as_dir;;
  16858. esac
  16859. as_dirs="'$as_qdir' $as_dirs"
  16860. as_dir=`$as_dirname -- "$as_dir" ||
  16861. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16862. X"$as_dir" : 'X\(//\)[^/]' \| \
  16863. X"$as_dir" : 'X\(//\)$' \| \
  16864. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16865. $as_echo X"$as_dir" |
  16866. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16867. s//\1/
  16868. q
  16869. }
  16870. /^X\(\/\/\)[^/].*/{
  16871. s//\1/
  16872. q
  16873. }
  16874. /^X\(\/\/\)$/{
  16875. s//\1/
  16876. q
  16877. }
  16878. /^X\(\/\).*/{
  16879. s//\1/
  16880. q
  16881. }
  16882. s/.*/./; q'`
  16883. test -d "$as_dir" && break
  16884. done
  16885. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16886. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  16887. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  16888. { (exit 1); exit 1; }; }; }
  16889. ac_builddir=.
  16890. case "$ac_dir" in
  16891. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16892. *)
  16893. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16894. # A ".." for each directory in $ac_dir_suffix.
  16895. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16896. case $ac_top_builddir_sub in
  16897. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16898. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16899. esac ;;
  16900. esac
  16901. ac_abs_top_builddir=$ac_pwd
  16902. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16903. # for backward compatibility:
  16904. ac_top_builddir=$ac_top_build_prefix
  16905. case $srcdir in
  16906. .) # We are building in place.
  16907. ac_srcdir=.
  16908. ac_top_srcdir=$ac_top_builddir_sub
  16909. ac_abs_top_srcdir=$ac_pwd ;;
  16910. [\\/]* | ?:[\\/]* ) # Absolute name.
  16911. ac_srcdir=$srcdir$ac_dir_suffix;
  16912. ac_top_srcdir=$srcdir
  16913. ac_abs_top_srcdir=$srcdir ;;
  16914. *) # Relative name.
  16915. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16916. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16917. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16918. esac
  16919. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16920. case $ac_mode in
  16921. :F)
  16922. #
  16923. # CONFIG_FILE
  16924. #
  16925. case $INSTALL in
  16926. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16927. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16928. esac
  16929. ac_MKDIR_P=$MKDIR_P
  16930. case $MKDIR_P in
  16931. [\\/$]* | ?:[\\/]* ) ;;
  16932. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16933. esac
  16934. _ACEOF
  16935. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16936. # If the template does not know about datarootdir, expand it.
  16937. # FIXME: This hack should be removed a few years after 2.60.
  16938. ac_datarootdir_hack=; ac_datarootdir_seen=
  16939. ac_sed_dataroot='
  16940. /datarootdir/ {
  16941. p
  16942. q
  16943. }
  16944. /@datadir@/p
  16945. /@docdir@/p
  16946. /@infodir@/p
  16947. /@localedir@/p
  16948. /@mandir@/p
  16949. '
  16950. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16951. *datarootdir*) ac_datarootdir_seen=yes;;
  16952. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16953. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16954. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16955. _ACEOF
  16956. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16957. ac_datarootdir_hack='
  16958. s&@datadir@&$datadir&g
  16959. s&@docdir@&$docdir&g
  16960. s&@infodir@&$infodir&g
  16961. s&@localedir@&$localedir&g
  16962. s&@mandir@&$mandir&g
  16963. s&\\\${datarootdir}&$datarootdir&g' ;;
  16964. esac
  16965. _ACEOF
  16966. # Neutralize VPATH when `$srcdir' = `.'.
  16967. # Shell code in configure.ac might set extrasub.
  16968. # FIXME: do we really want to maintain this feature?
  16969. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16970. ac_sed_extra="$ac_vpsub
  16971. $extrasub
  16972. _ACEOF
  16973. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16974. :t
  16975. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16976. s|@configure_input@|$ac_sed_conf_input|;t t
  16977. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16978. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16979. s&@srcdir@&$ac_srcdir&;t t
  16980. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16981. s&@top_srcdir@&$ac_top_srcdir&;t t
  16982. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16983. s&@builddir@&$ac_builddir&;t t
  16984. s&@abs_builddir@&$ac_abs_builddir&;t t
  16985. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16986. s&@INSTALL@&$ac_INSTALL&;t t
  16987. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16988. $ac_datarootdir_hack
  16989. "
  16990. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  16991. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  16992. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  16993. { (exit 1); exit 1; }; }
  16994. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16995. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  16996. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  16997. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16998. which seems to be undefined. Please make sure it is defined." >&5
  16999. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17000. which seems to be undefined. Please make sure it is defined." >&2;}
  17001. rm -f "$tmp/stdin"
  17002. case $ac_file in
  17003. -) cat "$tmp/out" && rm -f "$tmp/out";;
  17004. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  17005. esac \
  17006. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  17007. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  17008. { (exit 1); exit 1; }; }
  17009. ;;
  17010. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  17011. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17012. ;;
  17013. esac
  17014. case $ac_file$ac_mode in
  17015. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17016. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  17017. # are listed without --file. Let's play safe and only enable the eval
  17018. # if we detect the quoting.
  17019. case $CONFIG_FILES in
  17020. *\'*) eval set x "$CONFIG_FILES" ;;
  17021. *) set x $CONFIG_FILES ;;
  17022. esac
  17023. shift
  17024. for mf
  17025. do
  17026. # Strip MF so we end up with the name of the file.
  17027. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17028. # Check whether this is an Automake generated Makefile or not.
  17029. # We used to match only the files named `Makefile.in', but
  17030. # some people rename them; so instead we look at the file content.
  17031. # Grep'ing the first line is not enough: some people post-process
  17032. # each Makefile.in and add a new line on top of each file to say so.
  17033. # Grep'ing the whole file is not good either: AIX grep has a line
  17034. # limit of 2048, but all sed's we know have understand at least 4000.
  17035. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  17036. dirpart=`$as_dirname -- "$mf" ||
  17037. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17038. X"$mf" : 'X\(//\)[^/]' \| \
  17039. X"$mf" : 'X\(//\)$' \| \
  17040. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17041. $as_echo X"$mf" |
  17042. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17043. s//\1/
  17044. q
  17045. }
  17046. /^X\(\/\/\)[^/].*/{
  17047. s//\1/
  17048. q
  17049. }
  17050. /^X\(\/\/\)$/{
  17051. s//\1/
  17052. q
  17053. }
  17054. /^X\(\/\).*/{
  17055. s//\1/
  17056. q
  17057. }
  17058. s/.*/./; q'`
  17059. else
  17060. continue
  17061. fi
  17062. # Extract the definition of DEPDIR, am__include, and am__quote
  17063. # from the Makefile without running `make'.
  17064. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17065. test -z "$DEPDIR" && continue
  17066. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17067. test -z "am__include" && continue
  17068. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17069. # When using ansi2knr, U may be empty or an underscore; expand it
  17070. U=`sed -n 's/^U = //p' < "$mf"`
  17071. # Find all dependency output files, they are included files with
  17072. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17073. # simplest approach to changing $(DEPDIR) to its actual value in the
  17074. # expansion.
  17075. for file in `sed -n "
  17076. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17077. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  17078. # Make sure the directory exists.
  17079. test -f "$dirpart/$file" && continue
  17080. fdir=`$as_dirname -- "$file" ||
  17081. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17082. X"$file" : 'X\(//\)[^/]' \| \
  17083. X"$file" : 'X\(//\)$' \| \
  17084. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17085. $as_echo X"$file" |
  17086. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17087. s//\1/
  17088. q
  17089. }
  17090. /^X\(\/\/\)[^/].*/{
  17091. s//\1/
  17092. q
  17093. }
  17094. /^X\(\/\/\)$/{
  17095. s//\1/
  17096. q
  17097. }
  17098. /^X\(\/\).*/{
  17099. s//\1/
  17100. q
  17101. }
  17102. s/.*/./; q'`
  17103. { as_dir=$dirpart/$fdir
  17104. case $as_dir in #(
  17105. -*) as_dir=./$as_dir;;
  17106. esac
  17107. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  17108. as_dirs=
  17109. while :; do
  17110. case $as_dir in #(
  17111. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17112. *) as_qdir=$as_dir;;
  17113. esac
  17114. as_dirs="'$as_qdir' $as_dirs"
  17115. as_dir=`$as_dirname -- "$as_dir" ||
  17116. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17117. X"$as_dir" : 'X\(//\)[^/]' \| \
  17118. X"$as_dir" : 'X\(//\)$' \| \
  17119. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17120. $as_echo X"$as_dir" |
  17121. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17122. s//\1/
  17123. q
  17124. }
  17125. /^X\(\/\/\)[^/].*/{
  17126. s//\1/
  17127. q
  17128. }
  17129. /^X\(\/\/\)$/{
  17130. s//\1/
  17131. q
  17132. }
  17133. /^X\(\/\).*/{
  17134. s//\1/
  17135. q
  17136. }
  17137. s/.*/./; q'`
  17138. test -d "$as_dir" && break
  17139. done
  17140. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17141. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  17142. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  17143. { (exit 1); exit 1; }; }; }
  17144. # echo "creating $dirpart/$file"
  17145. echo '# dummy' > "$dirpart/$file"
  17146. done
  17147. done
  17148. }
  17149. ;;
  17150. "libtool":C)
  17151. # See if we are running on zsh, and set the options which allow our
  17152. # commands through without removal of \ escapes.
  17153. if test -n "${ZSH_VERSION+set}" ; then
  17154. setopt NO_GLOB_SUBST
  17155. fi
  17156. cfgfile="${ofile}T"
  17157. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17158. $RM "$cfgfile"
  17159. cat <<_LT_EOF >> "$cfgfile"
  17160. #! $SHELL
  17161. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  17162. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  17163. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17164. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17165. #
  17166. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  17167. # 2006, 2007, 2008 Free Software Foundation, Inc.
  17168. # Written by Gordon Matzigkeit, 1996
  17169. #
  17170. # This file is part of GNU Libtool.
  17171. #
  17172. # GNU Libtool is free software; you can redistribute it and/or
  17173. # modify it under the terms of the GNU General Public License as
  17174. # published by the Free Software Foundation; either version 2 of
  17175. # the License, or (at your option) any later version.
  17176. #
  17177. # As a special exception to the GNU General Public License,
  17178. # if you distribute this file as part of a program or library that
  17179. # is built using GNU Libtool, you may include this file under the
  17180. # same distribution terms that you use for the rest of that program.
  17181. #
  17182. # GNU Libtool is distributed in the hope that it will be useful,
  17183. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17184. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17185. # GNU General Public License for more details.
  17186. #
  17187. # You should have received a copy of the GNU General Public License
  17188. # along with GNU Libtool; see the file COPYING. If not, a copy
  17189. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  17190. # obtained by writing to the Free Software Foundation, Inc.,
  17191. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17192. # The names of the tagged configurations supported by this script.
  17193. available_tags="CXX "
  17194. # ### BEGIN LIBTOOL CONFIG
  17195. # Whether or not to build shared libraries.
  17196. build_libtool_libs=$enable_shared
  17197. # Whether or not to build static libraries.
  17198. build_old_libs=$enable_static
  17199. # Which release of libtool.m4 was used?
  17200. macro_version=$macro_version
  17201. macro_revision=$macro_revision
  17202. # What type of objects to build.
  17203. pic_mode=$pic_mode
  17204. # Whether or not to optimize for fast installation.
  17205. fast_install=$enable_fast_install
  17206. # The host system.
  17207. host_alias=$host_alias
  17208. host=$host
  17209. host_os=$host_os
  17210. # The build system.
  17211. build_alias=$build_alias
  17212. build=$build
  17213. build_os=$build_os
  17214. # A sed program that does not truncate output.
  17215. SED=$lt_SED
  17216. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17217. Xsed="\$SED -e 1s/^X//"
  17218. # A grep program that handles long lines.
  17219. GREP=$lt_GREP
  17220. # An ERE matcher.
  17221. EGREP=$lt_EGREP
  17222. # A literal string matcher.
  17223. FGREP=$lt_FGREP
  17224. # A BSD- or MS-compatible name lister.
  17225. NM=$lt_NM
  17226. # Whether we need soft or hard links.
  17227. LN_S=$lt_LN_S
  17228. # What is the maximum length of a command?
  17229. max_cmd_len=$max_cmd_len
  17230. # Object file suffix (normally "o").
  17231. objext=$ac_objext
  17232. # Executable file suffix (normally "").
  17233. exeext=$exeext
  17234. # whether the shell understands "unset".
  17235. lt_unset=$lt_unset
  17236. # turn spaces into newlines.
  17237. SP2NL=$lt_lt_SP2NL
  17238. # turn newlines into spaces.
  17239. NL2SP=$lt_lt_NL2SP
  17240. # How to create reloadable object files.
  17241. reload_flag=$lt_reload_flag
  17242. reload_cmds=$lt_reload_cmds
  17243. # An object symbol dumper.
  17244. OBJDUMP=$lt_OBJDUMP
  17245. # Method to check whether dependent libraries are shared objects.
  17246. deplibs_check_method=$lt_deplibs_check_method
  17247. # Command to use when deplibs_check_method == "file_magic".
  17248. file_magic_cmd=$lt_file_magic_cmd
  17249. # The archiver.
  17250. AR=$lt_AR
  17251. AR_FLAGS=$lt_AR_FLAGS
  17252. # A symbol stripping program.
  17253. STRIP=$lt_STRIP
  17254. # Commands used to install an old-style archive.
  17255. RANLIB=$lt_RANLIB
  17256. old_postinstall_cmds=$lt_old_postinstall_cmds
  17257. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17258. # A C compiler.
  17259. LTCC=$lt_CC
  17260. # LTCC compiler flags.
  17261. LTCFLAGS=$lt_CFLAGS
  17262. # Take the output of nm and produce a listing of raw symbols and C names.
  17263. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17264. # Transform the output of nm in a proper C declaration.
  17265. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17266. # Transform the output of nm in a C name address pair.
  17267. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17268. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17269. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17270. # The name of the directory that contains temporary libtool files.
  17271. objdir=$objdir
  17272. # Shell to use when invoking shell scripts.
  17273. SHELL=$lt_SHELL
  17274. # An echo program that does not interpret backslashes.
  17275. ECHO=$lt_ECHO
  17276. # Used to examine libraries when file_magic_cmd begins with "file".
  17277. MAGIC_CMD=$MAGIC_CMD
  17278. # Must we lock files when doing compilation?
  17279. need_locks=$lt_need_locks
  17280. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17281. DSYMUTIL=$lt_DSYMUTIL
  17282. # Tool to change global to local symbols on Mac OS X.
  17283. NMEDIT=$lt_NMEDIT
  17284. # Tool to manipulate fat objects and archives on Mac OS X.
  17285. LIPO=$lt_LIPO
  17286. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17287. OTOOL=$lt_OTOOL
  17288. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17289. OTOOL64=$lt_OTOOL64
  17290. # Old archive suffix (normally "a").
  17291. libext=$libext
  17292. # Shared library suffix (normally ".so").
  17293. shrext_cmds=$lt_shrext_cmds
  17294. # The commands to extract the exported symbol list from a shared archive.
  17295. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17296. # Variables whose values should be saved in libtool wrapper scripts and
  17297. # restored at link time.
  17298. variables_saved_for_relink=$lt_variables_saved_for_relink
  17299. # Do we need the "lib" prefix for modules?
  17300. need_lib_prefix=$need_lib_prefix
  17301. # Do we need a version for libraries?
  17302. need_version=$need_version
  17303. # Library versioning type.
  17304. version_type=$version_type
  17305. # Shared library runtime path variable.
  17306. runpath_var=$runpath_var
  17307. # Shared library path variable.
  17308. shlibpath_var=$shlibpath_var
  17309. # Is shlibpath searched before the hard-coded library search path?
  17310. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17311. # Format of library name prefix.
  17312. libname_spec=$lt_libname_spec
  17313. # List of archive names. First name is the real one, the rest are links.
  17314. # The last name is the one that the linker finds with -lNAME
  17315. library_names_spec=$lt_library_names_spec
  17316. # The coded name of the library, if different from the real name.
  17317. soname_spec=$lt_soname_spec
  17318. # Command to use after installation of a shared archive.
  17319. postinstall_cmds=$lt_postinstall_cmds
  17320. # Command to use after uninstallation of a shared archive.
  17321. postuninstall_cmds=$lt_postuninstall_cmds
  17322. # Commands used to finish a libtool library installation in a directory.
  17323. finish_cmds=$lt_finish_cmds
  17324. # As "finish_cmds", except a single script fragment to be evaled but
  17325. # not shown.
  17326. finish_eval=$lt_finish_eval
  17327. # Whether we should hardcode library paths into libraries.
  17328. hardcode_into_libs=$hardcode_into_libs
  17329. # Compile-time system search path for libraries.
  17330. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17331. # Run-time system search path for libraries.
  17332. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17333. # Whether dlopen is supported.
  17334. dlopen_support=$enable_dlopen
  17335. # Whether dlopen of programs is supported.
  17336. dlopen_self=$enable_dlopen_self
  17337. # Whether dlopen of statically linked programs is supported.
  17338. dlopen_self_static=$enable_dlopen_self_static
  17339. # Commands to strip libraries.
  17340. old_striplib=$lt_old_striplib
  17341. striplib=$lt_striplib
  17342. # The linker used to build libraries.
  17343. LD=$lt_LD
  17344. # Commands used to build an old-style archive.
  17345. old_archive_cmds=$lt_old_archive_cmds
  17346. # A language specific compiler.
  17347. CC=$lt_compiler
  17348. # Is the compiler the GNU compiler?
  17349. with_gcc=$GCC
  17350. # Compiler flag to turn off builtin functions.
  17351. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17352. # How to pass a linker flag through the compiler.
  17353. wl=$lt_lt_prog_compiler_wl
  17354. # Additional compiler flags for building library objects.
  17355. pic_flag=$lt_lt_prog_compiler_pic
  17356. # Compiler flag to prevent dynamic linking.
  17357. link_static_flag=$lt_lt_prog_compiler_static
  17358. # Does compiler simultaneously support -c and -o options?
  17359. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17360. # Whether or not to add -lc for building shared libraries.
  17361. build_libtool_need_lc=$archive_cmds_need_lc
  17362. # Whether or not to disallow shared libs when runtime libs are static.
  17363. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17364. # Compiler flag to allow reflexive dlopens.
  17365. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17366. # Compiler flag to generate shared objects directly from archives.
  17367. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17368. # Whether the compiler copes with passing no objects directly.
  17369. compiler_needs_object=$lt_compiler_needs_object
  17370. # Create an old-style archive from a shared archive.
  17371. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17372. # Create a temporary old-style archive to link instead of a shared archive.
  17373. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17374. # Commands used to build a shared archive.
  17375. archive_cmds=$lt_archive_cmds
  17376. archive_expsym_cmds=$lt_archive_expsym_cmds
  17377. # Commands used to build a loadable module if different from building
  17378. # a shared archive.
  17379. module_cmds=$lt_module_cmds
  17380. module_expsym_cmds=$lt_module_expsym_cmds
  17381. # Whether we are building with GNU ld or not.
  17382. with_gnu_ld=$lt_with_gnu_ld
  17383. # Flag that allows shared libraries with undefined symbols to be built.
  17384. allow_undefined_flag=$lt_allow_undefined_flag
  17385. # Flag that enforces no undefined symbols.
  17386. no_undefined_flag=$lt_no_undefined_flag
  17387. # Flag to hardcode \$libdir into a binary during linking.
  17388. # This must work even if \$libdir does not exist
  17389. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17390. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17391. # during linking. This must work even if \$libdir does not exist.
  17392. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  17393. # Whether we need a single "-rpath" flag with a separated argument.
  17394. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17395. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17396. # DIR into the resulting binary.
  17397. hardcode_direct=$hardcode_direct
  17398. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17399. # DIR into the resulting binary and the resulting library dependency is
  17400. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17401. # library is relocated.
  17402. hardcode_direct_absolute=$hardcode_direct_absolute
  17403. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17404. # into the resulting binary.
  17405. hardcode_minus_L=$hardcode_minus_L
  17406. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17407. # into the resulting binary.
  17408. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17409. # Set to "yes" if building a shared library automatically hardcodes DIR
  17410. # into the library and all subsequent libraries and executables linked
  17411. # against it.
  17412. hardcode_automatic=$hardcode_automatic
  17413. # Set to yes if linker adds runtime paths of dependent libraries
  17414. # to runtime path list.
  17415. inherit_rpath=$inherit_rpath
  17416. # Whether libtool must link a program against all its dependency libraries.
  17417. link_all_deplibs=$link_all_deplibs
  17418. # Fix the shell variable \$srcfile for the compiler.
  17419. fix_srcfile_path=$lt_fix_srcfile_path
  17420. # Set to "yes" if exported symbols are required.
  17421. always_export_symbols=$always_export_symbols
  17422. # The commands to list exported symbols.
  17423. export_symbols_cmds=$lt_export_symbols_cmds
  17424. # Symbols that should not be listed in the preloaded symbols.
  17425. exclude_expsyms=$lt_exclude_expsyms
  17426. # Symbols that must always be exported.
  17427. include_expsyms=$lt_include_expsyms
  17428. # Commands necessary for linking programs (against libraries) with templates.
  17429. prelink_cmds=$lt_prelink_cmds
  17430. # Specify filename containing input files.
  17431. file_list_spec=$lt_file_list_spec
  17432. # How to hardcode a shared library path into an executable.
  17433. hardcode_action=$hardcode_action
  17434. # The directories searched by this compiler when creating a shared library.
  17435. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17436. # Dependencies to place before and after the objects being linked to
  17437. # create a shared library.
  17438. predep_objects=$lt_predep_objects
  17439. postdep_objects=$lt_postdep_objects
  17440. predeps=$lt_predeps
  17441. postdeps=$lt_postdeps
  17442. # The library search path used internally by the compiler when linking
  17443. # a shared library.
  17444. compiler_lib_search_path=$lt_compiler_lib_search_path
  17445. # ### END LIBTOOL CONFIG
  17446. _LT_EOF
  17447. case $host_os in
  17448. aix3*)
  17449. cat <<\_LT_EOF >> "$cfgfile"
  17450. # AIX sometimes has problems with the GCC collect2 program. For some
  17451. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17452. # vanish in a puff of smoke.
  17453. if test "X${COLLECT_NAMES+set}" != Xset; then
  17454. COLLECT_NAMES=
  17455. export COLLECT_NAMES
  17456. fi
  17457. _LT_EOF
  17458. ;;
  17459. esac
  17460. ltmain="$ac_aux_dir/ltmain.sh"
  17461. # We use sed instead of cat because bash on DJGPP gets confused if
  17462. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17463. # text mode, it properly converts lines to CR/LF. This bash problem
  17464. # is reportedly fixed, but why not run on old versions too?
  17465. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  17466. || (rm -f "$cfgfile"; exit 1)
  17467. case $xsi_shell in
  17468. yes)
  17469. cat << \_LT_EOF >> "$cfgfile"
  17470. # func_dirname file append nondir_replacement
  17471. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17472. # otherwise set result to NONDIR_REPLACEMENT.
  17473. func_dirname ()
  17474. {
  17475. case ${1} in
  17476. */*) func_dirname_result="${1%/*}${2}" ;;
  17477. * ) func_dirname_result="${3}" ;;
  17478. esac
  17479. }
  17480. # func_basename file
  17481. func_basename ()
  17482. {
  17483. func_basename_result="${1##*/}"
  17484. }
  17485. # func_dirname_and_basename file append nondir_replacement
  17486. # perform func_basename and func_dirname in a single function
  17487. # call:
  17488. # dirname: Compute the dirname of FILE. If nonempty,
  17489. # add APPEND to the result, otherwise set result
  17490. # to NONDIR_REPLACEMENT.
  17491. # value returned in "$func_dirname_result"
  17492. # basename: Compute filename of FILE.
  17493. # value retuned in "$func_basename_result"
  17494. # Implementation must be kept synchronized with func_dirname
  17495. # and func_basename. For efficiency, we do not delegate to
  17496. # those functions but instead duplicate the functionality here.
  17497. func_dirname_and_basename ()
  17498. {
  17499. case ${1} in
  17500. */*) func_dirname_result="${1%/*}${2}" ;;
  17501. * ) func_dirname_result="${3}" ;;
  17502. esac
  17503. func_basename_result="${1##*/}"
  17504. }
  17505. # func_stripname prefix suffix name
  17506. # strip PREFIX and SUFFIX off of NAME.
  17507. # PREFIX and SUFFIX must not contain globbing or regex special
  17508. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17509. # dot (in which case that matches only a dot).
  17510. func_stripname ()
  17511. {
  17512. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  17513. # positional parameters, so assign one to ordinary parameter first.
  17514. func_stripname_result=${3}
  17515. func_stripname_result=${func_stripname_result#"${1}"}
  17516. func_stripname_result=${func_stripname_result%"${2}"}
  17517. }
  17518. # func_opt_split
  17519. func_opt_split ()
  17520. {
  17521. func_opt_split_opt=${1%%=*}
  17522. func_opt_split_arg=${1#*=}
  17523. }
  17524. # func_lo2o object
  17525. func_lo2o ()
  17526. {
  17527. case ${1} in
  17528. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  17529. *) func_lo2o_result=${1} ;;
  17530. esac
  17531. }
  17532. # func_xform libobj-or-source
  17533. func_xform ()
  17534. {
  17535. func_xform_result=${1%.*}.lo
  17536. }
  17537. # func_arith arithmetic-term...
  17538. func_arith ()
  17539. {
  17540. func_arith_result=$(( $* ))
  17541. }
  17542. # func_len string
  17543. # STRING may not start with a hyphen.
  17544. func_len ()
  17545. {
  17546. func_len_result=${#1}
  17547. }
  17548. _LT_EOF
  17549. ;;
  17550. *) # Bourne compatible functions.
  17551. cat << \_LT_EOF >> "$cfgfile"
  17552. # func_dirname file append nondir_replacement
  17553. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17554. # otherwise set result to NONDIR_REPLACEMENT.
  17555. func_dirname ()
  17556. {
  17557. # Extract subdirectory from the argument.
  17558. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  17559. if test "X$func_dirname_result" = "X${1}"; then
  17560. func_dirname_result="${3}"
  17561. else
  17562. func_dirname_result="$func_dirname_result${2}"
  17563. fi
  17564. }
  17565. # func_basename file
  17566. func_basename ()
  17567. {
  17568. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  17569. }
  17570. # func_stripname prefix suffix name
  17571. # strip PREFIX and SUFFIX off of NAME.
  17572. # PREFIX and SUFFIX must not contain globbing or regex special
  17573. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17574. # dot (in which case that matches only a dot).
  17575. # func_strip_suffix prefix name
  17576. func_stripname ()
  17577. {
  17578. case ${2} in
  17579. .*) func_stripname_result=`$ECHO "X${3}" \
  17580. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  17581. *) func_stripname_result=`$ECHO "X${3}" \
  17582. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  17583. esac
  17584. }
  17585. # sed scripts:
  17586. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  17587. my_sed_long_arg='1s/^-[^=]*=//'
  17588. # func_opt_split
  17589. func_opt_split ()
  17590. {
  17591. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  17592. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  17593. }
  17594. # func_lo2o object
  17595. func_lo2o ()
  17596. {
  17597. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  17598. }
  17599. # func_xform libobj-or-source
  17600. func_xform ()
  17601. {
  17602. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  17603. }
  17604. # func_arith arithmetic-term...
  17605. func_arith ()
  17606. {
  17607. func_arith_result=`expr "$@"`
  17608. }
  17609. # func_len string
  17610. # STRING may not start with a hyphen.
  17611. func_len ()
  17612. {
  17613. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  17614. }
  17615. _LT_EOF
  17616. esac
  17617. case $lt_shell_append in
  17618. yes)
  17619. cat << \_LT_EOF >> "$cfgfile"
  17620. # func_append var value
  17621. # Append VALUE to the end of shell variable VAR.
  17622. func_append ()
  17623. {
  17624. eval "$1+=\$2"
  17625. }
  17626. _LT_EOF
  17627. ;;
  17628. *)
  17629. cat << \_LT_EOF >> "$cfgfile"
  17630. # func_append var value
  17631. # Append VALUE to the end of shell variable VAR.
  17632. func_append ()
  17633. {
  17634. eval "$1=\$$1\$2"
  17635. }
  17636. _LT_EOF
  17637. ;;
  17638. esac
  17639. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  17640. || (rm -f "$cfgfile"; exit 1)
  17641. mv -f "$cfgfile" "$ofile" ||
  17642. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17643. chmod +x "$ofile"
  17644. cat <<_LT_EOF >> "$ofile"
  17645. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17646. # The linker used to build libraries.
  17647. LD=$lt_LD_CXX
  17648. # Commands used to build an old-style archive.
  17649. old_archive_cmds=$lt_old_archive_cmds_CXX
  17650. # A language specific compiler.
  17651. CC=$lt_compiler_CXX
  17652. # Is the compiler the GNU compiler?
  17653. with_gcc=$GCC_CXX
  17654. # Compiler flag to turn off builtin functions.
  17655. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17656. # How to pass a linker flag through the compiler.
  17657. wl=$lt_lt_prog_compiler_wl_CXX
  17658. # Additional compiler flags for building library objects.
  17659. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17660. # Compiler flag to prevent dynamic linking.
  17661. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17662. # Does compiler simultaneously support -c and -o options?
  17663. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17664. # Whether or not to add -lc for building shared libraries.
  17665. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17666. # Whether or not to disallow shared libs when runtime libs are static.
  17667. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17668. # Compiler flag to allow reflexive dlopens.
  17669. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17670. # Compiler flag to generate shared objects directly from archives.
  17671. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17672. # Whether the compiler copes with passing no objects directly.
  17673. compiler_needs_object=$lt_compiler_needs_object_CXX
  17674. # Create an old-style archive from a shared archive.
  17675. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17676. # Create a temporary old-style archive to link instead of a shared archive.
  17677. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17678. # Commands used to build a shared archive.
  17679. archive_cmds=$lt_archive_cmds_CXX
  17680. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17681. # Commands used to build a loadable module if different from building
  17682. # a shared archive.
  17683. module_cmds=$lt_module_cmds_CXX
  17684. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17685. # Whether we are building with GNU ld or not.
  17686. with_gnu_ld=$lt_with_gnu_ld_CXX
  17687. # Flag that allows shared libraries with undefined symbols to be built.
  17688. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17689. # Flag that enforces no undefined symbols.
  17690. no_undefined_flag=$lt_no_undefined_flag_CXX
  17691. # Flag to hardcode \$libdir into a binary during linking.
  17692. # This must work even if \$libdir does not exist
  17693. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17694. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17695. # during linking. This must work even if \$libdir does not exist.
  17696. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  17697. # Whether we need a single "-rpath" flag with a separated argument.
  17698. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17699. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17700. # DIR into the resulting binary.
  17701. hardcode_direct=$hardcode_direct_CXX
  17702. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17703. # DIR into the resulting binary and the resulting library dependency is
  17704. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17705. # library is relocated.
  17706. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17707. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17708. # into the resulting binary.
  17709. hardcode_minus_L=$hardcode_minus_L_CXX
  17710. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17711. # into the resulting binary.
  17712. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17713. # Set to "yes" if building a shared library automatically hardcodes DIR
  17714. # into the library and all subsequent libraries and executables linked
  17715. # against it.
  17716. hardcode_automatic=$hardcode_automatic_CXX
  17717. # Set to yes if linker adds runtime paths of dependent libraries
  17718. # to runtime path list.
  17719. inherit_rpath=$inherit_rpath_CXX
  17720. # Whether libtool must link a program against all its dependency libraries.
  17721. link_all_deplibs=$link_all_deplibs_CXX
  17722. # Fix the shell variable \$srcfile for the compiler.
  17723. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  17724. # Set to "yes" if exported symbols are required.
  17725. always_export_symbols=$always_export_symbols_CXX
  17726. # The commands to list exported symbols.
  17727. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17728. # Symbols that should not be listed in the preloaded symbols.
  17729. exclude_expsyms=$lt_exclude_expsyms_CXX
  17730. # Symbols that must always be exported.
  17731. include_expsyms=$lt_include_expsyms_CXX
  17732. # Commands necessary for linking programs (against libraries) with templates.
  17733. prelink_cmds=$lt_prelink_cmds_CXX
  17734. # Specify filename containing input files.
  17735. file_list_spec=$lt_file_list_spec_CXX
  17736. # How to hardcode a shared library path into an executable.
  17737. hardcode_action=$hardcode_action_CXX
  17738. # The directories searched by this compiler when creating a shared library.
  17739. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17740. # Dependencies to place before and after the objects being linked to
  17741. # create a shared library.
  17742. predep_objects=$lt_predep_objects_CXX
  17743. postdep_objects=$lt_postdep_objects_CXX
  17744. predeps=$lt_predeps_CXX
  17745. postdeps=$lt_postdeps_CXX
  17746. # The library search path used internally by the compiler when linking
  17747. # a shared library.
  17748. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17749. # ### END LIBTOOL TAG CONFIG: CXX
  17750. _LT_EOF
  17751. ;;
  17752. esac
  17753. done # for ac_tag
  17754. { (exit 0); exit 0; }
  17755. _ACEOF
  17756. chmod +x $CONFIG_STATUS
  17757. ac_clean_files=$ac_clean_files_save
  17758. test $ac_write_fail = 0 ||
  17759. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  17760. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  17761. { (exit 1); exit 1; }; }
  17762. # configure is writing to config.log, and then calls config.status.
  17763. # config.status does its own redirection, appending to config.log.
  17764. # Unfortunately, on DOS this fails, as config.log is still kept open
  17765. # by configure, so config.status won't be able to write to it; its
  17766. # output is simply discarded. So we exec the FD to /dev/null,
  17767. # effectively closing config.log, so it can be properly (re)opened and
  17768. # appended to by config.status. When coming back to configure, we
  17769. # need to make the FD available again.
  17770. if test "$no_create" != yes; then
  17771. ac_cs_success=:
  17772. ac_config_status_args=
  17773. test "$silent" = yes &&
  17774. ac_config_status_args="$ac_config_status_args --quiet"
  17775. exec 5>/dev/null
  17776. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17777. exec 5>>config.log
  17778. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17779. # would make configure fail if this is the last instruction.
  17780. $ac_cs_success || { (exit 1); exit 1; }
  17781. fi
  17782. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17783. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17784. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17785. fi