configure 534 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for clish 1.2.0.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  214. $0: gmail dot com about your system, including any error
  215. $0: possibly output before this message. Then install a
  216. $0: modern shell, or manually run the script under such a
  217. $0: shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_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. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. # Check that we are running under the correct shell.
  487. SHELL=${CONFIG_SHELL-/bin/sh}
  488. case X$lt_ECHO in
  489. X*--fallback-echo)
  490. # Remove one level of quotation (which was required for Make).
  491. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  492. ;;
  493. esac
  494. ECHO=${lt_ECHO-echo}
  495. if test "X$1" = X--no-reexec; then
  496. # Discard the --no-reexec flag, and continue.
  497. shift
  498. elif test "X$1" = X--fallback-echo; then
  499. # Avoid inline document here, it may be left over
  500. :
  501. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  502. # Yippee, $ECHO works!
  503. :
  504. else
  505. # Restart under the correct shell.
  506. exec $SHELL "$0" --no-reexec ${1+"$@"}
  507. fi
  508. if test "X$1" = X--fallback-echo; then
  509. # used as fallback echo
  510. shift
  511. cat <<_LT_EOF
  512. $*
  513. _LT_EOF
  514. exit 0
  515. fi
  516. # The HP-UX ksh and POSIX shell print the target directory to stdout
  517. # if CDPATH is set.
  518. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  519. if test -z "$lt_ECHO"; then
  520. if test "X${echo_test_string+set}" != Xset; then
  521. # find a string as large as possible, as long as the shell can cope with it
  522. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  523. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  524. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  525. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  526. then
  527. break
  528. fi
  529. done
  530. fi
  531. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  532. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  533. test "X$echo_testing_string" = "X$echo_test_string"; then
  534. :
  535. else
  536. # The Solaris, AIX, and Digital Unix default echo programs unquote
  537. # backslashes. This makes it impossible to quote backslashes using
  538. # echo "$something" | sed 's/\\/\\\\/g'
  539. #
  540. # So, first we look for a working echo in the user's PATH.
  541. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  542. for dir in $PATH /usr/ucb; do
  543. IFS="$lt_save_ifs"
  544. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  545. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. ECHO="$dir/echo"
  549. break
  550. fi
  551. done
  552. IFS="$lt_save_ifs"
  553. if test "X$ECHO" = Xecho; then
  554. # We didn't find a better echo, so look for alternatives.
  555. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. # This shell has a builtin print -r that does the trick.
  559. ECHO='print -r'
  560. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  561. test "X$CONFIG_SHELL" != X/bin/ksh; then
  562. # If we have ksh, try running configure again with it.
  563. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  564. export ORIGINAL_CONFIG_SHELL
  565. CONFIG_SHELL=/bin/ksh
  566. export CONFIG_SHELL
  567. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  568. else
  569. # Try using printf.
  570. ECHO='printf %s\n'
  571. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  572. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  573. test "X$echo_testing_string" = "X$echo_test_string"; then
  574. # Cool, printf works
  575. :
  576. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  577. test "X$echo_testing_string" = 'X\t' &&
  578. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  579. test "X$echo_testing_string" = "X$echo_test_string"; then
  580. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  581. export CONFIG_SHELL
  582. SHELL="$CONFIG_SHELL"
  583. export SHELL
  584. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  585. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  590. else
  591. # maybe with a smaller string...
  592. prev=:
  593. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  594. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  595. then
  596. break
  597. fi
  598. prev="$cmd"
  599. done
  600. if test "$prev" != 'sed 50q "$0"'; then
  601. echo_test_string=`eval $prev`
  602. export echo_test_string
  603. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  604. else
  605. # Oops. We lost completely, so just stick with echo.
  606. ECHO=echo
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. fi
  613. # Copy echo and quote the copy suitably for passing to libtool from
  614. # the Makefile, instead of quoting the original, which is used later.
  615. lt_ECHO=$ECHO
  616. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  617. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  618. fi
  619. exec 7<&0 </dev/null 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='clish'
  637. PACKAGE_TARNAME='clish'
  638. PACKAGE_VERSION='1.2.0'
  639. PACKAGE_STRING='clish 1.2.0'
  640. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  641. PACKAGE_URL=''
  642. # Factoring default headers for most tests.
  643. ac_includes_default="\
  644. #include <stdio.h>
  645. #ifdef HAVE_SYS_TYPES_H
  646. # include <sys/types.h>
  647. #endif
  648. #ifdef HAVE_SYS_STAT_H
  649. # include <sys/stat.h>
  650. #endif
  651. #ifdef STDC_HEADERS
  652. # include <stdlib.h>
  653. # include <stddef.h>
  654. #else
  655. # ifdef HAVE_STDLIB_H
  656. # include <stdlib.h>
  657. # endif
  658. #endif
  659. #ifdef HAVE_STRING_H
  660. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  661. # include <memory.h>
  662. # endif
  663. # include <string.h>
  664. #endif
  665. #ifdef HAVE_STRINGS_H
  666. # include <strings.h>
  667. #endif
  668. #ifdef HAVE_INTTYPES_H
  669. # include <inttypes.h>
  670. #endif
  671. #ifdef HAVE_STDINT_H
  672. # include <stdint.h>
  673. #endif
  674. #ifdef HAVE_UNISTD_H
  675. # include <unistd.h>
  676. #endif"
  677. ac_subst_vars='am__EXEEXT_FALSE
  678. am__EXEEXT_TRUE
  679. LTLIBOBJS
  680. LIBOBJS
  681. BFD_LIBS
  682. LUBHEAP_CFLAGS
  683. LUBHEAP_LIBS
  684. LUBHEAP_FALSE
  685. LUBHEAP_TRUE
  686. TCL_VERSION
  687. TCL_LIBS
  688. TCL_CFLAGS
  689. RT_CFLAGS
  690. RT_LIBS
  691. PTHREAD_CFLAGS
  692. PTHREAD_LIBS
  693. TINYXML_CXXFLAGS
  694. TINYXML_LIBS
  695. TINYRL_CFLAGS
  696. TINYRL_LIBS
  697. KONF_CFLAGS
  698. KONF_LIBS
  699. LUB_CFLAGS
  700. LUB_LIBS
  701. DEBUG_FALSE
  702. DEBUG_TRUE
  703. am__fastdepCXX_FALSE
  704. am__fastdepCXX_TRUE
  705. CXXDEPMODE
  706. am__fastdepCC_FALSE
  707. am__fastdepCC_TRUE
  708. CCDEPMODE
  709. AMDEPBACKSLASH
  710. AMDEP_FALSE
  711. AMDEP_TRUE
  712. am__quote
  713. am__include
  714. DEPDIR
  715. am__untar
  716. am__tar
  717. AMTAR
  718. am__leading_dot
  719. SET_MAKE
  720. AWK
  721. mkdir_p
  722. MKDIR_P
  723. INSTALL_STRIP_PROGRAM
  724. install_sh
  725. MAKEINFO
  726. AUTOHEADER
  727. AUTOMAKE
  728. AUTOCONF
  729. ACLOCAL
  730. VERSION
  731. PACKAGE
  732. CYGPATH_W
  733. am__isrc
  734. INSTALL_DATA
  735. INSTALL_SCRIPT
  736. INSTALL_PROGRAM
  737. CXXCPP
  738. CPP
  739. OTOOL64
  740. OTOOL
  741. LIPO
  742. NMEDIT
  743. DSYMUTIL
  744. lt_ECHO
  745. RANLIB
  746. STRIP
  747. AR
  748. LN_S
  749. NM
  750. ac_ct_DUMPBIN
  751. DUMPBIN
  752. LD
  753. FGREP
  754. EGREP
  755. GREP
  756. SED
  757. LIBTOOL
  758. OBJDUMP
  759. DLLTOOL
  760. AS
  761. host_os
  762. host_vendor
  763. host_cpu
  764. host
  765. build_os
  766. build_vendor
  767. build_cpu
  768. build
  769. ac_ct_CXX
  770. CXXFLAGS
  771. CXX
  772. OBJEXT
  773. EXEEXT
  774. ac_ct_CC
  775. CPPFLAGS
  776. LDFLAGS
  777. CFLAGS
  778. CC
  779. target_alias
  780. host_alias
  781. build_alias
  782. LIBS
  783. ECHO_T
  784. ECHO_N
  785. ECHO_C
  786. DEFS
  787. mandir
  788. localedir
  789. libdir
  790. psdir
  791. pdfdir
  792. dvidir
  793. htmldir
  794. infodir
  795. docdir
  796. oldincludedir
  797. includedir
  798. localstatedir
  799. sharedstatedir
  800. sysconfdir
  801. datadir
  802. datarootdir
  803. libexecdir
  804. sbindir
  805. bindir
  806. program_transform_name
  807. prefix
  808. exec_prefix
  809. PACKAGE_URL
  810. PACKAGE_BUGREPORT
  811. PACKAGE_STRING
  812. PACKAGE_VERSION
  813. PACKAGE_TARNAME
  814. PACKAGE_NAME
  815. PATH_SEPARATOR
  816. SHELL'
  817. ac_subst_files=''
  818. ac_user_opts='
  819. enable_option_checking
  820. enable_shared
  821. enable_static
  822. with_pic
  823. enable_fast_install
  824. with_gnu_ld
  825. enable_libtool_lock
  826. enable_dependency_tracking
  827. enable_debug
  828. with_pthread
  829. with_rt
  830. with_tcl
  831. enable_lubheap
  832. enable_gpl
  833. '
  834. ac_precious_vars='build_alias
  835. host_alias
  836. target_alias
  837. CC
  838. CFLAGS
  839. LDFLAGS
  840. LIBS
  841. CPPFLAGS
  842. CXX
  843. CXXFLAGS
  844. CCC
  845. CPP
  846. CXXCPP'
  847. # Initialize some variables set by options.
  848. ac_init_help=
  849. ac_init_version=false
  850. ac_unrecognized_opts=
  851. ac_unrecognized_sep=
  852. # The variables have the same names as the options, with
  853. # dashes changed to underlines.
  854. cache_file=/dev/null
  855. exec_prefix=NONE
  856. no_create=
  857. no_recursion=
  858. prefix=NONE
  859. program_prefix=NONE
  860. program_suffix=NONE
  861. program_transform_name=s,x,x,
  862. silent=
  863. site=
  864. srcdir=
  865. verbose=
  866. x_includes=NONE
  867. x_libraries=NONE
  868. # Installation directory options.
  869. # These are left unexpanded so users can "make install exec_prefix=/foo"
  870. # and all the variables that are supposed to be based on exec_prefix
  871. # by default will actually change.
  872. # Use braces instead of parens because sh, perl, etc. also accept them.
  873. # (The list follows the same order as the GNU Coding Standards.)
  874. bindir='${exec_prefix}/bin'
  875. sbindir='${exec_prefix}/sbin'
  876. libexecdir='${exec_prefix}/libexec'
  877. datarootdir='${prefix}/share'
  878. datadir='${datarootdir}'
  879. sysconfdir='${prefix}/etc'
  880. sharedstatedir='${prefix}/com'
  881. localstatedir='${prefix}/var'
  882. includedir='${prefix}/include'
  883. oldincludedir='/usr/include'
  884. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  885. infodir='${datarootdir}/info'
  886. htmldir='${docdir}'
  887. dvidir='${docdir}'
  888. pdfdir='${docdir}'
  889. psdir='${docdir}'
  890. libdir='${exec_prefix}/lib'
  891. localedir='${datarootdir}/locale'
  892. mandir='${datarootdir}/man'
  893. ac_prev=
  894. ac_dashdash=
  895. for ac_option
  896. do
  897. # If the previous option needs an argument, assign it.
  898. if test -n "$ac_prev"; then
  899. eval $ac_prev=\$ac_option
  900. ac_prev=
  901. continue
  902. fi
  903. case $ac_option in
  904. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  905. *) ac_optarg=yes ;;
  906. esac
  907. # Accept the important Cygnus configure options, so we can diagnose typos.
  908. case $ac_dashdash$ac_option in
  909. --)
  910. ac_dashdash=yes ;;
  911. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  912. ac_prev=bindir ;;
  913. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  914. bindir=$ac_optarg ;;
  915. -build | --build | --buil | --bui | --bu)
  916. ac_prev=build_alias ;;
  917. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  918. build_alias=$ac_optarg ;;
  919. -cache-file | --cache-file | --cache-fil | --cache-fi \
  920. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  921. ac_prev=cache_file ;;
  922. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  923. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  924. cache_file=$ac_optarg ;;
  925. --config-cache | -C)
  926. cache_file=config.cache ;;
  927. -datadir | --datadir | --datadi | --datad)
  928. ac_prev=datadir ;;
  929. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  930. datadir=$ac_optarg ;;
  931. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  932. | --dataroo | --dataro | --datar)
  933. ac_prev=datarootdir ;;
  934. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  935. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  936. datarootdir=$ac_optarg ;;
  937. -disable-* | --disable-*)
  938. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  939. # Reject names that are not valid shell variable names.
  940. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  941. as_fn_error "invalid feature name: $ac_useropt"
  942. ac_useropt_orig=$ac_useropt
  943. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  944. case $ac_user_opts in
  945. *"
  946. "enable_$ac_useropt"
  947. "*) ;;
  948. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  949. ac_unrecognized_sep=', ';;
  950. esac
  951. eval enable_$ac_useropt=no ;;
  952. -docdir | --docdir | --docdi | --doc | --do)
  953. ac_prev=docdir ;;
  954. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  955. docdir=$ac_optarg ;;
  956. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  957. ac_prev=dvidir ;;
  958. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  959. dvidir=$ac_optarg ;;
  960. -enable-* | --enable-*)
  961. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  962. # Reject names that are not valid shell variable names.
  963. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  964. as_fn_error "invalid feature name: $ac_useropt"
  965. ac_useropt_orig=$ac_useropt
  966. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  967. case $ac_user_opts in
  968. *"
  969. "enable_$ac_useropt"
  970. "*) ;;
  971. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  972. ac_unrecognized_sep=', ';;
  973. esac
  974. eval enable_$ac_useropt=\$ac_optarg ;;
  975. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  976. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  977. | --exec | --exe | --ex)
  978. ac_prev=exec_prefix ;;
  979. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  980. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  981. | --exec=* | --exe=* | --ex=*)
  982. exec_prefix=$ac_optarg ;;
  983. -gas | --gas | --ga | --g)
  984. # Obsolete; use --with-gas.
  985. with_gas=yes ;;
  986. -help | --help | --hel | --he | -h)
  987. ac_init_help=long ;;
  988. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  989. ac_init_help=recursive ;;
  990. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  991. ac_init_help=short ;;
  992. -host | --host | --hos | --ho)
  993. ac_prev=host_alias ;;
  994. -host=* | --host=* | --hos=* | --ho=*)
  995. host_alias=$ac_optarg ;;
  996. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  997. ac_prev=htmldir ;;
  998. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  999. | --ht=*)
  1000. htmldir=$ac_optarg ;;
  1001. -includedir | --includedir | --includedi | --included | --include \
  1002. | --includ | --inclu | --incl | --inc)
  1003. ac_prev=includedir ;;
  1004. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1005. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1006. includedir=$ac_optarg ;;
  1007. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1008. ac_prev=infodir ;;
  1009. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1010. infodir=$ac_optarg ;;
  1011. -libdir | --libdir | --libdi | --libd)
  1012. ac_prev=libdir ;;
  1013. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1014. libdir=$ac_optarg ;;
  1015. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1016. | --libexe | --libex | --libe)
  1017. ac_prev=libexecdir ;;
  1018. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1019. | --libexe=* | --libex=* | --libe=*)
  1020. libexecdir=$ac_optarg ;;
  1021. -localedir | --localedir | --localedi | --localed | --locale)
  1022. ac_prev=localedir ;;
  1023. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1024. localedir=$ac_optarg ;;
  1025. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1026. | --localstate | --localstat | --localsta | --localst | --locals)
  1027. ac_prev=localstatedir ;;
  1028. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1029. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1030. localstatedir=$ac_optarg ;;
  1031. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1032. ac_prev=mandir ;;
  1033. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1034. mandir=$ac_optarg ;;
  1035. -nfp | --nfp | --nf)
  1036. # Obsolete; use --without-fp.
  1037. with_fp=no ;;
  1038. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1039. | --no-cr | --no-c | -n)
  1040. no_create=yes ;;
  1041. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1042. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1043. no_recursion=yes ;;
  1044. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1045. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1046. | --oldin | --oldi | --old | --ol | --o)
  1047. ac_prev=oldincludedir ;;
  1048. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1049. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1050. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1051. oldincludedir=$ac_optarg ;;
  1052. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1053. ac_prev=prefix ;;
  1054. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1055. prefix=$ac_optarg ;;
  1056. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1057. | --program-pre | --program-pr | --program-p)
  1058. ac_prev=program_prefix ;;
  1059. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1060. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1061. program_prefix=$ac_optarg ;;
  1062. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1063. | --program-suf | --program-su | --program-s)
  1064. ac_prev=program_suffix ;;
  1065. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1066. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1067. program_suffix=$ac_optarg ;;
  1068. -program-transform-name | --program-transform-name \
  1069. | --program-transform-nam | --program-transform-na \
  1070. | --program-transform-n | --program-transform- \
  1071. | --program-transform | --program-transfor \
  1072. | --program-transfo | --program-transf \
  1073. | --program-trans | --program-tran \
  1074. | --progr-tra | --program-tr | --program-t)
  1075. ac_prev=program_transform_name ;;
  1076. -program-transform-name=* | --program-transform-name=* \
  1077. | --program-transform-nam=* | --program-transform-na=* \
  1078. | --program-transform-n=* | --program-transform-=* \
  1079. | --program-transform=* | --program-transfor=* \
  1080. | --program-transfo=* | --program-transf=* \
  1081. | --program-trans=* | --program-tran=* \
  1082. | --progr-tra=* | --program-tr=* | --program-t=*)
  1083. program_transform_name=$ac_optarg ;;
  1084. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1085. ac_prev=pdfdir ;;
  1086. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1087. pdfdir=$ac_optarg ;;
  1088. -psdir | --psdir | --psdi | --psd | --ps)
  1089. ac_prev=psdir ;;
  1090. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1091. psdir=$ac_optarg ;;
  1092. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1093. | -silent | --silent | --silen | --sile | --sil)
  1094. silent=yes ;;
  1095. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1096. ac_prev=sbindir ;;
  1097. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1098. | --sbi=* | --sb=*)
  1099. sbindir=$ac_optarg ;;
  1100. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1101. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1102. | --sharedst | --shareds | --shared | --share | --shar \
  1103. | --sha | --sh)
  1104. ac_prev=sharedstatedir ;;
  1105. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1106. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1107. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1108. | --sha=* | --sh=*)
  1109. sharedstatedir=$ac_optarg ;;
  1110. -site | --site | --sit)
  1111. ac_prev=site ;;
  1112. -site=* | --site=* | --sit=*)
  1113. site=$ac_optarg ;;
  1114. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1115. ac_prev=srcdir ;;
  1116. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1117. srcdir=$ac_optarg ;;
  1118. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1119. | --syscon | --sysco | --sysc | --sys | --sy)
  1120. ac_prev=sysconfdir ;;
  1121. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1122. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1123. sysconfdir=$ac_optarg ;;
  1124. -target | --target | --targe | --targ | --tar | --ta | --t)
  1125. ac_prev=target_alias ;;
  1126. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1127. target_alias=$ac_optarg ;;
  1128. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1129. verbose=yes ;;
  1130. -version | --version | --versio | --versi | --vers | -V)
  1131. ac_init_version=: ;;
  1132. -with-* | --with-*)
  1133. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1134. # Reject names that are not valid shell variable names.
  1135. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1136. as_fn_error "invalid package name: $ac_useropt"
  1137. ac_useropt_orig=$ac_useropt
  1138. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1139. case $ac_user_opts in
  1140. *"
  1141. "with_$ac_useropt"
  1142. "*) ;;
  1143. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1144. ac_unrecognized_sep=', ';;
  1145. esac
  1146. eval with_$ac_useropt=\$ac_optarg ;;
  1147. -without-* | --without-*)
  1148. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1149. # Reject names that are not valid shell variable names.
  1150. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1151. as_fn_error "invalid package name: $ac_useropt"
  1152. ac_useropt_orig=$ac_useropt
  1153. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1154. case $ac_user_opts in
  1155. *"
  1156. "with_$ac_useropt"
  1157. "*) ;;
  1158. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1159. ac_unrecognized_sep=', ';;
  1160. esac
  1161. eval with_$ac_useropt=no ;;
  1162. --x)
  1163. # Obsolete; use --with-x.
  1164. with_x=yes ;;
  1165. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1166. | --x-incl | --x-inc | --x-in | --x-i)
  1167. ac_prev=x_includes ;;
  1168. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1169. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1170. x_includes=$ac_optarg ;;
  1171. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1172. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1173. ac_prev=x_libraries ;;
  1174. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1175. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1176. x_libraries=$ac_optarg ;;
  1177. -*) as_fn_error "unrecognized option: \`$ac_option'
  1178. Try \`$0 --help' for more information."
  1179. ;;
  1180. *=*)
  1181. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1182. # Reject names that are not valid shell variable names.
  1183. case $ac_envvar in #(
  1184. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1185. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1186. esac
  1187. eval $ac_envvar=\$ac_optarg
  1188. export $ac_envvar ;;
  1189. *)
  1190. # FIXME: should be removed in autoconf 3.0.
  1191. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1192. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1193. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1194. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1195. ;;
  1196. esac
  1197. done
  1198. if test -n "$ac_prev"; then
  1199. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1200. as_fn_error "missing argument to $ac_option"
  1201. fi
  1202. if test -n "$ac_unrecognized_opts"; then
  1203. case $enable_option_checking in
  1204. no) ;;
  1205. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1206. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1207. esac
  1208. fi
  1209. # Check all directory arguments for consistency.
  1210. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1211. datadir sysconfdir sharedstatedir localstatedir includedir \
  1212. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1213. libdir localedir mandir
  1214. do
  1215. eval ac_val=\$$ac_var
  1216. # Remove trailing slashes.
  1217. case $ac_val in
  1218. */ )
  1219. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1220. eval $ac_var=\$ac_val;;
  1221. esac
  1222. # Be sure to have absolute directory names.
  1223. case $ac_val in
  1224. [\\/$]* | ?:[\\/]* ) continue;;
  1225. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1226. esac
  1227. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  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_fn_error "working directory cannot be determined"
  1252. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1253. as_fn_error "pwd does not report name of working directory"
  1254. # Find the source files, if location was not specified.
  1255. if test -z "$srcdir"; then
  1256. ac_srcdir_defaulted=yes
  1257. # Try the directory containing this script, then the parent directory.
  1258. ac_confdir=`$as_dirname -- "$as_myself" ||
  1259. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1260. X"$as_myself" : 'X\(//\)[^/]' \| \
  1261. X"$as_myself" : 'X\(//\)$' \| \
  1262. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1263. $as_echo X"$as_myself" |
  1264. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\/\)[^/].*/{
  1269. s//\1/
  1270. q
  1271. }
  1272. /^X\(\/\/\)$/{
  1273. s//\1/
  1274. q
  1275. }
  1276. /^X\(\/\).*/{
  1277. s//\1/
  1278. q
  1279. }
  1280. s/.*/./; q'`
  1281. srcdir=$ac_confdir
  1282. if test ! -r "$srcdir/$ac_unique_file"; then
  1283. srcdir=..
  1284. fi
  1285. else
  1286. ac_srcdir_defaulted=no
  1287. fi
  1288. if test ! -r "$srcdir/$ac_unique_file"; then
  1289. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1290. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1291. fi
  1292. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1293. ac_abs_confdir=`(
  1294. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1295. pwd)`
  1296. # When building in place, set srcdir=.
  1297. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1298. srcdir=.
  1299. fi
  1300. # Remove unnecessary trailing slashes from srcdir.
  1301. # Double slashes in file names in object file debugging info
  1302. # mess up M-x gdb in Emacs.
  1303. case $srcdir in
  1304. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1305. esac
  1306. for ac_var in $ac_precious_vars; do
  1307. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1308. eval ac_env_${ac_var}_value=\$${ac_var}
  1309. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1310. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1311. done
  1312. #
  1313. # Report the --help message.
  1314. #
  1315. if test "$ac_init_help" = "long"; then
  1316. # Omit some internal or obsolete options to make the list less imposing.
  1317. # This message is too long to be a string in the A/UX 3.1 sh.
  1318. cat <<_ACEOF
  1319. \`configure' configures clish 1.2.0 to adapt to many kinds of systems.
  1320. Usage: $0 [OPTION]... [VAR=VALUE]...
  1321. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1322. VAR=VALUE. See below for descriptions of some of the useful variables.
  1323. Defaults for the options are specified in brackets.
  1324. Configuration:
  1325. -h, --help display this help and exit
  1326. --help=short display options specific to this package
  1327. --help=recursive display the short help of all the included packages
  1328. -V, --version display version information and exit
  1329. -q, --quiet, --silent do not print \`checking...' messages
  1330. --cache-file=FILE cache test results in FILE [disabled]
  1331. -C, --config-cache alias for \`--cache-file=config.cache'
  1332. -n, --no-create do not create output files
  1333. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1334. Installation directories:
  1335. --prefix=PREFIX install architecture-independent files in PREFIX
  1336. [$ac_default_prefix]
  1337. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1338. [PREFIX]
  1339. By default, \`make install' will install all the files in
  1340. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1341. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1342. for instance \`--prefix=\$HOME'.
  1343. For better control, use the options below.
  1344. Fine tuning of the installation directories:
  1345. --bindir=DIR user executables [EPREFIX/bin]
  1346. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1347. --libexecdir=DIR program executables [EPREFIX/libexec]
  1348. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1349. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1350. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1351. --libdir=DIR object code libraries [EPREFIX/lib]
  1352. --includedir=DIR C header files [PREFIX/include]
  1353. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1354. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1355. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1356. --infodir=DIR info documentation [DATAROOTDIR/info]
  1357. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1358. --mandir=DIR man documentation [DATAROOTDIR/man]
  1359. --docdir=DIR documentation root [DATAROOTDIR/doc/clish]
  1360. --htmldir=DIR html documentation [DOCDIR]
  1361. --dvidir=DIR dvi documentation [DOCDIR]
  1362. --pdfdir=DIR pdf documentation [DOCDIR]
  1363. --psdir=DIR ps documentation [DOCDIR]
  1364. _ACEOF
  1365. cat <<\_ACEOF
  1366. Program names:
  1367. --program-prefix=PREFIX prepend PREFIX to installed program names
  1368. --program-suffix=SUFFIX append SUFFIX to installed program names
  1369. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1370. System types:
  1371. --build=BUILD configure for building on BUILD [guessed]
  1372. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1373. _ACEOF
  1374. fi
  1375. if test -n "$ac_init_help"; then
  1376. case $ac_init_help in
  1377. short | recursive ) echo "Configuration of clish 1.2.0:";;
  1378. esac
  1379. cat <<\_ACEOF
  1380. Optional Features:
  1381. --disable-option-checking ignore unrecognized --enable/--with options
  1382. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1383. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1384. --enable-shared[=PKGS] build shared libraries [default=yes]
  1385. --enable-static[=PKGS] build static libraries [default=yes]
  1386. --enable-fast-install[=PKGS]
  1387. optimize for fast installation [default=yes]
  1388. --disable-libtool-lock avoid locking (might break parallel builds)
  1389. --disable-dependency-tracking speeds up one-time build
  1390. --enable-dependency-tracking do not reject slow dependency extractors
  1391. --enable-debug Turn on debugging including asserts [default=no]
  1392. --enable-lubheap Replace standard memory libaries with lubheap
  1393. (EXPERIMENTAL) [default=no]
  1394. --enable-gpl Link with GPL licenced libraries [default=yes]
  1395. Optional Packages:
  1396. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1397. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1398. --with-pic try to use only PIC/non-PIC objects [default=use
  1399. both]
  1400. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1401. --with-pthread=DIR Use POSIX threads library distribution in DIR
  1402. --with-rt=DIR Use POSIX real time library distribution in DIR
  1403. --with-tcl=DIR Use TCL library distribution in DIR
  1404. Some influential environment variables:
  1405. CC C compiler command
  1406. CFLAGS C compiler flags
  1407. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1408. nonstandard directory <lib dir>
  1409. LIBS libraries to pass to the linker, e.g. -l<library>
  1410. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1411. you have headers in a nonstandard directory <include dir>
  1412. CXX C++ compiler command
  1413. CXXFLAGS C++ compiler flags
  1414. CPP C preprocessor
  1415. CXXCPP C++ preprocessor
  1416. Use these variables to override the choices made by `configure' or to help
  1417. it to find libraries and programs with nonstandard names/locations.
  1418. Report bugs to <serj.kalichev at gmail dot com>.
  1419. _ACEOF
  1420. ac_status=$?
  1421. fi
  1422. if test "$ac_init_help" = "recursive"; then
  1423. # If there are subdirs, report their specific --help.
  1424. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1425. test -d "$ac_dir" ||
  1426. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1427. continue
  1428. ac_builddir=.
  1429. case "$ac_dir" in
  1430. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1431. *)
  1432. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1433. # A ".." for each directory in $ac_dir_suffix.
  1434. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1435. case $ac_top_builddir_sub in
  1436. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1437. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1438. esac ;;
  1439. esac
  1440. ac_abs_top_builddir=$ac_pwd
  1441. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1442. # for backward compatibility:
  1443. ac_top_builddir=$ac_top_build_prefix
  1444. case $srcdir in
  1445. .) # We are building in place.
  1446. ac_srcdir=.
  1447. ac_top_srcdir=$ac_top_builddir_sub
  1448. ac_abs_top_srcdir=$ac_pwd ;;
  1449. [\\/]* | ?:[\\/]* ) # Absolute name.
  1450. ac_srcdir=$srcdir$ac_dir_suffix;
  1451. ac_top_srcdir=$srcdir
  1452. ac_abs_top_srcdir=$srcdir ;;
  1453. *) # Relative name.
  1454. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1455. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1456. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1457. esac
  1458. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1459. cd "$ac_dir" || { ac_status=$?; continue; }
  1460. # Check for guested configure.
  1461. if test -f "$ac_srcdir/configure.gnu"; then
  1462. echo &&
  1463. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1464. elif test -f "$ac_srcdir/configure"; then
  1465. echo &&
  1466. $SHELL "$ac_srcdir/configure" --help=recursive
  1467. else
  1468. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1469. fi || ac_status=$?
  1470. cd "$ac_pwd" || { ac_status=$?; break; }
  1471. done
  1472. fi
  1473. test -n "$ac_init_help" && exit $ac_status
  1474. if $ac_init_version; then
  1475. cat <<\_ACEOF
  1476. clish configure 1.2.0
  1477. generated by GNU Autoconf 2.64
  1478. Copyright (C) 2009 Free Software Foundation, Inc.
  1479. This configure script is free software; the Free Software Foundation
  1480. gives unlimited permission to copy, distribute and modify it.
  1481. _ACEOF
  1482. exit
  1483. fi
  1484. ## ------------------------ ##
  1485. ## Autoconf initialization. ##
  1486. ## ------------------------ ##
  1487. # ac_fn_c_try_compile LINENO
  1488. # --------------------------
  1489. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1490. ac_fn_c_try_compile ()
  1491. {
  1492. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1493. rm -f conftest.$ac_objext
  1494. if { { ac_try="$ac_compile"
  1495. case "(($ac_try" in
  1496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1497. *) ac_try_echo=$ac_try;;
  1498. esac
  1499. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1500. $as_echo "$ac_try_echo"; } >&5
  1501. (eval "$ac_compile") 2>conftest.err
  1502. ac_status=$?
  1503. if test -s conftest.err; then
  1504. grep -v '^ *+' conftest.err >conftest.er1
  1505. cat conftest.er1 >&5
  1506. mv -f conftest.er1 conftest.err
  1507. fi
  1508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1509. test $ac_status = 0; } && {
  1510. test -z "$ac_c_werror_flag" ||
  1511. test ! -s conftest.err
  1512. } && test -s conftest.$ac_objext; then :
  1513. ac_retval=0
  1514. else
  1515. $as_echo "$as_me: failed program was:" >&5
  1516. sed 's/^/| /' conftest.$ac_ext >&5
  1517. ac_retval=1
  1518. fi
  1519. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1520. return $ac_retval
  1521. } # ac_fn_c_try_compile
  1522. # ac_fn_cxx_try_compile LINENO
  1523. # ----------------------------
  1524. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1525. ac_fn_cxx_try_compile ()
  1526. {
  1527. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1528. rm -f conftest.$ac_objext
  1529. if { { ac_try="$ac_compile"
  1530. case "(($ac_try" in
  1531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1532. *) ac_try_echo=$ac_try;;
  1533. esac
  1534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1535. $as_echo "$ac_try_echo"; } >&5
  1536. (eval "$ac_compile") 2>conftest.err
  1537. ac_status=$?
  1538. if test -s conftest.err; then
  1539. grep -v '^ *+' conftest.err >conftest.er1
  1540. cat conftest.er1 >&5
  1541. mv -f conftest.er1 conftest.err
  1542. fi
  1543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1544. test $ac_status = 0; } && {
  1545. test -z "$ac_cxx_werror_flag" ||
  1546. test ! -s conftest.err
  1547. } && test -s conftest.$ac_objext; then :
  1548. ac_retval=0
  1549. else
  1550. $as_echo "$as_me: failed program was:" >&5
  1551. sed 's/^/| /' conftest.$ac_ext >&5
  1552. ac_retval=1
  1553. fi
  1554. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1555. return $ac_retval
  1556. } # ac_fn_cxx_try_compile
  1557. # ac_fn_c_try_link LINENO
  1558. # -----------------------
  1559. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1560. ac_fn_c_try_link ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. rm -f conftest.$ac_objext conftest$ac_exeext
  1564. if { { ac_try="$ac_link"
  1565. case "(($ac_try" in
  1566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1567. *) ac_try_echo=$ac_try;;
  1568. esac
  1569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1570. $as_echo "$ac_try_echo"; } >&5
  1571. (eval "$ac_link") 2>conftest.err
  1572. ac_status=$?
  1573. if test -s conftest.err; then
  1574. grep -v '^ *+' conftest.err >conftest.er1
  1575. cat conftest.er1 >&5
  1576. mv -f conftest.er1 conftest.err
  1577. fi
  1578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1579. test $ac_status = 0; } && {
  1580. test -z "$ac_c_werror_flag" ||
  1581. test ! -s conftest.err
  1582. } && test -s conftest$ac_exeext && {
  1583. test "$cross_compiling" = yes ||
  1584. $as_test_x conftest$ac_exeext
  1585. }; then :
  1586. ac_retval=0
  1587. else
  1588. $as_echo "$as_me: failed program was:" >&5
  1589. sed 's/^/| /' conftest.$ac_ext >&5
  1590. ac_retval=1
  1591. fi
  1592. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1593. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1594. # interfere with the next link command; also delete a directory that is
  1595. # left behind by Apple's compiler. We do this before executing the actions.
  1596. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1597. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1598. return $ac_retval
  1599. } # ac_fn_c_try_link
  1600. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1601. # -------------------------------------------------------
  1602. # Tests whether HEADER exists and can be compiled using the include files in
  1603. # INCLUDES, setting the cache variable VAR accordingly.
  1604. ac_fn_c_check_header_compile ()
  1605. {
  1606. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1608. $as_echo_n "checking for $2... " >&6; }
  1609. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1610. $as_echo_n "(cached) " >&6
  1611. else
  1612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1613. /* end confdefs.h. */
  1614. $4
  1615. #include <$2>
  1616. _ACEOF
  1617. if ac_fn_c_try_compile "$LINENO"; then :
  1618. eval "$3=yes"
  1619. else
  1620. eval "$3=no"
  1621. fi
  1622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1623. fi
  1624. eval ac_res=\$$3
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1626. $as_echo "$ac_res" >&6; }
  1627. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1628. } # ac_fn_c_check_header_compile
  1629. # ac_fn_c_try_cpp LINENO
  1630. # ----------------------
  1631. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1632. ac_fn_c_try_cpp ()
  1633. {
  1634. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1635. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1636. case "(($ac_try" in
  1637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1638. *) ac_try_echo=$ac_try;;
  1639. esac
  1640. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1641. $as_echo "$ac_try_echo"; } >&5
  1642. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1643. ac_status=$?
  1644. if test -s conftest.err; then
  1645. grep -v '^ *+' conftest.err >conftest.er1
  1646. cat conftest.er1 >&5
  1647. mv -f conftest.er1 conftest.err
  1648. fi
  1649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1650. test $ac_status = 0; } >/dev/null && {
  1651. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1652. test ! -s conftest.err
  1653. }; then :
  1654. ac_retval=0
  1655. else
  1656. $as_echo "$as_me: failed program was:" >&5
  1657. sed 's/^/| /' conftest.$ac_ext >&5
  1658. ac_retval=1
  1659. fi
  1660. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1661. return $ac_retval
  1662. } # ac_fn_c_try_cpp
  1663. # ac_fn_c_try_run LINENO
  1664. # ----------------------
  1665. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1666. # that executables *can* be run.
  1667. ac_fn_c_try_run ()
  1668. {
  1669. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1670. if { { ac_try="$ac_link"
  1671. case "(($ac_try" in
  1672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1673. *) ac_try_echo=$ac_try;;
  1674. esac
  1675. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1676. $as_echo "$ac_try_echo"; } >&5
  1677. (eval "$ac_link") 2>&5
  1678. ac_status=$?
  1679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1680. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1681. { { case "(($ac_try" in
  1682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1683. *) ac_try_echo=$ac_try;;
  1684. esac
  1685. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1686. $as_echo "$ac_try_echo"; } >&5
  1687. (eval "$ac_try") 2>&5
  1688. ac_status=$?
  1689. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1690. test $ac_status = 0; }; }; then :
  1691. ac_retval=0
  1692. else
  1693. $as_echo "$as_me: program exited with status $ac_status" >&5
  1694. $as_echo "$as_me: failed program was:" >&5
  1695. sed 's/^/| /' conftest.$ac_ext >&5
  1696. ac_retval=$ac_status
  1697. fi
  1698. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1699. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1700. return $ac_retval
  1701. } # ac_fn_c_try_run
  1702. # ac_fn_c_check_func LINENO FUNC VAR
  1703. # ----------------------------------
  1704. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1705. ac_fn_c_check_func ()
  1706. {
  1707. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1709. $as_echo_n "checking for $2... " >&6; }
  1710. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1711. $as_echo_n "(cached) " >&6
  1712. else
  1713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1714. /* end confdefs.h. */
  1715. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1716. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1717. #define $2 innocuous_$2
  1718. /* System header to define __stub macros and hopefully few prototypes,
  1719. which can conflict with char $2 (); below.
  1720. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1721. <limits.h> exists even on freestanding compilers. */
  1722. #ifdef __STDC__
  1723. # include <limits.h>
  1724. #else
  1725. # include <assert.h>
  1726. #endif
  1727. #undef $2
  1728. /* Override any GCC internal prototype to avoid an error.
  1729. Use char because int might match the return type of a GCC
  1730. builtin and then its argument prototype would still apply. */
  1731. #ifdef __cplusplus
  1732. extern "C"
  1733. #endif
  1734. char $2 ();
  1735. /* The GNU C library defines this for functions which it implements
  1736. to always fail with ENOSYS. Some functions are actually named
  1737. something starting with __ and the normal name is an alias. */
  1738. #if defined __stub_$2 || defined __stub___$2
  1739. choke me
  1740. #endif
  1741. int
  1742. main ()
  1743. {
  1744. return $2 ();
  1745. ;
  1746. return 0;
  1747. }
  1748. _ACEOF
  1749. if ac_fn_c_try_link "$LINENO"; then :
  1750. eval "$3=yes"
  1751. else
  1752. eval "$3=no"
  1753. fi
  1754. rm -f core conftest.err conftest.$ac_objext \
  1755. conftest$ac_exeext conftest.$ac_ext
  1756. fi
  1757. eval ac_res=\$$3
  1758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1759. $as_echo "$ac_res" >&6; }
  1760. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1761. } # ac_fn_c_check_func
  1762. # ac_fn_cxx_try_cpp LINENO
  1763. # ------------------------
  1764. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1765. ac_fn_cxx_try_cpp ()
  1766. {
  1767. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1768. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1769. case "(($ac_try" in
  1770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1771. *) ac_try_echo=$ac_try;;
  1772. esac
  1773. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1774. $as_echo "$ac_try_echo"; } >&5
  1775. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1776. ac_status=$?
  1777. if test -s conftest.err; then
  1778. grep -v '^ *+' conftest.err >conftest.er1
  1779. cat conftest.er1 >&5
  1780. mv -f conftest.er1 conftest.err
  1781. fi
  1782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1783. test $ac_status = 0; } >/dev/null && {
  1784. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1785. test ! -s conftest.err
  1786. }; then :
  1787. ac_retval=0
  1788. else
  1789. $as_echo "$as_me: failed program was:" >&5
  1790. sed 's/^/| /' conftest.$ac_ext >&5
  1791. ac_retval=1
  1792. fi
  1793. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1794. return $ac_retval
  1795. } # ac_fn_cxx_try_cpp
  1796. # ac_fn_cxx_try_link LINENO
  1797. # -------------------------
  1798. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1799. ac_fn_cxx_try_link ()
  1800. {
  1801. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1802. rm -f conftest.$ac_objext conftest$ac_exeext
  1803. if { { ac_try="$ac_link"
  1804. case "(($ac_try" in
  1805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1806. *) ac_try_echo=$ac_try;;
  1807. esac
  1808. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1809. $as_echo "$ac_try_echo"; } >&5
  1810. (eval "$ac_link") 2>conftest.err
  1811. ac_status=$?
  1812. if test -s conftest.err; then
  1813. grep -v '^ *+' conftest.err >conftest.er1
  1814. cat conftest.er1 >&5
  1815. mv -f conftest.er1 conftest.err
  1816. fi
  1817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1818. test $ac_status = 0; } && {
  1819. test -z "$ac_cxx_werror_flag" ||
  1820. test ! -s conftest.err
  1821. } && test -s conftest$ac_exeext && {
  1822. test "$cross_compiling" = yes ||
  1823. $as_test_x conftest$ac_exeext
  1824. }; then :
  1825. ac_retval=0
  1826. else
  1827. $as_echo "$as_me: failed program was:" >&5
  1828. sed 's/^/| /' conftest.$ac_ext >&5
  1829. ac_retval=1
  1830. fi
  1831. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1832. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1833. # interfere with the next link command; also delete a directory that is
  1834. # left behind by Apple's compiler. We do this before executing the actions.
  1835. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1836. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1837. return $ac_retval
  1838. } # ac_fn_cxx_try_link
  1839. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1840. # --------------------------------------------
  1841. # Tries to find the compile-time value of EXPR in a program that includes
  1842. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1843. # computed
  1844. ac_fn_c_compute_int ()
  1845. {
  1846. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1847. if test "$cross_compiling" = yes; then
  1848. # Depending upon the size, compute the lo and hi bounds.
  1849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1850. /* end confdefs.h. */
  1851. $4
  1852. int
  1853. main ()
  1854. {
  1855. static int test_array [1 - 2 * !(($2) >= 0)];
  1856. test_array [0] = 0
  1857. ;
  1858. return 0;
  1859. }
  1860. _ACEOF
  1861. if ac_fn_c_try_compile "$LINENO"; then :
  1862. ac_lo=0 ac_mid=0
  1863. while :; do
  1864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1865. /* end confdefs.h. */
  1866. $4
  1867. int
  1868. main ()
  1869. {
  1870. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1871. test_array [0] = 0
  1872. ;
  1873. return 0;
  1874. }
  1875. _ACEOF
  1876. if ac_fn_c_try_compile "$LINENO"; then :
  1877. ac_hi=$ac_mid; break
  1878. else
  1879. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1880. if test $ac_lo -le $ac_mid; then
  1881. ac_lo= ac_hi=
  1882. break
  1883. fi
  1884. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1885. fi
  1886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1887. done
  1888. else
  1889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1890. /* end confdefs.h. */
  1891. $4
  1892. int
  1893. main ()
  1894. {
  1895. static int test_array [1 - 2 * !(($2) < 0)];
  1896. test_array [0] = 0
  1897. ;
  1898. return 0;
  1899. }
  1900. _ACEOF
  1901. if ac_fn_c_try_compile "$LINENO"; then :
  1902. ac_hi=-1 ac_mid=-1
  1903. while :; do
  1904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1905. /* end confdefs.h. */
  1906. $4
  1907. int
  1908. main ()
  1909. {
  1910. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1911. test_array [0] = 0
  1912. ;
  1913. return 0;
  1914. }
  1915. _ACEOF
  1916. if ac_fn_c_try_compile "$LINENO"; then :
  1917. ac_lo=$ac_mid; break
  1918. else
  1919. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1920. if test $ac_mid -le $ac_hi; then
  1921. ac_lo= ac_hi=
  1922. break
  1923. fi
  1924. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1925. fi
  1926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1927. done
  1928. else
  1929. ac_lo= ac_hi=
  1930. fi
  1931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1932. fi
  1933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1934. # Binary search between lo and hi bounds.
  1935. while test "x$ac_lo" != "x$ac_hi"; do
  1936. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1938. /* end confdefs.h. */
  1939. $4
  1940. int
  1941. main ()
  1942. {
  1943. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1944. test_array [0] = 0
  1945. ;
  1946. return 0;
  1947. }
  1948. _ACEOF
  1949. if ac_fn_c_try_compile "$LINENO"; then :
  1950. ac_hi=$ac_mid
  1951. else
  1952. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1953. fi
  1954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1955. done
  1956. case $ac_lo in #((
  1957. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1958. '') ac_retval=1 ;;
  1959. esac
  1960. else
  1961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1962. /* end confdefs.h. */
  1963. $4
  1964. static long int longval () { return $2; }
  1965. static unsigned long int ulongval () { return $2; }
  1966. #include <stdio.h>
  1967. #include <stdlib.h>
  1968. int
  1969. main ()
  1970. {
  1971. FILE *f = fopen ("conftest.val", "w");
  1972. if (! f)
  1973. return 1;
  1974. if (($2) < 0)
  1975. {
  1976. long int i = longval ();
  1977. if (i != ($2))
  1978. return 1;
  1979. fprintf (f, "%ld", i);
  1980. }
  1981. else
  1982. {
  1983. unsigned long int i = ulongval ();
  1984. if (i != ($2))
  1985. return 1;
  1986. fprintf (f, "%lu", i);
  1987. }
  1988. /* Do not output a trailing newline, as this causes \r\n confusion
  1989. on some platforms. */
  1990. return ferror (f) || fclose (f) != 0;
  1991. ;
  1992. return 0;
  1993. }
  1994. _ACEOF
  1995. if ac_fn_c_try_run "$LINENO"; then :
  1996. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1997. else
  1998. ac_retval=1
  1999. fi
  2000. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2001. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2002. rm -f conftest.val
  2003. fi
  2004. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2005. return $ac_retval
  2006. } # ac_fn_c_compute_int
  2007. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2008. # -------------------------------------------------------
  2009. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2010. # the include files in INCLUDES and setting the cache variable VAR
  2011. # accordingly.
  2012. ac_fn_c_check_header_mongrel ()
  2013. {
  2014. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2015. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2017. $as_echo_n "checking for $2... " >&6; }
  2018. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2019. $as_echo_n "(cached) " >&6
  2020. fi
  2021. eval ac_res=\$$3
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2023. $as_echo "$ac_res" >&6; }
  2024. else
  2025. # Is the header compilable?
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2027. $as_echo_n "checking $2 usability... " >&6; }
  2028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2029. /* end confdefs.h. */
  2030. $4
  2031. #include <$2>
  2032. _ACEOF
  2033. if ac_fn_c_try_compile "$LINENO"; then :
  2034. ac_header_compiler=yes
  2035. else
  2036. ac_header_compiler=no
  2037. fi
  2038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2040. $as_echo "$ac_header_compiler" >&6; }
  2041. # Is the header present?
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2043. $as_echo_n "checking $2 presence... " >&6; }
  2044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2045. /* end confdefs.h. */
  2046. #include <$2>
  2047. _ACEOF
  2048. if ac_fn_c_try_cpp "$LINENO"; then :
  2049. ac_header_preproc=yes
  2050. else
  2051. ac_header_preproc=no
  2052. fi
  2053. rm -f conftest.err conftest.$ac_ext
  2054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2055. $as_echo "$ac_header_preproc" >&6; }
  2056. # So? What about this header?
  2057. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2058. yes:no: )
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2060. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2062. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2063. ;;
  2064. no:yes:* )
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2066. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2068. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2070. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2072. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2074. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2075. ( cat <<\_ASBOX
  2076. ## --------------------------------------------- ##
  2077. ## Report this to serj.kalichev at gmail dot com ##
  2078. ## --------------------------------------------- ##
  2079. _ASBOX
  2080. ) | sed "s/^/$as_me: WARNING: /" >&2
  2081. ;;
  2082. esac
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2084. $as_echo_n "checking for $2... " >&6; }
  2085. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2086. $as_echo_n "(cached) " >&6
  2087. else
  2088. eval "$3=\$ac_header_compiler"
  2089. fi
  2090. eval ac_res=\$$3
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2092. $as_echo "$ac_res" >&6; }
  2093. fi
  2094. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2095. } # ac_fn_c_check_header_mongrel
  2096. cat >config.log <<_ACEOF
  2097. This file contains any messages produced by compilers while
  2098. running configure, to aid debugging if configure makes a mistake.
  2099. It was created by clish $as_me 1.2.0, which was
  2100. generated by GNU Autoconf 2.64. Invocation command line was
  2101. $ $0 $@
  2102. _ACEOF
  2103. exec 5>>config.log
  2104. {
  2105. cat <<_ASUNAME
  2106. ## --------- ##
  2107. ## Platform. ##
  2108. ## --------- ##
  2109. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2110. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2111. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2112. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2113. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2114. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2115. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2116. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2117. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2118. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2119. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2120. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2121. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2122. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2123. _ASUNAME
  2124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2125. for as_dir in $PATH
  2126. do
  2127. IFS=$as_save_IFS
  2128. test -z "$as_dir" && as_dir=.
  2129. $as_echo "PATH: $as_dir"
  2130. done
  2131. IFS=$as_save_IFS
  2132. } >&5
  2133. cat >&5 <<_ACEOF
  2134. ## ----------- ##
  2135. ## Core tests. ##
  2136. ## ----------- ##
  2137. _ACEOF
  2138. # Keep a trace of the command line.
  2139. # Strip out --no-create and --no-recursion so they do not pile up.
  2140. # Strip out --silent because we don't want to record it for future runs.
  2141. # Also quote any args containing shell meta-characters.
  2142. # Make two passes to allow for proper duplicate-argument suppression.
  2143. ac_configure_args=
  2144. ac_configure_args0=
  2145. ac_configure_args1=
  2146. ac_must_keep_next=false
  2147. for ac_pass in 1 2
  2148. do
  2149. for ac_arg
  2150. do
  2151. case $ac_arg in
  2152. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2153. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2154. | -silent | --silent | --silen | --sile | --sil)
  2155. continue ;;
  2156. *\'*)
  2157. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2158. esac
  2159. case $ac_pass in
  2160. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2161. 2)
  2162. as_fn_append ac_configure_args1 " '$ac_arg'"
  2163. if test $ac_must_keep_next = true; then
  2164. ac_must_keep_next=false # Got value, back to normal.
  2165. else
  2166. case $ac_arg in
  2167. *=* | --config-cache | -C | -disable-* | --disable-* \
  2168. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2169. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2170. | -with-* | --with-* | -without-* | --without-* | --x)
  2171. case "$ac_configure_args0 " in
  2172. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2173. esac
  2174. ;;
  2175. -* ) ac_must_keep_next=true ;;
  2176. esac
  2177. fi
  2178. as_fn_append ac_configure_args " '$ac_arg'"
  2179. ;;
  2180. esac
  2181. done
  2182. done
  2183. { ac_configure_args0=; unset ac_configure_args0;}
  2184. { ac_configure_args1=; unset ac_configure_args1;}
  2185. # When interrupted or exit'd, cleanup temporary files, and complete
  2186. # config.log. We remove comments because anyway the quotes in there
  2187. # would cause problems or look ugly.
  2188. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2189. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2190. trap 'exit_status=$?
  2191. # Save into config.log some information that might help in debugging.
  2192. {
  2193. echo
  2194. cat <<\_ASBOX
  2195. ## ---------------- ##
  2196. ## Cache variables. ##
  2197. ## ---------------- ##
  2198. _ASBOX
  2199. echo
  2200. # The following way of writing the cache mishandles newlines in values,
  2201. (
  2202. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2203. eval ac_val=\$$ac_var
  2204. case $ac_val in #(
  2205. *${as_nl}*)
  2206. case $ac_var in #(
  2207. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2208. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2209. esac
  2210. case $ac_var in #(
  2211. _ | IFS | as_nl) ;; #(
  2212. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2213. *) { eval $ac_var=; unset $ac_var;} ;;
  2214. esac ;;
  2215. esac
  2216. done
  2217. (set) 2>&1 |
  2218. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2219. *${as_nl}ac_space=\ *)
  2220. sed -n \
  2221. "s/'\''/'\''\\\\'\'''\''/g;
  2222. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2223. ;; #(
  2224. *)
  2225. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2226. ;;
  2227. esac |
  2228. sort
  2229. )
  2230. echo
  2231. cat <<\_ASBOX
  2232. ## ----------------- ##
  2233. ## Output variables. ##
  2234. ## ----------------- ##
  2235. _ASBOX
  2236. echo
  2237. for ac_var in $ac_subst_vars
  2238. do
  2239. eval ac_val=\$$ac_var
  2240. case $ac_val in
  2241. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2242. esac
  2243. $as_echo "$ac_var='\''$ac_val'\''"
  2244. done | sort
  2245. echo
  2246. if test -n "$ac_subst_files"; then
  2247. cat <<\_ASBOX
  2248. ## ------------------- ##
  2249. ## File substitutions. ##
  2250. ## ------------------- ##
  2251. _ASBOX
  2252. echo
  2253. for ac_var in $ac_subst_files
  2254. do
  2255. eval ac_val=\$$ac_var
  2256. case $ac_val in
  2257. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2258. esac
  2259. $as_echo "$ac_var='\''$ac_val'\''"
  2260. done | sort
  2261. echo
  2262. fi
  2263. if test -s confdefs.h; then
  2264. cat <<\_ASBOX
  2265. ## ----------- ##
  2266. ## confdefs.h. ##
  2267. ## ----------- ##
  2268. _ASBOX
  2269. echo
  2270. cat confdefs.h
  2271. echo
  2272. fi
  2273. test "$ac_signal" != 0 &&
  2274. $as_echo "$as_me: caught signal $ac_signal"
  2275. $as_echo "$as_me: exit $exit_status"
  2276. } >&5
  2277. rm -f core *.core core.conftest.* &&
  2278. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2279. exit $exit_status
  2280. ' 0
  2281. for ac_signal in 1 2 13 15; do
  2282. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2283. done
  2284. ac_signal=0
  2285. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2286. rm -f -r conftest* confdefs.h
  2287. $as_echo "/* confdefs.h */" > confdefs.h
  2288. # Predefined preprocessor variables.
  2289. cat >>confdefs.h <<_ACEOF
  2290. #define PACKAGE_NAME "$PACKAGE_NAME"
  2291. _ACEOF
  2292. cat >>confdefs.h <<_ACEOF
  2293. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2294. _ACEOF
  2295. cat >>confdefs.h <<_ACEOF
  2296. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2297. _ACEOF
  2298. cat >>confdefs.h <<_ACEOF
  2299. #define PACKAGE_STRING "$PACKAGE_STRING"
  2300. _ACEOF
  2301. cat >>confdefs.h <<_ACEOF
  2302. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2303. _ACEOF
  2304. cat >>confdefs.h <<_ACEOF
  2305. #define PACKAGE_URL "$PACKAGE_URL"
  2306. _ACEOF
  2307. # Let the site file select an alternate cache file if it wants to.
  2308. # Prefer an explicitly selected file to automatically selected ones.
  2309. ac_site_file1=NONE
  2310. ac_site_file2=NONE
  2311. if test -n "$CONFIG_SITE"; then
  2312. ac_site_file1=$CONFIG_SITE
  2313. elif test "x$prefix" != xNONE; then
  2314. ac_site_file1=$prefix/share/config.site
  2315. ac_site_file2=$prefix/etc/config.site
  2316. else
  2317. ac_site_file1=$ac_default_prefix/share/config.site
  2318. ac_site_file2=$ac_default_prefix/etc/config.site
  2319. fi
  2320. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2321. do
  2322. test "x$ac_site_file" = xNONE && continue
  2323. if test -r "$ac_site_file"; then
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2325. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2326. sed 's/^/| /' "$ac_site_file" >&5
  2327. . "$ac_site_file"
  2328. fi
  2329. done
  2330. if test -r "$cache_file"; then
  2331. # Some versions of bash will fail to source /dev/null (special
  2332. # files actually), so we avoid doing that.
  2333. if test -f "$cache_file"; then
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2335. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2336. case $cache_file in
  2337. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2338. *) . "./$cache_file";;
  2339. esac
  2340. fi
  2341. else
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2343. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2344. >$cache_file
  2345. fi
  2346. # Check that the precious variables saved in the cache have kept the same
  2347. # value.
  2348. ac_cache_corrupted=false
  2349. for ac_var in $ac_precious_vars; do
  2350. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2351. eval ac_new_set=\$ac_env_${ac_var}_set
  2352. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2353. eval ac_new_val=\$ac_env_${ac_var}_value
  2354. case $ac_old_set,$ac_new_set in
  2355. set,)
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2357. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2358. ac_cache_corrupted=: ;;
  2359. ,set)
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2361. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2362. ac_cache_corrupted=: ;;
  2363. ,);;
  2364. *)
  2365. if test "x$ac_old_val" != "x$ac_new_val"; then
  2366. # differences in whitespace do not lead to failure.
  2367. ac_old_val_w=`echo x $ac_old_val`
  2368. ac_new_val_w=`echo x $ac_new_val`
  2369. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2371. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2372. ac_cache_corrupted=:
  2373. else
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2375. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2376. eval $ac_var=\$ac_old_val
  2377. fi
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2379. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2381. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2382. fi;;
  2383. esac
  2384. # Pass precious variables to config.status.
  2385. if test "$ac_new_set" = set; then
  2386. case $ac_new_val in
  2387. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2388. *) ac_arg=$ac_var=$ac_new_val ;;
  2389. esac
  2390. case " $ac_configure_args " in
  2391. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2392. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2393. esac
  2394. fi
  2395. done
  2396. if $ac_cache_corrupted; then
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2398. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2400. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2401. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2402. fi
  2403. ## -------------------- ##
  2404. ## Main body of script. ##
  2405. ## -------------------- ##
  2406. ac_ext=c
  2407. ac_cpp='$CPP $CPPFLAGS'
  2408. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2409. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2410. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2411. ac_aux_dir=
  2412. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2413. for ac_t in install-sh install.sh shtool; do
  2414. if test -f "$ac_dir/$ac_t"; then
  2415. ac_aux_dir=$ac_dir
  2416. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2417. break 2
  2418. fi
  2419. done
  2420. done
  2421. if test -z "$ac_aux_dir"; then
  2422. as_fn_error "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2423. fi
  2424. # These three variables are undocumented and unsupported,
  2425. # and are intended to be withdrawn in a future Autoconf release.
  2426. # They can cause serious problems if a builder's source tree is in a directory
  2427. # whose full name contains unusual characters.
  2428. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2429. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2430. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2431. # Checks for programs.
  2432. ac_ext=c
  2433. ac_cpp='$CPP $CPPFLAGS'
  2434. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2435. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2436. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2437. if test -n "$ac_tool_prefix"; then
  2438. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2439. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2441. $as_echo_n "checking for $ac_word... " >&6; }
  2442. if test "${ac_cv_prog_CC+set}" = set; then :
  2443. $as_echo_n "(cached) " >&6
  2444. else
  2445. if test -n "$CC"; then
  2446. ac_cv_prog_CC="$CC" # Let the user override the test.
  2447. else
  2448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2449. for as_dir in $PATH
  2450. do
  2451. IFS=$as_save_IFS
  2452. test -z "$as_dir" && as_dir=.
  2453. for ac_exec_ext in '' $ac_executable_extensions; do
  2454. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2455. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2457. break 2
  2458. fi
  2459. done
  2460. done
  2461. IFS=$as_save_IFS
  2462. fi
  2463. fi
  2464. CC=$ac_cv_prog_CC
  2465. if test -n "$CC"; then
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2467. $as_echo "$CC" >&6; }
  2468. else
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2470. $as_echo "no" >&6; }
  2471. fi
  2472. fi
  2473. if test -z "$ac_cv_prog_CC"; then
  2474. ac_ct_CC=$CC
  2475. # Extract the first word of "gcc", so it can be a program name with args.
  2476. set dummy gcc; ac_word=$2
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2478. $as_echo_n "checking for $ac_word... " >&6; }
  2479. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2480. $as_echo_n "(cached) " >&6
  2481. else
  2482. if test -n "$ac_ct_CC"; then
  2483. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2484. else
  2485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2486. for as_dir in $PATH
  2487. do
  2488. IFS=$as_save_IFS
  2489. test -z "$as_dir" && as_dir=.
  2490. for ac_exec_ext in '' $ac_executable_extensions; do
  2491. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2492. ac_cv_prog_ac_ct_CC="gcc"
  2493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2494. break 2
  2495. fi
  2496. done
  2497. done
  2498. IFS=$as_save_IFS
  2499. fi
  2500. fi
  2501. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2502. if test -n "$ac_ct_CC"; then
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2504. $as_echo "$ac_ct_CC" >&6; }
  2505. else
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2507. $as_echo "no" >&6; }
  2508. fi
  2509. if test "x$ac_ct_CC" = x; then
  2510. CC=""
  2511. else
  2512. case $cross_compiling:$ac_tool_warned in
  2513. yes:)
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2515. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2516. ac_tool_warned=yes ;;
  2517. esac
  2518. CC=$ac_ct_CC
  2519. fi
  2520. else
  2521. CC="$ac_cv_prog_CC"
  2522. fi
  2523. if test -z "$CC"; then
  2524. if test -n "$ac_tool_prefix"; then
  2525. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2526. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2528. $as_echo_n "checking for $ac_word... " >&6; }
  2529. if test "${ac_cv_prog_CC+set}" = set; then :
  2530. $as_echo_n "(cached) " >&6
  2531. else
  2532. if test -n "$CC"; then
  2533. ac_cv_prog_CC="$CC" # Let the user override the test.
  2534. else
  2535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2536. for as_dir in $PATH
  2537. do
  2538. IFS=$as_save_IFS
  2539. test -z "$as_dir" && as_dir=.
  2540. for ac_exec_ext in '' $ac_executable_extensions; do
  2541. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2542. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2544. break 2
  2545. fi
  2546. done
  2547. done
  2548. IFS=$as_save_IFS
  2549. fi
  2550. fi
  2551. CC=$ac_cv_prog_CC
  2552. if test -n "$CC"; then
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2554. $as_echo "$CC" >&6; }
  2555. else
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2557. $as_echo "no" >&6; }
  2558. fi
  2559. fi
  2560. fi
  2561. if test -z "$CC"; then
  2562. # Extract the first word of "cc", so it can be a program name with args.
  2563. set dummy cc; ac_word=$2
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2565. $as_echo_n "checking for $ac_word... " >&6; }
  2566. if test "${ac_cv_prog_CC+set}" = set; then :
  2567. $as_echo_n "(cached) " >&6
  2568. else
  2569. if test -n "$CC"; then
  2570. ac_cv_prog_CC="$CC" # Let the user override the test.
  2571. else
  2572. ac_prog_rejected=no
  2573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2574. for as_dir in $PATH
  2575. do
  2576. IFS=$as_save_IFS
  2577. test -z "$as_dir" && as_dir=.
  2578. for ac_exec_ext in '' $ac_executable_extensions; do
  2579. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2580. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2581. ac_prog_rejected=yes
  2582. continue
  2583. fi
  2584. ac_cv_prog_CC="cc"
  2585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2586. break 2
  2587. fi
  2588. done
  2589. done
  2590. IFS=$as_save_IFS
  2591. if test $ac_prog_rejected = yes; then
  2592. # We found a bogon in the path, so make sure we never use it.
  2593. set dummy $ac_cv_prog_CC
  2594. shift
  2595. if test $# != 0; then
  2596. # We chose a different compiler from the bogus one.
  2597. # However, it has the same basename, so the bogon will be chosen
  2598. # first if we set CC to just the basename; use the full file name.
  2599. shift
  2600. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2601. fi
  2602. fi
  2603. fi
  2604. fi
  2605. CC=$ac_cv_prog_CC
  2606. if test -n "$CC"; then
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2608. $as_echo "$CC" >&6; }
  2609. else
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2611. $as_echo "no" >&6; }
  2612. fi
  2613. fi
  2614. if test -z "$CC"; then
  2615. if test -n "$ac_tool_prefix"; then
  2616. for ac_prog in cl.exe
  2617. do
  2618. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2619. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2621. $as_echo_n "checking for $ac_word... " >&6; }
  2622. if test "${ac_cv_prog_CC+set}" = set; then :
  2623. $as_echo_n "(cached) " >&6
  2624. else
  2625. if test -n "$CC"; then
  2626. ac_cv_prog_CC="$CC" # Let the user override the test.
  2627. else
  2628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2629. for as_dir in $PATH
  2630. do
  2631. IFS=$as_save_IFS
  2632. test -z "$as_dir" && as_dir=.
  2633. for ac_exec_ext in '' $ac_executable_extensions; do
  2634. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2635. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2637. break 2
  2638. fi
  2639. done
  2640. done
  2641. IFS=$as_save_IFS
  2642. fi
  2643. fi
  2644. CC=$ac_cv_prog_CC
  2645. if test -n "$CC"; then
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2647. $as_echo "$CC" >&6; }
  2648. else
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2650. $as_echo "no" >&6; }
  2651. fi
  2652. test -n "$CC" && break
  2653. done
  2654. fi
  2655. if test -z "$CC"; then
  2656. ac_ct_CC=$CC
  2657. for ac_prog in cl.exe
  2658. do
  2659. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2660. set dummy $ac_prog; ac_word=$2
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2662. $as_echo_n "checking for $ac_word... " >&6; }
  2663. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2664. $as_echo_n "(cached) " >&6
  2665. else
  2666. if test -n "$ac_ct_CC"; then
  2667. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2668. else
  2669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2670. for as_dir in $PATH
  2671. do
  2672. IFS=$as_save_IFS
  2673. test -z "$as_dir" && as_dir=.
  2674. for ac_exec_ext in '' $ac_executable_extensions; do
  2675. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2676. ac_cv_prog_ac_ct_CC="$ac_prog"
  2677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2678. break 2
  2679. fi
  2680. done
  2681. done
  2682. IFS=$as_save_IFS
  2683. fi
  2684. fi
  2685. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2686. if test -n "$ac_ct_CC"; then
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2688. $as_echo "$ac_ct_CC" >&6; }
  2689. else
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2691. $as_echo "no" >&6; }
  2692. fi
  2693. test -n "$ac_ct_CC" && break
  2694. done
  2695. if test "x$ac_ct_CC" = x; then
  2696. CC=""
  2697. else
  2698. case $cross_compiling:$ac_tool_warned in
  2699. yes:)
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2701. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2702. ac_tool_warned=yes ;;
  2703. esac
  2704. CC=$ac_ct_CC
  2705. fi
  2706. fi
  2707. fi
  2708. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2709. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2710. as_fn_error "no acceptable C compiler found in \$PATH
  2711. See \`config.log' for more details." "$LINENO" 5; }
  2712. # Provide some information about the compiler.
  2713. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2714. set X $ac_compile
  2715. ac_compiler=$2
  2716. for ac_option in --version -v -V -qversion; do
  2717. { { ac_try="$ac_compiler $ac_option >&5"
  2718. case "(($ac_try" in
  2719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2720. *) ac_try_echo=$ac_try;;
  2721. esac
  2722. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2723. $as_echo "$ac_try_echo"; } >&5
  2724. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2725. ac_status=$?
  2726. if test -s conftest.err; then
  2727. sed '10a\
  2728. ... rest of stderr output deleted ...
  2729. 10q' conftest.err >conftest.er1
  2730. cat conftest.er1 >&5
  2731. rm -f conftest.er1 conftest.err
  2732. fi
  2733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2734. test $ac_status = 0; }
  2735. done
  2736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2737. /* end confdefs.h. */
  2738. #include <stdio.h>
  2739. int
  2740. main ()
  2741. {
  2742. FILE *f = fopen ("conftest.out", "w");
  2743. return ferror (f) || fclose (f) != 0;
  2744. ;
  2745. return 0;
  2746. }
  2747. _ACEOF
  2748. ac_clean_files_save=$ac_clean_files
  2749. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2750. # Try to create an executable without -o first, disregard a.out.
  2751. # It will help us diagnose broken compilers, and finding out an intuition
  2752. # of exeext.
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2754. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2755. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2756. # The possible output files:
  2757. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2758. ac_rmfiles=
  2759. for ac_file in $ac_files
  2760. do
  2761. case $ac_file in
  2762. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2763. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2764. esac
  2765. done
  2766. rm -f $ac_rmfiles
  2767. if { { ac_try="$ac_link_default"
  2768. case "(($ac_try" in
  2769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2770. *) ac_try_echo=$ac_try;;
  2771. esac
  2772. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2773. $as_echo "$ac_try_echo"; } >&5
  2774. (eval "$ac_link_default") 2>&5
  2775. ac_status=$?
  2776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2777. test $ac_status = 0; }; then :
  2778. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2779. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2780. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2781. # so that the user can short-circuit this test for compilers unknown to
  2782. # Autoconf.
  2783. for ac_file in $ac_files ''
  2784. do
  2785. test -f "$ac_file" || continue
  2786. case $ac_file in
  2787. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2788. ;;
  2789. [ab].out )
  2790. # We found the default executable, but exeext='' is most
  2791. # certainly right.
  2792. break;;
  2793. *.* )
  2794. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2795. then :; else
  2796. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2797. fi
  2798. # We set ac_cv_exeext here because the later test for it is not
  2799. # safe: cross compilers may not add the suffix if given an `-o'
  2800. # argument, so we may need to know it at that point already.
  2801. # Even if this section looks crufty: it has the advantage of
  2802. # actually working.
  2803. break;;
  2804. * )
  2805. break;;
  2806. esac
  2807. done
  2808. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2809. else
  2810. ac_file=''
  2811. fi
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2813. $as_echo "$ac_file" >&6; }
  2814. if test -z "$ac_file"; then :
  2815. $as_echo "$as_me: failed program was:" >&5
  2816. sed 's/^/| /' conftest.$ac_ext >&5
  2817. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2818. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2819. { as_fn_set_status 77
  2820. as_fn_error "C compiler cannot create executables
  2821. See \`config.log' for more details." "$LINENO" 5; }; }
  2822. fi
  2823. ac_exeext=$ac_cv_exeext
  2824. # Check that the compiler produces executables we can run. If not, either
  2825. # the compiler is broken, or we cross compile.
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2827. $as_echo_n "checking whether the C compiler works... " >&6; }
  2828. # If not cross compiling, check that we can run a simple program.
  2829. if test "$cross_compiling" != yes; then
  2830. if { ac_try='./$ac_file'
  2831. { { case "(($ac_try" in
  2832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2833. *) ac_try_echo=$ac_try;;
  2834. esac
  2835. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2836. $as_echo "$ac_try_echo"; } >&5
  2837. (eval "$ac_try") 2>&5
  2838. ac_status=$?
  2839. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2840. test $ac_status = 0; }; }; then
  2841. cross_compiling=no
  2842. else
  2843. if test "$cross_compiling" = maybe; then
  2844. cross_compiling=yes
  2845. else
  2846. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2847. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2848. as_fn_error "cannot run C compiled programs.
  2849. If you meant to cross compile, use \`--host'.
  2850. See \`config.log' for more details." "$LINENO" 5; }
  2851. fi
  2852. fi
  2853. fi
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2855. $as_echo "yes" >&6; }
  2856. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2857. ac_clean_files=$ac_clean_files_save
  2858. # Check that the compiler produces executables we can run. If not, either
  2859. # the compiler is broken, or we cross compile.
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2861. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2863. $as_echo "$cross_compiling" >&6; }
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2865. $as_echo_n "checking for suffix of executables... " >&6; }
  2866. if { { ac_try="$ac_link"
  2867. case "(($ac_try" in
  2868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2869. *) ac_try_echo=$ac_try;;
  2870. esac
  2871. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2872. $as_echo "$ac_try_echo"; } >&5
  2873. (eval "$ac_link") 2>&5
  2874. ac_status=$?
  2875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2876. test $ac_status = 0; }; then :
  2877. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2878. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2879. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2880. # `rm'.
  2881. for ac_file in conftest.exe conftest conftest.*; do
  2882. test -f "$ac_file" || continue
  2883. case $ac_file in
  2884. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2885. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2886. break;;
  2887. * ) break;;
  2888. esac
  2889. done
  2890. else
  2891. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2892. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2893. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2894. See \`config.log' for more details." "$LINENO" 5; }
  2895. fi
  2896. rm -f conftest$ac_cv_exeext
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2898. $as_echo "$ac_cv_exeext" >&6; }
  2899. rm -f conftest.$ac_ext
  2900. EXEEXT=$ac_cv_exeext
  2901. ac_exeext=$EXEEXT
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2903. $as_echo_n "checking for suffix of object files... " >&6; }
  2904. if test "${ac_cv_objext+set}" = set; then :
  2905. $as_echo_n "(cached) " >&6
  2906. else
  2907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2908. /* end confdefs.h. */
  2909. int
  2910. main ()
  2911. {
  2912. ;
  2913. return 0;
  2914. }
  2915. _ACEOF
  2916. rm -f conftest.o conftest.obj
  2917. if { { ac_try="$ac_compile"
  2918. case "(($ac_try" in
  2919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2920. *) ac_try_echo=$ac_try;;
  2921. esac
  2922. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2923. $as_echo "$ac_try_echo"; } >&5
  2924. (eval "$ac_compile") 2>&5
  2925. ac_status=$?
  2926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2927. test $ac_status = 0; }; then :
  2928. for ac_file in conftest.o conftest.obj conftest.*; do
  2929. test -f "$ac_file" || continue;
  2930. case $ac_file in
  2931. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2932. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2933. break;;
  2934. esac
  2935. done
  2936. else
  2937. $as_echo "$as_me: failed program was:" >&5
  2938. sed 's/^/| /' conftest.$ac_ext >&5
  2939. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2940. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2941. as_fn_error "cannot compute suffix of object files: cannot compile
  2942. See \`config.log' for more details." "$LINENO" 5; }
  2943. fi
  2944. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2945. fi
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2947. $as_echo "$ac_cv_objext" >&6; }
  2948. OBJEXT=$ac_cv_objext
  2949. ac_objext=$OBJEXT
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2951. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2952. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2953. $as_echo_n "(cached) " >&6
  2954. else
  2955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2956. /* end confdefs.h. */
  2957. int
  2958. main ()
  2959. {
  2960. #ifndef __GNUC__
  2961. choke me
  2962. #endif
  2963. ;
  2964. return 0;
  2965. }
  2966. _ACEOF
  2967. if ac_fn_c_try_compile "$LINENO"; then :
  2968. ac_compiler_gnu=yes
  2969. else
  2970. ac_compiler_gnu=no
  2971. fi
  2972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2973. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2974. fi
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2976. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2977. if test $ac_compiler_gnu = yes; then
  2978. GCC=yes
  2979. else
  2980. GCC=
  2981. fi
  2982. ac_test_CFLAGS=${CFLAGS+set}
  2983. ac_save_CFLAGS=$CFLAGS
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2985. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2986. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2987. $as_echo_n "(cached) " >&6
  2988. else
  2989. ac_save_c_werror_flag=$ac_c_werror_flag
  2990. ac_c_werror_flag=yes
  2991. ac_cv_prog_cc_g=no
  2992. CFLAGS="-g"
  2993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2994. /* end confdefs.h. */
  2995. int
  2996. main ()
  2997. {
  2998. ;
  2999. return 0;
  3000. }
  3001. _ACEOF
  3002. if ac_fn_c_try_compile "$LINENO"; then :
  3003. ac_cv_prog_cc_g=yes
  3004. else
  3005. CFLAGS=""
  3006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3007. /* end confdefs.h. */
  3008. int
  3009. main ()
  3010. {
  3011. ;
  3012. return 0;
  3013. }
  3014. _ACEOF
  3015. if ac_fn_c_try_compile "$LINENO"; then :
  3016. else
  3017. ac_c_werror_flag=$ac_save_c_werror_flag
  3018. CFLAGS="-g"
  3019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3020. /* end confdefs.h. */
  3021. int
  3022. main ()
  3023. {
  3024. ;
  3025. return 0;
  3026. }
  3027. _ACEOF
  3028. if ac_fn_c_try_compile "$LINENO"; then :
  3029. ac_cv_prog_cc_g=yes
  3030. fi
  3031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3032. fi
  3033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3034. fi
  3035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3036. ac_c_werror_flag=$ac_save_c_werror_flag
  3037. fi
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3039. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3040. if test "$ac_test_CFLAGS" = set; then
  3041. CFLAGS=$ac_save_CFLAGS
  3042. elif test $ac_cv_prog_cc_g = yes; then
  3043. if test "$GCC" = yes; then
  3044. CFLAGS="-g -O2"
  3045. else
  3046. CFLAGS="-g"
  3047. fi
  3048. else
  3049. if test "$GCC" = yes; then
  3050. CFLAGS="-O2"
  3051. else
  3052. CFLAGS=
  3053. fi
  3054. fi
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3056. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3057. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3058. $as_echo_n "(cached) " >&6
  3059. else
  3060. ac_cv_prog_cc_c89=no
  3061. ac_save_CC=$CC
  3062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3063. /* end confdefs.h. */
  3064. #include <stdarg.h>
  3065. #include <stdio.h>
  3066. #include <sys/types.h>
  3067. #include <sys/stat.h>
  3068. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3069. struct buf { int x; };
  3070. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3071. static char *e (p, i)
  3072. char **p;
  3073. int i;
  3074. {
  3075. return p[i];
  3076. }
  3077. static char *f (char * (*g) (char **, int), char **p, ...)
  3078. {
  3079. char *s;
  3080. va_list v;
  3081. va_start (v,p);
  3082. s = g (p, va_arg (v,int));
  3083. va_end (v);
  3084. return s;
  3085. }
  3086. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3087. function prototypes and stuff, but not '\xHH' hex character constants.
  3088. These don't provoke an error unfortunately, instead are silently treated
  3089. as 'x'. The following induces an error, until -std is added to get
  3090. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3091. array size at least. It's necessary to write '\x00'==0 to get something
  3092. that's true only with -std. */
  3093. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3094. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3095. inside strings and character constants. */
  3096. #define FOO(x) 'x'
  3097. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3098. int test (int i, double x);
  3099. struct s1 {int (*f) (int a);};
  3100. struct s2 {int (*f) (double a);};
  3101. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3102. int argc;
  3103. char **argv;
  3104. int
  3105. main ()
  3106. {
  3107. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3108. ;
  3109. return 0;
  3110. }
  3111. _ACEOF
  3112. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3113. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3114. do
  3115. CC="$ac_save_CC $ac_arg"
  3116. if ac_fn_c_try_compile "$LINENO"; then :
  3117. ac_cv_prog_cc_c89=$ac_arg
  3118. fi
  3119. rm -f core conftest.err conftest.$ac_objext
  3120. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3121. done
  3122. rm -f conftest.$ac_ext
  3123. CC=$ac_save_CC
  3124. fi
  3125. # AC_CACHE_VAL
  3126. case "x$ac_cv_prog_cc_c89" in
  3127. x)
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3129. $as_echo "none needed" >&6; } ;;
  3130. xno)
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3132. $as_echo "unsupported" >&6; } ;;
  3133. *)
  3134. CC="$CC $ac_cv_prog_cc_c89"
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3136. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3137. esac
  3138. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3139. fi
  3140. ac_ext=c
  3141. ac_cpp='$CPP $CPPFLAGS'
  3142. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3143. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3144. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3145. ac_ext=cpp
  3146. ac_cpp='$CXXCPP $CPPFLAGS'
  3147. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3148. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3149. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3150. if test -z "$CXX"; then
  3151. if test -n "$CCC"; then
  3152. CXX=$CCC
  3153. else
  3154. if test -n "$ac_tool_prefix"; then
  3155. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3156. do
  3157. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3158. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3160. $as_echo_n "checking for $ac_word... " >&6; }
  3161. if test "${ac_cv_prog_CXX+set}" = set; then :
  3162. $as_echo_n "(cached) " >&6
  3163. else
  3164. if test -n "$CXX"; then
  3165. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3166. else
  3167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3168. for as_dir in $PATH
  3169. do
  3170. IFS=$as_save_IFS
  3171. test -z "$as_dir" && as_dir=.
  3172. for ac_exec_ext in '' $ac_executable_extensions; do
  3173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3174. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3176. break 2
  3177. fi
  3178. done
  3179. done
  3180. IFS=$as_save_IFS
  3181. fi
  3182. fi
  3183. CXX=$ac_cv_prog_CXX
  3184. if test -n "$CXX"; then
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3186. $as_echo "$CXX" >&6; }
  3187. else
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3189. $as_echo "no" >&6; }
  3190. fi
  3191. test -n "$CXX" && break
  3192. done
  3193. fi
  3194. if test -z "$CXX"; then
  3195. ac_ct_CXX=$CXX
  3196. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3197. do
  3198. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3199. set dummy $ac_prog; ac_word=$2
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3201. $as_echo_n "checking for $ac_word... " >&6; }
  3202. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3203. $as_echo_n "(cached) " >&6
  3204. else
  3205. if test -n "$ac_ct_CXX"; then
  3206. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3207. else
  3208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3209. for as_dir in $PATH
  3210. do
  3211. IFS=$as_save_IFS
  3212. test -z "$as_dir" && as_dir=.
  3213. for ac_exec_ext in '' $ac_executable_extensions; do
  3214. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3215. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3217. break 2
  3218. fi
  3219. done
  3220. done
  3221. IFS=$as_save_IFS
  3222. fi
  3223. fi
  3224. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3225. if test -n "$ac_ct_CXX"; then
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3227. $as_echo "$ac_ct_CXX" >&6; }
  3228. else
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3230. $as_echo "no" >&6; }
  3231. fi
  3232. test -n "$ac_ct_CXX" && break
  3233. done
  3234. if test "x$ac_ct_CXX" = x; then
  3235. CXX="g++"
  3236. else
  3237. case $cross_compiling:$ac_tool_warned in
  3238. yes:)
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3240. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3241. ac_tool_warned=yes ;;
  3242. esac
  3243. CXX=$ac_ct_CXX
  3244. fi
  3245. fi
  3246. fi
  3247. fi
  3248. # Provide some information about the compiler.
  3249. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3250. set X $ac_compile
  3251. ac_compiler=$2
  3252. for ac_option in --version -v -V -qversion; do
  3253. { { ac_try="$ac_compiler $ac_option >&5"
  3254. case "(($ac_try" in
  3255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3256. *) ac_try_echo=$ac_try;;
  3257. esac
  3258. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3259. $as_echo "$ac_try_echo"; } >&5
  3260. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3261. ac_status=$?
  3262. if test -s conftest.err; then
  3263. sed '10a\
  3264. ... rest of stderr output deleted ...
  3265. 10q' conftest.err >conftest.er1
  3266. cat conftest.er1 >&5
  3267. rm -f conftest.er1 conftest.err
  3268. fi
  3269. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3270. test $ac_status = 0; }
  3271. done
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3273. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3274. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3275. $as_echo_n "(cached) " >&6
  3276. else
  3277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3278. /* end confdefs.h. */
  3279. int
  3280. main ()
  3281. {
  3282. #ifndef __GNUC__
  3283. choke me
  3284. #endif
  3285. ;
  3286. return 0;
  3287. }
  3288. _ACEOF
  3289. if ac_fn_cxx_try_compile "$LINENO"; then :
  3290. ac_compiler_gnu=yes
  3291. else
  3292. ac_compiler_gnu=no
  3293. fi
  3294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3295. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3296. fi
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3298. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3299. if test $ac_compiler_gnu = yes; then
  3300. GXX=yes
  3301. else
  3302. GXX=
  3303. fi
  3304. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3305. ac_save_CXXFLAGS=$CXXFLAGS
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3307. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3308. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3309. $as_echo_n "(cached) " >&6
  3310. else
  3311. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3312. ac_cxx_werror_flag=yes
  3313. ac_cv_prog_cxx_g=no
  3314. CXXFLAGS="-g"
  3315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3316. /* end confdefs.h. */
  3317. int
  3318. main ()
  3319. {
  3320. ;
  3321. return 0;
  3322. }
  3323. _ACEOF
  3324. if ac_fn_cxx_try_compile "$LINENO"; then :
  3325. ac_cv_prog_cxx_g=yes
  3326. else
  3327. CXXFLAGS=""
  3328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3329. /* end confdefs.h. */
  3330. int
  3331. main ()
  3332. {
  3333. ;
  3334. return 0;
  3335. }
  3336. _ACEOF
  3337. if ac_fn_cxx_try_compile "$LINENO"; then :
  3338. else
  3339. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3340. CXXFLAGS="-g"
  3341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3342. /* end confdefs.h. */
  3343. int
  3344. main ()
  3345. {
  3346. ;
  3347. return 0;
  3348. }
  3349. _ACEOF
  3350. if ac_fn_cxx_try_compile "$LINENO"; then :
  3351. ac_cv_prog_cxx_g=yes
  3352. fi
  3353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3354. fi
  3355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3356. fi
  3357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3358. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3359. fi
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3361. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3362. if test "$ac_test_CXXFLAGS" = set; then
  3363. CXXFLAGS=$ac_save_CXXFLAGS
  3364. elif test $ac_cv_prog_cxx_g = yes; then
  3365. if test "$GXX" = yes; then
  3366. CXXFLAGS="-g -O2"
  3367. else
  3368. CXXFLAGS="-g"
  3369. fi
  3370. else
  3371. if test "$GXX" = yes; then
  3372. CXXFLAGS="-O2"
  3373. else
  3374. CXXFLAGS=
  3375. fi
  3376. fi
  3377. ac_ext=c
  3378. ac_cpp='$CPP $CPPFLAGS'
  3379. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3380. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3381. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3382. # Make sure we can run config.sub.
  3383. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3384. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3386. $as_echo_n "checking build system type... " >&6; }
  3387. if test "${ac_cv_build+set}" = set; then :
  3388. $as_echo_n "(cached) " >&6
  3389. else
  3390. ac_build_alias=$build_alias
  3391. test "x$ac_build_alias" = x &&
  3392. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3393. test "x$ac_build_alias" = x &&
  3394. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3395. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3396. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3397. fi
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3399. $as_echo "$ac_cv_build" >&6; }
  3400. case $ac_cv_build in
  3401. *-*-*) ;;
  3402. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3403. esac
  3404. build=$ac_cv_build
  3405. ac_save_IFS=$IFS; IFS='-'
  3406. set x $ac_cv_build
  3407. shift
  3408. build_cpu=$1
  3409. build_vendor=$2
  3410. shift; shift
  3411. # Remember, the first character of IFS is used to create $*,
  3412. # except with old shells:
  3413. build_os=$*
  3414. IFS=$ac_save_IFS
  3415. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3417. $as_echo_n "checking host system type... " >&6; }
  3418. if test "${ac_cv_host+set}" = set; then :
  3419. $as_echo_n "(cached) " >&6
  3420. else
  3421. if test "x$host_alias" = x; then
  3422. ac_cv_host=$ac_cv_build
  3423. else
  3424. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3425. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3426. fi
  3427. fi
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3429. $as_echo "$ac_cv_host" >&6; }
  3430. case $ac_cv_host in
  3431. *-*-*) ;;
  3432. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3433. esac
  3434. host=$ac_cv_host
  3435. ac_save_IFS=$IFS; IFS='-'
  3436. set x $ac_cv_host
  3437. shift
  3438. host_cpu=$1
  3439. host_vendor=$2
  3440. shift; shift
  3441. # Remember, the first character of IFS is used to create $*,
  3442. # except with old shells:
  3443. host_os=$*
  3444. IFS=$ac_save_IFS
  3445. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3446. enable_win32_dll=yes
  3447. case $host in
  3448. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  3449. if test -n "$ac_tool_prefix"; then
  3450. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3451. set dummy ${ac_tool_prefix}as; ac_word=$2
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3453. $as_echo_n "checking for $ac_word... " >&6; }
  3454. if test "${ac_cv_prog_AS+set}" = set; then :
  3455. $as_echo_n "(cached) " >&6
  3456. else
  3457. if test -n "$AS"; then
  3458. ac_cv_prog_AS="$AS" # Let the user override the test.
  3459. else
  3460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3461. for as_dir in $PATH
  3462. do
  3463. IFS=$as_save_IFS
  3464. test -z "$as_dir" && as_dir=.
  3465. for ac_exec_ext in '' $ac_executable_extensions; do
  3466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3467. ac_cv_prog_AS="${ac_tool_prefix}as"
  3468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3469. break 2
  3470. fi
  3471. done
  3472. done
  3473. IFS=$as_save_IFS
  3474. fi
  3475. fi
  3476. AS=$ac_cv_prog_AS
  3477. if test -n "$AS"; then
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3479. $as_echo "$AS" >&6; }
  3480. else
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3482. $as_echo "no" >&6; }
  3483. fi
  3484. fi
  3485. if test -z "$ac_cv_prog_AS"; then
  3486. ac_ct_AS=$AS
  3487. # Extract the first word of "as", so it can be a program name with args.
  3488. set dummy as; ac_word=$2
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3490. $as_echo_n "checking for $ac_word... " >&6; }
  3491. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  3492. $as_echo_n "(cached) " >&6
  3493. else
  3494. if test -n "$ac_ct_AS"; then
  3495. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3496. else
  3497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3498. for as_dir in $PATH
  3499. do
  3500. IFS=$as_save_IFS
  3501. test -z "$as_dir" && as_dir=.
  3502. for ac_exec_ext in '' $ac_executable_extensions; do
  3503. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3504. ac_cv_prog_ac_ct_AS="as"
  3505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3506. break 2
  3507. fi
  3508. done
  3509. done
  3510. IFS=$as_save_IFS
  3511. fi
  3512. fi
  3513. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3514. if test -n "$ac_ct_AS"; then
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3516. $as_echo "$ac_ct_AS" >&6; }
  3517. else
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3519. $as_echo "no" >&6; }
  3520. fi
  3521. if test "x$ac_ct_AS" = x; then
  3522. AS="false"
  3523. else
  3524. case $cross_compiling:$ac_tool_warned in
  3525. yes:)
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3528. ac_tool_warned=yes ;;
  3529. esac
  3530. AS=$ac_ct_AS
  3531. fi
  3532. else
  3533. AS="$ac_cv_prog_AS"
  3534. fi
  3535. if test -n "$ac_tool_prefix"; then
  3536. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3537. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3539. $as_echo_n "checking for $ac_word... " >&6; }
  3540. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  3541. $as_echo_n "(cached) " >&6
  3542. else
  3543. if test -n "$DLLTOOL"; then
  3544. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3545. else
  3546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3547. for as_dir in $PATH
  3548. do
  3549. IFS=$as_save_IFS
  3550. test -z "$as_dir" && as_dir=.
  3551. for ac_exec_ext in '' $ac_executable_extensions; do
  3552. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3553. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3554. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3555. break 2
  3556. fi
  3557. done
  3558. done
  3559. IFS=$as_save_IFS
  3560. fi
  3561. fi
  3562. DLLTOOL=$ac_cv_prog_DLLTOOL
  3563. if test -n "$DLLTOOL"; then
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3565. $as_echo "$DLLTOOL" >&6; }
  3566. else
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3568. $as_echo "no" >&6; }
  3569. fi
  3570. fi
  3571. if test -z "$ac_cv_prog_DLLTOOL"; then
  3572. ac_ct_DLLTOOL=$DLLTOOL
  3573. # Extract the first word of "dlltool", so it can be a program name with args.
  3574. set dummy dlltool; ac_word=$2
  3575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3576. $as_echo_n "checking for $ac_word... " >&6; }
  3577. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  3578. $as_echo_n "(cached) " >&6
  3579. else
  3580. if test -n "$ac_ct_DLLTOOL"; then
  3581. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3582. else
  3583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3584. for as_dir in $PATH
  3585. do
  3586. IFS=$as_save_IFS
  3587. test -z "$as_dir" && as_dir=.
  3588. for ac_exec_ext in '' $ac_executable_extensions; do
  3589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3590. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3592. break 2
  3593. fi
  3594. done
  3595. done
  3596. IFS=$as_save_IFS
  3597. fi
  3598. fi
  3599. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3600. if test -n "$ac_ct_DLLTOOL"; then
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3602. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3603. else
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3605. $as_echo "no" >&6; }
  3606. fi
  3607. if test "x$ac_ct_DLLTOOL" = x; then
  3608. DLLTOOL="false"
  3609. else
  3610. case $cross_compiling:$ac_tool_warned in
  3611. yes:)
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3613. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3614. ac_tool_warned=yes ;;
  3615. esac
  3616. DLLTOOL=$ac_ct_DLLTOOL
  3617. fi
  3618. else
  3619. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3620. fi
  3621. if test -n "$ac_tool_prefix"; then
  3622. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3623. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3625. $as_echo_n "checking for $ac_word... " >&6; }
  3626. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  3627. $as_echo_n "(cached) " >&6
  3628. else
  3629. if test -n "$OBJDUMP"; then
  3630. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3631. else
  3632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3633. for as_dir in $PATH
  3634. do
  3635. IFS=$as_save_IFS
  3636. test -z "$as_dir" && as_dir=.
  3637. for ac_exec_ext in '' $ac_executable_extensions; do
  3638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3639. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3641. break 2
  3642. fi
  3643. done
  3644. done
  3645. IFS=$as_save_IFS
  3646. fi
  3647. fi
  3648. OBJDUMP=$ac_cv_prog_OBJDUMP
  3649. if test -n "$OBJDUMP"; then
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3651. $as_echo "$OBJDUMP" >&6; }
  3652. else
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3654. $as_echo "no" >&6; }
  3655. fi
  3656. fi
  3657. if test -z "$ac_cv_prog_OBJDUMP"; then
  3658. ac_ct_OBJDUMP=$OBJDUMP
  3659. # Extract the first word of "objdump", so it can be a program name with args.
  3660. set dummy objdump; ac_word=$2
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3662. $as_echo_n "checking for $ac_word... " >&6; }
  3663. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  3664. $as_echo_n "(cached) " >&6
  3665. else
  3666. if test -n "$ac_ct_OBJDUMP"; then
  3667. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3668. else
  3669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3670. for as_dir in $PATH
  3671. do
  3672. IFS=$as_save_IFS
  3673. test -z "$as_dir" && as_dir=.
  3674. for ac_exec_ext in '' $ac_executable_extensions; do
  3675. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3676. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3678. break 2
  3679. fi
  3680. done
  3681. done
  3682. IFS=$as_save_IFS
  3683. fi
  3684. fi
  3685. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3686. if test -n "$ac_ct_OBJDUMP"; then
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3688. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3689. else
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3691. $as_echo "no" >&6; }
  3692. fi
  3693. if test "x$ac_ct_OBJDUMP" = x; then
  3694. OBJDUMP="false"
  3695. else
  3696. case $cross_compiling:$ac_tool_warned in
  3697. yes:)
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3700. ac_tool_warned=yes ;;
  3701. esac
  3702. OBJDUMP=$ac_ct_OBJDUMP
  3703. fi
  3704. else
  3705. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3706. fi
  3707. ;;
  3708. esac
  3709. test -z "$AS" && AS=as
  3710. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3711. test -z "$OBJDUMP" && OBJDUMP=objdump
  3712. case `pwd` in
  3713. *\ * | *\ *)
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3715. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3716. esac
  3717. macro_version='2.2.6'
  3718. macro_revision='1.3012'
  3719. ltmain="$ac_aux_dir/ltmain.sh"
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3721. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3722. if test "${ac_cv_path_SED+set}" = set; then :
  3723. $as_echo_n "(cached) " >&6
  3724. else
  3725. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3726. for ac_i in 1 2 3 4 5 6 7; do
  3727. ac_script="$ac_script$as_nl$ac_script"
  3728. done
  3729. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3730. { ac_script=; unset ac_script;}
  3731. if test -z "$SED"; then
  3732. ac_path_SED_found=false
  3733. # Loop through the user's path and test for each of PROGNAME-LIST
  3734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3735. for as_dir in $PATH
  3736. do
  3737. IFS=$as_save_IFS
  3738. test -z "$as_dir" && as_dir=.
  3739. for ac_prog in sed gsed; do
  3740. for ac_exec_ext in '' $ac_executable_extensions; do
  3741. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3742. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3743. # Check for GNU ac_path_SED and select it if it is found.
  3744. # Check for GNU $ac_path_SED
  3745. case `"$ac_path_SED" --version 2>&1` in
  3746. *GNU*)
  3747. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3748. *)
  3749. ac_count=0
  3750. $as_echo_n 0123456789 >"conftest.in"
  3751. while :
  3752. do
  3753. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3754. mv "conftest.tmp" "conftest.in"
  3755. cp "conftest.in" "conftest.nl"
  3756. $as_echo '' >> "conftest.nl"
  3757. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3758. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3759. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3760. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3761. # Best one so far, save it but keep looking for a better one
  3762. ac_cv_path_SED="$ac_path_SED"
  3763. ac_path_SED_max=$ac_count
  3764. fi
  3765. # 10*(2^10) chars as input seems more than enough
  3766. test $ac_count -gt 10 && break
  3767. done
  3768. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3769. esac
  3770. $ac_path_SED_found && break 3
  3771. done
  3772. done
  3773. done
  3774. IFS=$as_save_IFS
  3775. if test -z "$ac_cv_path_SED"; then
  3776. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3777. fi
  3778. else
  3779. ac_cv_path_SED=$SED
  3780. fi
  3781. fi
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3783. $as_echo "$ac_cv_path_SED" >&6; }
  3784. SED="$ac_cv_path_SED"
  3785. rm -f conftest.sed
  3786. test -z "$SED" && SED=sed
  3787. Xsed="$SED -e 1s/^X//"
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3789. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3790. if test "${ac_cv_path_GREP+set}" = set; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. if test -z "$GREP"; then
  3794. ac_path_GREP_found=false
  3795. # Loop through the user's path and test for each of PROGNAME-LIST
  3796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3797. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3798. do
  3799. IFS=$as_save_IFS
  3800. test -z "$as_dir" && as_dir=.
  3801. for ac_prog in grep ggrep; do
  3802. for ac_exec_ext in '' $ac_executable_extensions; do
  3803. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3804. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3805. # Check for GNU ac_path_GREP and select it if it is found.
  3806. # Check for GNU $ac_path_GREP
  3807. case `"$ac_path_GREP" --version 2>&1` in
  3808. *GNU*)
  3809. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3810. *)
  3811. ac_count=0
  3812. $as_echo_n 0123456789 >"conftest.in"
  3813. while :
  3814. do
  3815. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3816. mv "conftest.tmp" "conftest.in"
  3817. cp "conftest.in" "conftest.nl"
  3818. $as_echo 'GREP' >> "conftest.nl"
  3819. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3820. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3821. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3822. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3823. # Best one so far, save it but keep looking for a better one
  3824. ac_cv_path_GREP="$ac_path_GREP"
  3825. ac_path_GREP_max=$ac_count
  3826. fi
  3827. # 10*(2^10) chars as input seems more than enough
  3828. test $ac_count -gt 10 && break
  3829. done
  3830. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3831. esac
  3832. $ac_path_GREP_found && break 3
  3833. done
  3834. done
  3835. done
  3836. IFS=$as_save_IFS
  3837. if test -z "$ac_cv_path_GREP"; then
  3838. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3839. fi
  3840. else
  3841. ac_cv_path_GREP=$GREP
  3842. fi
  3843. fi
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3845. $as_echo "$ac_cv_path_GREP" >&6; }
  3846. GREP="$ac_cv_path_GREP"
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3848. $as_echo_n "checking for egrep... " >&6; }
  3849. if test "${ac_cv_path_EGREP+set}" = set; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3853. then ac_cv_path_EGREP="$GREP -E"
  3854. else
  3855. if test -z "$EGREP"; then
  3856. ac_path_EGREP_found=false
  3857. # Loop through the user's path and test for each of PROGNAME-LIST
  3858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3859. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3860. do
  3861. IFS=$as_save_IFS
  3862. test -z "$as_dir" && as_dir=.
  3863. for ac_prog in egrep; do
  3864. for ac_exec_ext in '' $ac_executable_extensions; do
  3865. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3866. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3867. # Check for GNU ac_path_EGREP and select it if it is found.
  3868. # Check for GNU $ac_path_EGREP
  3869. case `"$ac_path_EGREP" --version 2>&1` in
  3870. *GNU*)
  3871. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3872. *)
  3873. ac_count=0
  3874. $as_echo_n 0123456789 >"conftest.in"
  3875. while :
  3876. do
  3877. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3878. mv "conftest.tmp" "conftest.in"
  3879. cp "conftest.in" "conftest.nl"
  3880. $as_echo 'EGREP' >> "conftest.nl"
  3881. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3882. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3883. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3884. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3885. # Best one so far, save it but keep looking for a better one
  3886. ac_cv_path_EGREP="$ac_path_EGREP"
  3887. ac_path_EGREP_max=$ac_count
  3888. fi
  3889. # 10*(2^10) chars as input seems more than enough
  3890. test $ac_count -gt 10 && break
  3891. done
  3892. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3893. esac
  3894. $ac_path_EGREP_found && break 3
  3895. done
  3896. done
  3897. done
  3898. IFS=$as_save_IFS
  3899. if test -z "$ac_cv_path_EGREP"; then
  3900. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3901. fi
  3902. else
  3903. ac_cv_path_EGREP=$EGREP
  3904. fi
  3905. fi
  3906. fi
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3908. $as_echo "$ac_cv_path_EGREP" >&6; }
  3909. EGREP="$ac_cv_path_EGREP"
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3911. $as_echo_n "checking for fgrep... " >&6; }
  3912. if test "${ac_cv_path_FGREP+set}" = set; then :
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3916. then ac_cv_path_FGREP="$GREP -F"
  3917. else
  3918. if test -z "$FGREP"; then
  3919. ac_path_FGREP_found=false
  3920. # Loop through the user's path and test for each of PROGNAME-LIST
  3921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3922. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3923. do
  3924. IFS=$as_save_IFS
  3925. test -z "$as_dir" && as_dir=.
  3926. for ac_prog in fgrep; do
  3927. for ac_exec_ext in '' $ac_executable_extensions; do
  3928. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3929. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3930. # Check for GNU ac_path_FGREP and select it if it is found.
  3931. # Check for GNU $ac_path_FGREP
  3932. case `"$ac_path_FGREP" --version 2>&1` in
  3933. *GNU*)
  3934. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3935. *)
  3936. ac_count=0
  3937. $as_echo_n 0123456789 >"conftest.in"
  3938. while :
  3939. do
  3940. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3941. mv "conftest.tmp" "conftest.in"
  3942. cp "conftest.in" "conftest.nl"
  3943. $as_echo 'FGREP' >> "conftest.nl"
  3944. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3945. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3946. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3947. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3948. # Best one so far, save it but keep looking for a better one
  3949. ac_cv_path_FGREP="$ac_path_FGREP"
  3950. ac_path_FGREP_max=$ac_count
  3951. fi
  3952. # 10*(2^10) chars as input seems more than enough
  3953. test $ac_count -gt 10 && break
  3954. done
  3955. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3956. esac
  3957. $ac_path_FGREP_found && break 3
  3958. done
  3959. done
  3960. done
  3961. IFS=$as_save_IFS
  3962. if test -z "$ac_cv_path_FGREP"; then
  3963. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3964. fi
  3965. else
  3966. ac_cv_path_FGREP=$FGREP
  3967. fi
  3968. fi
  3969. fi
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3971. $as_echo "$ac_cv_path_FGREP" >&6; }
  3972. FGREP="$ac_cv_path_FGREP"
  3973. test -z "$GREP" && GREP=grep
  3974. # Check whether --with-gnu-ld was given.
  3975. if test "${with_gnu_ld+set}" = set; then :
  3976. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3977. else
  3978. with_gnu_ld=no
  3979. fi
  3980. ac_prog=ld
  3981. if test "$GCC" = yes; then
  3982. # Check if gcc -print-prog-name=ld gives a path.
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3984. $as_echo_n "checking for ld used by $CC... " >&6; }
  3985. case $host in
  3986. *-*-mingw*)
  3987. # gcc leaves a trailing carriage return which upsets mingw
  3988. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3989. *)
  3990. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3991. esac
  3992. case $ac_prog in
  3993. # Accept absolute paths.
  3994. [\\/]* | ?:[\\/]*)
  3995. re_direlt='/[^/][^/]*/\.\./'
  3996. # Canonicalize the pathname of ld
  3997. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3998. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3999. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4000. done
  4001. test -z "$LD" && LD="$ac_prog"
  4002. ;;
  4003. "")
  4004. # If it fails, then pretend we aren't using GCC.
  4005. ac_prog=ld
  4006. ;;
  4007. *)
  4008. # If it is relative, then search for the first ld in PATH.
  4009. with_gnu_ld=unknown
  4010. ;;
  4011. esac
  4012. elif test "$with_gnu_ld" = yes; then
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4014. $as_echo_n "checking for GNU ld... " >&6; }
  4015. else
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4017. $as_echo_n "checking for non-GNU ld... " >&6; }
  4018. fi
  4019. if test "${lt_cv_path_LD+set}" = set; then :
  4020. $as_echo_n "(cached) " >&6
  4021. else
  4022. if test -z "$LD"; then
  4023. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4024. for ac_dir in $PATH; do
  4025. IFS="$lt_save_ifs"
  4026. test -z "$ac_dir" && ac_dir=.
  4027. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4028. lt_cv_path_LD="$ac_dir/$ac_prog"
  4029. # Check to see if the program is GNU ld. I'd rather use --version,
  4030. # but apparently some variants of GNU ld only accept -v.
  4031. # Break only if it was the GNU/non-GNU ld that we prefer.
  4032. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4033. *GNU* | *'with BFD'*)
  4034. test "$with_gnu_ld" != no && break
  4035. ;;
  4036. *)
  4037. test "$with_gnu_ld" != yes && break
  4038. ;;
  4039. esac
  4040. fi
  4041. done
  4042. IFS="$lt_save_ifs"
  4043. else
  4044. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4045. fi
  4046. fi
  4047. LD="$lt_cv_path_LD"
  4048. if test -n "$LD"; then
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4050. $as_echo "$LD" >&6; }
  4051. else
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4053. $as_echo "no" >&6; }
  4054. fi
  4055. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4057. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4058. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4059. $as_echo_n "(cached) " >&6
  4060. else
  4061. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4062. case `$LD -v 2>&1 </dev/null` in
  4063. *GNU* | *'with BFD'*)
  4064. lt_cv_prog_gnu_ld=yes
  4065. ;;
  4066. *)
  4067. lt_cv_prog_gnu_ld=no
  4068. ;;
  4069. esac
  4070. fi
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4072. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4073. with_gnu_ld=$lt_cv_prog_gnu_ld
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4075. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4076. if test "${lt_cv_path_NM+set}" = set; then :
  4077. $as_echo_n "(cached) " >&6
  4078. else
  4079. if test -n "$NM"; then
  4080. # Let the user override the test.
  4081. lt_cv_path_NM="$NM"
  4082. else
  4083. lt_nm_to_check="${ac_tool_prefix}nm"
  4084. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4085. lt_nm_to_check="$lt_nm_to_check nm"
  4086. fi
  4087. for lt_tmp_nm in $lt_nm_to_check; do
  4088. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4089. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4090. IFS="$lt_save_ifs"
  4091. test -z "$ac_dir" && ac_dir=.
  4092. tmp_nm="$ac_dir/$lt_tmp_nm"
  4093. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4094. # Check to see if the nm accepts a BSD-compat flag.
  4095. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4096. # nm: unknown option "B" ignored
  4097. # Tru64's nm complains that /dev/null is an invalid object file
  4098. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4099. */dev/null* | *'Invalid file or object type'*)
  4100. lt_cv_path_NM="$tmp_nm -B"
  4101. break
  4102. ;;
  4103. *)
  4104. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4105. */dev/null*)
  4106. lt_cv_path_NM="$tmp_nm -p"
  4107. break
  4108. ;;
  4109. *)
  4110. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4111. continue # so that we can try to find one that supports BSD flags
  4112. ;;
  4113. esac
  4114. ;;
  4115. esac
  4116. fi
  4117. done
  4118. IFS="$lt_save_ifs"
  4119. done
  4120. : ${lt_cv_path_NM=no}
  4121. fi
  4122. fi
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4124. $as_echo "$lt_cv_path_NM" >&6; }
  4125. if test "$lt_cv_path_NM" != "no"; then
  4126. NM="$lt_cv_path_NM"
  4127. else
  4128. # Didn't find any BSD compatible name lister, look for dumpbin.
  4129. if test -n "$ac_tool_prefix"; then
  4130. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4131. do
  4132. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4133. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4135. $as_echo_n "checking for $ac_word... " >&6; }
  4136. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4137. $as_echo_n "(cached) " >&6
  4138. else
  4139. if test -n "$DUMPBIN"; then
  4140. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4141. else
  4142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4143. for as_dir in $PATH
  4144. do
  4145. IFS=$as_save_IFS
  4146. test -z "$as_dir" && as_dir=.
  4147. for ac_exec_ext in '' $ac_executable_extensions; do
  4148. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4149. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4151. break 2
  4152. fi
  4153. done
  4154. done
  4155. IFS=$as_save_IFS
  4156. fi
  4157. fi
  4158. DUMPBIN=$ac_cv_prog_DUMPBIN
  4159. if test -n "$DUMPBIN"; then
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4161. $as_echo "$DUMPBIN" >&6; }
  4162. else
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4164. $as_echo "no" >&6; }
  4165. fi
  4166. test -n "$DUMPBIN" && break
  4167. done
  4168. fi
  4169. if test -z "$DUMPBIN"; then
  4170. ac_ct_DUMPBIN=$DUMPBIN
  4171. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4172. do
  4173. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4174. set dummy $ac_prog; ac_word=$2
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4176. $as_echo_n "checking for $ac_word... " >&6; }
  4177. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. if test -n "$ac_ct_DUMPBIN"; then
  4181. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4182. else
  4183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4184. for as_dir in $PATH
  4185. do
  4186. IFS=$as_save_IFS
  4187. test -z "$as_dir" && as_dir=.
  4188. for ac_exec_ext in '' $ac_executable_extensions; do
  4189. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4190. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4192. break 2
  4193. fi
  4194. done
  4195. done
  4196. IFS=$as_save_IFS
  4197. fi
  4198. fi
  4199. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4200. if test -n "$ac_ct_DUMPBIN"; then
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4202. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4203. else
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4205. $as_echo "no" >&6; }
  4206. fi
  4207. test -n "$ac_ct_DUMPBIN" && break
  4208. done
  4209. if test "x$ac_ct_DUMPBIN" = x; then
  4210. DUMPBIN=":"
  4211. else
  4212. case $cross_compiling:$ac_tool_warned in
  4213. yes:)
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4215. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4216. ac_tool_warned=yes ;;
  4217. esac
  4218. DUMPBIN=$ac_ct_DUMPBIN
  4219. fi
  4220. fi
  4221. if test "$DUMPBIN" != ":"; then
  4222. NM="$DUMPBIN"
  4223. fi
  4224. fi
  4225. test -z "$NM" && NM=nm
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4227. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4228. if test "${lt_cv_nm_interface+set}" = set; then :
  4229. $as_echo_n "(cached) " >&6
  4230. else
  4231. lt_cv_nm_interface="BSD nm"
  4232. echo "int some_variable = 0;" > conftest.$ac_ext
  4233. (eval echo "\"\$as_me:4683: $ac_compile\"" >&5)
  4234. (eval "$ac_compile" 2>conftest.err)
  4235. cat conftest.err >&5
  4236. (eval echo "\"\$as_me:4686: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4237. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4238. cat conftest.err >&5
  4239. (eval echo "\"\$as_me:4689: output\"" >&5)
  4240. cat conftest.out >&5
  4241. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4242. lt_cv_nm_interface="MS dumpbin"
  4243. fi
  4244. rm -f conftest*
  4245. fi
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4247. $as_echo "$lt_cv_nm_interface" >&6; }
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4249. $as_echo_n "checking whether ln -s works... " >&6; }
  4250. LN_S=$as_ln_s
  4251. if test "$LN_S" = "ln -s"; then
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4253. $as_echo "yes" >&6; }
  4254. else
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4256. $as_echo "no, using $LN_S" >&6; }
  4257. fi
  4258. # find the maximum length of command line arguments
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4260. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4261. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4262. $as_echo_n "(cached) " >&6
  4263. else
  4264. i=0
  4265. teststring="ABCD"
  4266. case $build_os in
  4267. msdosdjgpp*)
  4268. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4269. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4270. # during glob expansion). Even if it were fixed, the result of this
  4271. # check would be larger than it should be.
  4272. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4273. ;;
  4274. gnu*)
  4275. # Under GNU Hurd, this test is not required because there is
  4276. # no limit to the length of command line arguments.
  4277. # Libtool will interpret -1 as no limit whatsoever
  4278. lt_cv_sys_max_cmd_len=-1;
  4279. ;;
  4280. cygwin* | mingw* | cegcc*)
  4281. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4282. # about 5 minutes as the teststring grows exponentially.
  4283. # Worse, since 9x/ME are not pre-emptively multitasking,
  4284. # you end up with a "frozen" computer, even though with patience
  4285. # the test eventually succeeds (with a max line length of 256k).
  4286. # Instead, let's just punt: use the minimum linelength reported by
  4287. # all of the supported platforms: 8192 (on NT/2K/XP).
  4288. lt_cv_sys_max_cmd_len=8192;
  4289. ;;
  4290. amigaos*)
  4291. # On AmigaOS with pdksh, this test takes hours, literally.
  4292. # So we just punt and use a minimum line length of 8192.
  4293. lt_cv_sys_max_cmd_len=8192;
  4294. ;;
  4295. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4296. # This has been around since 386BSD, at least. Likely further.
  4297. if test -x /sbin/sysctl; then
  4298. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4299. elif test -x /usr/sbin/sysctl; then
  4300. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4301. else
  4302. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4303. fi
  4304. # And add a safety zone
  4305. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4306. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4307. ;;
  4308. interix*)
  4309. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4310. lt_cv_sys_max_cmd_len=196608
  4311. ;;
  4312. osf*)
  4313. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4314. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4315. # nice to cause kernel panics so lets avoid the loop below.
  4316. # First set a reasonable default.
  4317. lt_cv_sys_max_cmd_len=16384
  4318. #
  4319. if test -x /sbin/sysconfig; then
  4320. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4321. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4322. esac
  4323. fi
  4324. ;;
  4325. sco3.2v5*)
  4326. lt_cv_sys_max_cmd_len=102400
  4327. ;;
  4328. sysv5* | sco5v6* | sysv4.2uw2*)
  4329. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4330. if test -n "$kargmax"; then
  4331. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4332. else
  4333. lt_cv_sys_max_cmd_len=32768
  4334. fi
  4335. ;;
  4336. *)
  4337. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4338. if test -n "$lt_cv_sys_max_cmd_len"; then
  4339. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4340. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4341. else
  4342. # Make teststring a little bigger before we do anything with it.
  4343. # a 1K string should be a reasonable start.
  4344. for i in 1 2 3 4 5 6 7 8 ; do
  4345. teststring=$teststring$teststring
  4346. done
  4347. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4348. # If test is not a shell built-in, we'll probably end up computing a
  4349. # maximum length that is only half of the actual maximum length, but
  4350. # we can't tell.
  4351. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4352. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4353. test $i != 17 # 1/2 MB should be enough
  4354. do
  4355. i=`expr $i + 1`
  4356. teststring=$teststring$teststring
  4357. done
  4358. # Only check the string length outside the loop.
  4359. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4360. teststring=
  4361. # Add a significant safety factor because C++ compilers can tack on
  4362. # massive amounts of additional arguments before passing them to the
  4363. # linker. It appears as though 1/2 is a usable value.
  4364. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4365. fi
  4366. ;;
  4367. esac
  4368. fi
  4369. if test -n $lt_cv_sys_max_cmd_len ; then
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4371. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4372. else
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4374. $as_echo "none" >&6; }
  4375. fi
  4376. max_cmd_len=$lt_cv_sys_max_cmd_len
  4377. : ${CP="cp -f"}
  4378. : ${MV="mv -f"}
  4379. : ${RM="rm -f"}
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4381. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4382. # Try some XSI features
  4383. xsi_shell=no
  4384. ( _lt_dummy="a/b/c"
  4385. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4386. = c,a/b,, \
  4387. && eval 'test $(( 1 + 1 )) -eq 2 \
  4388. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4389. && xsi_shell=yes
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4391. $as_echo "$xsi_shell" >&6; }
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4393. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4394. lt_shell_append=no
  4395. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4396. >/dev/null 2>&1 \
  4397. && lt_shell_append=yes
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4399. $as_echo "$lt_shell_append" >&6; }
  4400. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4401. lt_unset=unset
  4402. else
  4403. lt_unset=false
  4404. fi
  4405. # test EBCDIC or ASCII
  4406. case `echo X|tr X '\101'` in
  4407. A) # ASCII based system
  4408. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4409. lt_SP2NL='tr \040 \012'
  4410. lt_NL2SP='tr \015\012 \040\040'
  4411. ;;
  4412. *) # EBCDIC based system
  4413. lt_SP2NL='tr \100 \n'
  4414. lt_NL2SP='tr \r\n \100\100'
  4415. ;;
  4416. esac
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4418. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4419. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4420. $as_echo_n "(cached) " >&6
  4421. else
  4422. lt_cv_ld_reload_flag='-r'
  4423. fi
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4425. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4426. reload_flag=$lt_cv_ld_reload_flag
  4427. case $reload_flag in
  4428. "" | " "*) ;;
  4429. *) reload_flag=" $reload_flag" ;;
  4430. esac
  4431. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4432. case $host_os in
  4433. darwin*)
  4434. if test "$GCC" = yes; then
  4435. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4436. else
  4437. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4438. fi
  4439. ;;
  4440. esac
  4441. if test -n "$ac_tool_prefix"; then
  4442. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4443. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4445. $as_echo_n "checking for $ac_word... " >&6; }
  4446. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4447. $as_echo_n "(cached) " >&6
  4448. else
  4449. if test -n "$OBJDUMP"; then
  4450. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4451. else
  4452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4453. for as_dir in $PATH
  4454. do
  4455. IFS=$as_save_IFS
  4456. test -z "$as_dir" && as_dir=.
  4457. for ac_exec_ext in '' $ac_executable_extensions; do
  4458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4459. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4461. break 2
  4462. fi
  4463. done
  4464. done
  4465. IFS=$as_save_IFS
  4466. fi
  4467. fi
  4468. OBJDUMP=$ac_cv_prog_OBJDUMP
  4469. if test -n "$OBJDUMP"; then
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4471. $as_echo "$OBJDUMP" >&6; }
  4472. else
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4474. $as_echo "no" >&6; }
  4475. fi
  4476. fi
  4477. if test -z "$ac_cv_prog_OBJDUMP"; then
  4478. ac_ct_OBJDUMP=$OBJDUMP
  4479. # Extract the first word of "objdump", so it can be a program name with args.
  4480. set dummy objdump; ac_word=$2
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4482. $as_echo_n "checking for $ac_word... " >&6; }
  4483. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4484. $as_echo_n "(cached) " >&6
  4485. else
  4486. if test -n "$ac_ct_OBJDUMP"; then
  4487. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4488. else
  4489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4490. for as_dir in $PATH
  4491. do
  4492. IFS=$as_save_IFS
  4493. test -z "$as_dir" && as_dir=.
  4494. for ac_exec_ext in '' $ac_executable_extensions; do
  4495. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4496. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4498. break 2
  4499. fi
  4500. done
  4501. done
  4502. IFS=$as_save_IFS
  4503. fi
  4504. fi
  4505. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4506. if test -n "$ac_ct_OBJDUMP"; then
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4508. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4509. else
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4511. $as_echo "no" >&6; }
  4512. fi
  4513. if test "x$ac_ct_OBJDUMP" = x; then
  4514. OBJDUMP="false"
  4515. else
  4516. case $cross_compiling:$ac_tool_warned in
  4517. yes:)
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4519. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4520. ac_tool_warned=yes ;;
  4521. esac
  4522. OBJDUMP=$ac_ct_OBJDUMP
  4523. fi
  4524. else
  4525. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4526. fi
  4527. test -z "$OBJDUMP" && OBJDUMP=objdump
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4529. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4530. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4531. $as_echo_n "(cached) " >&6
  4532. else
  4533. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4534. lt_cv_file_magic_test_file=
  4535. lt_cv_deplibs_check_method='unknown'
  4536. # Need to set the preceding variable on all platforms that support
  4537. # interlibrary dependencies.
  4538. # 'none' -- dependencies not supported.
  4539. # `unknown' -- same as none, but documents that we really don't know.
  4540. # 'pass_all' -- all dependencies passed with no checks.
  4541. # 'test_compile' -- check by making test program.
  4542. # 'file_magic [[regex]]' -- check by looking for files in library path
  4543. # which responds to the $file_magic_cmd with a given extended regex.
  4544. # If you have `file' or equivalent on your system and you're not sure
  4545. # whether `pass_all' will *always* work, you probably want this one.
  4546. case $host_os in
  4547. aix[4-9]*)
  4548. lt_cv_deplibs_check_method=pass_all
  4549. ;;
  4550. beos*)
  4551. lt_cv_deplibs_check_method=pass_all
  4552. ;;
  4553. bsdi[45]*)
  4554. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4555. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4556. lt_cv_file_magic_test_file=/shlib/libc.so
  4557. ;;
  4558. cygwin*)
  4559. # func_win32_libid is a shell function defined in ltmain.sh
  4560. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4561. lt_cv_file_magic_cmd='func_win32_libid'
  4562. ;;
  4563. mingw* | pw32*)
  4564. # Base MSYS/MinGW do not provide the 'file' command needed by
  4565. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4566. # unless we find 'file', for example because we are cross-compiling.
  4567. if ( file / ) >/dev/null 2>&1; then
  4568. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4569. lt_cv_file_magic_cmd='func_win32_libid'
  4570. else
  4571. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4572. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4573. fi
  4574. ;;
  4575. cegcc)
  4576. # use the weaker test based on 'objdump'. See mingw*.
  4577. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4578. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4579. ;;
  4580. darwin* | rhapsody*)
  4581. lt_cv_deplibs_check_method=pass_all
  4582. ;;
  4583. freebsd* | dragonfly*)
  4584. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4585. case $host_cpu in
  4586. i*86 )
  4587. # Not sure whether the presence of OpenBSD here was a mistake.
  4588. # Let's accept both of them until this is cleared up.
  4589. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4590. lt_cv_file_magic_cmd=/usr/bin/file
  4591. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4592. ;;
  4593. esac
  4594. else
  4595. lt_cv_deplibs_check_method=pass_all
  4596. fi
  4597. ;;
  4598. gnu*)
  4599. lt_cv_deplibs_check_method=pass_all
  4600. ;;
  4601. hpux10.20* | hpux11*)
  4602. lt_cv_file_magic_cmd=/usr/bin/file
  4603. case $host_cpu in
  4604. ia64*)
  4605. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4606. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4607. ;;
  4608. hppa*64*)
  4609. 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]'
  4610. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4611. ;;
  4612. *)
  4613. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4614. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4615. ;;
  4616. esac
  4617. ;;
  4618. interix[3-9]*)
  4619. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4620. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4621. ;;
  4622. irix5* | irix6* | nonstopux*)
  4623. case $LD in
  4624. *-32|*"-32 ") libmagic=32-bit;;
  4625. *-n32|*"-n32 ") libmagic=N32;;
  4626. *-64|*"-64 ") libmagic=64-bit;;
  4627. *) libmagic=never-match;;
  4628. esac
  4629. lt_cv_deplibs_check_method=pass_all
  4630. ;;
  4631. # This must be Linux ELF.
  4632. linux* | k*bsd*-gnu)
  4633. lt_cv_deplibs_check_method=pass_all
  4634. ;;
  4635. netbsd* | netbsdelf*-gnu)
  4636. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4637. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4638. else
  4639. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4640. fi
  4641. ;;
  4642. newos6*)
  4643. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4644. lt_cv_file_magic_cmd=/usr/bin/file
  4645. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4646. ;;
  4647. *nto* | *qnx*)
  4648. lt_cv_deplibs_check_method=pass_all
  4649. ;;
  4650. openbsd*)
  4651. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4652. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4653. else
  4654. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4655. fi
  4656. ;;
  4657. osf3* | osf4* | osf5*)
  4658. lt_cv_deplibs_check_method=pass_all
  4659. ;;
  4660. rdos*)
  4661. lt_cv_deplibs_check_method=pass_all
  4662. ;;
  4663. solaris*)
  4664. lt_cv_deplibs_check_method=pass_all
  4665. ;;
  4666. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4667. lt_cv_deplibs_check_method=pass_all
  4668. ;;
  4669. sysv4 | sysv4.3*)
  4670. case $host_vendor in
  4671. motorola)
  4672. 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]'
  4673. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4674. ;;
  4675. ncr)
  4676. lt_cv_deplibs_check_method=pass_all
  4677. ;;
  4678. sequent)
  4679. lt_cv_file_magic_cmd='/bin/file'
  4680. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4681. ;;
  4682. sni)
  4683. lt_cv_file_magic_cmd='/bin/file'
  4684. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4685. lt_cv_file_magic_test_file=/lib/libc.so
  4686. ;;
  4687. siemens)
  4688. lt_cv_deplibs_check_method=pass_all
  4689. ;;
  4690. pc)
  4691. lt_cv_deplibs_check_method=pass_all
  4692. ;;
  4693. esac
  4694. ;;
  4695. tpf*)
  4696. lt_cv_deplibs_check_method=pass_all
  4697. ;;
  4698. esac
  4699. fi
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4701. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4702. file_magic_cmd=$lt_cv_file_magic_cmd
  4703. deplibs_check_method=$lt_cv_deplibs_check_method
  4704. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4705. if test -n "$ac_tool_prefix"; then
  4706. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4707. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4709. $as_echo_n "checking for $ac_word... " >&6; }
  4710. if test "${ac_cv_prog_AR+set}" = set; then :
  4711. $as_echo_n "(cached) " >&6
  4712. else
  4713. if test -n "$AR"; then
  4714. ac_cv_prog_AR="$AR" # Let the user override the test.
  4715. else
  4716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4717. for as_dir in $PATH
  4718. do
  4719. IFS=$as_save_IFS
  4720. test -z "$as_dir" && as_dir=.
  4721. for ac_exec_ext in '' $ac_executable_extensions; do
  4722. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4723. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4725. break 2
  4726. fi
  4727. done
  4728. done
  4729. IFS=$as_save_IFS
  4730. fi
  4731. fi
  4732. AR=$ac_cv_prog_AR
  4733. if test -n "$AR"; then
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4735. $as_echo "$AR" >&6; }
  4736. else
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4738. $as_echo "no" >&6; }
  4739. fi
  4740. fi
  4741. if test -z "$ac_cv_prog_AR"; then
  4742. ac_ct_AR=$AR
  4743. # Extract the first word of "ar", so it can be a program name with args.
  4744. set dummy ar; ac_word=$2
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4746. $as_echo_n "checking for $ac_word... " >&6; }
  4747. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4748. $as_echo_n "(cached) " >&6
  4749. else
  4750. if test -n "$ac_ct_AR"; then
  4751. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4752. else
  4753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4754. for as_dir in $PATH
  4755. do
  4756. IFS=$as_save_IFS
  4757. test -z "$as_dir" && as_dir=.
  4758. for ac_exec_ext in '' $ac_executable_extensions; do
  4759. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4760. ac_cv_prog_ac_ct_AR="ar"
  4761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4762. break 2
  4763. fi
  4764. done
  4765. done
  4766. IFS=$as_save_IFS
  4767. fi
  4768. fi
  4769. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4770. if test -n "$ac_ct_AR"; then
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4772. $as_echo "$ac_ct_AR" >&6; }
  4773. else
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4775. $as_echo "no" >&6; }
  4776. fi
  4777. if test "x$ac_ct_AR" = x; then
  4778. AR="false"
  4779. else
  4780. case $cross_compiling:$ac_tool_warned in
  4781. yes:)
  4782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4783. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4784. ac_tool_warned=yes ;;
  4785. esac
  4786. AR=$ac_ct_AR
  4787. fi
  4788. else
  4789. AR="$ac_cv_prog_AR"
  4790. fi
  4791. test -z "$AR" && AR=ar
  4792. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4793. if test -n "$ac_tool_prefix"; then
  4794. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4795. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4797. $as_echo_n "checking for $ac_word... " >&6; }
  4798. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. if test -n "$STRIP"; then
  4802. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4803. else
  4804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4805. for as_dir in $PATH
  4806. do
  4807. IFS=$as_save_IFS
  4808. test -z "$as_dir" && as_dir=.
  4809. for ac_exec_ext in '' $ac_executable_extensions; do
  4810. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4811. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4813. break 2
  4814. fi
  4815. done
  4816. done
  4817. IFS=$as_save_IFS
  4818. fi
  4819. fi
  4820. STRIP=$ac_cv_prog_STRIP
  4821. if test -n "$STRIP"; then
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4823. $as_echo "$STRIP" >&6; }
  4824. else
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4826. $as_echo "no" >&6; }
  4827. fi
  4828. fi
  4829. if test -z "$ac_cv_prog_STRIP"; then
  4830. ac_ct_STRIP=$STRIP
  4831. # Extract the first word of "strip", so it can be a program name with args.
  4832. set dummy strip; ac_word=$2
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4834. $as_echo_n "checking for $ac_word... " >&6; }
  4835. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4836. $as_echo_n "(cached) " >&6
  4837. else
  4838. if test -n "$ac_ct_STRIP"; then
  4839. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4840. else
  4841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4842. for as_dir in $PATH
  4843. do
  4844. IFS=$as_save_IFS
  4845. test -z "$as_dir" && as_dir=.
  4846. for ac_exec_ext in '' $ac_executable_extensions; do
  4847. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4848. ac_cv_prog_ac_ct_STRIP="strip"
  4849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4850. break 2
  4851. fi
  4852. done
  4853. done
  4854. IFS=$as_save_IFS
  4855. fi
  4856. fi
  4857. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4858. if test -n "$ac_ct_STRIP"; then
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4860. $as_echo "$ac_ct_STRIP" >&6; }
  4861. else
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4863. $as_echo "no" >&6; }
  4864. fi
  4865. if test "x$ac_ct_STRIP" = x; then
  4866. STRIP=":"
  4867. else
  4868. case $cross_compiling:$ac_tool_warned in
  4869. yes:)
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4871. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4872. ac_tool_warned=yes ;;
  4873. esac
  4874. STRIP=$ac_ct_STRIP
  4875. fi
  4876. else
  4877. STRIP="$ac_cv_prog_STRIP"
  4878. fi
  4879. test -z "$STRIP" && STRIP=:
  4880. if test -n "$ac_tool_prefix"; then
  4881. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4882. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4884. $as_echo_n "checking for $ac_word... " >&6; }
  4885. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4886. $as_echo_n "(cached) " >&6
  4887. else
  4888. if test -n "$RANLIB"; then
  4889. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4890. else
  4891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4892. for as_dir in $PATH
  4893. do
  4894. IFS=$as_save_IFS
  4895. test -z "$as_dir" && as_dir=.
  4896. for ac_exec_ext in '' $ac_executable_extensions; do
  4897. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4898. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4900. break 2
  4901. fi
  4902. done
  4903. done
  4904. IFS=$as_save_IFS
  4905. fi
  4906. fi
  4907. RANLIB=$ac_cv_prog_RANLIB
  4908. if test -n "$RANLIB"; then
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4910. $as_echo "$RANLIB" >&6; }
  4911. else
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4913. $as_echo "no" >&6; }
  4914. fi
  4915. fi
  4916. if test -z "$ac_cv_prog_RANLIB"; then
  4917. ac_ct_RANLIB=$RANLIB
  4918. # Extract the first word of "ranlib", so it can be a program name with args.
  4919. set dummy ranlib; ac_word=$2
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4921. $as_echo_n "checking for $ac_word... " >&6; }
  4922. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4923. $as_echo_n "(cached) " >&6
  4924. else
  4925. if test -n "$ac_ct_RANLIB"; then
  4926. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4927. else
  4928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4929. for as_dir in $PATH
  4930. do
  4931. IFS=$as_save_IFS
  4932. test -z "$as_dir" && as_dir=.
  4933. for ac_exec_ext in '' $ac_executable_extensions; do
  4934. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4935. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4937. break 2
  4938. fi
  4939. done
  4940. done
  4941. IFS=$as_save_IFS
  4942. fi
  4943. fi
  4944. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4945. if test -n "$ac_ct_RANLIB"; then
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4947. $as_echo "$ac_ct_RANLIB" >&6; }
  4948. else
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4950. $as_echo "no" >&6; }
  4951. fi
  4952. if test "x$ac_ct_RANLIB" = x; then
  4953. RANLIB=":"
  4954. else
  4955. case $cross_compiling:$ac_tool_warned in
  4956. yes:)
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4958. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4959. ac_tool_warned=yes ;;
  4960. esac
  4961. RANLIB=$ac_ct_RANLIB
  4962. fi
  4963. else
  4964. RANLIB="$ac_cv_prog_RANLIB"
  4965. fi
  4966. test -z "$RANLIB" && RANLIB=:
  4967. # Determine commands to create old-style static archives.
  4968. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4969. old_postinstall_cmds='chmod 644 $oldlib'
  4970. old_postuninstall_cmds=
  4971. if test -n "$RANLIB"; then
  4972. case $host_os in
  4973. openbsd*)
  4974. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4975. ;;
  4976. *)
  4977. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4978. ;;
  4979. esac
  4980. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4981. fi
  4982. # If no C compiler was specified, use CC.
  4983. LTCC=${LTCC-"$CC"}
  4984. # If no C compiler flags were specified, use CFLAGS.
  4985. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4986. # Allow CC to be a program name with arguments.
  4987. compiler=$CC
  4988. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4990. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4991. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  4992. $as_echo_n "(cached) " >&6
  4993. else
  4994. # These are sane defaults that work on at least a few old systems.
  4995. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4996. # Character class describing NM global symbol codes.
  4997. symcode='[BCDEGRST]'
  4998. # Regexp to match symbols that can be accessed directly from C.
  4999. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5000. # Define system-specific variables.
  5001. case $host_os in
  5002. aix*)
  5003. symcode='[BCDT]'
  5004. ;;
  5005. cygwin* | mingw* | pw32* | cegcc*)
  5006. symcode='[ABCDGISTW]'
  5007. ;;
  5008. hpux*)
  5009. if test "$host_cpu" = ia64; then
  5010. symcode='[ABCDEGRST]'
  5011. fi
  5012. ;;
  5013. irix* | nonstopux*)
  5014. symcode='[BCDEGRST]'
  5015. ;;
  5016. osf*)
  5017. symcode='[BCDEGQRST]'
  5018. ;;
  5019. solaris*)
  5020. symcode='[BDRT]'
  5021. ;;
  5022. sco3.2v5*)
  5023. symcode='[DT]'
  5024. ;;
  5025. sysv4.2uw2*)
  5026. symcode='[DT]'
  5027. ;;
  5028. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5029. symcode='[ABDT]'
  5030. ;;
  5031. sysv4)
  5032. symcode='[DFNSTU]'
  5033. ;;
  5034. esac
  5035. # If we're using GNU nm, then use its standard symbol codes.
  5036. case `$NM -V 2>&1` in
  5037. *GNU* | *'with BFD'*)
  5038. symcode='[ABCDGIRSTW]' ;;
  5039. esac
  5040. # Transform an extracted symbol line into a proper C declaration.
  5041. # Some systems (esp. on ia64) link data and code symbols differently,
  5042. # so use this general approach.
  5043. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5044. # Transform an extracted symbol line into symbol name and symbol address
  5045. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5046. 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'"
  5047. # Handle CRLF in mingw tool chain
  5048. opt_cr=
  5049. case $build_os in
  5050. mingw*)
  5051. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5052. ;;
  5053. esac
  5054. # Try without a prefix underscore, then with it.
  5055. for ac_symprfx in "" "_"; do
  5056. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5057. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5058. # Write the raw and C identifiers.
  5059. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5060. # Fake it for dumpbin and say T for any non-static function
  5061. # and D for any global variable.
  5062. # Also find C++ and __fastcall symbols from MSVC++,
  5063. # which start with @ or ?.
  5064. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5065. " {last_section=section; section=\$ 3};"\
  5066. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5067. " \$ 0!~/External *\|/{next};"\
  5068. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5069. " {if(hide[section]) next};"\
  5070. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5071. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5072. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5073. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5074. " ' prfx=^$ac_symprfx"
  5075. else
  5076. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5077. fi
  5078. # Check to see that the pipe works correctly.
  5079. pipe_works=no
  5080. rm -f conftest*
  5081. cat > conftest.$ac_ext <<_LT_EOF
  5082. #ifdef __cplusplus
  5083. extern "C" {
  5084. #endif
  5085. char nm_test_var;
  5086. void nm_test_func(void);
  5087. void nm_test_func(void){}
  5088. #ifdef __cplusplus
  5089. }
  5090. #endif
  5091. int main(){nm_test_var='a';nm_test_func();return(0);}
  5092. _LT_EOF
  5093. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5094. (eval $ac_compile) 2>&5
  5095. ac_status=$?
  5096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5097. test $ac_status = 0; }; then
  5098. # Now try to grab the symbols.
  5099. nlist=conftest.nm
  5100. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5101. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5102. ac_status=$?
  5103. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5104. test $ac_status = 0; } && test -s "$nlist"; then
  5105. # Try sorting and uniquifying the output.
  5106. if sort "$nlist" | uniq > "$nlist"T; then
  5107. mv -f "$nlist"T "$nlist"
  5108. else
  5109. rm -f "$nlist"T
  5110. fi
  5111. # Make sure that we snagged all the symbols we need.
  5112. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5113. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5114. cat <<_LT_EOF > conftest.$ac_ext
  5115. #ifdef __cplusplus
  5116. extern "C" {
  5117. #endif
  5118. _LT_EOF
  5119. # Now generate the symbol file.
  5120. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5121. cat <<_LT_EOF >> conftest.$ac_ext
  5122. /* The mapping between symbol names and symbols. */
  5123. const struct {
  5124. const char *name;
  5125. void *address;
  5126. }
  5127. lt__PROGRAM__LTX_preloaded_symbols[] =
  5128. {
  5129. { "@PROGRAM@", (void *) 0 },
  5130. _LT_EOF
  5131. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5132. cat <<\_LT_EOF >> conftest.$ac_ext
  5133. {0, (void *) 0}
  5134. };
  5135. /* This works around a problem in FreeBSD linker */
  5136. #ifdef FREEBSD_WORKAROUND
  5137. static const void *lt_preloaded_setup() {
  5138. return lt__PROGRAM__LTX_preloaded_symbols;
  5139. }
  5140. #endif
  5141. #ifdef __cplusplus
  5142. }
  5143. #endif
  5144. _LT_EOF
  5145. # Now try linking the two files.
  5146. mv conftest.$ac_objext conftstm.$ac_objext
  5147. lt_save_LIBS="$LIBS"
  5148. lt_save_CFLAGS="$CFLAGS"
  5149. LIBS="conftstm.$ac_objext"
  5150. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5151. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5152. (eval $ac_link) 2>&5
  5153. ac_status=$?
  5154. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5155. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5156. pipe_works=yes
  5157. fi
  5158. LIBS="$lt_save_LIBS"
  5159. CFLAGS="$lt_save_CFLAGS"
  5160. else
  5161. echo "cannot find nm_test_func in $nlist" >&5
  5162. fi
  5163. else
  5164. echo "cannot find nm_test_var in $nlist" >&5
  5165. fi
  5166. else
  5167. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5168. fi
  5169. else
  5170. echo "$progname: failed program was:" >&5
  5171. cat conftest.$ac_ext >&5
  5172. fi
  5173. rm -rf conftest* conftst*
  5174. # Do not use the global_symbol_pipe unless it works.
  5175. if test "$pipe_works" = yes; then
  5176. break
  5177. else
  5178. lt_cv_sys_global_symbol_pipe=
  5179. fi
  5180. done
  5181. fi
  5182. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5183. lt_cv_sys_global_symbol_to_cdecl=
  5184. fi
  5185. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5187. $as_echo "failed" >&6; }
  5188. else
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5190. $as_echo "ok" >&6; }
  5191. fi
  5192. # Check whether --enable-libtool-lock was given.
  5193. if test "${enable_libtool_lock+set}" = set; then :
  5194. enableval=$enable_libtool_lock;
  5195. fi
  5196. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5197. # Some flags need to be propagated to the compiler or linker for good
  5198. # libtool support.
  5199. case $host in
  5200. ia64-*-hpux*)
  5201. # Find out which ABI we are using.
  5202. echo 'int i;' > conftest.$ac_ext
  5203. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5204. (eval $ac_compile) 2>&5
  5205. ac_status=$?
  5206. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5207. test $ac_status = 0; }; then
  5208. case `/usr/bin/file conftest.$ac_objext` in
  5209. *ELF-32*)
  5210. HPUX_IA64_MODE="32"
  5211. ;;
  5212. *ELF-64*)
  5213. HPUX_IA64_MODE="64"
  5214. ;;
  5215. esac
  5216. fi
  5217. rm -rf conftest*
  5218. ;;
  5219. *-*-irix6*)
  5220. # Find out which ABI we are using.
  5221. echo '#line 5892 "configure"' > conftest.$ac_ext
  5222. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5223. (eval $ac_compile) 2>&5
  5224. ac_status=$?
  5225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5226. test $ac_status = 0; }; then
  5227. if test "$lt_cv_prog_gnu_ld" = yes; then
  5228. case `/usr/bin/file conftest.$ac_objext` in
  5229. *32-bit*)
  5230. LD="${LD-ld} -melf32bsmip"
  5231. ;;
  5232. *N32*)
  5233. LD="${LD-ld} -melf32bmipn32"
  5234. ;;
  5235. *64-bit*)
  5236. LD="${LD-ld} -melf64bmip"
  5237. ;;
  5238. esac
  5239. else
  5240. case `/usr/bin/file conftest.$ac_objext` in
  5241. *32-bit*)
  5242. LD="${LD-ld} -32"
  5243. ;;
  5244. *N32*)
  5245. LD="${LD-ld} -n32"
  5246. ;;
  5247. *64-bit*)
  5248. LD="${LD-ld} -64"
  5249. ;;
  5250. esac
  5251. fi
  5252. fi
  5253. rm -rf conftest*
  5254. ;;
  5255. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5256. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5257. # Find out which ABI we are using.
  5258. echo 'int i;' > conftest.$ac_ext
  5259. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5260. (eval $ac_compile) 2>&5
  5261. ac_status=$?
  5262. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5263. test $ac_status = 0; }; then
  5264. case `/usr/bin/file conftest.o` in
  5265. *32-bit*)
  5266. case $host in
  5267. x86_64-*kfreebsd*-gnu)
  5268. LD="${LD-ld} -m elf_i386_fbsd"
  5269. ;;
  5270. x86_64-*linux*)
  5271. LD="${LD-ld} -m elf_i386"
  5272. ;;
  5273. ppc64-*linux*|powerpc64-*linux*)
  5274. LD="${LD-ld} -m elf32ppclinux"
  5275. ;;
  5276. s390x-*linux*)
  5277. LD="${LD-ld} -m elf_s390"
  5278. ;;
  5279. sparc64-*linux*)
  5280. LD="${LD-ld} -m elf32_sparc"
  5281. ;;
  5282. esac
  5283. ;;
  5284. *64-bit*)
  5285. case $host in
  5286. x86_64-*kfreebsd*-gnu)
  5287. LD="${LD-ld} -m elf_x86_64_fbsd"
  5288. ;;
  5289. x86_64-*linux*)
  5290. LD="${LD-ld} -m elf_x86_64"
  5291. ;;
  5292. ppc*-*linux*|powerpc*-*linux*)
  5293. LD="${LD-ld} -m elf64ppc"
  5294. ;;
  5295. s390*-*linux*|s390*-*tpf*)
  5296. LD="${LD-ld} -m elf64_s390"
  5297. ;;
  5298. sparc*-*linux*)
  5299. LD="${LD-ld} -m elf64_sparc"
  5300. ;;
  5301. esac
  5302. ;;
  5303. esac
  5304. fi
  5305. rm -rf conftest*
  5306. ;;
  5307. *-*-sco3.2v5*)
  5308. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5309. SAVE_CFLAGS="$CFLAGS"
  5310. CFLAGS="$CFLAGS -belf"
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5312. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5313. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5314. $as_echo_n "(cached) " >&6
  5315. else
  5316. ac_ext=c
  5317. ac_cpp='$CPP $CPPFLAGS'
  5318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5322. /* end confdefs.h. */
  5323. int
  5324. main ()
  5325. {
  5326. ;
  5327. return 0;
  5328. }
  5329. _ACEOF
  5330. if ac_fn_c_try_link "$LINENO"; then :
  5331. lt_cv_cc_needs_belf=yes
  5332. else
  5333. lt_cv_cc_needs_belf=no
  5334. fi
  5335. rm -f core conftest.err conftest.$ac_objext \
  5336. conftest$ac_exeext conftest.$ac_ext
  5337. ac_ext=c
  5338. ac_cpp='$CPP $CPPFLAGS'
  5339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5342. fi
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5344. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5345. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5346. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5347. CFLAGS="$SAVE_CFLAGS"
  5348. fi
  5349. ;;
  5350. sparc*-*solaris*)
  5351. # Find out which ABI we are using.
  5352. echo 'int i;' > conftest.$ac_ext
  5353. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5354. (eval $ac_compile) 2>&5
  5355. ac_status=$?
  5356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5357. test $ac_status = 0; }; then
  5358. case `/usr/bin/file conftest.o` in
  5359. *64-bit*)
  5360. case $lt_cv_prog_gnu_ld in
  5361. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5362. *)
  5363. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5364. LD="${LD-ld} -64"
  5365. fi
  5366. ;;
  5367. esac
  5368. ;;
  5369. esac
  5370. fi
  5371. rm -rf conftest*
  5372. ;;
  5373. esac
  5374. need_locks="$enable_libtool_lock"
  5375. case $host_os in
  5376. rhapsody* | darwin*)
  5377. if test -n "$ac_tool_prefix"; then
  5378. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5379. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5381. $as_echo_n "checking for $ac_word... " >&6; }
  5382. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5383. $as_echo_n "(cached) " >&6
  5384. else
  5385. if test -n "$DSYMUTIL"; then
  5386. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5387. else
  5388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5389. for as_dir in $PATH
  5390. do
  5391. IFS=$as_save_IFS
  5392. test -z "$as_dir" && as_dir=.
  5393. for ac_exec_ext in '' $ac_executable_extensions; do
  5394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5395. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5397. break 2
  5398. fi
  5399. done
  5400. done
  5401. IFS=$as_save_IFS
  5402. fi
  5403. fi
  5404. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5405. if test -n "$DSYMUTIL"; then
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5407. $as_echo "$DSYMUTIL" >&6; }
  5408. else
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5410. $as_echo "no" >&6; }
  5411. fi
  5412. fi
  5413. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5414. ac_ct_DSYMUTIL=$DSYMUTIL
  5415. # Extract the first word of "dsymutil", so it can be a program name with args.
  5416. set dummy dsymutil; ac_word=$2
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5418. $as_echo_n "checking for $ac_word... " >&6; }
  5419. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5420. $as_echo_n "(cached) " >&6
  5421. else
  5422. if test -n "$ac_ct_DSYMUTIL"; then
  5423. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5424. else
  5425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5426. for as_dir in $PATH
  5427. do
  5428. IFS=$as_save_IFS
  5429. test -z "$as_dir" && as_dir=.
  5430. for ac_exec_ext in '' $ac_executable_extensions; do
  5431. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5432. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5434. break 2
  5435. fi
  5436. done
  5437. done
  5438. IFS=$as_save_IFS
  5439. fi
  5440. fi
  5441. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5442. if test -n "$ac_ct_DSYMUTIL"; then
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5444. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5445. else
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5447. $as_echo "no" >&6; }
  5448. fi
  5449. if test "x$ac_ct_DSYMUTIL" = x; then
  5450. DSYMUTIL=":"
  5451. else
  5452. case $cross_compiling:$ac_tool_warned in
  5453. yes:)
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5456. ac_tool_warned=yes ;;
  5457. esac
  5458. DSYMUTIL=$ac_ct_DSYMUTIL
  5459. fi
  5460. else
  5461. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5462. fi
  5463. if test -n "$ac_tool_prefix"; then
  5464. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5465. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5467. $as_echo_n "checking for $ac_word... " >&6; }
  5468. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5469. $as_echo_n "(cached) " >&6
  5470. else
  5471. if test -n "$NMEDIT"; then
  5472. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5473. else
  5474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5475. for as_dir in $PATH
  5476. do
  5477. IFS=$as_save_IFS
  5478. test -z "$as_dir" && as_dir=.
  5479. for ac_exec_ext in '' $ac_executable_extensions; do
  5480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5481. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5483. break 2
  5484. fi
  5485. done
  5486. done
  5487. IFS=$as_save_IFS
  5488. fi
  5489. fi
  5490. NMEDIT=$ac_cv_prog_NMEDIT
  5491. if test -n "$NMEDIT"; then
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5493. $as_echo "$NMEDIT" >&6; }
  5494. else
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5496. $as_echo "no" >&6; }
  5497. fi
  5498. fi
  5499. if test -z "$ac_cv_prog_NMEDIT"; then
  5500. ac_ct_NMEDIT=$NMEDIT
  5501. # Extract the first word of "nmedit", so it can be a program name with args.
  5502. set dummy nmedit; ac_word=$2
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5504. $as_echo_n "checking for $ac_word... " >&6; }
  5505. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5506. $as_echo_n "(cached) " >&6
  5507. else
  5508. if test -n "$ac_ct_NMEDIT"; then
  5509. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5510. else
  5511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5512. for as_dir in $PATH
  5513. do
  5514. IFS=$as_save_IFS
  5515. test -z "$as_dir" && as_dir=.
  5516. for ac_exec_ext in '' $ac_executable_extensions; do
  5517. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5518. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5520. break 2
  5521. fi
  5522. done
  5523. done
  5524. IFS=$as_save_IFS
  5525. fi
  5526. fi
  5527. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5528. if test -n "$ac_ct_NMEDIT"; then
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5530. $as_echo "$ac_ct_NMEDIT" >&6; }
  5531. else
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5533. $as_echo "no" >&6; }
  5534. fi
  5535. if test "x$ac_ct_NMEDIT" = x; then
  5536. NMEDIT=":"
  5537. else
  5538. case $cross_compiling:$ac_tool_warned in
  5539. yes:)
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5541. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5542. ac_tool_warned=yes ;;
  5543. esac
  5544. NMEDIT=$ac_ct_NMEDIT
  5545. fi
  5546. else
  5547. NMEDIT="$ac_cv_prog_NMEDIT"
  5548. fi
  5549. if test -n "$ac_tool_prefix"; then
  5550. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5551. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5553. $as_echo_n "checking for $ac_word... " >&6; }
  5554. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5555. $as_echo_n "(cached) " >&6
  5556. else
  5557. if test -n "$LIPO"; then
  5558. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5559. else
  5560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5561. for as_dir in $PATH
  5562. do
  5563. IFS=$as_save_IFS
  5564. test -z "$as_dir" && as_dir=.
  5565. for ac_exec_ext in '' $ac_executable_extensions; do
  5566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5567. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5569. break 2
  5570. fi
  5571. done
  5572. done
  5573. IFS=$as_save_IFS
  5574. fi
  5575. fi
  5576. LIPO=$ac_cv_prog_LIPO
  5577. if test -n "$LIPO"; then
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5579. $as_echo "$LIPO" >&6; }
  5580. else
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5582. $as_echo "no" >&6; }
  5583. fi
  5584. fi
  5585. if test -z "$ac_cv_prog_LIPO"; then
  5586. ac_ct_LIPO=$LIPO
  5587. # Extract the first word of "lipo", so it can be a program name with args.
  5588. set dummy lipo; ac_word=$2
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5590. $as_echo_n "checking for $ac_word... " >&6; }
  5591. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. if test -n "$ac_ct_LIPO"; then
  5595. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5596. else
  5597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5598. for as_dir in $PATH
  5599. do
  5600. IFS=$as_save_IFS
  5601. test -z "$as_dir" && as_dir=.
  5602. for ac_exec_ext in '' $ac_executable_extensions; do
  5603. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5604. ac_cv_prog_ac_ct_LIPO="lipo"
  5605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5606. break 2
  5607. fi
  5608. done
  5609. done
  5610. IFS=$as_save_IFS
  5611. fi
  5612. fi
  5613. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5614. if test -n "$ac_ct_LIPO"; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5616. $as_echo "$ac_ct_LIPO" >&6; }
  5617. else
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5619. $as_echo "no" >&6; }
  5620. fi
  5621. if test "x$ac_ct_LIPO" = x; then
  5622. LIPO=":"
  5623. else
  5624. case $cross_compiling:$ac_tool_warned in
  5625. yes:)
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5628. ac_tool_warned=yes ;;
  5629. esac
  5630. LIPO=$ac_ct_LIPO
  5631. fi
  5632. else
  5633. LIPO="$ac_cv_prog_LIPO"
  5634. fi
  5635. if test -n "$ac_tool_prefix"; then
  5636. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5637. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5639. $as_echo_n "checking for $ac_word... " >&6; }
  5640. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5641. $as_echo_n "(cached) " >&6
  5642. else
  5643. if test -n "$OTOOL"; then
  5644. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5645. else
  5646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5647. for as_dir in $PATH
  5648. do
  5649. IFS=$as_save_IFS
  5650. test -z "$as_dir" && as_dir=.
  5651. for ac_exec_ext in '' $ac_executable_extensions; do
  5652. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5653. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5655. break 2
  5656. fi
  5657. done
  5658. done
  5659. IFS=$as_save_IFS
  5660. fi
  5661. fi
  5662. OTOOL=$ac_cv_prog_OTOOL
  5663. if test -n "$OTOOL"; then
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5665. $as_echo "$OTOOL" >&6; }
  5666. else
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5668. $as_echo "no" >&6; }
  5669. fi
  5670. fi
  5671. if test -z "$ac_cv_prog_OTOOL"; then
  5672. ac_ct_OTOOL=$OTOOL
  5673. # Extract the first word of "otool", so it can be a program name with args.
  5674. set dummy otool; ac_word=$2
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5676. $as_echo_n "checking for $ac_word... " >&6; }
  5677. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5678. $as_echo_n "(cached) " >&6
  5679. else
  5680. if test -n "$ac_ct_OTOOL"; then
  5681. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5682. else
  5683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5684. for as_dir in $PATH
  5685. do
  5686. IFS=$as_save_IFS
  5687. test -z "$as_dir" && as_dir=.
  5688. for ac_exec_ext in '' $ac_executable_extensions; do
  5689. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5690. ac_cv_prog_ac_ct_OTOOL="otool"
  5691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5692. break 2
  5693. fi
  5694. done
  5695. done
  5696. IFS=$as_save_IFS
  5697. fi
  5698. fi
  5699. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5700. if test -n "$ac_ct_OTOOL"; then
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5702. $as_echo "$ac_ct_OTOOL" >&6; }
  5703. else
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5705. $as_echo "no" >&6; }
  5706. fi
  5707. if test "x$ac_ct_OTOOL" = x; then
  5708. OTOOL=":"
  5709. else
  5710. case $cross_compiling:$ac_tool_warned in
  5711. yes:)
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5714. ac_tool_warned=yes ;;
  5715. esac
  5716. OTOOL=$ac_ct_OTOOL
  5717. fi
  5718. else
  5719. OTOOL="$ac_cv_prog_OTOOL"
  5720. fi
  5721. if test -n "$ac_tool_prefix"; then
  5722. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5723. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5725. $as_echo_n "checking for $ac_word... " >&6; }
  5726. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5727. $as_echo_n "(cached) " >&6
  5728. else
  5729. if test -n "$OTOOL64"; then
  5730. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5731. else
  5732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5733. for as_dir in $PATH
  5734. do
  5735. IFS=$as_save_IFS
  5736. test -z "$as_dir" && as_dir=.
  5737. for ac_exec_ext in '' $ac_executable_extensions; do
  5738. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5739. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5741. break 2
  5742. fi
  5743. done
  5744. done
  5745. IFS=$as_save_IFS
  5746. fi
  5747. fi
  5748. OTOOL64=$ac_cv_prog_OTOOL64
  5749. if test -n "$OTOOL64"; then
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5751. $as_echo "$OTOOL64" >&6; }
  5752. else
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5754. $as_echo "no" >&6; }
  5755. fi
  5756. fi
  5757. if test -z "$ac_cv_prog_OTOOL64"; then
  5758. ac_ct_OTOOL64=$OTOOL64
  5759. # Extract the first word of "otool64", so it can be a program name with args.
  5760. set dummy otool64; ac_word=$2
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5762. $as_echo_n "checking for $ac_word... " >&6; }
  5763. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5764. $as_echo_n "(cached) " >&6
  5765. else
  5766. if test -n "$ac_ct_OTOOL64"; then
  5767. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5768. else
  5769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5770. for as_dir in $PATH
  5771. do
  5772. IFS=$as_save_IFS
  5773. test -z "$as_dir" && as_dir=.
  5774. for ac_exec_ext in '' $ac_executable_extensions; do
  5775. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5776. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5778. break 2
  5779. fi
  5780. done
  5781. done
  5782. IFS=$as_save_IFS
  5783. fi
  5784. fi
  5785. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5786. if test -n "$ac_ct_OTOOL64"; then
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5788. $as_echo "$ac_ct_OTOOL64" >&6; }
  5789. else
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5791. $as_echo "no" >&6; }
  5792. fi
  5793. if test "x$ac_ct_OTOOL64" = x; then
  5794. OTOOL64=":"
  5795. else
  5796. case $cross_compiling:$ac_tool_warned in
  5797. yes:)
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5799. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5800. ac_tool_warned=yes ;;
  5801. esac
  5802. OTOOL64=$ac_ct_OTOOL64
  5803. fi
  5804. else
  5805. OTOOL64="$ac_cv_prog_OTOOL64"
  5806. fi
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5808. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5809. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  5810. $as_echo_n "(cached) " >&6
  5811. else
  5812. lt_cv_apple_cc_single_mod=no
  5813. if test -z "${LT_MULTI_MODULE}"; then
  5814. # By default we will add the -single_module flag. You can override
  5815. # by either setting the environment variable LT_MULTI_MODULE
  5816. # non-empty at configure time, or by adding -multi_module to the
  5817. # link flags.
  5818. rm -rf libconftest.dylib*
  5819. echo "int foo(void){return 1;}" > conftest.c
  5820. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5821. -dynamiclib -Wl,-single_module conftest.c" >&5
  5822. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5823. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5824. _lt_result=$?
  5825. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5826. lt_cv_apple_cc_single_mod=yes
  5827. else
  5828. cat conftest.err >&5
  5829. fi
  5830. rm -rf libconftest.dylib*
  5831. rm -f conftest.*
  5832. fi
  5833. fi
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5835. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5837. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5838. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  5839. $as_echo_n "(cached) " >&6
  5840. else
  5841. lt_cv_ld_exported_symbols_list=no
  5842. save_LDFLAGS=$LDFLAGS
  5843. echo "_main" > conftest.sym
  5844. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5846. /* end confdefs.h. */
  5847. int
  5848. main ()
  5849. {
  5850. ;
  5851. return 0;
  5852. }
  5853. _ACEOF
  5854. if ac_fn_c_try_link "$LINENO"; then :
  5855. lt_cv_ld_exported_symbols_list=yes
  5856. else
  5857. lt_cv_ld_exported_symbols_list=no
  5858. fi
  5859. rm -f core conftest.err conftest.$ac_objext \
  5860. conftest$ac_exeext conftest.$ac_ext
  5861. LDFLAGS="$save_LDFLAGS"
  5862. fi
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5864. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5865. case $host_os in
  5866. rhapsody* | darwin1.[012])
  5867. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5868. darwin1.*)
  5869. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5870. darwin*) # darwin 5.x on
  5871. # if running on 10.5 or later, the deployment target defaults
  5872. # to the OS version, if on x86, and 10.4, the deployment
  5873. # target defaults to 10.4. Don't you love it?
  5874. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5875. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5876. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5877. 10.[012]*)
  5878. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5879. 10.*)
  5880. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5881. esac
  5882. ;;
  5883. esac
  5884. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5885. _lt_dar_single_mod='$single_module'
  5886. fi
  5887. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5888. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5889. else
  5890. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5891. fi
  5892. if test "$DSYMUTIL" != ":"; then
  5893. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5894. else
  5895. _lt_dsymutil=
  5896. fi
  5897. ;;
  5898. esac
  5899. ac_ext=c
  5900. ac_cpp='$CPP $CPPFLAGS'
  5901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5905. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5906. # On Suns, sometimes $CPP names a directory.
  5907. if test -n "$CPP" && test -d "$CPP"; then
  5908. CPP=
  5909. fi
  5910. if test -z "$CPP"; then
  5911. if test "${ac_cv_prog_CPP+set}" = set; then :
  5912. $as_echo_n "(cached) " >&6
  5913. else
  5914. # Double quotes because CPP needs to be expanded
  5915. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5916. do
  5917. ac_preproc_ok=false
  5918. for ac_c_preproc_warn_flag in '' yes
  5919. do
  5920. # Use a header file that comes with gcc, so configuring glibc
  5921. # with a fresh cross-compiler works.
  5922. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5923. # <limits.h> exists even on freestanding compilers.
  5924. # On the NeXT, cc -E runs the code through the compiler's parser,
  5925. # not just through cpp. "Syntax error" is here to catch this case.
  5926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5927. /* end confdefs.h. */
  5928. #ifdef __STDC__
  5929. # include <limits.h>
  5930. #else
  5931. # include <assert.h>
  5932. #endif
  5933. Syntax error
  5934. _ACEOF
  5935. if ac_fn_c_try_cpp "$LINENO"; then :
  5936. else
  5937. # Broken: fails on valid input.
  5938. continue
  5939. fi
  5940. rm -f conftest.err conftest.$ac_ext
  5941. # OK, works on sane cases. Now check whether nonexistent headers
  5942. # can be detected and how.
  5943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5944. /* end confdefs.h. */
  5945. #include <ac_nonexistent.h>
  5946. _ACEOF
  5947. if ac_fn_c_try_cpp "$LINENO"; then :
  5948. # Broken: success on invalid input.
  5949. continue
  5950. else
  5951. # Passes both tests.
  5952. ac_preproc_ok=:
  5953. break
  5954. fi
  5955. rm -f conftest.err conftest.$ac_ext
  5956. done
  5957. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5958. rm -f conftest.err conftest.$ac_ext
  5959. if $ac_preproc_ok; then :
  5960. break
  5961. fi
  5962. done
  5963. ac_cv_prog_CPP=$CPP
  5964. fi
  5965. CPP=$ac_cv_prog_CPP
  5966. else
  5967. ac_cv_prog_CPP=$CPP
  5968. fi
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5970. $as_echo "$CPP" >&6; }
  5971. ac_preproc_ok=false
  5972. for ac_c_preproc_warn_flag in '' yes
  5973. do
  5974. # Use a header file that comes with gcc, so configuring glibc
  5975. # with a fresh cross-compiler works.
  5976. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5977. # <limits.h> exists even on freestanding compilers.
  5978. # On the NeXT, cc -E runs the code through the compiler's parser,
  5979. # not just through cpp. "Syntax error" is here to catch this case.
  5980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5981. /* end confdefs.h. */
  5982. #ifdef __STDC__
  5983. # include <limits.h>
  5984. #else
  5985. # include <assert.h>
  5986. #endif
  5987. Syntax error
  5988. _ACEOF
  5989. if ac_fn_c_try_cpp "$LINENO"; then :
  5990. else
  5991. # Broken: fails on valid input.
  5992. continue
  5993. fi
  5994. rm -f conftest.err conftest.$ac_ext
  5995. # OK, works on sane cases. Now check whether nonexistent headers
  5996. # can be detected and how.
  5997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5998. /* end confdefs.h. */
  5999. #include <ac_nonexistent.h>
  6000. _ACEOF
  6001. if ac_fn_c_try_cpp "$LINENO"; then :
  6002. # Broken: success on invalid input.
  6003. continue
  6004. else
  6005. # Passes both tests.
  6006. ac_preproc_ok=:
  6007. break
  6008. fi
  6009. rm -f conftest.err conftest.$ac_ext
  6010. done
  6011. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6012. rm -f conftest.err conftest.$ac_ext
  6013. if $ac_preproc_ok; then :
  6014. else
  6015. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6016. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6017. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6018. See \`config.log' for more details." "$LINENO" 5; }
  6019. fi
  6020. ac_ext=c
  6021. ac_cpp='$CPP $CPPFLAGS'
  6022. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6023. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6024. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6026. $as_echo_n "checking for ANSI C header files... " >&6; }
  6027. if test "${ac_cv_header_stdc+set}" = set; then :
  6028. $as_echo_n "(cached) " >&6
  6029. else
  6030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6031. /* end confdefs.h. */
  6032. #include <stdlib.h>
  6033. #include <stdarg.h>
  6034. #include <string.h>
  6035. #include <float.h>
  6036. int
  6037. main ()
  6038. {
  6039. ;
  6040. return 0;
  6041. }
  6042. _ACEOF
  6043. if ac_fn_c_try_compile "$LINENO"; then :
  6044. ac_cv_header_stdc=yes
  6045. else
  6046. ac_cv_header_stdc=no
  6047. fi
  6048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6049. if test $ac_cv_header_stdc = yes; then
  6050. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6052. /* end confdefs.h. */
  6053. #include <string.h>
  6054. _ACEOF
  6055. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6056. $EGREP "memchr" >/dev/null 2>&1; then :
  6057. else
  6058. ac_cv_header_stdc=no
  6059. fi
  6060. rm -f conftest*
  6061. fi
  6062. if test $ac_cv_header_stdc = yes; then
  6063. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6065. /* end confdefs.h. */
  6066. #include <stdlib.h>
  6067. _ACEOF
  6068. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6069. $EGREP "free" >/dev/null 2>&1; then :
  6070. else
  6071. ac_cv_header_stdc=no
  6072. fi
  6073. rm -f conftest*
  6074. fi
  6075. if test $ac_cv_header_stdc = yes; then
  6076. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6077. if test "$cross_compiling" = yes; then :
  6078. :
  6079. else
  6080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6081. /* end confdefs.h. */
  6082. #include <ctype.h>
  6083. #include <stdlib.h>
  6084. #if ((' ' & 0x0FF) == 0x020)
  6085. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6086. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6087. #else
  6088. # define ISLOWER(c) \
  6089. (('a' <= (c) && (c) <= 'i') \
  6090. || ('j' <= (c) && (c) <= 'r') \
  6091. || ('s' <= (c) && (c) <= 'z'))
  6092. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6093. #endif
  6094. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6095. int
  6096. main ()
  6097. {
  6098. int i;
  6099. for (i = 0; i < 256; i++)
  6100. if (XOR (islower (i), ISLOWER (i))
  6101. || toupper (i) != TOUPPER (i))
  6102. return 2;
  6103. return 0;
  6104. }
  6105. _ACEOF
  6106. if ac_fn_c_try_run "$LINENO"; then :
  6107. else
  6108. ac_cv_header_stdc=no
  6109. fi
  6110. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6111. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6112. fi
  6113. fi
  6114. fi
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6116. $as_echo "$ac_cv_header_stdc" >&6; }
  6117. if test $ac_cv_header_stdc = yes; then
  6118. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6119. fi
  6120. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6121. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6122. inttypes.h stdint.h unistd.h
  6123. do :
  6124. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6125. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6126. "
  6127. eval as_val=\$$as_ac_Header
  6128. if test "x$as_val" = x""yes; then :
  6129. cat >>confdefs.h <<_ACEOF
  6130. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6131. _ACEOF
  6132. fi
  6133. done
  6134. for ac_header in dlfcn.h
  6135. do :
  6136. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6137. "
  6138. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6139. cat >>confdefs.h <<_ACEOF
  6140. #define HAVE_DLFCN_H 1
  6141. _ACEOF
  6142. fi
  6143. done
  6144. ac_ext=cpp
  6145. ac_cpp='$CXXCPP $CPPFLAGS'
  6146. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6147. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6148. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6149. if test -z "$CXX"; then
  6150. if test -n "$CCC"; then
  6151. CXX=$CCC
  6152. else
  6153. if test -n "$ac_tool_prefix"; then
  6154. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6155. do
  6156. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6157. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6159. $as_echo_n "checking for $ac_word... " >&6; }
  6160. if test "${ac_cv_prog_CXX+set}" = set; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. if test -n "$CXX"; then
  6164. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6165. else
  6166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6167. for as_dir in $PATH
  6168. do
  6169. IFS=$as_save_IFS
  6170. test -z "$as_dir" && as_dir=.
  6171. for ac_exec_ext in '' $ac_executable_extensions; do
  6172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6173. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. fi
  6181. fi
  6182. CXX=$ac_cv_prog_CXX
  6183. if test -n "$CXX"; then
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6185. $as_echo "$CXX" >&6; }
  6186. else
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6188. $as_echo "no" >&6; }
  6189. fi
  6190. test -n "$CXX" && break
  6191. done
  6192. fi
  6193. if test -z "$CXX"; then
  6194. ac_ct_CXX=$CXX
  6195. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6196. do
  6197. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6198. set dummy $ac_prog; ac_word=$2
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6200. $as_echo_n "checking for $ac_word... " >&6; }
  6201. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6202. $as_echo_n "(cached) " >&6
  6203. else
  6204. if test -n "$ac_ct_CXX"; then
  6205. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6206. else
  6207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6208. for as_dir in $PATH
  6209. do
  6210. IFS=$as_save_IFS
  6211. test -z "$as_dir" && as_dir=.
  6212. for ac_exec_ext in '' $ac_executable_extensions; do
  6213. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6214. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6216. break 2
  6217. fi
  6218. done
  6219. done
  6220. IFS=$as_save_IFS
  6221. fi
  6222. fi
  6223. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6224. if test -n "$ac_ct_CXX"; then
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6226. $as_echo "$ac_ct_CXX" >&6; }
  6227. else
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6229. $as_echo "no" >&6; }
  6230. fi
  6231. test -n "$ac_ct_CXX" && break
  6232. done
  6233. if test "x$ac_ct_CXX" = x; then
  6234. CXX="g++"
  6235. else
  6236. case $cross_compiling:$ac_tool_warned in
  6237. yes:)
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6239. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6240. ac_tool_warned=yes ;;
  6241. esac
  6242. CXX=$ac_ct_CXX
  6243. fi
  6244. fi
  6245. fi
  6246. fi
  6247. # Provide some information about the compiler.
  6248. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6249. set X $ac_compile
  6250. ac_compiler=$2
  6251. for ac_option in --version -v -V -qversion; do
  6252. { { ac_try="$ac_compiler $ac_option >&5"
  6253. case "(($ac_try" in
  6254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6255. *) ac_try_echo=$ac_try;;
  6256. esac
  6257. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6258. $as_echo "$ac_try_echo"; } >&5
  6259. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6260. ac_status=$?
  6261. if test -s conftest.err; then
  6262. sed '10a\
  6263. ... rest of stderr output deleted ...
  6264. 10q' conftest.err >conftest.er1
  6265. cat conftest.er1 >&5
  6266. rm -f conftest.er1 conftest.err
  6267. fi
  6268. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6269. test $ac_status = 0; }
  6270. done
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6272. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6273. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6274. $as_echo_n "(cached) " >&6
  6275. else
  6276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6277. /* end confdefs.h. */
  6278. int
  6279. main ()
  6280. {
  6281. #ifndef __GNUC__
  6282. choke me
  6283. #endif
  6284. ;
  6285. return 0;
  6286. }
  6287. _ACEOF
  6288. if ac_fn_cxx_try_compile "$LINENO"; then :
  6289. ac_compiler_gnu=yes
  6290. else
  6291. ac_compiler_gnu=no
  6292. fi
  6293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6294. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6295. fi
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6297. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6298. if test $ac_compiler_gnu = yes; then
  6299. GXX=yes
  6300. else
  6301. GXX=
  6302. fi
  6303. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6304. ac_save_CXXFLAGS=$CXXFLAGS
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6306. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6307. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6311. ac_cxx_werror_flag=yes
  6312. ac_cv_prog_cxx_g=no
  6313. CXXFLAGS="-g"
  6314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6315. /* end confdefs.h. */
  6316. int
  6317. main ()
  6318. {
  6319. ;
  6320. return 0;
  6321. }
  6322. _ACEOF
  6323. if ac_fn_cxx_try_compile "$LINENO"; then :
  6324. ac_cv_prog_cxx_g=yes
  6325. else
  6326. CXXFLAGS=""
  6327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6328. /* end confdefs.h. */
  6329. int
  6330. main ()
  6331. {
  6332. ;
  6333. return 0;
  6334. }
  6335. _ACEOF
  6336. if ac_fn_cxx_try_compile "$LINENO"; then :
  6337. else
  6338. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6339. CXXFLAGS="-g"
  6340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6341. /* end confdefs.h. */
  6342. int
  6343. main ()
  6344. {
  6345. ;
  6346. return 0;
  6347. }
  6348. _ACEOF
  6349. if ac_fn_cxx_try_compile "$LINENO"; then :
  6350. ac_cv_prog_cxx_g=yes
  6351. fi
  6352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6353. fi
  6354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6355. fi
  6356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6357. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6358. fi
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6360. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6361. if test "$ac_test_CXXFLAGS" = set; then
  6362. CXXFLAGS=$ac_save_CXXFLAGS
  6363. elif test $ac_cv_prog_cxx_g = yes; then
  6364. if test "$GXX" = yes; then
  6365. CXXFLAGS="-g -O2"
  6366. else
  6367. CXXFLAGS="-g"
  6368. fi
  6369. else
  6370. if test "$GXX" = yes; then
  6371. CXXFLAGS="-O2"
  6372. else
  6373. CXXFLAGS=
  6374. fi
  6375. fi
  6376. ac_ext=c
  6377. ac_cpp='$CPP $CPPFLAGS'
  6378. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6379. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6380. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6381. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6382. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6383. (test "X$CXX" != "Xg++"))) ; then
  6384. ac_ext=cpp
  6385. ac_cpp='$CXXCPP $CPPFLAGS'
  6386. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6387. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6388. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6390. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6391. if test -z "$CXXCPP"; then
  6392. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6393. $as_echo_n "(cached) " >&6
  6394. else
  6395. # Double quotes because CXXCPP needs to be expanded
  6396. for CXXCPP in "$CXX -E" "/lib/cpp"
  6397. do
  6398. ac_preproc_ok=false
  6399. for ac_cxx_preproc_warn_flag in '' yes
  6400. do
  6401. # Use a header file that comes with gcc, so configuring glibc
  6402. # with a fresh cross-compiler works.
  6403. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6404. # <limits.h> exists even on freestanding compilers.
  6405. # On the NeXT, cc -E runs the code through the compiler's parser,
  6406. # not just through cpp. "Syntax error" is here to catch this case.
  6407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6408. /* end confdefs.h. */
  6409. #ifdef __STDC__
  6410. # include <limits.h>
  6411. #else
  6412. # include <assert.h>
  6413. #endif
  6414. Syntax error
  6415. _ACEOF
  6416. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6417. else
  6418. # Broken: fails on valid input.
  6419. continue
  6420. fi
  6421. rm -f conftest.err conftest.$ac_ext
  6422. # OK, works on sane cases. Now check whether nonexistent headers
  6423. # can be detected and how.
  6424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6425. /* end confdefs.h. */
  6426. #include <ac_nonexistent.h>
  6427. _ACEOF
  6428. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6429. # Broken: success on invalid input.
  6430. continue
  6431. else
  6432. # Passes both tests.
  6433. ac_preproc_ok=:
  6434. break
  6435. fi
  6436. rm -f conftest.err conftest.$ac_ext
  6437. done
  6438. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6439. rm -f conftest.err conftest.$ac_ext
  6440. if $ac_preproc_ok; then :
  6441. break
  6442. fi
  6443. done
  6444. ac_cv_prog_CXXCPP=$CXXCPP
  6445. fi
  6446. CXXCPP=$ac_cv_prog_CXXCPP
  6447. else
  6448. ac_cv_prog_CXXCPP=$CXXCPP
  6449. fi
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6451. $as_echo "$CXXCPP" >&6; }
  6452. ac_preproc_ok=false
  6453. for ac_cxx_preproc_warn_flag in '' yes
  6454. do
  6455. # Use a header file that comes with gcc, so configuring glibc
  6456. # with a fresh cross-compiler works.
  6457. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6458. # <limits.h> exists even on freestanding compilers.
  6459. # On the NeXT, cc -E runs the code through the compiler's parser,
  6460. # not just through cpp. "Syntax error" is here to catch this case.
  6461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6462. /* end confdefs.h. */
  6463. #ifdef __STDC__
  6464. # include <limits.h>
  6465. #else
  6466. # include <assert.h>
  6467. #endif
  6468. Syntax error
  6469. _ACEOF
  6470. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6471. else
  6472. # Broken: fails on valid input.
  6473. continue
  6474. fi
  6475. rm -f conftest.err conftest.$ac_ext
  6476. # OK, works on sane cases. Now check whether nonexistent headers
  6477. # can be detected and how.
  6478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6479. /* end confdefs.h. */
  6480. #include <ac_nonexistent.h>
  6481. _ACEOF
  6482. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6483. # Broken: success on invalid input.
  6484. continue
  6485. else
  6486. # Passes both tests.
  6487. ac_preproc_ok=:
  6488. break
  6489. fi
  6490. rm -f conftest.err conftest.$ac_ext
  6491. done
  6492. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6493. rm -f conftest.err conftest.$ac_ext
  6494. if $ac_preproc_ok; then :
  6495. else
  6496. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6497. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6498. _lt_caught_CXX_error=yes; }
  6499. fi
  6500. ac_ext=c
  6501. ac_cpp='$CPP $CPPFLAGS'
  6502. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6503. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6504. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6505. else
  6506. _lt_caught_CXX_error=yes
  6507. fi
  6508. # Set options
  6509. enable_dlopen=no
  6510. # Check whether --enable-shared was given.
  6511. if test "${enable_shared+set}" = set; then :
  6512. enableval=$enable_shared; p=${PACKAGE-default}
  6513. case $enableval in
  6514. yes) enable_shared=yes ;;
  6515. no) enable_shared=no ;;
  6516. *)
  6517. enable_shared=no
  6518. # Look at the argument we got. We use all the common list separators.
  6519. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6520. for pkg in $enableval; do
  6521. IFS="$lt_save_ifs"
  6522. if test "X$pkg" = "X$p"; then
  6523. enable_shared=yes
  6524. fi
  6525. done
  6526. IFS="$lt_save_ifs"
  6527. ;;
  6528. esac
  6529. else
  6530. enable_shared=yes
  6531. fi
  6532. # Check whether --enable-static was given.
  6533. if test "${enable_static+set}" = set; then :
  6534. enableval=$enable_static; p=${PACKAGE-default}
  6535. case $enableval in
  6536. yes) enable_static=yes ;;
  6537. no) enable_static=no ;;
  6538. *)
  6539. enable_static=no
  6540. # Look at the argument we got. We use all the common list separators.
  6541. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6542. for pkg in $enableval; do
  6543. IFS="$lt_save_ifs"
  6544. if test "X$pkg" = "X$p"; then
  6545. enable_static=yes
  6546. fi
  6547. done
  6548. IFS="$lt_save_ifs"
  6549. ;;
  6550. esac
  6551. else
  6552. enable_static=yes
  6553. fi
  6554. # Check whether --with-pic was given.
  6555. if test "${with_pic+set}" = set; then :
  6556. withval=$with_pic; pic_mode="$withval"
  6557. else
  6558. pic_mode=default
  6559. fi
  6560. test -z "$pic_mode" && pic_mode=default
  6561. # Check whether --enable-fast-install was given.
  6562. if test "${enable_fast_install+set}" = set; then :
  6563. enableval=$enable_fast_install; p=${PACKAGE-default}
  6564. case $enableval in
  6565. yes) enable_fast_install=yes ;;
  6566. no) enable_fast_install=no ;;
  6567. *)
  6568. enable_fast_install=no
  6569. # Look at the argument we got. We use all the common list separators.
  6570. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6571. for pkg in $enableval; do
  6572. IFS="$lt_save_ifs"
  6573. if test "X$pkg" = "X$p"; then
  6574. enable_fast_install=yes
  6575. fi
  6576. done
  6577. IFS="$lt_save_ifs"
  6578. ;;
  6579. esac
  6580. else
  6581. enable_fast_install=yes
  6582. fi
  6583. # This can be used to rebuild libtool when needed
  6584. LIBTOOL_DEPS="$ltmain"
  6585. # Always use our own libtool.
  6586. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6587. test -z "$LN_S" && LN_S="ln -s"
  6588. if test -n "${ZSH_VERSION+set}" ; then
  6589. setopt NO_GLOB_SUBST
  6590. fi
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6592. $as_echo_n "checking for objdir... " >&6; }
  6593. if test "${lt_cv_objdir+set}" = set; then :
  6594. $as_echo_n "(cached) " >&6
  6595. else
  6596. rm -f .libs 2>/dev/null
  6597. mkdir .libs 2>/dev/null
  6598. if test -d .libs; then
  6599. lt_cv_objdir=.libs
  6600. else
  6601. # MS-DOS does not allow filenames that begin with a dot.
  6602. lt_cv_objdir=_libs
  6603. fi
  6604. rmdir .libs 2>/dev/null
  6605. fi
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6607. $as_echo "$lt_cv_objdir" >&6; }
  6608. objdir=$lt_cv_objdir
  6609. cat >>confdefs.h <<_ACEOF
  6610. #define LT_OBJDIR "$lt_cv_objdir/"
  6611. _ACEOF
  6612. case $host_os in
  6613. aix3*)
  6614. # AIX sometimes has problems with the GCC collect2 program. For some
  6615. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6616. # vanish in a puff of smoke.
  6617. if test "X${COLLECT_NAMES+set}" != Xset; then
  6618. COLLECT_NAMES=
  6619. export COLLECT_NAMES
  6620. fi
  6621. ;;
  6622. esac
  6623. # Sed substitution that helps us do robust quoting. It backslashifies
  6624. # metacharacters that are still active within double-quoted strings.
  6625. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6626. # Same as above, but do not quote variable references.
  6627. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6628. # Sed substitution to delay expansion of an escaped shell variable in a
  6629. # double_quote_subst'ed string.
  6630. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6631. # Sed substitution to delay expansion of an escaped single quote.
  6632. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6633. # Sed substitution to avoid accidental globbing in evaled expressions
  6634. no_glob_subst='s/\*/\\\*/g'
  6635. # Global variables:
  6636. ofile=libtool
  6637. can_build_shared=yes
  6638. # All known linkers require a `.a' archive for static linking (except MSVC,
  6639. # which needs '.lib').
  6640. libext=a
  6641. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6642. old_CC="$CC"
  6643. old_CFLAGS="$CFLAGS"
  6644. # Set sane defaults for various variables
  6645. test -z "$CC" && CC=cc
  6646. test -z "$LTCC" && LTCC=$CC
  6647. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6648. test -z "$LD" && LD=ld
  6649. test -z "$ac_objext" && ac_objext=o
  6650. for cc_temp in $compiler""; do
  6651. case $cc_temp in
  6652. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6653. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6654. \-*) ;;
  6655. *) break;;
  6656. esac
  6657. done
  6658. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6659. # Only perform the check for file, if the check method requires it
  6660. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6661. case $deplibs_check_method in
  6662. file_magic*)
  6663. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6665. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6666. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. case $MAGIC_CMD in
  6670. [\\/*] | ?:[\\/]*)
  6671. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6672. ;;
  6673. *)
  6674. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6675. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6676. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6677. for ac_dir in $ac_dummy; do
  6678. IFS="$lt_save_ifs"
  6679. test -z "$ac_dir" && ac_dir=.
  6680. if test -f $ac_dir/${ac_tool_prefix}file; then
  6681. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6682. if test -n "$file_magic_test_file"; then
  6683. case $deplibs_check_method in
  6684. "file_magic "*)
  6685. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6686. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6687. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6688. $EGREP "$file_magic_regex" > /dev/null; then
  6689. :
  6690. else
  6691. cat <<_LT_EOF 1>&2
  6692. *** Warning: the command libtool uses to detect shared libraries,
  6693. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6694. *** The result is that libtool may fail to recognize shared libraries
  6695. *** as such. This will affect the creation of libtool libraries that
  6696. *** depend on shared libraries, but programs linked with such libtool
  6697. *** libraries will work regardless of this problem. Nevertheless, you
  6698. *** may want to report the problem to your system manager and/or to
  6699. *** bug-libtool@gnu.org
  6700. _LT_EOF
  6701. fi ;;
  6702. esac
  6703. fi
  6704. break
  6705. fi
  6706. done
  6707. IFS="$lt_save_ifs"
  6708. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6709. ;;
  6710. esac
  6711. fi
  6712. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6713. if test -n "$MAGIC_CMD"; then
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6715. $as_echo "$MAGIC_CMD" >&6; }
  6716. else
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6718. $as_echo "no" >&6; }
  6719. fi
  6720. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6721. if test -n "$ac_tool_prefix"; then
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6723. $as_echo_n "checking for file... " >&6; }
  6724. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6725. $as_echo_n "(cached) " >&6
  6726. else
  6727. case $MAGIC_CMD in
  6728. [\\/*] | ?:[\\/]*)
  6729. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6730. ;;
  6731. *)
  6732. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6733. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6734. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6735. for ac_dir in $ac_dummy; do
  6736. IFS="$lt_save_ifs"
  6737. test -z "$ac_dir" && ac_dir=.
  6738. if test -f $ac_dir/file; then
  6739. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6740. if test -n "$file_magic_test_file"; then
  6741. case $deplibs_check_method in
  6742. "file_magic "*)
  6743. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6744. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6745. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6746. $EGREP "$file_magic_regex" > /dev/null; then
  6747. :
  6748. else
  6749. cat <<_LT_EOF 1>&2
  6750. *** Warning: the command libtool uses to detect shared libraries,
  6751. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6752. *** The result is that libtool may fail to recognize shared libraries
  6753. *** as such. This will affect the creation of libtool libraries that
  6754. *** depend on shared libraries, but programs linked with such libtool
  6755. *** libraries will work regardless of this problem. Nevertheless, you
  6756. *** may want to report the problem to your system manager and/or to
  6757. *** bug-libtool@gnu.org
  6758. _LT_EOF
  6759. fi ;;
  6760. esac
  6761. fi
  6762. break
  6763. fi
  6764. done
  6765. IFS="$lt_save_ifs"
  6766. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6767. ;;
  6768. esac
  6769. fi
  6770. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6771. if test -n "$MAGIC_CMD"; then
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6773. $as_echo "$MAGIC_CMD" >&6; }
  6774. else
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6776. $as_echo "no" >&6; }
  6777. fi
  6778. else
  6779. MAGIC_CMD=:
  6780. fi
  6781. fi
  6782. fi
  6783. ;;
  6784. esac
  6785. # Use C for the default configuration in the libtool script
  6786. lt_save_CC="$CC"
  6787. ac_ext=c
  6788. ac_cpp='$CPP $CPPFLAGS'
  6789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6792. # Source file extension for C test sources.
  6793. ac_ext=c
  6794. # Object file extension for compiled C test sources.
  6795. objext=o
  6796. objext=$objext
  6797. # Code to be used in simple compile tests
  6798. lt_simple_compile_test_code="int some_variable = 0;"
  6799. # Code to be used in simple link tests
  6800. lt_simple_link_test_code='int main(){return(0);}'
  6801. # If no C compiler was specified, use CC.
  6802. LTCC=${LTCC-"$CC"}
  6803. # If no C compiler flags were specified, use CFLAGS.
  6804. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6805. # Allow CC to be a program name with arguments.
  6806. compiler=$CC
  6807. # Save the default compiler, since it gets overwritten when the other
  6808. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6809. compiler_DEFAULT=$CC
  6810. # save warnings/boilerplate of simple test code
  6811. ac_outfile=conftest.$ac_objext
  6812. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6813. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6814. _lt_compiler_boilerplate=`cat conftest.err`
  6815. $RM conftest*
  6816. ac_outfile=conftest.$ac_objext
  6817. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6818. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6819. _lt_linker_boilerplate=`cat conftest.err`
  6820. $RM -r conftest*
  6821. if test -n "$compiler"; then
  6822. lt_prog_compiler_no_builtin_flag=
  6823. if test "$GCC" = yes; then
  6824. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6826. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6827. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6828. $as_echo_n "(cached) " >&6
  6829. else
  6830. lt_cv_prog_compiler_rtti_exceptions=no
  6831. ac_outfile=conftest.$ac_objext
  6832. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6833. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6834. # Insert the option either (1) after the last *FLAGS variable, or
  6835. # (2) before a word containing "conftest.", or (3) at the end.
  6836. # Note that $ac_compile itself does not contain backslashes and begins
  6837. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6838. # The option is referenced via a variable to avoid confusing sed.
  6839. lt_compile=`echo "$ac_compile" | $SED \
  6840. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6841. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6842. -e 's:$: $lt_compiler_flag:'`
  6843. (eval echo "\"\$as_me:7816: $lt_compile\"" >&5)
  6844. (eval "$lt_compile" 2>conftest.err)
  6845. ac_status=$?
  6846. cat conftest.err >&5
  6847. echo "$as_me:7820: \$? = $ac_status" >&5
  6848. if (exit $ac_status) && test -s "$ac_outfile"; then
  6849. # The compiler can only warn and ignore the option if not recognized
  6850. # So say no if there are warnings other than the usual output.
  6851. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6852. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6853. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6854. lt_cv_prog_compiler_rtti_exceptions=yes
  6855. fi
  6856. fi
  6857. $RM conftest*
  6858. fi
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6860. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6861. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6862. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6863. else
  6864. :
  6865. fi
  6866. fi
  6867. lt_prog_compiler_wl=
  6868. lt_prog_compiler_pic=
  6869. lt_prog_compiler_static=
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6871. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6872. if test "$GCC" = yes; then
  6873. lt_prog_compiler_wl='-Wl,'
  6874. lt_prog_compiler_static='-static'
  6875. case $host_os in
  6876. aix*)
  6877. # All AIX code is PIC.
  6878. if test "$host_cpu" = ia64; then
  6879. # AIX 5 now supports IA64 processor
  6880. lt_prog_compiler_static='-Bstatic'
  6881. fi
  6882. ;;
  6883. amigaos*)
  6884. case $host_cpu in
  6885. powerpc)
  6886. # see comment about AmigaOS4 .so support
  6887. lt_prog_compiler_pic='-fPIC'
  6888. ;;
  6889. m68k)
  6890. # FIXME: we need at least 68020 code to build shared libraries, but
  6891. # adding the `-m68020' flag to GCC prevents building anything better,
  6892. # like `-m68040'.
  6893. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6894. ;;
  6895. esac
  6896. ;;
  6897. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6898. # PIC is the default for these OSes.
  6899. ;;
  6900. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6901. # This hack is so that the source file can tell whether it is being
  6902. # built for inclusion in a dll (and should export symbols for example).
  6903. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6904. # (--disable-auto-import) libraries
  6905. lt_prog_compiler_pic='-DDLL_EXPORT'
  6906. ;;
  6907. darwin* | rhapsody*)
  6908. # PIC is the default on this platform
  6909. # Common symbols not allowed in MH_DYLIB files
  6910. lt_prog_compiler_pic='-fno-common'
  6911. ;;
  6912. hpux*)
  6913. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6914. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6915. # sets the default TLS model and affects inlining.
  6916. case $host_cpu in
  6917. hppa*64*)
  6918. # +Z the default
  6919. ;;
  6920. *)
  6921. lt_prog_compiler_pic='-fPIC'
  6922. ;;
  6923. esac
  6924. ;;
  6925. interix[3-9]*)
  6926. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6927. # Instead, we relocate shared libraries at runtime.
  6928. ;;
  6929. msdosdjgpp*)
  6930. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6931. # on systems that don't support them.
  6932. lt_prog_compiler_can_build_shared=no
  6933. enable_shared=no
  6934. ;;
  6935. *nto* | *qnx*)
  6936. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6937. # it will coredump.
  6938. lt_prog_compiler_pic='-fPIC -shared'
  6939. ;;
  6940. sysv4*MP*)
  6941. if test -d /usr/nec; then
  6942. lt_prog_compiler_pic=-Kconform_pic
  6943. fi
  6944. ;;
  6945. *)
  6946. lt_prog_compiler_pic='-fPIC'
  6947. ;;
  6948. esac
  6949. else
  6950. # PORTME Check for flag to pass linker flags through the system compiler.
  6951. case $host_os in
  6952. aix*)
  6953. lt_prog_compiler_wl='-Wl,'
  6954. if test "$host_cpu" = ia64; then
  6955. # AIX 5 now supports IA64 processor
  6956. lt_prog_compiler_static='-Bstatic'
  6957. else
  6958. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6959. fi
  6960. ;;
  6961. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6962. # This hack is so that the source file can tell whether it is being
  6963. # built for inclusion in a dll (and should export symbols for example).
  6964. lt_prog_compiler_pic='-DDLL_EXPORT'
  6965. ;;
  6966. hpux9* | hpux10* | hpux11*)
  6967. lt_prog_compiler_wl='-Wl,'
  6968. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6969. # not for PA HP-UX.
  6970. case $host_cpu in
  6971. hppa*64*|ia64*)
  6972. # +Z the default
  6973. ;;
  6974. *)
  6975. lt_prog_compiler_pic='+Z'
  6976. ;;
  6977. esac
  6978. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6979. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6980. ;;
  6981. irix5* | irix6* | nonstopux*)
  6982. lt_prog_compiler_wl='-Wl,'
  6983. # PIC (with -KPIC) is the default.
  6984. lt_prog_compiler_static='-non_shared'
  6985. ;;
  6986. linux* | k*bsd*-gnu)
  6987. case $cc_basename in
  6988. # old Intel for x86_64 which still supported -KPIC.
  6989. ecc*)
  6990. lt_prog_compiler_wl='-Wl,'
  6991. lt_prog_compiler_pic='-KPIC'
  6992. lt_prog_compiler_static='-static'
  6993. ;;
  6994. # icc used to be incompatible with GCC.
  6995. # ICC 10 doesn't accept -KPIC any more.
  6996. icc* | ifort*)
  6997. lt_prog_compiler_wl='-Wl,'
  6998. lt_prog_compiler_pic='-fPIC'
  6999. lt_prog_compiler_static='-static'
  7000. ;;
  7001. # Lahey Fortran 8.1.
  7002. lf95*)
  7003. lt_prog_compiler_wl='-Wl,'
  7004. lt_prog_compiler_pic='--shared'
  7005. lt_prog_compiler_static='--static'
  7006. ;;
  7007. pgcc* | pgf77* | pgf90* | pgf95*)
  7008. # Portland Group compilers (*not* the Pentium gcc compiler,
  7009. # which looks to be a dead project)
  7010. lt_prog_compiler_wl='-Wl,'
  7011. lt_prog_compiler_pic='-fpic'
  7012. lt_prog_compiler_static='-Bstatic'
  7013. ;;
  7014. ccc*)
  7015. lt_prog_compiler_wl='-Wl,'
  7016. # All Alpha code is PIC.
  7017. lt_prog_compiler_static='-non_shared'
  7018. ;;
  7019. xl*)
  7020. # IBM XL C 8.0/Fortran 10.1 on PPC
  7021. lt_prog_compiler_wl='-Wl,'
  7022. lt_prog_compiler_pic='-qpic'
  7023. lt_prog_compiler_static='-qstaticlink'
  7024. ;;
  7025. *)
  7026. case `$CC -V 2>&1 | sed 5q` in
  7027. *Sun\ C*)
  7028. # Sun C 5.9
  7029. lt_prog_compiler_pic='-KPIC'
  7030. lt_prog_compiler_static='-Bstatic'
  7031. lt_prog_compiler_wl='-Wl,'
  7032. ;;
  7033. *Sun\ F*)
  7034. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7035. lt_prog_compiler_pic='-KPIC'
  7036. lt_prog_compiler_static='-Bstatic'
  7037. lt_prog_compiler_wl=''
  7038. ;;
  7039. esac
  7040. ;;
  7041. esac
  7042. ;;
  7043. newsos6)
  7044. lt_prog_compiler_pic='-KPIC'
  7045. lt_prog_compiler_static='-Bstatic'
  7046. ;;
  7047. *nto* | *qnx*)
  7048. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7049. # it will coredump.
  7050. lt_prog_compiler_pic='-fPIC -shared'
  7051. ;;
  7052. osf3* | osf4* | osf5*)
  7053. lt_prog_compiler_wl='-Wl,'
  7054. # All OSF/1 code is PIC.
  7055. lt_prog_compiler_static='-non_shared'
  7056. ;;
  7057. rdos*)
  7058. lt_prog_compiler_static='-non_shared'
  7059. ;;
  7060. solaris*)
  7061. lt_prog_compiler_pic='-KPIC'
  7062. lt_prog_compiler_static='-Bstatic'
  7063. case $cc_basename in
  7064. f77* | f90* | f95*)
  7065. lt_prog_compiler_wl='-Qoption ld ';;
  7066. *)
  7067. lt_prog_compiler_wl='-Wl,';;
  7068. esac
  7069. ;;
  7070. sunos4*)
  7071. lt_prog_compiler_wl='-Qoption ld '
  7072. lt_prog_compiler_pic='-PIC'
  7073. lt_prog_compiler_static='-Bstatic'
  7074. ;;
  7075. sysv4 | sysv4.2uw2* | sysv4.3*)
  7076. lt_prog_compiler_wl='-Wl,'
  7077. lt_prog_compiler_pic='-KPIC'
  7078. lt_prog_compiler_static='-Bstatic'
  7079. ;;
  7080. sysv4*MP*)
  7081. if test -d /usr/nec ;then
  7082. lt_prog_compiler_pic='-Kconform_pic'
  7083. lt_prog_compiler_static='-Bstatic'
  7084. fi
  7085. ;;
  7086. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7087. lt_prog_compiler_wl='-Wl,'
  7088. lt_prog_compiler_pic='-KPIC'
  7089. lt_prog_compiler_static='-Bstatic'
  7090. ;;
  7091. unicos*)
  7092. lt_prog_compiler_wl='-Wl,'
  7093. lt_prog_compiler_can_build_shared=no
  7094. ;;
  7095. uts4*)
  7096. lt_prog_compiler_pic='-pic'
  7097. lt_prog_compiler_static='-Bstatic'
  7098. ;;
  7099. *)
  7100. lt_prog_compiler_can_build_shared=no
  7101. ;;
  7102. esac
  7103. fi
  7104. case $host_os in
  7105. # For platforms which do not support PIC, -DPIC is meaningless:
  7106. *djgpp*)
  7107. lt_prog_compiler_pic=
  7108. ;;
  7109. *)
  7110. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7111. ;;
  7112. esac
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7114. $as_echo "$lt_prog_compiler_pic" >&6; }
  7115. #
  7116. # Check to make sure the PIC flag actually works.
  7117. #
  7118. if test -n "$lt_prog_compiler_pic"; then
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7120. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7121. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7122. $as_echo_n "(cached) " >&6
  7123. else
  7124. lt_cv_prog_compiler_pic_works=no
  7125. ac_outfile=conftest.$ac_objext
  7126. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7127. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7128. # Insert the option either (1) after the last *FLAGS variable, or
  7129. # (2) before a word containing "conftest.", or (3) at the end.
  7130. # Note that $ac_compile itself does not contain backslashes and begins
  7131. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7132. # The option is referenced via a variable to avoid confusing sed.
  7133. lt_compile=`echo "$ac_compile" | $SED \
  7134. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7135. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7136. -e 's:$: $lt_compiler_flag:'`
  7137. (eval echo "\"\$as_me:8155: $lt_compile\"" >&5)
  7138. (eval "$lt_compile" 2>conftest.err)
  7139. ac_status=$?
  7140. cat conftest.err >&5
  7141. echo "$as_me:8159: \$? = $ac_status" >&5
  7142. if (exit $ac_status) && test -s "$ac_outfile"; then
  7143. # The compiler can only warn and ignore the option if not recognized
  7144. # So say no if there are warnings other than the usual output.
  7145. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7146. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7147. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7148. lt_cv_prog_compiler_pic_works=yes
  7149. fi
  7150. fi
  7151. $RM conftest*
  7152. fi
  7153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7154. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7155. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7156. case $lt_prog_compiler_pic in
  7157. "" | " "*) ;;
  7158. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7159. esac
  7160. else
  7161. lt_prog_compiler_pic=
  7162. lt_prog_compiler_can_build_shared=no
  7163. fi
  7164. fi
  7165. #
  7166. # Check to make sure the static flag actually works.
  7167. #
  7168. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7170. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7171. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7172. $as_echo_n "(cached) " >&6
  7173. else
  7174. lt_cv_prog_compiler_static_works=no
  7175. save_LDFLAGS="$LDFLAGS"
  7176. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7177. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7178. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7179. # The linker can only warn and ignore the option if not recognized
  7180. # So say no if there are warnings
  7181. if test -s conftest.err; then
  7182. # Append any errors to the config.log.
  7183. cat conftest.err 1>&5
  7184. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7185. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7186. if diff conftest.exp conftest.er2 >/dev/null; then
  7187. lt_cv_prog_compiler_static_works=yes
  7188. fi
  7189. else
  7190. lt_cv_prog_compiler_static_works=yes
  7191. fi
  7192. fi
  7193. $RM -r conftest*
  7194. LDFLAGS="$save_LDFLAGS"
  7195. fi
  7196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7197. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7198. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7199. :
  7200. else
  7201. lt_prog_compiler_static=
  7202. fi
  7203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7204. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7205. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7206. $as_echo_n "(cached) " >&6
  7207. else
  7208. lt_cv_prog_compiler_c_o=no
  7209. $RM -r conftest 2>/dev/null
  7210. mkdir conftest
  7211. cd conftest
  7212. mkdir out
  7213. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7214. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7215. # Insert the option either (1) after the last *FLAGS variable, or
  7216. # (2) before a word containing "conftest.", or (3) at the end.
  7217. # Note that $ac_compile itself does not contain backslashes and begins
  7218. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7219. lt_compile=`echo "$ac_compile" | $SED \
  7220. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7221. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7222. -e 's:$: $lt_compiler_flag:'`
  7223. (eval echo "\"\$as_me:8260: $lt_compile\"" >&5)
  7224. (eval "$lt_compile" 2>out/conftest.err)
  7225. ac_status=$?
  7226. cat out/conftest.err >&5
  7227. echo "$as_me:8264: \$? = $ac_status" >&5
  7228. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7229. then
  7230. # The compiler can only warn and ignore the option if not recognized
  7231. # So say no if there are warnings
  7232. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7233. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7234. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7235. lt_cv_prog_compiler_c_o=yes
  7236. fi
  7237. fi
  7238. chmod u+w . 2>&5
  7239. $RM conftest*
  7240. # SGI C++ compiler will create directory out/ii_files/ for
  7241. # template instantiation
  7242. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7243. $RM out/* && rmdir out
  7244. cd ..
  7245. $RM -r conftest
  7246. $RM conftest*
  7247. fi
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7249. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7251. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7252. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7253. $as_echo_n "(cached) " >&6
  7254. else
  7255. lt_cv_prog_compiler_c_o=no
  7256. $RM -r conftest 2>/dev/null
  7257. mkdir conftest
  7258. cd conftest
  7259. mkdir out
  7260. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7261. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7262. # Insert the option either (1) after the last *FLAGS variable, or
  7263. # (2) before a word containing "conftest.", or (3) at the end.
  7264. # Note that $ac_compile itself does not contain backslashes and begins
  7265. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7266. lt_compile=`echo "$ac_compile" | $SED \
  7267. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7268. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7269. -e 's:$: $lt_compiler_flag:'`
  7270. (eval echo "\"\$as_me:8315: $lt_compile\"" >&5)
  7271. (eval "$lt_compile" 2>out/conftest.err)
  7272. ac_status=$?
  7273. cat out/conftest.err >&5
  7274. echo "$as_me:8319: \$? = $ac_status" >&5
  7275. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7276. then
  7277. # The compiler can only warn and ignore the option if not recognized
  7278. # So say no if there are warnings
  7279. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7280. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7281. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7282. lt_cv_prog_compiler_c_o=yes
  7283. fi
  7284. fi
  7285. chmod u+w . 2>&5
  7286. $RM conftest*
  7287. # SGI C++ compiler will create directory out/ii_files/ for
  7288. # template instantiation
  7289. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7290. $RM out/* && rmdir out
  7291. cd ..
  7292. $RM -r conftest
  7293. $RM conftest*
  7294. fi
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7296. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7297. hard_links="nottested"
  7298. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7299. # do not overwrite the value of need_locks provided by the user
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7301. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7302. hard_links=yes
  7303. $RM conftest*
  7304. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7305. touch conftest.a
  7306. ln conftest.a conftest.b 2>&5 || hard_links=no
  7307. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7309. $as_echo "$hard_links" >&6; }
  7310. if test "$hard_links" = no; then
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7312. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7313. need_locks=warn
  7314. fi
  7315. else
  7316. need_locks=no
  7317. fi
  7318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7319. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7320. runpath_var=
  7321. allow_undefined_flag=
  7322. always_export_symbols=no
  7323. archive_cmds=
  7324. archive_expsym_cmds=
  7325. compiler_needs_object=no
  7326. enable_shared_with_static_runtimes=no
  7327. export_dynamic_flag_spec=
  7328. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7329. hardcode_automatic=no
  7330. hardcode_direct=no
  7331. hardcode_direct_absolute=no
  7332. hardcode_libdir_flag_spec=
  7333. hardcode_libdir_flag_spec_ld=
  7334. hardcode_libdir_separator=
  7335. hardcode_minus_L=no
  7336. hardcode_shlibpath_var=unsupported
  7337. inherit_rpath=no
  7338. link_all_deplibs=unknown
  7339. module_cmds=
  7340. module_expsym_cmds=
  7341. old_archive_from_new_cmds=
  7342. old_archive_from_expsyms_cmds=
  7343. thread_safe_flag_spec=
  7344. whole_archive_flag_spec=
  7345. # include_expsyms should be a list of space-separated symbols to be *always*
  7346. # included in the symbol list
  7347. include_expsyms=
  7348. # exclude_expsyms can be an extended regexp of symbols to exclude
  7349. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7350. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7351. # as well as any symbol that contains `d'.
  7352. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7353. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7354. # platforms (ab)use it in PIC code, but their linkers get confused if
  7355. # the symbol is explicitly referenced. Since portable code cannot
  7356. # rely on this symbol name, it's probably fine to never include it in
  7357. # preloaded symbol tables.
  7358. # Exclude shared library initialization/finalization symbols.
  7359. extract_expsyms_cmds=
  7360. case $host_os in
  7361. cygwin* | mingw* | pw32* | cegcc*)
  7362. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7363. # When not using gcc, we currently assume that we are using
  7364. # Microsoft Visual C++.
  7365. if test "$GCC" != yes; then
  7366. with_gnu_ld=no
  7367. fi
  7368. ;;
  7369. interix*)
  7370. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7371. with_gnu_ld=yes
  7372. ;;
  7373. openbsd*)
  7374. with_gnu_ld=no
  7375. ;;
  7376. linux* | k*bsd*-gnu)
  7377. link_all_deplibs=no
  7378. ;;
  7379. esac
  7380. ld_shlibs=yes
  7381. if test "$with_gnu_ld" = yes; then
  7382. # If archive_cmds runs LD, not CC, wlarc should be empty
  7383. wlarc='${wl}'
  7384. # Set some defaults for GNU ld with shared library support. These
  7385. # are reset later if shared libraries are not supported. Putting them
  7386. # here allows them to be overridden if necessary.
  7387. runpath_var=LD_RUN_PATH
  7388. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7389. export_dynamic_flag_spec='${wl}--export-dynamic'
  7390. # ancient GNU ld didn't support --whole-archive et. al.
  7391. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7392. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7393. else
  7394. whole_archive_flag_spec=
  7395. fi
  7396. supports_anon_versioning=no
  7397. case `$LD -v 2>&1` in
  7398. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7399. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7400. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7401. *\ 2.11.*) ;; # other 2.11 versions
  7402. *) supports_anon_versioning=yes ;;
  7403. esac
  7404. # See if GNU ld supports shared libraries.
  7405. case $host_os in
  7406. aix[3-9]*)
  7407. # On AIX/PPC, the GNU linker is very broken
  7408. if test "$host_cpu" != ia64; then
  7409. ld_shlibs=no
  7410. cat <<_LT_EOF 1>&2
  7411. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7412. *** to be unable to reliably create shared libraries on AIX.
  7413. *** Therefore, libtool is disabling shared libraries support. If you
  7414. *** really care for shared libraries, you may want to modify your PATH
  7415. *** so that a non-GNU linker is found, and then restart.
  7416. _LT_EOF
  7417. fi
  7418. ;;
  7419. amigaos*)
  7420. case $host_cpu in
  7421. powerpc)
  7422. # see comment about AmigaOS4 .so support
  7423. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7424. archive_expsym_cmds=''
  7425. ;;
  7426. m68k)
  7427. 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)'
  7428. hardcode_libdir_flag_spec='-L$libdir'
  7429. hardcode_minus_L=yes
  7430. ;;
  7431. esac
  7432. ;;
  7433. beos*)
  7434. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7435. allow_undefined_flag=unsupported
  7436. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7437. # support --undefined. This deserves some investigation. FIXME
  7438. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7439. else
  7440. ld_shlibs=no
  7441. fi
  7442. ;;
  7443. cygwin* | mingw* | pw32* | cegcc*)
  7444. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7445. # as there is no search path for DLLs.
  7446. hardcode_libdir_flag_spec='-L$libdir'
  7447. allow_undefined_flag=unsupported
  7448. always_export_symbols=no
  7449. enable_shared_with_static_runtimes=yes
  7450. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7451. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7452. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7453. # If the export-symbols file already is a .def file (1st line
  7454. # is EXPORTS), use it as is; otherwise, prepend...
  7455. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7456. cp $export_symbols $output_objdir/$soname.def;
  7457. else
  7458. echo EXPORTS > $output_objdir/$soname.def;
  7459. cat $export_symbols >> $output_objdir/$soname.def;
  7460. fi~
  7461. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7462. else
  7463. ld_shlibs=no
  7464. fi
  7465. ;;
  7466. interix[3-9]*)
  7467. hardcode_direct=no
  7468. hardcode_shlibpath_var=no
  7469. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7470. export_dynamic_flag_spec='${wl}-E'
  7471. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7472. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7473. # default) and relocated if they conflict, which is a slow very memory
  7474. # consuming and fragmenting process. To avoid this, we pick a random,
  7475. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7476. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7477. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7478. 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'
  7479. ;;
  7480. gnu* | linux* | tpf* | k*bsd*-gnu)
  7481. tmp_diet=no
  7482. if test "$host_os" = linux-dietlibc; then
  7483. case $cc_basename in
  7484. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7485. esac
  7486. fi
  7487. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7488. && test "$tmp_diet" = no
  7489. then
  7490. tmp_addflag=
  7491. tmp_sharedflag='-shared'
  7492. case $cc_basename,$host_cpu in
  7493. pgcc*) # Portland Group C compiler
  7494. 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'
  7495. tmp_addflag=' $pic_flag'
  7496. ;;
  7497. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7498. 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'
  7499. tmp_addflag=' $pic_flag -Mnomain' ;;
  7500. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7501. tmp_addflag=' -i_dynamic' ;;
  7502. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7503. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7504. ifc* | ifort*) # Intel Fortran compiler
  7505. tmp_addflag=' -nofor_main' ;;
  7506. lf95*) # Lahey Fortran 8.1
  7507. whole_archive_flag_spec=
  7508. tmp_sharedflag='--shared' ;;
  7509. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7510. tmp_sharedflag='-qmkshrobj'
  7511. tmp_addflag= ;;
  7512. esac
  7513. case `$CC -V 2>&1 | sed 5q` in
  7514. *Sun\ C*) # Sun C 5.9
  7515. 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'
  7516. compiler_needs_object=yes
  7517. tmp_sharedflag='-G' ;;
  7518. *Sun\ F*) # Sun Fortran 8.3
  7519. tmp_sharedflag='-G' ;;
  7520. esac
  7521. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7522. if test "x$supports_anon_versioning" = xyes; then
  7523. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7524. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7525. echo "local: *; };" >> $output_objdir/$libname.ver~
  7526. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7527. fi
  7528. case $cc_basename in
  7529. xlf*)
  7530. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7531. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7532. hardcode_libdir_flag_spec=
  7533. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7534. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7535. if test "x$supports_anon_versioning" = xyes; then
  7536. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7537. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7538. echo "local: *; };" >> $output_objdir/$libname.ver~
  7539. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7540. fi
  7541. ;;
  7542. esac
  7543. else
  7544. ld_shlibs=no
  7545. fi
  7546. ;;
  7547. netbsd* | netbsdelf*-gnu)
  7548. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7549. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7550. wlarc=
  7551. else
  7552. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7553. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7554. fi
  7555. ;;
  7556. solaris*)
  7557. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7558. ld_shlibs=no
  7559. cat <<_LT_EOF 1>&2
  7560. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7561. *** create shared libraries on Solaris systems. Therefore, libtool
  7562. *** is disabling shared libraries support. We urge you to upgrade GNU
  7563. *** binutils to release 2.9.1 or newer. Another option is to modify
  7564. *** your PATH or compiler configuration so that the native linker is
  7565. *** used, and then restart.
  7566. _LT_EOF
  7567. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7568. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7569. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7570. else
  7571. ld_shlibs=no
  7572. fi
  7573. ;;
  7574. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7575. case `$LD -v 2>&1` in
  7576. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7577. ld_shlibs=no
  7578. cat <<_LT_EOF 1>&2
  7579. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7580. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7581. *** is disabling shared libraries support. We urge you to upgrade GNU
  7582. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7583. *** your PATH or compiler configuration so that the native linker is
  7584. *** used, and then restart.
  7585. _LT_EOF
  7586. ;;
  7587. *)
  7588. # For security reasons, it is highly recommended that you always
  7589. # use absolute paths for naming shared libraries, and exclude the
  7590. # DT_RUNPATH tag from executables and libraries. But doing so
  7591. # requires that you compile everything twice, which is a pain.
  7592. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7593. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7594. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7595. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7596. else
  7597. ld_shlibs=no
  7598. fi
  7599. ;;
  7600. esac
  7601. ;;
  7602. sunos4*)
  7603. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7604. wlarc=
  7605. hardcode_direct=yes
  7606. hardcode_shlibpath_var=no
  7607. ;;
  7608. *)
  7609. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7610. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7611. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7612. else
  7613. ld_shlibs=no
  7614. fi
  7615. ;;
  7616. esac
  7617. if test "$ld_shlibs" = no; then
  7618. runpath_var=
  7619. hardcode_libdir_flag_spec=
  7620. export_dynamic_flag_spec=
  7621. whole_archive_flag_spec=
  7622. fi
  7623. else
  7624. # PORTME fill in a description of your system's linker (not GNU ld)
  7625. case $host_os in
  7626. aix3*)
  7627. allow_undefined_flag=unsupported
  7628. always_export_symbols=yes
  7629. 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'
  7630. # Note: this linker hardcodes the directories in LIBPATH if there
  7631. # are no directories specified by -L.
  7632. hardcode_minus_L=yes
  7633. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7634. # Neither direct hardcoding nor static linking is supported with a
  7635. # broken collect2.
  7636. hardcode_direct=unsupported
  7637. fi
  7638. ;;
  7639. aix[4-9]*)
  7640. if test "$host_cpu" = ia64; then
  7641. # On IA64, the linker does run time linking by default, so we don't
  7642. # have to do anything special.
  7643. aix_use_runtimelinking=no
  7644. exp_sym_flag='-Bexport'
  7645. no_entry_flag=""
  7646. else
  7647. # If we're using GNU nm, then we don't want the "-C" option.
  7648. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7649. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7650. 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'
  7651. else
  7652. 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'
  7653. fi
  7654. aix_use_runtimelinking=no
  7655. # Test if we are trying to use run time linking or normal
  7656. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7657. # need to do runtime linking.
  7658. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7659. for ld_flag in $LDFLAGS; do
  7660. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7661. aix_use_runtimelinking=yes
  7662. break
  7663. fi
  7664. done
  7665. ;;
  7666. esac
  7667. exp_sym_flag='-bexport'
  7668. no_entry_flag='-bnoentry'
  7669. fi
  7670. # When large executables or shared objects are built, AIX ld can
  7671. # have problems creating the table of contents. If linking a library
  7672. # or program results in "error TOC overflow" add -mminimal-toc to
  7673. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7674. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7675. archive_cmds=''
  7676. hardcode_direct=yes
  7677. hardcode_direct_absolute=yes
  7678. hardcode_libdir_separator=':'
  7679. link_all_deplibs=yes
  7680. file_list_spec='${wl}-f,'
  7681. if test "$GCC" = yes; then
  7682. case $host_os in aix4.[012]|aix4.[012].*)
  7683. # We only want to do this on AIX 4.2 and lower, the check
  7684. # below for broken collect2 doesn't work under 4.3+
  7685. collect2name=`${CC} -print-prog-name=collect2`
  7686. if test -f "$collect2name" &&
  7687. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7688. then
  7689. # We have reworked collect2
  7690. :
  7691. else
  7692. # We have old collect2
  7693. hardcode_direct=unsupported
  7694. # It fails to find uninstalled libraries when the uninstalled
  7695. # path is not listed in the libpath. Setting hardcode_minus_L
  7696. # to unsupported forces relinking
  7697. hardcode_minus_L=yes
  7698. hardcode_libdir_flag_spec='-L$libdir'
  7699. hardcode_libdir_separator=
  7700. fi
  7701. ;;
  7702. esac
  7703. shared_flag='-shared'
  7704. if test "$aix_use_runtimelinking" = yes; then
  7705. shared_flag="$shared_flag "'${wl}-G'
  7706. fi
  7707. link_all_deplibs=no
  7708. else
  7709. # not using gcc
  7710. if test "$host_cpu" = ia64; then
  7711. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7712. # chokes on -Wl,-G. The following line is correct:
  7713. shared_flag='-G'
  7714. else
  7715. if test "$aix_use_runtimelinking" = yes; then
  7716. shared_flag='${wl}-G'
  7717. else
  7718. shared_flag='${wl}-bM:SRE'
  7719. fi
  7720. fi
  7721. fi
  7722. export_dynamic_flag_spec='${wl}-bexpall'
  7723. # It seems that -bexpall does not export symbols beginning with
  7724. # underscore (_), so it is better to generate a list of symbols to export.
  7725. always_export_symbols=yes
  7726. if test "$aix_use_runtimelinking" = yes; then
  7727. # Warning - without using the other runtime loading flags (-brtl),
  7728. # -berok will link without error, but may produce a broken library.
  7729. allow_undefined_flag='-berok'
  7730. # Determine the default libpath from the value encoded in an
  7731. # empty executable.
  7732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7733. /* end confdefs.h. */
  7734. int
  7735. main ()
  7736. {
  7737. ;
  7738. return 0;
  7739. }
  7740. _ACEOF
  7741. if ac_fn_c_try_link "$LINENO"; then :
  7742. lt_aix_libpath_sed='
  7743. /Import File Strings/,/^$/ {
  7744. /^0/ {
  7745. s/^0 *\(.*\)$/\1/
  7746. p
  7747. }
  7748. }'
  7749. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7750. # Check for a 64-bit object if we didn't find anything.
  7751. if test -z "$aix_libpath"; then
  7752. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7753. fi
  7754. fi
  7755. rm -f core conftest.err conftest.$ac_objext \
  7756. conftest$ac_exeext conftest.$ac_ext
  7757. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7758. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7759. 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"
  7760. else
  7761. if test "$host_cpu" = ia64; then
  7762. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7763. allow_undefined_flag="-z nodefs"
  7764. 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"
  7765. else
  7766. # Determine the default libpath from the value encoded in an
  7767. # empty executable.
  7768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7769. /* end confdefs.h. */
  7770. int
  7771. main ()
  7772. {
  7773. ;
  7774. return 0;
  7775. }
  7776. _ACEOF
  7777. if ac_fn_c_try_link "$LINENO"; then :
  7778. lt_aix_libpath_sed='
  7779. /Import File Strings/,/^$/ {
  7780. /^0/ {
  7781. s/^0 *\(.*\)$/\1/
  7782. p
  7783. }
  7784. }'
  7785. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7786. # Check for a 64-bit object if we didn't find anything.
  7787. if test -z "$aix_libpath"; then
  7788. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7789. fi
  7790. fi
  7791. rm -f core conftest.err conftest.$ac_objext \
  7792. conftest$ac_exeext conftest.$ac_ext
  7793. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7794. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7795. # Warning - without using the other run time loading flags,
  7796. # -berok will link without error, but may produce a broken library.
  7797. no_undefined_flag=' ${wl}-bernotok'
  7798. allow_undefined_flag=' ${wl}-berok'
  7799. # Exported symbols can be pulled into shared objects from archives
  7800. whole_archive_flag_spec='$convenience'
  7801. archive_cmds_need_lc=yes
  7802. # This is similar to how AIX traditionally builds its shared libraries.
  7803. 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'
  7804. fi
  7805. fi
  7806. ;;
  7807. amigaos*)
  7808. case $host_cpu in
  7809. powerpc)
  7810. # see comment about AmigaOS4 .so support
  7811. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7812. archive_expsym_cmds=''
  7813. ;;
  7814. m68k)
  7815. 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)'
  7816. hardcode_libdir_flag_spec='-L$libdir'
  7817. hardcode_minus_L=yes
  7818. ;;
  7819. esac
  7820. ;;
  7821. bsdi[45]*)
  7822. export_dynamic_flag_spec=-rdynamic
  7823. ;;
  7824. cygwin* | mingw* | pw32* | cegcc*)
  7825. # When not using gcc, we currently assume that we are using
  7826. # Microsoft Visual C++.
  7827. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7828. # no search path for DLLs.
  7829. hardcode_libdir_flag_spec=' '
  7830. allow_undefined_flag=unsupported
  7831. # Tell ltmain to make .lib files, not .a files.
  7832. libext=lib
  7833. # Tell ltmain to make .dll files, not .so files.
  7834. shrext_cmds=".dll"
  7835. # FIXME: Setting linknames here is a bad hack.
  7836. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7837. # The linker will automatically build a .lib file if we build a DLL.
  7838. old_archive_from_new_cmds='true'
  7839. # FIXME: Should let the user specify the lib program.
  7840. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7841. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7842. enable_shared_with_static_runtimes=yes
  7843. ;;
  7844. darwin* | rhapsody*)
  7845. archive_cmds_need_lc=no
  7846. hardcode_direct=no
  7847. hardcode_automatic=yes
  7848. hardcode_shlibpath_var=unsupported
  7849. whole_archive_flag_spec=''
  7850. link_all_deplibs=yes
  7851. allow_undefined_flag="$_lt_dar_allow_undefined"
  7852. case $cc_basename in
  7853. ifort*) _lt_dar_can_shared=yes ;;
  7854. *) _lt_dar_can_shared=$GCC ;;
  7855. esac
  7856. if test "$_lt_dar_can_shared" = "yes"; then
  7857. output_verbose_link_cmd=echo
  7858. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7859. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7860. 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}"
  7861. 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}"
  7862. else
  7863. ld_shlibs=no
  7864. fi
  7865. ;;
  7866. dgux*)
  7867. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7868. hardcode_libdir_flag_spec='-L$libdir'
  7869. hardcode_shlibpath_var=no
  7870. ;;
  7871. freebsd1*)
  7872. ld_shlibs=no
  7873. ;;
  7874. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7875. # support. Future versions do this automatically, but an explicit c++rt0.o
  7876. # does not break anything, and helps significantly (at the cost of a little
  7877. # extra space).
  7878. freebsd2.2*)
  7879. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7880. hardcode_libdir_flag_spec='-R$libdir'
  7881. hardcode_direct=yes
  7882. hardcode_shlibpath_var=no
  7883. ;;
  7884. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7885. freebsd2*)
  7886. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7887. hardcode_direct=yes
  7888. hardcode_minus_L=yes
  7889. hardcode_shlibpath_var=no
  7890. ;;
  7891. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7892. freebsd* | dragonfly*)
  7893. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7894. hardcode_libdir_flag_spec='-R$libdir'
  7895. hardcode_direct=yes
  7896. hardcode_shlibpath_var=no
  7897. ;;
  7898. hpux9*)
  7899. if test "$GCC" = yes; then
  7900. 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'
  7901. else
  7902. 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'
  7903. fi
  7904. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7905. hardcode_libdir_separator=:
  7906. hardcode_direct=yes
  7907. # hardcode_minus_L: Not really in the search PATH,
  7908. # but as the default location of the library.
  7909. hardcode_minus_L=yes
  7910. export_dynamic_flag_spec='${wl}-E'
  7911. ;;
  7912. hpux10*)
  7913. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7914. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7915. else
  7916. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7917. fi
  7918. if test "$with_gnu_ld" = no; then
  7919. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7920. hardcode_libdir_flag_spec_ld='+b $libdir'
  7921. hardcode_libdir_separator=:
  7922. hardcode_direct=yes
  7923. hardcode_direct_absolute=yes
  7924. export_dynamic_flag_spec='${wl}-E'
  7925. # hardcode_minus_L: Not really in the search PATH,
  7926. # but as the default location of the library.
  7927. hardcode_minus_L=yes
  7928. fi
  7929. ;;
  7930. hpux11*)
  7931. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7932. case $host_cpu in
  7933. hppa*64*)
  7934. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7935. ;;
  7936. ia64*)
  7937. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7938. ;;
  7939. *)
  7940. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7941. ;;
  7942. esac
  7943. else
  7944. case $host_cpu in
  7945. hppa*64*)
  7946. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7947. ;;
  7948. ia64*)
  7949. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7950. ;;
  7951. *)
  7952. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7953. ;;
  7954. esac
  7955. fi
  7956. if test "$with_gnu_ld" = no; then
  7957. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7958. hardcode_libdir_separator=:
  7959. case $host_cpu in
  7960. hppa*64*|ia64*)
  7961. hardcode_direct=no
  7962. hardcode_shlibpath_var=no
  7963. ;;
  7964. *)
  7965. hardcode_direct=yes
  7966. hardcode_direct_absolute=yes
  7967. export_dynamic_flag_spec='${wl}-E'
  7968. # hardcode_minus_L: Not really in the search PATH,
  7969. # but as the default location of the library.
  7970. hardcode_minus_L=yes
  7971. ;;
  7972. esac
  7973. fi
  7974. ;;
  7975. irix5* | irix6* | nonstopux*)
  7976. if test "$GCC" = yes; then
  7977. 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'
  7978. # Try to use the -exported_symbol ld option, if it does not
  7979. # work, assume that -exports_file does not work either and
  7980. # implicitly export all symbols.
  7981. save_LDFLAGS="$LDFLAGS"
  7982. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7984. /* end confdefs.h. */
  7985. int foo(void) {}
  7986. _ACEOF
  7987. if ac_fn_c_try_link "$LINENO"; then :
  7988. 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'
  7989. fi
  7990. rm -f core conftest.err conftest.$ac_objext \
  7991. conftest$ac_exeext conftest.$ac_ext
  7992. LDFLAGS="$save_LDFLAGS"
  7993. else
  7994. 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'
  7995. 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'
  7996. fi
  7997. archive_cmds_need_lc='no'
  7998. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7999. hardcode_libdir_separator=:
  8000. inherit_rpath=yes
  8001. link_all_deplibs=yes
  8002. ;;
  8003. netbsd* | netbsdelf*-gnu)
  8004. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8005. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8006. else
  8007. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8008. fi
  8009. hardcode_libdir_flag_spec='-R$libdir'
  8010. hardcode_direct=yes
  8011. hardcode_shlibpath_var=no
  8012. ;;
  8013. newsos6)
  8014. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8015. hardcode_direct=yes
  8016. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8017. hardcode_libdir_separator=:
  8018. hardcode_shlibpath_var=no
  8019. ;;
  8020. *nto* | *qnx*)
  8021. ;;
  8022. openbsd*)
  8023. if test -f /usr/libexec/ld.so; then
  8024. hardcode_direct=yes
  8025. hardcode_shlibpath_var=no
  8026. hardcode_direct_absolute=yes
  8027. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8028. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8029. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8030. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8031. export_dynamic_flag_spec='${wl}-E'
  8032. else
  8033. case $host_os in
  8034. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8035. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8036. hardcode_libdir_flag_spec='-R$libdir'
  8037. ;;
  8038. *)
  8039. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8040. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8041. ;;
  8042. esac
  8043. fi
  8044. else
  8045. ld_shlibs=no
  8046. fi
  8047. ;;
  8048. os2*)
  8049. hardcode_libdir_flag_spec='-L$libdir'
  8050. hardcode_minus_L=yes
  8051. allow_undefined_flag=unsupported
  8052. 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'
  8053. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8054. ;;
  8055. osf3*)
  8056. if test "$GCC" = yes; then
  8057. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8058. 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'
  8059. else
  8060. allow_undefined_flag=' -expect_unresolved \*'
  8061. 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'
  8062. fi
  8063. archive_cmds_need_lc='no'
  8064. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8065. hardcode_libdir_separator=:
  8066. ;;
  8067. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8068. if test "$GCC" = yes; then
  8069. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8070. 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'
  8071. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8072. else
  8073. allow_undefined_flag=' -expect_unresolved \*'
  8074. 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'
  8075. 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~
  8076. $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'
  8077. # Both c and cxx compiler support -rpath directly
  8078. hardcode_libdir_flag_spec='-rpath $libdir'
  8079. fi
  8080. archive_cmds_need_lc='no'
  8081. hardcode_libdir_separator=:
  8082. ;;
  8083. solaris*)
  8084. no_undefined_flag=' -z defs'
  8085. if test "$GCC" = yes; then
  8086. wlarc='${wl}'
  8087. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8088. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8089. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8090. else
  8091. case `$CC -V 2>&1` in
  8092. *"Compilers 5.0"*)
  8093. wlarc=''
  8094. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8095. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8096. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8097. ;;
  8098. *)
  8099. wlarc='${wl}'
  8100. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8101. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8102. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8103. ;;
  8104. esac
  8105. fi
  8106. hardcode_libdir_flag_spec='-R$libdir'
  8107. hardcode_shlibpath_var=no
  8108. case $host_os in
  8109. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8110. *)
  8111. # The compiler driver will combine and reorder linker options,
  8112. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8113. # but is careful enough not to reorder.
  8114. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8115. if test "$GCC" = yes; then
  8116. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8117. else
  8118. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8119. fi
  8120. ;;
  8121. esac
  8122. link_all_deplibs=yes
  8123. ;;
  8124. sunos4*)
  8125. if test "x$host_vendor" = xsequent; then
  8126. # Use $CC to link under sequent, because it throws in some extra .o
  8127. # files that make .init and .fini sections work.
  8128. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8129. else
  8130. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8131. fi
  8132. hardcode_libdir_flag_spec='-L$libdir'
  8133. hardcode_direct=yes
  8134. hardcode_minus_L=yes
  8135. hardcode_shlibpath_var=no
  8136. ;;
  8137. sysv4)
  8138. case $host_vendor in
  8139. sni)
  8140. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8141. hardcode_direct=yes # is this really true???
  8142. ;;
  8143. siemens)
  8144. ## LD is ld it makes a PLAMLIB
  8145. ## CC just makes a GrossModule.
  8146. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8147. reload_cmds='$CC -r -o $output$reload_objs'
  8148. hardcode_direct=no
  8149. ;;
  8150. motorola)
  8151. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8152. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8153. ;;
  8154. esac
  8155. runpath_var='LD_RUN_PATH'
  8156. hardcode_shlibpath_var=no
  8157. ;;
  8158. sysv4.3*)
  8159. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8160. hardcode_shlibpath_var=no
  8161. export_dynamic_flag_spec='-Bexport'
  8162. ;;
  8163. sysv4*MP*)
  8164. if test -d /usr/nec; then
  8165. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8166. hardcode_shlibpath_var=no
  8167. runpath_var=LD_RUN_PATH
  8168. hardcode_runpath_var=yes
  8169. ld_shlibs=yes
  8170. fi
  8171. ;;
  8172. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8173. no_undefined_flag='${wl}-z,text'
  8174. archive_cmds_need_lc=no
  8175. hardcode_shlibpath_var=no
  8176. runpath_var='LD_RUN_PATH'
  8177. if test "$GCC" = yes; then
  8178. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8179. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8180. else
  8181. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8182. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8183. fi
  8184. ;;
  8185. sysv5* | sco3.2v5* | sco5v6*)
  8186. # Note: We can NOT use -z defs as we might desire, because we do not
  8187. # link with -lc, and that would cause any symbols used from libc to
  8188. # always be unresolved, which means just about no library would
  8189. # ever link correctly. If we're not using GNU ld we use -z text
  8190. # though, which does catch some bad symbols but isn't as heavy-handed
  8191. # as -z defs.
  8192. no_undefined_flag='${wl}-z,text'
  8193. allow_undefined_flag='${wl}-z,nodefs'
  8194. archive_cmds_need_lc=no
  8195. hardcode_shlibpath_var=no
  8196. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8197. hardcode_libdir_separator=':'
  8198. link_all_deplibs=yes
  8199. export_dynamic_flag_spec='${wl}-Bexport'
  8200. runpath_var='LD_RUN_PATH'
  8201. if test "$GCC" = yes; then
  8202. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8203. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8204. else
  8205. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8206. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8207. fi
  8208. ;;
  8209. uts4*)
  8210. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8211. hardcode_libdir_flag_spec='-L$libdir'
  8212. hardcode_shlibpath_var=no
  8213. ;;
  8214. *)
  8215. ld_shlibs=no
  8216. ;;
  8217. esac
  8218. if test x$host_vendor = xsni; then
  8219. case $host in
  8220. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8221. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8222. ;;
  8223. esac
  8224. fi
  8225. fi
  8226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8227. $as_echo "$ld_shlibs" >&6; }
  8228. test "$ld_shlibs" = no && can_build_shared=no
  8229. with_gnu_ld=$with_gnu_ld
  8230. #
  8231. # Do we need to explicitly link libc?
  8232. #
  8233. case "x$archive_cmds_need_lc" in
  8234. x|xyes)
  8235. # Assume -lc should be added
  8236. archive_cmds_need_lc=yes
  8237. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8238. case $archive_cmds in
  8239. *'~'*)
  8240. # FIXME: we may have to deal with multi-command sequences.
  8241. ;;
  8242. '$CC '*)
  8243. # Test whether the compiler implicitly links with -lc since on some
  8244. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8245. # to ld, don't add -lc before -lgcc.
  8246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8247. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8248. $RM conftest*
  8249. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8250. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8251. (eval $ac_compile) 2>&5
  8252. ac_status=$?
  8253. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8254. test $ac_status = 0; } 2>conftest.err; then
  8255. soname=conftest
  8256. lib=conftest
  8257. libobjs=conftest.$ac_objext
  8258. deplibs=
  8259. wl=$lt_prog_compiler_wl
  8260. pic_flag=$lt_prog_compiler_pic
  8261. compiler_flags=-v
  8262. linker_flags=-v
  8263. verstring=
  8264. output_objdir=.
  8265. libname=conftest
  8266. lt_save_allow_undefined_flag=$allow_undefined_flag
  8267. allow_undefined_flag=
  8268. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8269. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8270. ac_status=$?
  8271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8272. test $ac_status = 0; }
  8273. then
  8274. archive_cmds_need_lc=no
  8275. else
  8276. archive_cmds_need_lc=yes
  8277. fi
  8278. allow_undefined_flag=$lt_save_allow_undefined_flag
  8279. else
  8280. cat conftest.err 1>&5
  8281. fi
  8282. $RM conftest*
  8283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8284. $as_echo "$archive_cmds_need_lc" >&6; }
  8285. ;;
  8286. esac
  8287. fi
  8288. ;;
  8289. esac
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8291. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8292. if test "$GCC" = yes; then
  8293. case $host_os in
  8294. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8295. *) lt_awk_arg="/^libraries:/" ;;
  8296. esac
  8297. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8298. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8299. # if the path contains ";" then we assume it to be the separator
  8300. # otherwise default to the standard path separator (i.e. ":") - it is
  8301. # assumed that no part of a normal pathname contains ";" but that should
  8302. # okay in the real world where ";" in dirpaths is itself problematic.
  8303. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8304. else
  8305. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8306. fi
  8307. # Ok, now we have the path, separated by spaces, we can step through it
  8308. # and add multilib dir if necessary.
  8309. lt_tmp_lt_search_path_spec=
  8310. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8311. for lt_sys_path in $lt_search_path_spec; do
  8312. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8313. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8314. else
  8315. test -d "$lt_sys_path" && \
  8316. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8317. fi
  8318. done
  8319. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8320. BEGIN {RS=" "; FS="/|\n";} {
  8321. lt_foo="";
  8322. lt_count=0;
  8323. for (lt_i = NF; lt_i > 0; lt_i--) {
  8324. if ($lt_i != "" && $lt_i != ".") {
  8325. if ($lt_i == "..") {
  8326. lt_count++;
  8327. } else {
  8328. if (lt_count == 0) {
  8329. lt_foo="/" $lt_i lt_foo;
  8330. } else {
  8331. lt_count--;
  8332. }
  8333. }
  8334. }
  8335. }
  8336. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8337. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8338. }'`
  8339. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8340. else
  8341. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8342. fi
  8343. library_names_spec=
  8344. libname_spec='lib$name'
  8345. soname_spec=
  8346. shrext_cmds=".so"
  8347. postinstall_cmds=
  8348. postuninstall_cmds=
  8349. finish_cmds=
  8350. finish_eval=
  8351. shlibpath_var=
  8352. shlibpath_overrides_runpath=unknown
  8353. version_type=none
  8354. dynamic_linker="$host_os ld.so"
  8355. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8356. need_lib_prefix=unknown
  8357. hardcode_into_libs=no
  8358. # when you set need_version to no, make sure it does not cause -set_version
  8359. # flags to be left without arguments
  8360. need_version=unknown
  8361. case $host_os in
  8362. aix3*)
  8363. version_type=linux
  8364. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8365. shlibpath_var=LIBPATH
  8366. # AIX 3 has no versioning support, so we append a major version to the name.
  8367. soname_spec='${libname}${release}${shared_ext}$major'
  8368. ;;
  8369. aix[4-9]*)
  8370. version_type=linux
  8371. need_lib_prefix=no
  8372. need_version=no
  8373. hardcode_into_libs=yes
  8374. if test "$host_cpu" = ia64; then
  8375. # AIX 5 supports IA64
  8376. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8377. shlibpath_var=LD_LIBRARY_PATH
  8378. else
  8379. # With GCC up to 2.95.x, collect2 would create an import file
  8380. # for dependence libraries. The import file would start with
  8381. # the line `#! .'. This would cause the generated library to
  8382. # depend on `.', always an invalid library. This was fixed in
  8383. # development snapshots of GCC prior to 3.0.
  8384. case $host_os in
  8385. aix4 | aix4.[01] | aix4.[01].*)
  8386. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8387. echo ' yes '
  8388. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8389. :
  8390. else
  8391. can_build_shared=no
  8392. fi
  8393. ;;
  8394. esac
  8395. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8396. # soname into executable. Probably we can add versioning support to
  8397. # collect2, so additional links can be useful in future.
  8398. if test "$aix_use_runtimelinking" = yes; then
  8399. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8400. # instead of lib<name>.a to let people know that these are not
  8401. # typical AIX shared libraries.
  8402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8403. else
  8404. # We preserve .a as extension for shared libraries through AIX4.2
  8405. # and later when we are not doing run time linking.
  8406. library_names_spec='${libname}${release}.a $libname.a'
  8407. soname_spec='${libname}${release}${shared_ext}$major'
  8408. fi
  8409. shlibpath_var=LIBPATH
  8410. fi
  8411. ;;
  8412. amigaos*)
  8413. case $host_cpu in
  8414. powerpc)
  8415. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8416. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8418. ;;
  8419. m68k)
  8420. library_names_spec='$libname.ixlibrary $libname.a'
  8421. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8422. 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'
  8423. ;;
  8424. esac
  8425. ;;
  8426. beos*)
  8427. library_names_spec='${libname}${shared_ext}'
  8428. dynamic_linker="$host_os ld.so"
  8429. shlibpath_var=LIBRARY_PATH
  8430. ;;
  8431. bsdi[45]*)
  8432. version_type=linux
  8433. need_version=no
  8434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8435. soname_spec='${libname}${release}${shared_ext}$major'
  8436. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8437. shlibpath_var=LD_LIBRARY_PATH
  8438. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8439. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8440. # the default ld.so.conf also contains /usr/contrib/lib and
  8441. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8442. # libtool to hard-code these into programs
  8443. ;;
  8444. cygwin* | mingw* | pw32* | cegcc*)
  8445. version_type=windows
  8446. shrext_cmds=".dll"
  8447. need_version=no
  8448. need_lib_prefix=no
  8449. case $GCC,$host_os in
  8450. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8451. library_names_spec='$libname.dll.a'
  8452. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8453. postinstall_cmds='base_file=`basename \${file}`~
  8454. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8455. dldir=$destdir/`dirname \$dlpath`~
  8456. test -d \$dldir || mkdir -p \$dldir~
  8457. $install_prog $dir/$dlname \$dldir/$dlname~
  8458. chmod a+x \$dldir/$dlname~
  8459. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8460. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8461. fi'
  8462. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8463. dlpath=$dir/\$dldll~
  8464. $RM \$dlpath'
  8465. shlibpath_overrides_runpath=yes
  8466. case $host_os in
  8467. cygwin*)
  8468. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8469. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8470. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8471. ;;
  8472. mingw* | cegcc*)
  8473. # MinGW DLLs use traditional 'lib' prefix
  8474. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8475. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8476. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8477. # It is most probably a Windows format PATH printed by
  8478. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8479. # path with ; separators, and with drive letters. We can handle the
  8480. # drive letters (cygwin fileutils understands them), so leave them,
  8481. # especially as we might pass files found there to a mingw objdump,
  8482. # which wouldn't understand a cygwinified path. Ahh.
  8483. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8484. else
  8485. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8486. fi
  8487. ;;
  8488. pw32*)
  8489. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8490. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8491. ;;
  8492. esac
  8493. ;;
  8494. *)
  8495. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8496. ;;
  8497. esac
  8498. dynamic_linker='Win32 ld.exe'
  8499. # FIXME: first we should search . and the directory the executable is in
  8500. shlibpath_var=PATH
  8501. ;;
  8502. darwin* | rhapsody*)
  8503. dynamic_linker="$host_os dyld"
  8504. version_type=darwin
  8505. need_lib_prefix=no
  8506. need_version=no
  8507. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8508. soname_spec='${libname}${release}${major}$shared_ext'
  8509. shlibpath_overrides_runpath=yes
  8510. shlibpath_var=DYLD_LIBRARY_PATH
  8511. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8512. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8513. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8514. ;;
  8515. dgux*)
  8516. version_type=linux
  8517. need_lib_prefix=no
  8518. need_version=no
  8519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8520. soname_spec='${libname}${release}${shared_ext}$major'
  8521. shlibpath_var=LD_LIBRARY_PATH
  8522. ;;
  8523. freebsd1*)
  8524. dynamic_linker=no
  8525. ;;
  8526. freebsd* | dragonfly*)
  8527. # DragonFly does not have aout. When/if they implement a new
  8528. # versioning mechanism, adjust this.
  8529. if test -x /usr/bin/objformat; then
  8530. objformat=`/usr/bin/objformat`
  8531. else
  8532. case $host_os in
  8533. freebsd[123]*) objformat=aout ;;
  8534. *) objformat=elf ;;
  8535. esac
  8536. fi
  8537. version_type=freebsd-$objformat
  8538. case $version_type in
  8539. freebsd-elf*)
  8540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8541. need_version=no
  8542. need_lib_prefix=no
  8543. ;;
  8544. freebsd-*)
  8545. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8546. need_version=yes
  8547. ;;
  8548. esac
  8549. shlibpath_var=LD_LIBRARY_PATH
  8550. case $host_os in
  8551. freebsd2*)
  8552. shlibpath_overrides_runpath=yes
  8553. ;;
  8554. freebsd3.[01]* | freebsdelf3.[01]*)
  8555. shlibpath_overrides_runpath=yes
  8556. hardcode_into_libs=yes
  8557. ;;
  8558. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8559. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8560. shlibpath_overrides_runpath=no
  8561. hardcode_into_libs=yes
  8562. ;;
  8563. *) # from 4.6 on, and DragonFly
  8564. shlibpath_overrides_runpath=yes
  8565. hardcode_into_libs=yes
  8566. ;;
  8567. esac
  8568. ;;
  8569. gnu*)
  8570. version_type=linux
  8571. need_lib_prefix=no
  8572. need_version=no
  8573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8574. soname_spec='${libname}${release}${shared_ext}$major'
  8575. shlibpath_var=LD_LIBRARY_PATH
  8576. hardcode_into_libs=yes
  8577. ;;
  8578. hpux9* | hpux10* | hpux11*)
  8579. # Give a soname corresponding to the major version so that dld.sl refuses to
  8580. # link against other versions.
  8581. version_type=sunos
  8582. need_lib_prefix=no
  8583. need_version=no
  8584. case $host_cpu in
  8585. ia64*)
  8586. shrext_cmds='.so'
  8587. hardcode_into_libs=yes
  8588. dynamic_linker="$host_os dld.so"
  8589. shlibpath_var=LD_LIBRARY_PATH
  8590. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8591. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8592. soname_spec='${libname}${release}${shared_ext}$major'
  8593. if test "X$HPUX_IA64_MODE" = X32; then
  8594. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8595. else
  8596. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8597. fi
  8598. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8599. ;;
  8600. hppa*64*)
  8601. shrext_cmds='.sl'
  8602. hardcode_into_libs=yes
  8603. dynamic_linker="$host_os dld.sl"
  8604. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8605. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8606. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8607. soname_spec='${libname}${release}${shared_ext}$major'
  8608. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8609. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8610. ;;
  8611. *)
  8612. shrext_cmds='.sl'
  8613. dynamic_linker="$host_os dld.sl"
  8614. shlibpath_var=SHLIB_PATH
  8615. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8617. soname_spec='${libname}${release}${shared_ext}$major'
  8618. ;;
  8619. esac
  8620. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8621. postinstall_cmds='chmod 555 $lib'
  8622. ;;
  8623. interix[3-9]*)
  8624. version_type=linux
  8625. need_lib_prefix=no
  8626. need_version=no
  8627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8628. soname_spec='${libname}${release}${shared_ext}$major'
  8629. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8630. shlibpath_var=LD_LIBRARY_PATH
  8631. shlibpath_overrides_runpath=no
  8632. hardcode_into_libs=yes
  8633. ;;
  8634. irix5* | irix6* | nonstopux*)
  8635. case $host_os in
  8636. nonstopux*) version_type=nonstopux ;;
  8637. *)
  8638. if test "$lt_cv_prog_gnu_ld" = yes; then
  8639. version_type=linux
  8640. else
  8641. version_type=irix
  8642. fi ;;
  8643. esac
  8644. need_lib_prefix=no
  8645. need_version=no
  8646. soname_spec='${libname}${release}${shared_ext}$major'
  8647. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8648. case $host_os in
  8649. irix5* | nonstopux*)
  8650. libsuff= shlibsuff=
  8651. ;;
  8652. *)
  8653. case $LD in # libtool.m4 will add one of these switches to LD
  8654. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8655. libsuff= shlibsuff= libmagic=32-bit;;
  8656. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8657. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8658. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8659. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8660. *) libsuff= shlibsuff= libmagic=never-match;;
  8661. esac
  8662. ;;
  8663. esac
  8664. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8665. shlibpath_overrides_runpath=no
  8666. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8667. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8668. hardcode_into_libs=yes
  8669. ;;
  8670. # No shared lib support for Linux oldld, aout, or coff.
  8671. linux*oldld* | linux*aout* | linux*coff*)
  8672. dynamic_linker=no
  8673. ;;
  8674. # This must be Linux ELF.
  8675. linux* | k*bsd*-gnu)
  8676. version_type=linux
  8677. need_lib_prefix=no
  8678. need_version=no
  8679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8680. soname_spec='${libname}${release}${shared_ext}$major'
  8681. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8682. shlibpath_var=LD_LIBRARY_PATH
  8683. shlibpath_overrides_runpath=no
  8684. # Some binutils ld are patched to set DT_RUNPATH
  8685. save_LDFLAGS=$LDFLAGS
  8686. save_libdir=$libdir
  8687. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8688. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8690. /* end confdefs.h. */
  8691. int
  8692. main ()
  8693. {
  8694. ;
  8695. return 0;
  8696. }
  8697. _ACEOF
  8698. if ac_fn_c_try_link "$LINENO"; then :
  8699. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8700. shlibpath_overrides_runpath=yes
  8701. fi
  8702. fi
  8703. rm -f core conftest.err conftest.$ac_objext \
  8704. conftest$ac_exeext conftest.$ac_ext
  8705. LDFLAGS=$save_LDFLAGS
  8706. libdir=$save_libdir
  8707. # This implies no fast_install, which is unacceptable.
  8708. # Some rework will be needed to allow for fast_install
  8709. # before this can be enabled.
  8710. hardcode_into_libs=yes
  8711. # Append ld.so.conf contents to the search path
  8712. if test -f /etc/ld.so.conf; then
  8713. 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' ' '`
  8714. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8715. fi
  8716. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8717. # powerpc, because MkLinux only supported shared libraries with the
  8718. # GNU dynamic linker. Since this was broken with cross compilers,
  8719. # most powerpc-linux boxes support dynamic linking these days and
  8720. # people can always --disable-shared, the test was removed, and we
  8721. # assume the GNU/Linux dynamic linker is in use.
  8722. dynamic_linker='GNU/Linux ld.so'
  8723. ;;
  8724. netbsdelf*-gnu)
  8725. version_type=linux
  8726. need_lib_prefix=no
  8727. need_version=no
  8728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8729. soname_spec='${libname}${release}${shared_ext}$major'
  8730. shlibpath_var=LD_LIBRARY_PATH
  8731. shlibpath_overrides_runpath=no
  8732. hardcode_into_libs=yes
  8733. dynamic_linker='NetBSD ld.elf_so'
  8734. ;;
  8735. netbsd*)
  8736. version_type=sunos
  8737. need_lib_prefix=no
  8738. need_version=no
  8739. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8741. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8742. dynamic_linker='NetBSD (a.out) ld.so'
  8743. else
  8744. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8745. soname_spec='${libname}${release}${shared_ext}$major'
  8746. dynamic_linker='NetBSD ld.elf_so'
  8747. fi
  8748. shlibpath_var=LD_LIBRARY_PATH
  8749. shlibpath_overrides_runpath=yes
  8750. hardcode_into_libs=yes
  8751. ;;
  8752. newsos6)
  8753. version_type=linux
  8754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8755. shlibpath_var=LD_LIBRARY_PATH
  8756. shlibpath_overrides_runpath=yes
  8757. ;;
  8758. *nto* | *qnx*)
  8759. version_type=qnx
  8760. need_lib_prefix=no
  8761. need_version=no
  8762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8763. soname_spec='${libname}${release}${shared_ext}$major'
  8764. shlibpath_var=LD_LIBRARY_PATH
  8765. shlibpath_overrides_runpath=no
  8766. hardcode_into_libs=yes
  8767. dynamic_linker='ldqnx.so'
  8768. ;;
  8769. openbsd*)
  8770. version_type=sunos
  8771. sys_lib_dlsearch_path_spec="/usr/lib"
  8772. need_lib_prefix=no
  8773. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8774. case $host_os in
  8775. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8776. *) need_version=no ;;
  8777. esac
  8778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8779. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8780. shlibpath_var=LD_LIBRARY_PATH
  8781. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8782. case $host_os in
  8783. openbsd2.[89] | openbsd2.[89].*)
  8784. shlibpath_overrides_runpath=no
  8785. ;;
  8786. *)
  8787. shlibpath_overrides_runpath=yes
  8788. ;;
  8789. esac
  8790. else
  8791. shlibpath_overrides_runpath=yes
  8792. fi
  8793. ;;
  8794. os2*)
  8795. libname_spec='$name'
  8796. shrext_cmds=".dll"
  8797. need_lib_prefix=no
  8798. library_names_spec='$libname${shared_ext} $libname.a'
  8799. dynamic_linker='OS/2 ld.exe'
  8800. shlibpath_var=LIBPATH
  8801. ;;
  8802. osf3* | osf4* | osf5*)
  8803. version_type=osf
  8804. need_lib_prefix=no
  8805. need_version=no
  8806. soname_spec='${libname}${release}${shared_ext}$major'
  8807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8808. shlibpath_var=LD_LIBRARY_PATH
  8809. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8810. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8811. ;;
  8812. rdos*)
  8813. dynamic_linker=no
  8814. ;;
  8815. solaris*)
  8816. version_type=linux
  8817. need_lib_prefix=no
  8818. need_version=no
  8819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8820. soname_spec='${libname}${release}${shared_ext}$major'
  8821. shlibpath_var=LD_LIBRARY_PATH
  8822. shlibpath_overrides_runpath=yes
  8823. hardcode_into_libs=yes
  8824. # ldd complains unless libraries are executable
  8825. postinstall_cmds='chmod +x $lib'
  8826. ;;
  8827. sunos4*)
  8828. version_type=sunos
  8829. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8830. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8831. shlibpath_var=LD_LIBRARY_PATH
  8832. shlibpath_overrides_runpath=yes
  8833. if test "$with_gnu_ld" = yes; then
  8834. need_lib_prefix=no
  8835. fi
  8836. need_version=yes
  8837. ;;
  8838. sysv4 | sysv4.3*)
  8839. version_type=linux
  8840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8841. soname_spec='${libname}${release}${shared_ext}$major'
  8842. shlibpath_var=LD_LIBRARY_PATH
  8843. case $host_vendor in
  8844. sni)
  8845. shlibpath_overrides_runpath=no
  8846. need_lib_prefix=no
  8847. runpath_var=LD_RUN_PATH
  8848. ;;
  8849. siemens)
  8850. need_lib_prefix=no
  8851. ;;
  8852. motorola)
  8853. need_lib_prefix=no
  8854. need_version=no
  8855. shlibpath_overrides_runpath=no
  8856. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8857. ;;
  8858. esac
  8859. ;;
  8860. sysv4*MP*)
  8861. if test -d /usr/nec ;then
  8862. version_type=linux
  8863. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8864. soname_spec='$libname${shared_ext}.$major'
  8865. shlibpath_var=LD_LIBRARY_PATH
  8866. fi
  8867. ;;
  8868. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8869. version_type=freebsd-elf
  8870. need_lib_prefix=no
  8871. need_version=no
  8872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8873. soname_spec='${libname}${release}${shared_ext}$major'
  8874. shlibpath_var=LD_LIBRARY_PATH
  8875. shlibpath_overrides_runpath=yes
  8876. hardcode_into_libs=yes
  8877. if test "$with_gnu_ld" = yes; then
  8878. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8879. else
  8880. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8881. case $host_os in
  8882. sco3.2v5*)
  8883. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8884. ;;
  8885. esac
  8886. fi
  8887. sys_lib_dlsearch_path_spec='/usr/lib'
  8888. ;;
  8889. tpf*)
  8890. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8891. version_type=linux
  8892. need_lib_prefix=no
  8893. need_version=no
  8894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8895. shlibpath_var=LD_LIBRARY_PATH
  8896. shlibpath_overrides_runpath=no
  8897. hardcode_into_libs=yes
  8898. ;;
  8899. uts4*)
  8900. version_type=linux
  8901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8902. soname_spec='${libname}${release}${shared_ext}$major'
  8903. shlibpath_var=LD_LIBRARY_PATH
  8904. ;;
  8905. *)
  8906. dynamic_linker=no
  8907. ;;
  8908. esac
  8909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8910. $as_echo "$dynamic_linker" >&6; }
  8911. test "$dynamic_linker" = no && can_build_shared=no
  8912. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8913. if test "$GCC" = yes; then
  8914. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8915. fi
  8916. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8917. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8918. fi
  8919. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8920. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8921. fi
  8922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8923. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8924. hardcode_action=
  8925. if test -n "$hardcode_libdir_flag_spec" ||
  8926. test -n "$runpath_var" ||
  8927. test "X$hardcode_automatic" = "Xyes" ; then
  8928. # We can hardcode non-existent directories.
  8929. if test "$hardcode_direct" != no &&
  8930. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8931. # have to relink, otherwise we might link with an installed library
  8932. # when we should be linking with a yet-to-be-installed one
  8933. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8934. test "$hardcode_minus_L" != no; then
  8935. # Linking always hardcodes the temporary library directory.
  8936. hardcode_action=relink
  8937. else
  8938. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8939. hardcode_action=immediate
  8940. fi
  8941. else
  8942. # We cannot hardcode anything, or else we can only hardcode existing
  8943. # directories.
  8944. hardcode_action=unsupported
  8945. fi
  8946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8947. $as_echo "$hardcode_action" >&6; }
  8948. if test "$hardcode_action" = relink ||
  8949. test "$inherit_rpath" = yes; then
  8950. # Fast installation is not supported
  8951. enable_fast_install=no
  8952. elif test "$shlibpath_overrides_runpath" = yes ||
  8953. test "$enable_shared" = no; then
  8954. # Fast installation is not necessary
  8955. enable_fast_install=needless
  8956. fi
  8957. if test "x$enable_dlopen" != xyes; then
  8958. enable_dlopen=unknown
  8959. enable_dlopen_self=unknown
  8960. enable_dlopen_self_static=unknown
  8961. else
  8962. lt_cv_dlopen=no
  8963. lt_cv_dlopen_libs=
  8964. case $host_os in
  8965. beos*)
  8966. lt_cv_dlopen="load_add_on"
  8967. lt_cv_dlopen_libs=
  8968. lt_cv_dlopen_self=yes
  8969. ;;
  8970. mingw* | pw32* | cegcc*)
  8971. lt_cv_dlopen="LoadLibrary"
  8972. lt_cv_dlopen_libs=
  8973. ;;
  8974. cygwin*)
  8975. lt_cv_dlopen="dlopen"
  8976. lt_cv_dlopen_libs=
  8977. ;;
  8978. darwin*)
  8979. # if libdl is installed we need to link against it
  8980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8981. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8982. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8983. $as_echo_n "(cached) " >&6
  8984. else
  8985. ac_check_lib_save_LIBS=$LIBS
  8986. LIBS="-ldl $LIBS"
  8987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8988. /* end confdefs.h. */
  8989. /* Override any GCC internal prototype to avoid an error.
  8990. Use char because int might match the return type of a GCC
  8991. builtin and then its argument prototype would still apply. */
  8992. #ifdef __cplusplus
  8993. extern "C"
  8994. #endif
  8995. char dlopen ();
  8996. int
  8997. main ()
  8998. {
  8999. return dlopen ();
  9000. ;
  9001. return 0;
  9002. }
  9003. _ACEOF
  9004. if ac_fn_c_try_link "$LINENO"; then :
  9005. ac_cv_lib_dl_dlopen=yes
  9006. else
  9007. ac_cv_lib_dl_dlopen=no
  9008. fi
  9009. rm -f core conftest.err conftest.$ac_objext \
  9010. conftest$ac_exeext conftest.$ac_ext
  9011. LIBS=$ac_check_lib_save_LIBS
  9012. fi
  9013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9014. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9015. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9016. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9017. else
  9018. lt_cv_dlopen="dyld"
  9019. lt_cv_dlopen_libs=
  9020. lt_cv_dlopen_self=yes
  9021. fi
  9022. ;;
  9023. *)
  9024. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9025. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9026. lt_cv_dlopen="shl_load"
  9027. else
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9029. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9030. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9031. $as_echo_n "(cached) " >&6
  9032. else
  9033. ac_check_lib_save_LIBS=$LIBS
  9034. LIBS="-ldld $LIBS"
  9035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9036. /* end confdefs.h. */
  9037. /* Override any GCC internal prototype to avoid an error.
  9038. Use char because int might match the return type of a GCC
  9039. builtin and then its argument prototype would still apply. */
  9040. #ifdef __cplusplus
  9041. extern "C"
  9042. #endif
  9043. char shl_load ();
  9044. int
  9045. main ()
  9046. {
  9047. return shl_load ();
  9048. ;
  9049. return 0;
  9050. }
  9051. _ACEOF
  9052. if ac_fn_c_try_link "$LINENO"; then :
  9053. ac_cv_lib_dld_shl_load=yes
  9054. else
  9055. ac_cv_lib_dld_shl_load=no
  9056. fi
  9057. rm -f core conftest.err conftest.$ac_objext \
  9058. conftest$ac_exeext conftest.$ac_ext
  9059. LIBS=$ac_check_lib_save_LIBS
  9060. fi
  9061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9062. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9063. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9064. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9065. else
  9066. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9067. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9068. lt_cv_dlopen="dlopen"
  9069. else
  9070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9071. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9072. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9073. $as_echo_n "(cached) " >&6
  9074. else
  9075. ac_check_lib_save_LIBS=$LIBS
  9076. LIBS="-ldl $LIBS"
  9077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9078. /* end confdefs.h. */
  9079. /* Override any GCC internal prototype to avoid an error.
  9080. Use char because int might match the return type of a GCC
  9081. builtin and then its argument prototype would still apply. */
  9082. #ifdef __cplusplus
  9083. extern "C"
  9084. #endif
  9085. char dlopen ();
  9086. int
  9087. main ()
  9088. {
  9089. return dlopen ();
  9090. ;
  9091. return 0;
  9092. }
  9093. _ACEOF
  9094. if ac_fn_c_try_link "$LINENO"; then :
  9095. ac_cv_lib_dl_dlopen=yes
  9096. else
  9097. ac_cv_lib_dl_dlopen=no
  9098. fi
  9099. rm -f core conftest.err conftest.$ac_objext \
  9100. conftest$ac_exeext conftest.$ac_ext
  9101. LIBS=$ac_check_lib_save_LIBS
  9102. fi
  9103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9104. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9105. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9106. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9107. else
  9108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9109. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9110. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9111. $as_echo_n "(cached) " >&6
  9112. else
  9113. ac_check_lib_save_LIBS=$LIBS
  9114. LIBS="-lsvld $LIBS"
  9115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9116. /* end confdefs.h. */
  9117. /* Override any GCC internal prototype to avoid an error.
  9118. Use char because int might match the return type of a GCC
  9119. builtin and then its argument prototype would still apply. */
  9120. #ifdef __cplusplus
  9121. extern "C"
  9122. #endif
  9123. char dlopen ();
  9124. int
  9125. main ()
  9126. {
  9127. return dlopen ();
  9128. ;
  9129. return 0;
  9130. }
  9131. _ACEOF
  9132. if ac_fn_c_try_link "$LINENO"; then :
  9133. ac_cv_lib_svld_dlopen=yes
  9134. else
  9135. ac_cv_lib_svld_dlopen=no
  9136. fi
  9137. rm -f core conftest.err conftest.$ac_objext \
  9138. conftest$ac_exeext conftest.$ac_ext
  9139. LIBS=$ac_check_lib_save_LIBS
  9140. fi
  9141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9142. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9143. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9144. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9145. else
  9146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9147. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9148. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9149. $as_echo_n "(cached) " >&6
  9150. else
  9151. ac_check_lib_save_LIBS=$LIBS
  9152. LIBS="-ldld $LIBS"
  9153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9154. /* end confdefs.h. */
  9155. /* Override any GCC internal prototype to avoid an error.
  9156. Use char because int might match the return type of a GCC
  9157. builtin and then its argument prototype would still apply. */
  9158. #ifdef __cplusplus
  9159. extern "C"
  9160. #endif
  9161. char dld_link ();
  9162. int
  9163. main ()
  9164. {
  9165. return dld_link ();
  9166. ;
  9167. return 0;
  9168. }
  9169. _ACEOF
  9170. if ac_fn_c_try_link "$LINENO"; then :
  9171. ac_cv_lib_dld_dld_link=yes
  9172. else
  9173. ac_cv_lib_dld_dld_link=no
  9174. fi
  9175. rm -f core conftest.err conftest.$ac_objext \
  9176. conftest$ac_exeext conftest.$ac_ext
  9177. LIBS=$ac_check_lib_save_LIBS
  9178. fi
  9179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9180. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9181. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9182. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9183. fi
  9184. fi
  9185. fi
  9186. fi
  9187. fi
  9188. fi
  9189. ;;
  9190. esac
  9191. if test "x$lt_cv_dlopen" != xno; then
  9192. enable_dlopen=yes
  9193. else
  9194. enable_dlopen=no
  9195. fi
  9196. case $lt_cv_dlopen in
  9197. dlopen)
  9198. save_CPPFLAGS="$CPPFLAGS"
  9199. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9200. save_LDFLAGS="$LDFLAGS"
  9201. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9202. save_LIBS="$LIBS"
  9203. LIBS="$lt_cv_dlopen_libs $LIBS"
  9204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9205. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9206. if test "${lt_cv_dlopen_self+set}" = set; then :
  9207. $as_echo_n "(cached) " >&6
  9208. else
  9209. if test "$cross_compiling" = yes; then :
  9210. lt_cv_dlopen_self=cross
  9211. else
  9212. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9213. lt_status=$lt_dlunknown
  9214. cat > conftest.$ac_ext <<_LT_EOF
  9215. #line 10698 "configure"
  9216. #include "confdefs.h"
  9217. #if HAVE_DLFCN_H
  9218. #include <dlfcn.h>
  9219. #endif
  9220. #include <stdio.h>
  9221. #ifdef RTLD_GLOBAL
  9222. # define LT_DLGLOBAL RTLD_GLOBAL
  9223. #else
  9224. # ifdef DL_GLOBAL
  9225. # define LT_DLGLOBAL DL_GLOBAL
  9226. # else
  9227. # define LT_DLGLOBAL 0
  9228. # endif
  9229. #endif
  9230. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9231. find out it does not work in some platform. */
  9232. #ifndef LT_DLLAZY_OR_NOW
  9233. # ifdef RTLD_LAZY
  9234. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9235. # else
  9236. # ifdef DL_LAZY
  9237. # define LT_DLLAZY_OR_NOW DL_LAZY
  9238. # else
  9239. # ifdef RTLD_NOW
  9240. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9241. # else
  9242. # ifdef DL_NOW
  9243. # define LT_DLLAZY_OR_NOW DL_NOW
  9244. # else
  9245. # define LT_DLLAZY_OR_NOW 0
  9246. # endif
  9247. # endif
  9248. # endif
  9249. # endif
  9250. #endif
  9251. void fnord() { int i=42;}
  9252. int main ()
  9253. {
  9254. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9255. int status = $lt_dlunknown;
  9256. if (self)
  9257. {
  9258. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9259. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9260. /* dlclose (self); */
  9261. }
  9262. else
  9263. puts (dlerror ());
  9264. return status;
  9265. }
  9266. _LT_EOF
  9267. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9268. (eval $ac_link) 2>&5
  9269. ac_status=$?
  9270. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9271. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9272. (./conftest; exit; ) >&5 2>/dev/null
  9273. lt_status=$?
  9274. case x$lt_status in
  9275. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9276. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9277. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9278. esac
  9279. else :
  9280. # compilation failed
  9281. lt_cv_dlopen_self=no
  9282. fi
  9283. fi
  9284. rm -fr conftest*
  9285. fi
  9286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9287. $as_echo "$lt_cv_dlopen_self" >&6; }
  9288. if test "x$lt_cv_dlopen_self" = xyes; then
  9289. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9291. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9292. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9293. $as_echo_n "(cached) " >&6
  9294. else
  9295. if test "$cross_compiling" = yes; then :
  9296. lt_cv_dlopen_self_static=cross
  9297. else
  9298. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9299. lt_status=$lt_dlunknown
  9300. cat > conftest.$ac_ext <<_LT_EOF
  9301. #line 10794 "configure"
  9302. #include "confdefs.h"
  9303. #if HAVE_DLFCN_H
  9304. #include <dlfcn.h>
  9305. #endif
  9306. #include <stdio.h>
  9307. #ifdef RTLD_GLOBAL
  9308. # define LT_DLGLOBAL RTLD_GLOBAL
  9309. #else
  9310. # ifdef DL_GLOBAL
  9311. # define LT_DLGLOBAL DL_GLOBAL
  9312. # else
  9313. # define LT_DLGLOBAL 0
  9314. # endif
  9315. #endif
  9316. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9317. find out it does not work in some platform. */
  9318. #ifndef LT_DLLAZY_OR_NOW
  9319. # ifdef RTLD_LAZY
  9320. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9321. # else
  9322. # ifdef DL_LAZY
  9323. # define LT_DLLAZY_OR_NOW DL_LAZY
  9324. # else
  9325. # ifdef RTLD_NOW
  9326. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9327. # else
  9328. # ifdef DL_NOW
  9329. # define LT_DLLAZY_OR_NOW DL_NOW
  9330. # else
  9331. # define LT_DLLAZY_OR_NOW 0
  9332. # endif
  9333. # endif
  9334. # endif
  9335. # endif
  9336. #endif
  9337. void fnord() { int i=42;}
  9338. int main ()
  9339. {
  9340. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9341. int status = $lt_dlunknown;
  9342. if (self)
  9343. {
  9344. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9345. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9346. /* dlclose (self); */
  9347. }
  9348. else
  9349. puts (dlerror ());
  9350. return status;
  9351. }
  9352. _LT_EOF
  9353. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9354. (eval $ac_link) 2>&5
  9355. ac_status=$?
  9356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9357. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9358. (./conftest; exit; ) >&5 2>/dev/null
  9359. lt_status=$?
  9360. case x$lt_status in
  9361. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9362. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9363. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9364. esac
  9365. else :
  9366. # compilation failed
  9367. lt_cv_dlopen_self_static=no
  9368. fi
  9369. fi
  9370. rm -fr conftest*
  9371. fi
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9373. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9374. fi
  9375. CPPFLAGS="$save_CPPFLAGS"
  9376. LDFLAGS="$save_LDFLAGS"
  9377. LIBS="$save_LIBS"
  9378. ;;
  9379. esac
  9380. case $lt_cv_dlopen_self in
  9381. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9382. *) enable_dlopen_self=unknown ;;
  9383. esac
  9384. case $lt_cv_dlopen_self_static in
  9385. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9386. *) enable_dlopen_self_static=unknown ;;
  9387. esac
  9388. fi
  9389. striplib=
  9390. old_striplib=
  9391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9392. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9393. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9394. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9395. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9397. $as_echo "yes" >&6; }
  9398. else
  9399. # FIXME - insert some real tests, host_os isn't really good enough
  9400. case $host_os in
  9401. darwin*)
  9402. if test -n "$STRIP" ; then
  9403. striplib="$STRIP -x"
  9404. old_striplib="$STRIP -S"
  9405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9406. $as_echo "yes" >&6; }
  9407. else
  9408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9409. $as_echo "no" >&6; }
  9410. fi
  9411. ;;
  9412. *)
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9414. $as_echo "no" >&6; }
  9415. ;;
  9416. esac
  9417. fi
  9418. # Report which library types will actually be built
  9419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9420. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9422. $as_echo "$can_build_shared" >&6; }
  9423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9424. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9425. test "$can_build_shared" = "no" && enable_shared=no
  9426. # On AIX, shared libraries and static libraries use the same namespace, and
  9427. # are all built from PIC.
  9428. case $host_os in
  9429. aix3*)
  9430. test "$enable_shared" = yes && enable_static=no
  9431. if test -n "$RANLIB"; then
  9432. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9433. postinstall_cmds='$RANLIB $lib'
  9434. fi
  9435. ;;
  9436. aix[4-9]*)
  9437. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9438. test "$enable_shared" = yes && enable_static=no
  9439. fi
  9440. ;;
  9441. esac
  9442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9443. $as_echo "$enable_shared" >&6; }
  9444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9445. $as_echo_n "checking whether to build static libraries... " >&6; }
  9446. # Make sure either enable_shared or enable_static is yes.
  9447. test "$enable_shared" = yes || enable_static=yes
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9449. $as_echo "$enable_static" >&6; }
  9450. fi
  9451. ac_ext=c
  9452. ac_cpp='$CPP $CPPFLAGS'
  9453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9456. CC="$lt_save_CC"
  9457. ac_ext=cpp
  9458. ac_cpp='$CXXCPP $CPPFLAGS'
  9459. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9460. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9461. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9462. archive_cmds_need_lc_CXX=no
  9463. allow_undefined_flag_CXX=
  9464. always_export_symbols_CXX=no
  9465. archive_expsym_cmds_CXX=
  9466. compiler_needs_object_CXX=no
  9467. export_dynamic_flag_spec_CXX=
  9468. hardcode_direct_CXX=no
  9469. hardcode_direct_absolute_CXX=no
  9470. hardcode_libdir_flag_spec_CXX=
  9471. hardcode_libdir_flag_spec_ld_CXX=
  9472. hardcode_libdir_separator_CXX=
  9473. hardcode_minus_L_CXX=no
  9474. hardcode_shlibpath_var_CXX=unsupported
  9475. hardcode_automatic_CXX=no
  9476. inherit_rpath_CXX=no
  9477. module_cmds_CXX=
  9478. module_expsym_cmds_CXX=
  9479. link_all_deplibs_CXX=unknown
  9480. old_archive_cmds_CXX=$old_archive_cmds
  9481. no_undefined_flag_CXX=
  9482. whole_archive_flag_spec_CXX=
  9483. enable_shared_with_static_runtimes_CXX=no
  9484. # Source file extension for C++ test sources.
  9485. ac_ext=cpp
  9486. # Object file extension for compiled C++ test sources.
  9487. objext=o
  9488. objext_CXX=$objext
  9489. # No sense in running all these tests if we already determined that
  9490. # the CXX compiler isn't working. Some variables (like enable_shared)
  9491. # are currently assumed to apply to all compilers on this platform,
  9492. # and will be corrupted by setting them based on a non-working compiler.
  9493. if test "$_lt_caught_CXX_error" != yes; then
  9494. # Code to be used in simple compile tests
  9495. lt_simple_compile_test_code="int some_variable = 0;"
  9496. # Code to be used in simple link tests
  9497. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9498. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9499. # If no C compiler was specified, use CC.
  9500. LTCC=${LTCC-"$CC"}
  9501. # If no C compiler flags were specified, use CFLAGS.
  9502. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9503. # Allow CC to be a program name with arguments.
  9504. compiler=$CC
  9505. # save warnings/boilerplate of simple test code
  9506. ac_outfile=conftest.$ac_objext
  9507. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9508. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9509. _lt_compiler_boilerplate=`cat conftest.err`
  9510. $RM conftest*
  9511. ac_outfile=conftest.$ac_objext
  9512. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9513. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9514. _lt_linker_boilerplate=`cat conftest.err`
  9515. $RM -r conftest*
  9516. # Allow CC to be a program name with arguments.
  9517. lt_save_CC=$CC
  9518. lt_save_LD=$LD
  9519. lt_save_GCC=$GCC
  9520. GCC=$GXX
  9521. lt_save_with_gnu_ld=$with_gnu_ld
  9522. lt_save_path_LD=$lt_cv_path_LD
  9523. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9524. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9525. else
  9526. $as_unset lt_cv_prog_gnu_ld
  9527. fi
  9528. if test -n "${lt_cv_path_LDCXX+set}"; then
  9529. lt_cv_path_LD=$lt_cv_path_LDCXX
  9530. else
  9531. $as_unset lt_cv_path_LD
  9532. fi
  9533. test -z "${LDCXX+set}" || LD=$LDCXX
  9534. CC=${CXX-"c++"}
  9535. compiler=$CC
  9536. compiler_CXX=$CC
  9537. for cc_temp in $compiler""; do
  9538. case $cc_temp in
  9539. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9540. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9541. \-*) ;;
  9542. *) break;;
  9543. esac
  9544. done
  9545. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9546. if test -n "$compiler"; then
  9547. # We don't want -fno-exception when compiling C++ code, so set the
  9548. # no_builtin_flag separately
  9549. if test "$GXX" = yes; then
  9550. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9551. else
  9552. lt_prog_compiler_no_builtin_flag_CXX=
  9553. fi
  9554. if test "$GXX" = yes; then
  9555. # Set up default GNU C++ configuration
  9556. # Check whether --with-gnu-ld was given.
  9557. if test "${with_gnu_ld+set}" = set; then :
  9558. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9559. else
  9560. with_gnu_ld=no
  9561. fi
  9562. ac_prog=ld
  9563. if test "$GCC" = yes; then
  9564. # Check if gcc -print-prog-name=ld gives a path.
  9565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9566. $as_echo_n "checking for ld used by $CC... " >&6; }
  9567. case $host in
  9568. *-*-mingw*)
  9569. # gcc leaves a trailing carriage return which upsets mingw
  9570. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9571. *)
  9572. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9573. esac
  9574. case $ac_prog in
  9575. # Accept absolute paths.
  9576. [\\/]* | ?:[\\/]*)
  9577. re_direlt='/[^/][^/]*/\.\./'
  9578. # Canonicalize the pathname of ld
  9579. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9580. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9581. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9582. done
  9583. test -z "$LD" && LD="$ac_prog"
  9584. ;;
  9585. "")
  9586. # If it fails, then pretend we aren't using GCC.
  9587. ac_prog=ld
  9588. ;;
  9589. *)
  9590. # If it is relative, then search for the first ld in PATH.
  9591. with_gnu_ld=unknown
  9592. ;;
  9593. esac
  9594. elif test "$with_gnu_ld" = yes; then
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9596. $as_echo_n "checking for GNU ld... " >&6; }
  9597. else
  9598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9599. $as_echo_n "checking for non-GNU ld... " >&6; }
  9600. fi
  9601. if test "${lt_cv_path_LD+set}" = set; then :
  9602. $as_echo_n "(cached) " >&6
  9603. else
  9604. if test -z "$LD"; then
  9605. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9606. for ac_dir in $PATH; do
  9607. IFS="$lt_save_ifs"
  9608. test -z "$ac_dir" && ac_dir=.
  9609. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9610. lt_cv_path_LD="$ac_dir/$ac_prog"
  9611. # Check to see if the program is GNU ld. I'd rather use --version,
  9612. # but apparently some variants of GNU ld only accept -v.
  9613. # Break only if it was the GNU/non-GNU ld that we prefer.
  9614. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9615. *GNU* | *'with BFD'*)
  9616. test "$with_gnu_ld" != no && break
  9617. ;;
  9618. *)
  9619. test "$with_gnu_ld" != yes && break
  9620. ;;
  9621. esac
  9622. fi
  9623. done
  9624. IFS="$lt_save_ifs"
  9625. else
  9626. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9627. fi
  9628. fi
  9629. LD="$lt_cv_path_LD"
  9630. if test -n "$LD"; then
  9631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9632. $as_echo "$LD" >&6; }
  9633. else
  9634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9635. $as_echo "no" >&6; }
  9636. fi
  9637. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9639. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9640. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  9641. $as_echo_n "(cached) " >&6
  9642. else
  9643. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9644. case `$LD -v 2>&1 </dev/null` in
  9645. *GNU* | *'with BFD'*)
  9646. lt_cv_prog_gnu_ld=yes
  9647. ;;
  9648. *)
  9649. lt_cv_prog_gnu_ld=no
  9650. ;;
  9651. esac
  9652. fi
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9654. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9655. with_gnu_ld=$lt_cv_prog_gnu_ld
  9656. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9657. # archiving commands below assume that GNU ld is being used.
  9658. if test "$with_gnu_ld" = yes; then
  9659. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9660. 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'
  9661. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9662. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9663. # If archive_cmds runs LD, not CC, wlarc should be empty
  9664. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9665. # investigate it a little bit more. (MM)
  9666. wlarc='${wl}'
  9667. # ancient GNU ld didn't support --whole-archive et. al.
  9668. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9669. $GREP 'no-whole-archive' > /dev/null; then
  9670. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9671. else
  9672. whole_archive_flag_spec_CXX=
  9673. fi
  9674. else
  9675. with_gnu_ld=no
  9676. wlarc=
  9677. # A generic and very simple default shared library creation
  9678. # command for GNU C++ for the case where it uses the native
  9679. # linker, instead of GNU ld. If possible, this setting should
  9680. # overridden to take advantage of the native linker features on
  9681. # the platform it is being used on.
  9682. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9683. fi
  9684. # Commands to make compiler produce verbose output that lists
  9685. # what "hidden" libraries, object files and flags are used when
  9686. # linking a shared library.
  9687. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9688. else
  9689. GXX=no
  9690. with_gnu_ld=no
  9691. wlarc=
  9692. fi
  9693. # PORTME: fill in a description of your system's C++ link characteristics
  9694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9695. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9696. ld_shlibs_CXX=yes
  9697. case $host_os in
  9698. aix3*)
  9699. # FIXME: insert proper C++ library support
  9700. ld_shlibs_CXX=no
  9701. ;;
  9702. aix[4-9]*)
  9703. if test "$host_cpu" = ia64; then
  9704. # On IA64, the linker does run time linking by default, so we don't
  9705. # have to do anything special.
  9706. aix_use_runtimelinking=no
  9707. exp_sym_flag='-Bexport'
  9708. no_entry_flag=""
  9709. else
  9710. aix_use_runtimelinking=no
  9711. # Test if we are trying to use run time linking or normal
  9712. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9713. # need to do runtime linking.
  9714. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9715. for ld_flag in $LDFLAGS; do
  9716. case $ld_flag in
  9717. *-brtl*)
  9718. aix_use_runtimelinking=yes
  9719. break
  9720. ;;
  9721. esac
  9722. done
  9723. ;;
  9724. esac
  9725. exp_sym_flag='-bexport'
  9726. no_entry_flag='-bnoentry'
  9727. fi
  9728. # When large executables or shared objects are built, AIX ld can
  9729. # have problems creating the table of contents. If linking a library
  9730. # or program results in "error TOC overflow" add -mminimal-toc to
  9731. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9732. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9733. archive_cmds_CXX=''
  9734. hardcode_direct_CXX=yes
  9735. hardcode_direct_absolute_CXX=yes
  9736. hardcode_libdir_separator_CXX=':'
  9737. link_all_deplibs_CXX=yes
  9738. file_list_spec_CXX='${wl}-f,'
  9739. if test "$GXX" = yes; then
  9740. case $host_os in aix4.[012]|aix4.[012].*)
  9741. # We only want to do this on AIX 4.2 and lower, the check
  9742. # below for broken collect2 doesn't work under 4.3+
  9743. collect2name=`${CC} -print-prog-name=collect2`
  9744. if test -f "$collect2name" &&
  9745. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9746. then
  9747. # We have reworked collect2
  9748. :
  9749. else
  9750. # We have old collect2
  9751. hardcode_direct_CXX=unsupported
  9752. # It fails to find uninstalled libraries when the uninstalled
  9753. # path is not listed in the libpath. Setting hardcode_minus_L
  9754. # to unsupported forces relinking
  9755. hardcode_minus_L_CXX=yes
  9756. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9757. hardcode_libdir_separator_CXX=
  9758. fi
  9759. esac
  9760. shared_flag='-shared'
  9761. if test "$aix_use_runtimelinking" = yes; then
  9762. shared_flag="$shared_flag "'${wl}-G'
  9763. fi
  9764. else
  9765. # not using gcc
  9766. if test "$host_cpu" = ia64; then
  9767. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9768. # chokes on -Wl,-G. The following line is correct:
  9769. shared_flag='-G'
  9770. else
  9771. if test "$aix_use_runtimelinking" = yes; then
  9772. shared_flag='${wl}-G'
  9773. else
  9774. shared_flag='${wl}-bM:SRE'
  9775. fi
  9776. fi
  9777. fi
  9778. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  9779. # It seems that -bexpall does not export symbols beginning with
  9780. # underscore (_), so it is better to generate a list of symbols to
  9781. # export.
  9782. always_export_symbols_CXX=yes
  9783. if test "$aix_use_runtimelinking" = yes; then
  9784. # Warning - without using the other runtime loading flags (-brtl),
  9785. # -berok will link without error, but may produce a broken library.
  9786. allow_undefined_flag_CXX='-berok'
  9787. # Determine the default libpath from the value encoded in an empty
  9788. # executable.
  9789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9790. /* end confdefs.h. */
  9791. int
  9792. main ()
  9793. {
  9794. ;
  9795. return 0;
  9796. }
  9797. _ACEOF
  9798. if ac_fn_cxx_try_link "$LINENO"; then :
  9799. lt_aix_libpath_sed='
  9800. /Import File Strings/,/^$/ {
  9801. /^0/ {
  9802. s/^0 *\(.*\)$/\1/
  9803. p
  9804. }
  9805. }'
  9806. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9807. # Check for a 64-bit object if we didn't find anything.
  9808. if test -z "$aix_libpath"; then
  9809. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9810. fi
  9811. fi
  9812. rm -f core conftest.err conftest.$ac_objext \
  9813. conftest$ac_exeext conftest.$ac_ext
  9814. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9815. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9816. 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"
  9817. else
  9818. if test "$host_cpu" = ia64; then
  9819. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9820. allow_undefined_flag_CXX="-z nodefs"
  9821. 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"
  9822. else
  9823. # Determine the default libpath from the value encoded in an
  9824. # empty executable.
  9825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9826. /* end confdefs.h. */
  9827. int
  9828. main ()
  9829. {
  9830. ;
  9831. return 0;
  9832. }
  9833. _ACEOF
  9834. if ac_fn_cxx_try_link "$LINENO"; then :
  9835. lt_aix_libpath_sed='
  9836. /Import File Strings/,/^$/ {
  9837. /^0/ {
  9838. s/^0 *\(.*\)$/\1/
  9839. p
  9840. }
  9841. }'
  9842. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9843. # Check for a 64-bit object if we didn't find anything.
  9844. if test -z "$aix_libpath"; then
  9845. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9846. fi
  9847. fi
  9848. rm -f core conftest.err conftest.$ac_objext \
  9849. conftest$ac_exeext conftest.$ac_ext
  9850. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9851. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9852. # Warning - without using the other run time loading flags,
  9853. # -berok will link without error, but may produce a broken library.
  9854. no_undefined_flag_CXX=' ${wl}-bernotok'
  9855. allow_undefined_flag_CXX=' ${wl}-berok'
  9856. # Exported symbols can be pulled into shared objects from archives
  9857. whole_archive_flag_spec_CXX='$convenience'
  9858. archive_cmds_need_lc_CXX=yes
  9859. # This is similar to how AIX traditionally builds its shared
  9860. # libraries.
  9861. 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'
  9862. fi
  9863. fi
  9864. ;;
  9865. beos*)
  9866. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9867. allow_undefined_flag_CXX=unsupported
  9868. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9869. # support --undefined. This deserves some investigation. FIXME
  9870. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9871. else
  9872. ld_shlibs_CXX=no
  9873. fi
  9874. ;;
  9875. chorus*)
  9876. case $cc_basename in
  9877. *)
  9878. # FIXME: insert proper C++ library support
  9879. ld_shlibs_CXX=no
  9880. ;;
  9881. esac
  9882. ;;
  9883. cygwin* | mingw* | pw32* | cegcc*)
  9884. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9885. # as there is no search path for DLLs.
  9886. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9887. allow_undefined_flag_CXX=unsupported
  9888. always_export_symbols_CXX=no
  9889. enable_shared_with_static_runtimes_CXX=yes
  9890. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9891. 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'
  9892. # If the export-symbols file already is a .def file (1st line
  9893. # is EXPORTS), use it as is; otherwise, prepend...
  9894. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9895. cp $export_symbols $output_objdir/$soname.def;
  9896. else
  9897. echo EXPORTS > $output_objdir/$soname.def;
  9898. cat $export_symbols >> $output_objdir/$soname.def;
  9899. fi~
  9900. $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'
  9901. else
  9902. ld_shlibs_CXX=no
  9903. fi
  9904. ;;
  9905. darwin* | rhapsody*)
  9906. archive_cmds_need_lc_CXX=no
  9907. hardcode_direct_CXX=no
  9908. hardcode_automatic_CXX=yes
  9909. hardcode_shlibpath_var_CXX=unsupported
  9910. whole_archive_flag_spec_CXX=''
  9911. link_all_deplibs_CXX=yes
  9912. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  9913. case $cc_basename in
  9914. ifort*) _lt_dar_can_shared=yes ;;
  9915. *) _lt_dar_can_shared=$GCC ;;
  9916. esac
  9917. if test "$_lt_dar_can_shared" = "yes"; then
  9918. output_verbose_link_cmd=echo
  9919. 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}"
  9920. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9921. 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}"
  9922. 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}"
  9923. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  9924. 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}"
  9925. 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}"
  9926. fi
  9927. else
  9928. ld_shlibs_CXX=no
  9929. fi
  9930. ;;
  9931. dgux*)
  9932. case $cc_basename in
  9933. ec++*)
  9934. # FIXME: insert proper C++ library support
  9935. ld_shlibs_CXX=no
  9936. ;;
  9937. ghcx*)
  9938. # Green Hills C++ Compiler
  9939. # FIXME: insert proper C++ library support
  9940. ld_shlibs_CXX=no
  9941. ;;
  9942. *)
  9943. # FIXME: insert proper C++ library support
  9944. ld_shlibs_CXX=no
  9945. ;;
  9946. esac
  9947. ;;
  9948. freebsd[12]*)
  9949. # C++ shared libraries reported to be fairly broken before
  9950. # switch to ELF
  9951. ld_shlibs_CXX=no
  9952. ;;
  9953. freebsd-elf*)
  9954. archive_cmds_need_lc_CXX=no
  9955. ;;
  9956. freebsd* | dragonfly*)
  9957. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9958. # conventions
  9959. ld_shlibs_CXX=yes
  9960. ;;
  9961. gnu*)
  9962. ;;
  9963. hpux9*)
  9964. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9965. hardcode_libdir_separator_CXX=:
  9966. export_dynamic_flag_spec_CXX='${wl}-E'
  9967. hardcode_direct_CXX=yes
  9968. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9969. # but as the default
  9970. # location of the library.
  9971. case $cc_basename in
  9972. CC*)
  9973. # FIXME: insert proper C++ library support
  9974. ld_shlibs_CXX=no
  9975. ;;
  9976. aCC*)
  9977. 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'
  9978. # Commands to make compiler produce verbose output that lists
  9979. # what "hidden" libraries, object files and flags are used when
  9980. # linking a shared library.
  9981. #
  9982. # There doesn't appear to be a way to prevent this compiler from
  9983. # explicitly linking system object files so we need to strip them
  9984. # from the output so that they don't get included in the library
  9985. # dependencies.
  9986. 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'
  9987. ;;
  9988. *)
  9989. if test "$GXX" = yes; then
  9990. 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'
  9991. else
  9992. # FIXME: insert proper C++ library support
  9993. ld_shlibs_CXX=no
  9994. fi
  9995. ;;
  9996. esac
  9997. ;;
  9998. hpux10*|hpux11*)
  9999. if test $with_gnu_ld = no; then
  10000. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10001. hardcode_libdir_separator_CXX=:
  10002. case $host_cpu in
  10003. hppa*64*|ia64*)
  10004. ;;
  10005. *)
  10006. export_dynamic_flag_spec_CXX='${wl}-E'
  10007. ;;
  10008. esac
  10009. fi
  10010. case $host_cpu in
  10011. hppa*64*|ia64*)
  10012. hardcode_direct_CXX=no
  10013. hardcode_shlibpath_var_CXX=no
  10014. ;;
  10015. *)
  10016. hardcode_direct_CXX=yes
  10017. hardcode_direct_absolute_CXX=yes
  10018. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10019. # but as the default
  10020. # location of the library.
  10021. ;;
  10022. esac
  10023. case $cc_basename in
  10024. CC*)
  10025. # FIXME: insert proper C++ library support
  10026. ld_shlibs_CXX=no
  10027. ;;
  10028. aCC*)
  10029. case $host_cpu in
  10030. hppa*64*)
  10031. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10032. ;;
  10033. ia64*)
  10034. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10035. ;;
  10036. *)
  10037. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10038. ;;
  10039. esac
  10040. # Commands to make compiler produce verbose output that lists
  10041. # what "hidden" libraries, object files and flags are used when
  10042. # linking a shared library.
  10043. #
  10044. # There doesn't appear to be a way to prevent this compiler from
  10045. # explicitly linking system object files so we need to strip them
  10046. # from the output so that they don't get included in the library
  10047. # dependencies.
  10048. 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'
  10049. ;;
  10050. *)
  10051. if test "$GXX" = yes; then
  10052. if test $with_gnu_ld = no; then
  10053. case $host_cpu in
  10054. hppa*64*)
  10055. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10056. ;;
  10057. ia64*)
  10058. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10059. ;;
  10060. *)
  10061. 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'
  10062. ;;
  10063. esac
  10064. fi
  10065. else
  10066. # FIXME: insert proper C++ library support
  10067. ld_shlibs_CXX=no
  10068. fi
  10069. ;;
  10070. esac
  10071. ;;
  10072. interix[3-9]*)
  10073. hardcode_direct_CXX=no
  10074. hardcode_shlibpath_var_CXX=no
  10075. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10076. export_dynamic_flag_spec_CXX='${wl}-E'
  10077. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10078. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10079. # default) and relocated if they conflict, which is a slow very memory
  10080. # consuming and fragmenting process. To avoid this, we pick a random,
  10081. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10082. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10083. 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'
  10084. 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'
  10085. ;;
  10086. irix5* | irix6*)
  10087. case $cc_basename in
  10088. CC*)
  10089. # SGI C++
  10090. 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'
  10091. # Archives containing C++ object files must be created using
  10092. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10093. # necessary to make sure instantiated templates are included
  10094. # in the archive.
  10095. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10096. ;;
  10097. *)
  10098. if test "$GXX" = yes; then
  10099. if test "$with_gnu_ld" = no; then
  10100. 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'
  10101. else
  10102. 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'
  10103. fi
  10104. fi
  10105. link_all_deplibs_CXX=yes
  10106. ;;
  10107. esac
  10108. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10109. hardcode_libdir_separator_CXX=:
  10110. inherit_rpath_CXX=yes
  10111. ;;
  10112. linux* | k*bsd*-gnu)
  10113. case $cc_basename in
  10114. KCC*)
  10115. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10116. # KCC will only create a shared library if the output file
  10117. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10118. # to its proper name (with version) after linking.
  10119. 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'
  10120. 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'
  10121. # Commands to make compiler produce verbose output that lists
  10122. # what "hidden" libraries, object files and flags are used when
  10123. # linking a shared library.
  10124. #
  10125. # There doesn't appear to be a way to prevent this compiler from
  10126. # explicitly linking system object files so we need to strip them
  10127. # from the output so that they don't get included in the library
  10128. # dependencies.
  10129. 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'
  10130. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10131. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10132. # Archives containing C++ object files must be created using
  10133. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10134. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10135. ;;
  10136. icpc* | ecpc* )
  10137. # Intel C++
  10138. with_gnu_ld=yes
  10139. # version 8.0 and above of icpc choke on multiply defined symbols
  10140. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10141. # earlier do not add the objects themselves.
  10142. case `$CC -V 2>&1` in
  10143. *"Version 7."*)
  10144. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10145. 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'
  10146. ;;
  10147. *) # Version 8.0 or newer
  10148. tmp_idyn=
  10149. case $host_cpu in
  10150. ia64*) tmp_idyn=' -i_dynamic';;
  10151. esac
  10152. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10153. 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'
  10154. ;;
  10155. esac
  10156. archive_cmds_need_lc_CXX=no
  10157. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10158. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10159. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10160. ;;
  10161. pgCC* | pgcpp*)
  10162. # Portland Group C++ compiler
  10163. case `$CC -V` in
  10164. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10165. prelink_cmds_CXX='tpldir=Template.dir~
  10166. rm -rf $tpldir~
  10167. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10168. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10169. old_archive_cmds_CXX='tpldir=Template.dir~
  10170. rm -rf $tpldir~
  10171. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10172. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10173. $RANLIB $oldlib'
  10174. archive_cmds_CXX='tpldir=Template.dir~
  10175. rm -rf $tpldir~
  10176. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10177. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10178. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10179. rm -rf $tpldir~
  10180. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10181. $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'
  10182. ;;
  10183. *) # Version 6 will use weak symbols
  10184. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10185. 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'
  10186. ;;
  10187. esac
  10188. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10189. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10190. 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'
  10191. ;;
  10192. cxx*)
  10193. # Compaq C++
  10194. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10195. 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'
  10196. runpath_var=LD_RUN_PATH
  10197. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10198. hardcode_libdir_separator_CXX=:
  10199. # Commands to make compiler produce verbose output that lists
  10200. # what "hidden" libraries, object files and flags are used when
  10201. # linking a shared library.
  10202. #
  10203. # There doesn't appear to be a way to prevent this compiler from
  10204. # explicitly linking system object files so we need to strip them
  10205. # from the output so that they don't get included in the library
  10206. # dependencies.
  10207. 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'
  10208. ;;
  10209. xl*)
  10210. # IBM XL 8.0 on PPC, with GNU ld
  10211. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10212. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10213. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10214. if test "x$supports_anon_versioning" = xyes; then
  10215. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10216. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10217. echo "local: *; };" >> $output_objdir/$libname.ver~
  10218. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10219. fi
  10220. ;;
  10221. *)
  10222. case `$CC -V 2>&1 | sed 5q` in
  10223. *Sun\ C*)
  10224. # Sun C++ 5.9
  10225. no_undefined_flag_CXX=' -zdefs'
  10226. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10227. 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'
  10228. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10229. 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'
  10230. compiler_needs_object_CXX=yes
  10231. # Not sure whether something based on
  10232. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10233. # would be better.
  10234. output_verbose_link_cmd='echo'
  10235. # Archives containing C++ object files must be created using
  10236. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10237. # necessary to make sure instantiated templates are included
  10238. # in the archive.
  10239. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10240. ;;
  10241. esac
  10242. ;;
  10243. esac
  10244. ;;
  10245. lynxos*)
  10246. # FIXME: insert proper C++ library support
  10247. ld_shlibs_CXX=no
  10248. ;;
  10249. m88k*)
  10250. # FIXME: insert proper C++ library support
  10251. ld_shlibs_CXX=no
  10252. ;;
  10253. mvs*)
  10254. case $cc_basename in
  10255. cxx*)
  10256. # FIXME: insert proper C++ library support
  10257. ld_shlibs_CXX=no
  10258. ;;
  10259. *)
  10260. # FIXME: insert proper C++ library support
  10261. ld_shlibs_CXX=no
  10262. ;;
  10263. esac
  10264. ;;
  10265. netbsd*)
  10266. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10267. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10268. wlarc=
  10269. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10270. hardcode_direct_CXX=yes
  10271. hardcode_shlibpath_var_CXX=no
  10272. fi
  10273. # Workaround some broken pre-1.5 toolchains
  10274. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10275. ;;
  10276. *nto* | *qnx*)
  10277. ld_shlibs_CXX=yes
  10278. ;;
  10279. openbsd2*)
  10280. # C++ shared libraries are fairly broken
  10281. ld_shlibs_CXX=no
  10282. ;;
  10283. openbsd*)
  10284. if test -f /usr/libexec/ld.so; then
  10285. hardcode_direct_CXX=yes
  10286. hardcode_shlibpath_var_CXX=no
  10287. hardcode_direct_absolute_CXX=yes
  10288. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10289. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10290. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10291. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10292. export_dynamic_flag_spec_CXX='${wl}-E'
  10293. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10294. fi
  10295. output_verbose_link_cmd=echo
  10296. else
  10297. ld_shlibs_CXX=no
  10298. fi
  10299. ;;
  10300. osf3* | osf4* | osf5*)
  10301. case $cc_basename in
  10302. KCC*)
  10303. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10304. # KCC will only create a shared library if the output file
  10305. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10306. # to its proper name (with version) after linking.
  10307. 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'
  10308. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10309. hardcode_libdir_separator_CXX=:
  10310. # Archives containing C++ object files must be created using
  10311. # the KAI C++ compiler.
  10312. case $host in
  10313. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10314. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10315. esac
  10316. ;;
  10317. RCC*)
  10318. # Rational C++ 2.4.1
  10319. # FIXME: insert proper C++ library support
  10320. ld_shlibs_CXX=no
  10321. ;;
  10322. cxx*)
  10323. case $host in
  10324. osf3*)
  10325. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10326. 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'
  10327. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10328. ;;
  10329. *)
  10330. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10331. 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'
  10332. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10333. echo "-hidden">> $lib.exp~
  10334. $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~
  10335. $RM $lib.exp'
  10336. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10337. ;;
  10338. esac
  10339. hardcode_libdir_separator_CXX=:
  10340. # Commands to make compiler produce verbose output that lists
  10341. # what "hidden" libraries, object files and flags are used when
  10342. # linking a shared library.
  10343. #
  10344. # There doesn't appear to be a way to prevent this compiler from
  10345. # explicitly linking system object files so we need to strip them
  10346. # from the output so that they don't get included in the library
  10347. # dependencies.
  10348. 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'
  10349. ;;
  10350. *)
  10351. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10352. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10353. case $host in
  10354. osf3*)
  10355. 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'
  10356. ;;
  10357. *)
  10358. 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'
  10359. ;;
  10360. esac
  10361. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10362. hardcode_libdir_separator_CXX=:
  10363. # Commands to make compiler produce verbose output that lists
  10364. # what "hidden" libraries, object files and flags are used when
  10365. # linking a shared library.
  10366. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10367. else
  10368. # FIXME: insert proper C++ library support
  10369. ld_shlibs_CXX=no
  10370. fi
  10371. ;;
  10372. esac
  10373. ;;
  10374. psos*)
  10375. # FIXME: insert proper C++ library support
  10376. ld_shlibs_CXX=no
  10377. ;;
  10378. sunos4*)
  10379. case $cc_basename in
  10380. CC*)
  10381. # Sun C++ 4.x
  10382. # FIXME: insert proper C++ library support
  10383. ld_shlibs_CXX=no
  10384. ;;
  10385. lcc*)
  10386. # Lucid
  10387. # FIXME: insert proper C++ library support
  10388. ld_shlibs_CXX=no
  10389. ;;
  10390. *)
  10391. # FIXME: insert proper C++ library support
  10392. ld_shlibs_CXX=no
  10393. ;;
  10394. esac
  10395. ;;
  10396. solaris*)
  10397. case $cc_basename in
  10398. CC*)
  10399. # Sun C++ 4.2, 5.x and Centerline C++
  10400. archive_cmds_need_lc_CXX=yes
  10401. no_undefined_flag_CXX=' -zdefs'
  10402. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10403. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10404. $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'
  10405. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10406. hardcode_shlibpath_var_CXX=no
  10407. case $host_os in
  10408. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10409. *)
  10410. # The compiler driver will combine and reorder linker options,
  10411. # but understands `-z linker_flag'.
  10412. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10413. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10414. ;;
  10415. esac
  10416. link_all_deplibs_CXX=yes
  10417. output_verbose_link_cmd='echo'
  10418. # Archives containing C++ object files must be created using
  10419. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10420. # necessary to make sure instantiated templates are included
  10421. # in the archive.
  10422. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10423. ;;
  10424. gcx*)
  10425. # Green Hills C++ Compiler
  10426. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10427. # The C++ compiler must be used to create the archive.
  10428. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10429. ;;
  10430. *)
  10431. # GNU C++ compiler with Solaris linker
  10432. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10433. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10434. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10435. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10436. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10437. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10438. # Commands to make compiler produce verbose output that lists
  10439. # what "hidden" libraries, object files and flags are used when
  10440. # linking a shared library.
  10441. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10442. else
  10443. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10444. # platform.
  10445. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10446. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10447. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10448. # Commands to make compiler produce verbose output that lists
  10449. # what "hidden" libraries, object files and flags are used when
  10450. # linking a shared library.
  10451. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10452. fi
  10453. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10454. case $host_os in
  10455. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10456. *)
  10457. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10458. ;;
  10459. esac
  10460. fi
  10461. ;;
  10462. esac
  10463. ;;
  10464. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10465. no_undefined_flag_CXX='${wl}-z,text'
  10466. archive_cmds_need_lc_CXX=no
  10467. hardcode_shlibpath_var_CXX=no
  10468. runpath_var='LD_RUN_PATH'
  10469. case $cc_basename in
  10470. CC*)
  10471. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10472. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10473. ;;
  10474. *)
  10475. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10476. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10477. ;;
  10478. esac
  10479. ;;
  10480. sysv5* | sco3.2v5* | sco5v6*)
  10481. # Note: We can NOT use -z defs as we might desire, because we do not
  10482. # link with -lc, and that would cause any symbols used from libc to
  10483. # always be unresolved, which means just about no library would
  10484. # ever link correctly. If we're not using GNU ld we use -z text
  10485. # though, which does catch some bad symbols but isn't as heavy-handed
  10486. # as -z defs.
  10487. no_undefined_flag_CXX='${wl}-z,text'
  10488. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10489. archive_cmds_need_lc_CXX=no
  10490. hardcode_shlibpath_var_CXX=no
  10491. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10492. hardcode_libdir_separator_CXX=':'
  10493. link_all_deplibs_CXX=yes
  10494. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10495. runpath_var='LD_RUN_PATH'
  10496. case $cc_basename in
  10497. CC*)
  10498. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10499. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10500. ;;
  10501. *)
  10502. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10503. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10504. ;;
  10505. esac
  10506. ;;
  10507. tandem*)
  10508. case $cc_basename in
  10509. NCC*)
  10510. # NonStop-UX NCC 3.20
  10511. # FIXME: insert proper C++ library support
  10512. ld_shlibs_CXX=no
  10513. ;;
  10514. *)
  10515. # FIXME: insert proper C++ library support
  10516. ld_shlibs_CXX=no
  10517. ;;
  10518. esac
  10519. ;;
  10520. vxworks*)
  10521. # FIXME: insert proper C++ library support
  10522. ld_shlibs_CXX=no
  10523. ;;
  10524. *)
  10525. # FIXME: insert proper C++ library support
  10526. ld_shlibs_CXX=no
  10527. ;;
  10528. esac
  10529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10530. $as_echo "$ld_shlibs_CXX" >&6; }
  10531. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10532. GCC_CXX="$GXX"
  10533. LD_CXX="$LD"
  10534. ## CAVEAT EMPTOR:
  10535. ## There is no encapsulation within the following macros, do not change
  10536. ## the running order or otherwise move them around unless you know exactly
  10537. ## what you are doing...
  10538. # Dependencies to place before and after the object being linked:
  10539. predep_objects_CXX=
  10540. postdep_objects_CXX=
  10541. predeps_CXX=
  10542. postdeps_CXX=
  10543. compiler_lib_search_path_CXX=
  10544. cat > conftest.$ac_ext <<_LT_EOF
  10545. class Foo
  10546. {
  10547. public:
  10548. Foo (void) { a = 0; }
  10549. private:
  10550. int a;
  10551. };
  10552. _LT_EOF
  10553. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10554. (eval $ac_compile) 2>&5
  10555. ac_status=$?
  10556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10557. test $ac_status = 0; }; then
  10558. # Parse the compiler output and extract the necessary
  10559. # objects, libraries and library flags.
  10560. # Sentinel used to keep track of whether or not we are before
  10561. # the conftest object file.
  10562. pre_test_object_deps_done=no
  10563. for p in `eval "$output_verbose_link_cmd"`; do
  10564. case $p in
  10565. -L* | -R* | -l*)
  10566. # Some compilers place space between "-{L,R}" and the path.
  10567. # Remove the space.
  10568. if test $p = "-L" ||
  10569. test $p = "-R"; then
  10570. prev=$p
  10571. continue
  10572. else
  10573. prev=
  10574. fi
  10575. if test "$pre_test_object_deps_done" = no; then
  10576. case $p in
  10577. -L* | -R*)
  10578. # Internal compiler library paths should come after those
  10579. # provided the user. The postdeps already come after the
  10580. # user supplied libs so there is no need to process them.
  10581. if test -z "$compiler_lib_search_path_CXX"; then
  10582. compiler_lib_search_path_CXX="${prev}${p}"
  10583. else
  10584. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10585. fi
  10586. ;;
  10587. # The "-l" case would never come before the object being
  10588. # linked, so don't bother handling this case.
  10589. esac
  10590. else
  10591. if test -z "$postdeps_CXX"; then
  10592. postdeps_CXX="${prev}${p}"
  10593. else
  10594. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10595. fi
  10596. fi
  10597. ;;
  10598. *.$objext)
  10599. # This assumes that the test object file only shows up
  10600. # once in the compiler output.
  10601. if test "$p" = "conftest.$objext"; then
  10602. pre_test_object_deps_done=yes
  10603. continue
  10604. fi
  10605. if test "$pre_test_object_deps_done" = no; then
  10606. if test -z "$predep_objects_CXX"; then
  10607. predep_objects_CXX="$p"
  10608. else
  10609. predep_objects_CXX="$predep_objects_CXX $p"
  10610. fi
  10611. else
  10612. if test -z "$postdep_objects_CXX"; then
  10613. postdep_objects_CXX="$p"
  10614. else
  10615. postdep_objects_CXX="$postdep_objects_CXX $p"
  10616. fi
  10617. fi
  10618. ;;
  10619. *) ;; # Ignore the rest.
  10620. esac
  10621. done
  10622. # Clean up.
  10623. rm -f a.out a.exe
  10624. else
  10625. echo "libtool.m4: error: problem compiling CXX test program"
  10626. fi
  10627. $RM -f confest.$objext
  10628. # PORTME: override above test on systems where it is broken
  10629. case $host_os in
  10630. interix[3-9]*)
  10631. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10632. # hack all around it, let's just trust "g++" to DTRT.
  10633. predep_objects_CXX=
  10634. postdep_objects_CXX=
  10635. postdeps_CXX=
  10636. ;;
  10637. linux*)
  10638. case `$CC -V 2>&1 | sed 5q` in
  10639. *Sun\ C*)
  10640. # Sun C++ 5.9
  10641. # The more standards-conforming stlport4 library is
  10642. # incompatible with the Cstd library. Avoid specifying
  10643. # it if it's in CXXFLAGS. Ignore libCrun as
  10644. # -library=stlport4 depends on it.
  10645. case " $CXX $CXXFLAGS " in
  10646. *" -library=stlport4 "*)
  10647. solaris_use_stlport4=yes
  10648. ;;
  10649. esac
  10650. if test "$solaris_use_stlport4" != yes; then
  10651. postdeps_CXX='-library=Cstd -library=Crun'
  10652. fi
  10653. ;;
  10654. esac
  10655. ;;
  10656. solaris*)
  10657. case $cc_basename in
  10658. CC*)
  10659. # The more standards-conforming stlport4 library is
  10660. # incompatible with the Cstd library. Avoid specifying
  10661. # it if it's in CXXFLAGS. Ignore libCrun as
  10662. # -library=stlport4 depends on it.
  10663. case " $CXX $CXXFLAGS " in
  10664. *" -library=stlport4 "*)
  10665. solaris_use_stlport4=yes
  10666. ;;
  10667. esac
  10668. # Adding this requires a known-good setup of shared libraries for
  10669. # Sun compiler versions before 5.6, else PIC objects from an old
  10670. # archive will be linked into the output, leading to subtle bugs.
  10671. if test "$solaris_use_stlport4" != yes; then
  10672. postdeps_CXX='-library=Cstd -library=Crun'
  10673. fi
  10674. ;;
  10675. esac
  10676. ;;
  10677. esac
  10678. case " $postdeps_CXX " in
  10679. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10680. esac
  10681. compiler_lib_search_dirs_CXX=
  10682. if test -n "${compiler_lib_search_path_CXX}"; then
  10683. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10684. fi
  10685. lt_prog_compiler_wl_CXX=
  10686. lt_prog_compiler_pic_CXX=
  10687. lt_prog_compiler_static_CXX=
  10688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10689. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10690. # C++ specific cases for pic, static, wl, etc.
  10691. if test "$GXX" = yes; then
  10692. lt_prog_compiler_wl_CXX='-Wl,'
  10693. lt_prog_compiler_static_CXX='-static'
  10694. case $host_os in
  10695. aix*)
  10696. # All AIX code is PIC.
  10697. if test "$host_cpu" = ia64; then
  10698. # AIX 5 now supports IA64 processor
  10699. lt_prog_compiler_static_CXX='-Bstatic'
  10700. fi
  10701. ;;
  10702. amigaos*)
  10703. case $host_cpu in
  10704. powerpc)
  10705. # see comment about AmigaOS4 .so support
  10706. lt_prog_compiler_pic_CXX='-fPIC'
  10707. ;;
  10708. m68k)
  10709. # FIXME: we need at least 68020 code to build shared libraries, but
  10710. # adding the `-m68020' flag to GCC prevents building anything better,
  10711. # like `-m68040'.
  10712. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10713. ;;
  10714. esac
  10715. ;;
  10716. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10717. # PIC is the default for these OSes.
  10718. ;;
  10719. mingw* | cygwin* | os2* | pw32* | cegcc*)
  10720. # This hack is so that the source file can tell whether it is being
  10721. # built for inclusion in a dll (and should export symbols for example).
  10722. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10723. # (--disable-auto-import) libraries
  10724. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10725. ;;
  10726. darwin* | rhapsody*)
  10727. # PIC is the default on this platform
  10728. # Common symbols not allowed in MH_DYLIB files
  10729. lt_prog_compiler_pic_CXX='-fno-common'
  10730. ;;
  10731. *djgpp*)
  10732. # DJGPP does not support shared libraries at all
  10733. lt_prog_compiler_pic_CXX=
  10734. ;;
  10735. interix[3-9]*)
  10736. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10737. # Instead, we relocate shared libraries at runtime.
  10738. ;;
  10739. sysv4*MP*)
  10740. if test -d /usr/nec; then
  10741. lt_prog_compiler_pic_CXX=-Kconform_pic
  10742. fi
  10743. ;;
  10744. hpux*)
  10745. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10746. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10747. # sets the default TLS model and affects inlining.
  10748. case $host_cpu in
  10749. hppa*64*)
  10750. ;;
  10751. *)
  10752. lt_prog_compiler_pic_CXX='-fPIC'
  10753. ;;
  10754. esac
  10755. ;;
  10756. *qnx* | *nto*)
  10757. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10758. # it will coredump.
  10759. lt_prog_compiler_pic_CXX='-fPIC -shared'
  10760. ;;
  10761. *)
  10762. lt_prog_compiler_pic_CXX='-fPIC'
  10763. ;;
  10764. esac
  10765. else
  10766. case $host_os in
  10767. aix[4-9]*)
  10768. # All AIX code is PIC.
  10769. if test "$host_cpu" = ia64; then
  10770. # AIX 5 now supports IA64 processor
  10771. lt_prog_compiler_static_CXX='-Bstatic'
  10772. else
  10773. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10774. fi
  10775. ;;
  10776. chorus*)
  10777. case $cc_basename in
  10778. cxch68*)
  10779. # Green Hills C++ Compiler
  10780. # _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"
  10781. ;;
  10782. esac
  10783. ;;
  10784. dgux*)
  10785. case $cc_basename in
  10786. ec++*)
  10787. lt_prog_compiler_pic_CXX='-KPIC'
  10788. ;;
  10789. ghcx*)
  10790. # Green Hills C++ Compiler
  10791. lt_prog_compiler_pic_CXX='-pic'
  10792. ;;
  10793. *)
  10794. ;;
  10795. esac
  10796. ;;
  10797. freebsd* | dragonfly*)
  10798. # FreeBSD uses GNU C++
  10799. ;;
  10800. hpux9* | hpux10* | hpux11*)
  10801. case $cc_basename in
  10802. CC*)
  10803. lt_prog_compiler_wl_CXX='-Wl,'
  10804. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10805. if test "$host_cpu" != ia64; then
  10806. lt_prog_compiler_pic_CXX='+Z'
  10807. fi
  10808. ;;
  10809. aCC*)
  10810. lt_prog_compiler_wl_CXX='-Wl,'
  10811. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10812. case $host_cpu in
  10813. hppa*64*|ia64*)
  10814. # +Z the default
  10815. ;;
  10816. *)
  10817. lt_prog_compiler_pic_CXX='+Z'
  10818. ;;
  10819. esac
  10820. ;;
  10821. *)
  10822. ;;
  10823. esac
  10824. ;;
  10825. interix*)
  10826. # This is c89, which is MS Visual C++ (no shared libs)
  10827. # Anyone wants to do a port?
  10828. ;;
  10829. irix5* | irix6* | nonstopux*)
  10830. case $cc_basename in
  10831. CC*)
  10832. lt_prog_compiler_wl_CXX='-Wl,'
  10833. lt_prog_compiler_static_CXX='-non_shared'
  10834. # CC pic flag -KPIC is the default.
  10835. ;;
  10836. *)
  10837. ;;
  10838. esac
  10839. ;;
  10840. linux* | k*bsd*-gnu)
  10841. case $cc_basename in
  10842. KCC*)
  10843. # KAI C++ Compiler
  10844. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10845. lt_prog_compiler_pic_CXX='-fPIC'
  10846. ;;
  10847. ecpc* )
  10848. # old Intel C++ for x86_64 which still supported -KPIC.
  10849. lt_prog_compiler_wl_CXX='-Wl,'
  10850. lt_prog_compiler_pic_CXX='-KPIC'
  10851. lt_prog_compiler_static_CXX='-static'
  10852. ;;
  10853. icpc* )
  10854. # Intel C++, used to be incompatible with GCC.
  10855. # ICC 10 doesn't accept -KPIC any more.
  10856. lt_prog_compiler_wl_CXX='-Wl,'
  10857. lt_prog_compiler_pic_CXX='-fPIC'
  10858. lt_prog_compiler_static_CXX='-static'
  10859. ;;
  10860. pgCC* | pgcpp*)
  10861. # Portland Group C++ compiler
  10862. lt_prog_compiler_wl_CXX='-Wl,'
  10863. lt_prog_compiler_pic_CXX='-fpic'
  10864. lt_prog_compiler_static_CXX='-Bstatic'
  10865. ;;
  10866. cxx*)
  10867. # Compaq C++
  10868. # Make sure the PIC flag is empty. It appears that all Alpha
  10869. # Linux and Compaq Tru64 Unix objects are PIC.
  10870. lt_prog_compiler_pic_CXX=
  10871. lt_prog_compiler_static_CXX='-non_shared'
  10872. ;;
  10873. xlc* | xlC*)
  10874. # IBM XL 8.0 on PPC
  10875. lt_prog_compiler_wl_CXX='-Wl,'
  10876. lt_prog_compiler_pic_CXX='-qpic'
  10877. lt_prog_compiler_static_CXX='-qstaticlink'
  10878. ;;
  10879. *)
  10880. case `$CC -V 2>&1 | sed 5q` in
  10881. *Sun\ C*)
  10882. # Sun C++ 5.9
  10883. lt_prog_compiler_pic_CXX='-KPIC'
  10884. lt_prog_compiler_static_CXX='-Bstatic'
  10885. lt_prog_compiler_wl_CXX='-Qoption ld '
  10886. ;;
  10887. esac
  10888. ;;
  10889. esac
  10890. ;;
  10891. lynxos*)
  10892. ;;
  10893. m88k*)
  10894. ;;
  10895. mvs*)
  10896. case $cc_basename in
  10897. cxx*)
  10898. lt_prog_compiler_pic_CXX='-W c,exportall'
  10899. ;;
  10900. *)
  10901. ;;
  10902. esac
  10903. ;;
  10904. netbsd* | netbsdelf*-gnu)
  10905. ;;
  10906. *qnx* | *nto*)
  10907. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10908. # it will coredump.
  10909. lt_prog_compiler_pic_CXX='-fPIC -shared'
  10910. ;;
  10911. osf3* | osf4* | osf5*)
  10912. case $cc_basename in
  10913. KCC*)
  10914. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10915. ;;
  10916. RCC*)
  10917. # Rational C++ 2.4.1
  10918. lt_prog_compiler_pic_CXX='-pic'
  10919. ;;
  10920. cxx*)
  10921. # Digital/Compaq C++
  10922. lt_prog_compiler_wl_CXX='-Wl,'
  10923. # Make sure the PIC flag is empty. It appears that all Alpha
  10924. # Linux and Compaq Tru64 Unix objects are PIC.
  10925. lt_prog_compiler_pic_CXX=
  10926. lt_prog_compiler_static_CXX='-non_shared'
  10927. ;;
  10928. *)
  10929. ;;
  10930. esac
  10931. ;;
  10932. psos*)
  10933. ;;
  10934. solaris*)
  10935. case $cc_basename in
  10936. CC*)
  10937. # Sun C++ 4.2, 5.x and Centerline C++
  10938. lt_prog_compiler_pic_CXX='-KPIC'
  10939. lt_prog_compiler_static_CXX='-Bstatic'
  10940. lt_prog_compiler_wl_CXX='-Qoption ld '
  10941. ;;
  10942. gcx*)
  10943. # Green Hills C++ Compiler
  10944. lt_prog_compiler_pic_CXX='-PIC'
  10945. ;;
  10946. *)
  10947. ;;
  10948. esac
  10949. ;;
  10950. sunos4*)
  10951. case $cc_basename in
  10952. CC*)
  10953. # Sun C++ 4.x
  10954. lt_prog_compiler_pic_CXX='-pic'
  10955. lt_prog_compiler_static_CXX='-Bstatic'
  10956. ;;
  10957. lcc*)
  10958. # Lucid
  10959. lt_prog_compiler_pic_CXX='-pic'
  10960. ;;
  10961. *)
  10962. ;;
  10963. esac
  10964. ;;
  10965. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10966. case $cc_basename in
  10967. CC*)
  10968. lt_prog_compiler_wl_CXX='-Wl,'
  10969. lt_prog_compiler_pic_CXX='-KPIC'
  10970. lt_prog_compiler_static_CXX='-Bstatic'
  10971. ;;
  10972. esac
  10973. ;;
  10974. tandem*)
  10975. case $cc_basename in
  10976. NCC*)
  10977. # NonStop-UX NCC 3.20
  10978. lt_prog_compiler_pic_CXX='-KPIC'
  10979. ;;
  10980. *)
  10981. ;;
  10982. esac
  10983. ;;
  10984. vxworks*)
  10985. ;;
  10986. *)
  10987. lt_prog_compiler_can_build_shared_CXX=no
  10988. ;;
  10989. esac
  10990. fi
  10991. case $host_os in
  10992. # For platforms which do not support PIC, -DPIC is meaningless:
  10993. *djgpp*)
  10994. lt_prog_compiler_pic_CXX=
  10995. ;;
  10996. *)
  10997. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10998. ;;
  10999. esac
  11000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11001. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11002. #
  11003. # Check to make sure the PIC flag actually works.
  11004. #
  11005. if test -n "$lt_prog_compiler_pic_CXX"; then
  11006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11007. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11008. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11009. $as_echo_n "(cached) " >&6
  11010. else
  11011. lt_cv_prog_compiler_pic_works_CXX=no
  11012. ac_outfile=conftest.$ac_objext
  11013. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11014. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11015. # Insert the option either (1) after the last *FLAGS variable, or
  11016. # (2) before a word containing "conftest.", or (3) at the end.
  11017. # Note that $ac_compile itself does not contain backslashes and begins
  11018. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11019. # The option is referenced via a variable to avoid confusing sed.
  11020. lt_compile=`echo "$ac_compile" | $SED \
  11021. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11022. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11023. -e 's:$: $lt_compiler_flag:'`
  11024. (eval echo "\"\$as_me:12750: $lt_compile\"" >&5)
  11025. (eval "$lt_compile" 2>conftest.err)
  11026. ac_status=$?
  11027. cat conftest.err >&5
  11028. echo "$as_me:12754: \$? = $ac_status" >&5
  11029. if (exit $ac_status) && test -s "$ac_outfile"; then
  11030. # The compiler can only warn and ignore the option if not recognized
  11031. # So say no if there are warnings other than the usual output.
  11032. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11033. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11034. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11035. lt_cv_prog_compiler_pic_works_CXX=yes
  11036. fi
  11037. fi
  11038. $RM conftest*
  11039. fi
  11040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11041. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11042. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11043. case $lt_prog_compiler_pic_CXX in
  11044. "" | " "*) ;;
  11045. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11046. esac
  11047. else
  11048. lt_prog_compiler_pic_CXX=
  11049. lt_prog_compiler_can_build_shared_CXX=no
  11050. fi
  11051. fi
  11052. #
  11053. # Check to make sure the static flag actually works.
  11054. #
  11055. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11057. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11058. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11059. $as_echo_n "(cached) " >&6
  11060. else
  11061. lt_cv_prog_compiler_static_works_CXX=no
  11062. save_LDFLAGS="$LDFLAGS"
  11063. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11064. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11065. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11066. # The linker can only warn and ignore the option if not recognized
  11067. # So say no if there are warnings
  11068. if test -s conftest.err; then
  11069. # Append any errors to the config.log.
  11070. cat conftest.err 1>&5
  11071. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11072. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11073. if diff conftest.exp conftest.er2 >/dev/null; then
  11074. lt_cv_prog_compiler_static_works_CXX=yes
  11075. fi
  11076. else
  11077. lt_cv_prog_compiler_static_works_CXX=yes
  11078. fi
  11079. fi
  11080. $RM -r conftest*
  11081. LDFLAGS="$save_LDFLAGS"
  11082. fi
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11084. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11085. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11086. :
  11087. else
  11088. lt_prog_compiler_static_CXX=
  11089. fi
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11091. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11092. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11093. $as_echo_n "(cached) " >&6
  11094. else
  11095. lt_cv_prog_compiler_c_o_CXX=no
  11096. $RM -r conftest 2>/dev/null
  11097. mkdir conftest
  11098. cd conftest
  11099. mkdir out
  11100. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11101. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11102. # Insert the option either (1) after the last *FLAGS variable, or
  11103. # (2) before a word containing "conftest.", or (3) at the end.
  11104. # Note that $ac_compile itself does not contain backslashes and begins
  11105. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11106. lt_compile=`echo "$ac_compile" | $SED \
  11107. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11108. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11109. -e 's:$: $lt_compiler_flag:'`
  11110. (eval echo "\"\$as_me:12849: $lt_compile\"" >&5)
  11111. (eval "$lt_compile" 2>out/conftest.err)
  11112. ac_status=$?
  11113. cat out/conftest.err >&5
  11114. echo "$as_me:12853: \$? = $ac_status" >&5
  11115. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11116. then
  11117. # The compiler can only warn and ignore the option if not recognized
  11118. # So say no if there are warnings
  11119. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11120. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11121. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11122. lt_cv_prog_compiler_c_o_CXX=yes
  11123. fi
  11124. fi
  11125. chmod u+w . 2>&5
  11126. $RM conftest*
  11127. # SGI C++ compiler will create directory out/ii_files/ for
  11128. # template instantiation
  11129. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11130. $RM out/* && rmdir out
  11131. cd ..
  11132. $RM -r conftest
  11133. $RM conftest*
  11134. fi
  11135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11136. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11138. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11139. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11140. $as_echo_n "(cached) " >&6
  11141. else
  11142. lt_cv_prog_compiler_c_o_CXX=no
  11143. $RM -r conftest 2>/dev/null
  11144. mkdir conftest
  11145. cd conftest
  11146. mkdir out
  11147. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11148. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11149. # Insert the option either (1) after the last *FLAGS variable, or
  11150. # (2) before a word containing "conftest.", or (3) at the end.
  11151. # Note that $ac_compile itself does not contain backslashes and begins
  11152. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11153. lt_compile=`echo "$ac_compile" | $SED \
  11154. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11155. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11156. -e 's:$: $lt_compiler_flag:'`
  11157. (eval echo "\"\$as_me:12901: $lt_compile\"" >&5)
  11158. (eval "$lt_compile" 2>out/conftest.err)
  11159. ac_status=$?
  11160. cat out/conftest.err >&5
  11161. echo "$as_me:12905: \$? = $ac_status" >&5
  11162. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11163. then
  11164. # The compiler can only warn and ignore the option if not recognized
  11165. # So say no if there are warnings
  11166. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11167. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11168. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11169. lt_cv_prog_compiler_c_o_CXX=yes
  11170. fi
  11171. fi
  11172. chmod u+w . 2>&5
  11173. $RM conftest*
  11174. # SGI C++ compiler will create directory out/ii_files/ for
  11175. # template instantiation
  11176. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11177. $RM out/* && rmdir out
  11178. cd ..
  11179. $RM -r conftest
  11180. $RM conftest*
  11181. fi
  11182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11183. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11184. hard_links="nottested"
  11185. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11186. # do not overwrite the value of need_locks provided by the user
  11187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11188. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11189. hard_links=yes
  11190. $RM conftest*
  11191. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11192. touch conftest.a
  11193. ln conftest.a conftest.b 2>&5 || hard_links=no
  11194. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11196. $as_echo "$hard_links" >&6; }
  11197. if test "$hard_links" = no; then
  11198. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11199. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11200. need_locks=warn
  11201. fi
  11202. else
  11203. need_locks=no
  11204. fi
  11205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11206. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11207. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11208. case $host_os in
  11209. aix[4-9]*)
  11210. # If we're using GNU nm, then we don't want the "-C" option.
  11211. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11212. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11213. 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'
  11214. else
  11215. 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'
  11216. fi
  11217. ;;
  11218. pw32*)
  11219. export_symbols_cmds_CXX="$ltdll_cmds"
  11220. ;;
  11221. cygwin* | mingw* | cegcc*)
  11222. 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'
  11223. ;;
  11224. linux* | k*bsd*-gnu)
  11225. link_all_deplibs_CXX=no
  11226. ;;
  11227. *)
  11228. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11229. ;;
  11230. esac
  11231. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11233. $as_echo "$ld_shlibs_CXX" >&6; }
  11234. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11235. with_gnu_ld_CXX=$with_gnu_ld
  11236. #
  11237. # Do we need to explicitly link libc?
  11238. #
  11239. case "x$archive_cmds_need_lc_CXX" in
  11240. x|xyes)
  11241. # Assume -lc should be added
  11242. archive_cmds_need_lc_CXX=yes
  11243. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11244. case $archive_cmds_CXX in
  11245. *'~'*)
  11246. # FIXME: we may have to deal with multi-command sequences.
  11247. ;;
  11248. '$CC '*)
  11249. # Test whether the compiler implicitly links with -lc since on some
  11250. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11251. # to ld, don't add -lc before -lgcc.
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11253. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11254. $RM conftest*
  11255. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11256. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11257. (eval $ac_compile) 2>&5
  11258. ac_status=$?
  11259. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11260. test $ac_status = 0; } 2>conftest.err; then
  11261. soname=conftest
  11262. lib=conftest
  11263. libobjs=conftest.$ac_objext
  11264. deplibs=
  11265. wl=$lt_prog_compiler_wl_CXX
  11266. pic_flag=$lt_prog_compiler_pic_CXX
  11267. compiler_flags=-v
  11268. linker_flags=-v
  11269. verstring=
  11270. output_objdir=.
  11271. libname=conftest
  11272. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11273. allow_undefined_flag_CXX=
  11274. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11275. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11276. ac_status=$?
  11277. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11278. test $ac_status = 0; }
  11279. then
  11280. archive_cmds_need_lc_CXX=no
  11281. else
  11282. archive_cmds_need_lc_CXX=yes
  11283. fi
  11284. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11285. else
  11286. cat conftest.err 1>&5
  11287. fi
  11288. $RM conftest*
  11289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11290. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11291. ;;
  11292. esac
  11293. fi
  11294. ;;
  11295. esac
  11296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11297. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11298. library_names_spec=
  11299. libname_spec='lib$name'
  11300. soname_spec=
  11301. shrext_cmds=".so"
  11302. postinstall_cmds=
  11303. postuninstall_cmds=
  11304. finish_cmds=
  11305. finish_eval=
  11306. shlibpath_var=
  11307. shlibpath_overrides_runpath=unknown
  11308. version_type=none
  11309. dynamic_linker="$host_os ld.so"
  11310. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11311. need_lib_prefix=unknown
  11312. hardcode_into_libs=no
  11313. # when you set need_version to no, make sure it does not cause -set_version
  11314. # flags to be left without arguments
  11315. need_version=unknown
  11316. case $host_os in
  11317. aix3*)
  11318. version_type=linux
  11319. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11320. shlibpath_var=LIBPATH
  11321. # AIX 3 has no versioning support, so we append a major version to the name.
  11322. soname_spec='${libname}${release}${shared_ext}$major'
  11323. ;;
  11324. aix[4-9]*)
  11325. version_type=linux
  11326. need_lib_prefix=no
  11327. need_version=no
  11328. hardcode_into_libs=yes
  11329. if test "$host_cpu" = ia64; then
  11330. # AIX 5 supports IA64
  11331. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11332. shlibpath_var=LD_LIBRARY_PATH
  11333. else
  11334. # With GCC up to 2.95.x, collect2 would create an import file
  11335. # for dependence libraries. The import file would start with
  11336. # the line `#! .'. This would cause the generated library to
  11337. # depend on `.', always an invalid library. This was fixed in
  11338. # development snapshots of GCC prior to 3.0.
  11339. case $host_os in
  11340. aix4 | aix4.[01] | aix4.[01].*)
  11341. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11342. echo ' yes '
  11343. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11344. :
  11345. else
  11346. can_build_shared=no
  11347. fi
  11348. ;;
  11349. esac
  11350. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11351. # soname into executable. Probably we can add versioning support to
  11352. # collect2, so additional links can be useful in future.
  11353. if test "$aix_use_runtimelinking" = yes; then
  11354. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11355. # instead of lib<name>.a to let people know that these are not
  11356. # typical AIX shared libraries.
  11357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11358. else
  11359. # We preserve .a as extension for shared libraries through AIX4.2
  11360. # and later when we are not doing run time linking.
  11361. library_names_spec='${libname}${release}.a $libname.a'
  11362. soname_spec='${libname}${release}${shared_ext}$major'
  11363. fi
  11364. shlibpath_var=LIBPATH
  11365. fi
  11366. ;;
  11367. amigaos*)
  11368. case $host_cpu in
  11369. powerpc)
  11370. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11371. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11373. ;;
  11374. m68k)
  11375. library_names_spec='$libname.ixlibrary $libname.a'
  11376. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11377. 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'
  11378. ;;
  11379. esac
  11380. ;;
  11381. beos*)
  11382. library_names_spec='${libname}${shared_ext}'
  11383. dynamic_linker="$host_os ld.so"
  11384. shlibpath_var=LIBRARY_PATH
  11385. ;;
  11386. bsdi[45]*)
  11387. version_type=linux
  11388. need_version=no
  11389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11390. soname_spec='${libname}${release}${shared_ext}$major'
  11391. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11392. shlibpath_var=LD_LIBRARY_PATH
  11393. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11394. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11395. # the default ld.so.conf also contains /usr/contrib/lib and
  11396. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11397. # libtool to hard-code these into programs
  11398. ;;
  11399. cygwin* | mingw* | pw32* | cegcc*)
  11400. version_type=windows
  11401. shrext_cmds=".dll"
  11402. need_version=no
  11403. need_lib_prefix=no
  11404. case $GCC,$host_os in
  11405. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11406. library_names_spec='$libname.dll.a'
  11407. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11408. postinstall_cmds='base_file=`basename \${file}`~
  11409. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11410. dldir=$destdir/`dirname \$dlpath`~
  11411. test -d \$dldir || mkdir -p \$dldir~
  11412. $install_prog $dir/$dlname \$dldir/$dlname~
  11413. chmod a+x \$dldir/$dlname~
  11414. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11415. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11416. fi'
  11417. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11418. dlpath=$dir/\$dldll~
  11419. $RM \$dlpath'
  11420. shlibpath_overrides_runpath=yes
  11421. case $host_os in
  11422. cygwin*)
  11423. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11424. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11425. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11426. ;;
  11427. mingw* | cegcc*)
  11428. # MinGW DLLs use traditional 'lib' prefix
  11429. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11430. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11431. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11432. # It is most probably a Windows format PATH printed by
  11433. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11434. # path with ; separators, and with drive letters. We can handle the
  11435. # drive letters (cygwin fileutils understands them), so leave them,
  11436. # especially as we might pass files found there to a mingw objdump,
  11437. # which wouldn't understand a cygwinified path. Ahh.
  11438. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11439. else
  11440. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11441. fi
  11442. ;;
  11443. pw32*)
  11444. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11445. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11446. ;;
  11447. esac
  11448. ;;
  11449. *)
  11450. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11451. ;;
  11452. esac
  11453. dynamic_linker='Win32 ld.exe'
  11454. # FIXME: first we should search . and the directory the executable is in
  11455. shlibpath_var=PATH
  11456. ;;
  11457. darwin* | rhapsody*)
  11458. dynamic_linker="$host_os dyld"
  11459. version_type=darwin
  11460. need_lib_prefix=no
  11461. need_version=no
  11462. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11463. soname_spec='${libname}${release}${major}$shared_ext'
  11464. shlibpath_overrides_runpath=yes
  11465. shlibpath_var=DYLD_LIBRARY_PATH
  11466. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11467. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11468. ;;
  11469. dgux*)
  11470. version_type=linux
  11471. need_lib_prefix=no
  11472. need_version=no
  11473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11474. soname_spec='${libname}${release}${shared_ext}$major'
  11475. shlibpath_var=LD_LIBRARY_PATH
  11476. ;;
  11477. freebsd1*)
  11478. dynamic_linker=no
  11479. ;;
  11480. freebsd* | dragonfly*)
  11481. # DragonFly does not have aout. When/if they implement a new
  11482. # versioning mechanism, adjust this.
  11483. if test -x /usr/bin/objformat; then
  11484. objformat=`/usr/bin/objformat`
  11485. else
  11486. case $host_os in
  11487. freebsd[123]*) objformat=aout ;;
  11488. *) objformat=elf ;;
  11489. esac
  11490. fi
  11491. version_type=freebsd-$objformat
  11492. case $version_type in
  11493. freebsd-elf*)
  11494. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11495. need_version=no
  11496. need_lib_prefix=no
  11497. ;;
  11498. freebsd-*)
  11499. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11500. need_version=yes
  11501. ;;
  11502. esac
  11503. shlibpath_var=LD_LIBRARY_PATH
  11504. case $host_os in
  11505. freebsd2*)
  11506. shlibpath_overrides_runpath=yes
  11507. ;;
  11508. freebsd3.[01]* | freebsdelf3.[01]*)
  11509. shlibpath_overrides_runpath=yes
  11510. hardcode_into_libs=yes
  11511. ;;
  11512. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11513. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11514. shlibpath_overrides_runpath=no
  11515. hardcode_into_libs=yes
  11516. ;;
  11517. *) # from 4.6 on, and DragonFly
  11518. shlibpath_overrides_runpath=yes
  11519. hardcode_into_libs=yes
  11520. ;;
  11521. esac
  11522. ;;
  11523. gnu*)
  11524. version_type=linux
  11525. need_lib_prefix=no
  11526. need_version=no
  11527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11528. soname_spec='${libname}${release}${shared_ext}$major'
  11529. shlibpath_var=LD_LIBRARY_PATH
  11530. hardcode_into_libs=yes
  11531. ;;
  11532. hpux9* | hpux10* | hpux11*)
  11533. # Give a soname corresponding to the major version so that dld.sl refuses to
  11534. # link against other versions.
  11535. version_type=sunos
  11536. need_lib_prefix=no
  11537. need_version=no
  11538. case $host_cpu in
  11539. ia64*)
  11540. shrext_cmds='.so'
  11541. hardcode_into_libs=yes
  11542. dynamic_linker="$host_os dld.so"
  11543. shlibpath_var=LD_LIBRARY_PATH
  11544. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11546. soname_spec='${libname}${release}${shared_ext}$major'
  11547. if test "X$HPUX_IA64_MODE" = X32; then
  11548. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11549. else
  11550. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11551. fi
  11552. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11553. ;;
  11554. hppa*64*)
  11555. shrext_cmds='.sl'
  11556. hardcode_into_libs=yes
  11557. dynamic_linker="$host_os dld.sl"
  11558. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11559. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11561. soname_spec='${libname}${release}${shared_ext}$major'
  11562. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11563. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11564. ;;
  11565. *)
  11566. shrext_cmds='.sl'
  11567. dynamic_linker="$host_os dld.sl"
  11568. shlibpath_var=SHLIB_PATH
  11569. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11571. soname_spec='${libname}${release}${shared_ext}$major'
  11572. ;;
  11573. esac
  11574. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11575. postinstall_cmds='chmod 555 $lib'
  11576. ;;
  11577. interix[3-9]*)
  11578. version_type=linux
  11579. need_lib_prefix=no
  11580. need_version=no
  11581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11582. soname_spec='${libname}${release}${shared_ext}$major'
  11583. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11584. shlibpath_var=LD_LIBRARY_PATH
  11585. shlibpath_overrides_runpath=no
  11586. hardcode_into_libs=yes
  11587. ;;
  11588. irix5* | irix6* | nonstopux*)
  11589. case $host_os in
  11590. nonstopux*) version_type=nonstopux ;;
  11591. *)
  11592. if test "$lt_cv_prog_gnu_ld" = yes; then
  11593. version_type=linux
  11594. else
  11595. version_type=irix
  11596. fi ;;
  11597. esac
  11598. need_lib_prefix=no
  11599. need_version=no
  11600. soname_spec='${libname}${release}${shared_ext}$major'
  11601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11602. case $host_os in
  11603. irix5* | nonstopux*)
  11604. libsuff= shlibsuff=
  11605. ;;
  11606. *)
  11607. case $LD in # libtool.m4 will add one of these switches to LD
  11608. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11609. libsuff= shlibsuff= libmagic=32-bit;;
  11610. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11611. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11612. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11613. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11614. *) libsuff= shlibsuff= libmagic=never-match;;
  11615. esac
  11616. ;;
  11617. esac
  11618. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11619. shlibpath_overrides_runpath=no
  11620. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11621. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11622. hardcode_into_libs=yes
  11623. ;;
  11624. # No shared lib support for Linux oldld, aout, or coff.
  11625. linux*oldld* | linux*aout* | linux*coff*)
  11626. dynamic_linker=no
  11627. ;;
  11628. # This must be Linux ELF.
  11629. linux* | k*bsd*-gnu)
  11630. version_type=linux
  11631. need_lib_prefix=no
  11632. need_version=no
  11633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11634. soname_spec='${libname}${release}${shared_ext}$major'
  11635. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11636. shlibpath_var=LD_LIBRARY_PATH
  11637. shlibpath_overrides_runpath=no
  11638. # Some binutils ld are patched to set DT_RUNPATH
  11639. save_LDFLAGS=$LDFLAGS
  11640. save_libdir=$libdir
  11641. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  11642. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  11643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11644. /* end confdefs.h. */
  11645. int
  11646. main ()
  11647. {
  11648. ;
  11649. return 0;
  11650. }
  11651. _ACEOF
  11652. if ac_fn_cxx_try_link "$LINENO"; then :
  11653. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11654. shlibpath_overrides_runpath=yes
  11655. fi
  11656. fi
  11657. rm -f core conftest.err conftest.$ac_objext \
  11658. conftest$ac_exeext conftest.$ac_ext
  11659. LDFLAGS=$save_LDFLAGS
  11660. libdir=$save_libdir
  11661. # This implies no fast_install, which is unacceptable.
  11662. # Some rework will be needed to allow for fast_install
  11663. # before this can be enabled.
  11664. hardcode_into_libs=yes
  11665. # Append ld.so.conf contents to the search path
  11666. if test -f /etc/ld.so.conf; then
  11667. 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' ' '`
  11668. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11669. fi
  11670. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11671. # powerpc, because MkLinux only supported shared libraries with the
  11672. # GNU dynamic linker. Since this was broken with cross compilers,
  11673. # most powerpc-linux boxes support dynamic linking these days and
  11674. # people can always --disable-shared, the test was removed, and we
  11675. # assume the GNU/Linux dynamic linker is in use.
  11676. dynamic_linker='GNU/Linux ld.so'
  11677. ;;
  11678. netbsdelf*-gnu)
  11679. version_type=linux
  11680. need_lib_prefix=no
  11681. need_version=no
  11682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11683. soname_spec='${libname}${release}${shared_ext}$major'
  11684. shlibpath_var=LD_LIBRARY_PATH
  11685. shlibpath_overrides_runpath=no
  11686. hardcode_into_libs=yes
  11687. dynamic_linker='NetBSD ld.elf_so'
  11688. ;;
  11689. netbsd*)
  11690. version_type=sunos
  11691. need_lib_prefix=no
  11692. need_version=no
  11693. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11695. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11696. dynamic_linker='NetBSD (a.out) ld.so'
  11697. else
  11698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11699. soname_spec='${libname}${release}${shared_ext}$major'
  11700. dynamic_linker='NetBSD ld.elf_so'
  11701. fi
  11702. shlibpath_var=LD_LIBRARY_PATH
  11703. shlibpath_overrides_runpath=yes
  11704. hardcode_into_libs=yes
  11705. ;;
  11706. newsos6)
  11707. version_type=linux
  11708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11709. shlibpath_var=LD_LIBRARY_PATH
  11710. shlibpath_overrides_runpath=yes
  11711. ;;
  11712. *nto* | *qnx*)
  11713. version_type=qnx
  11714. need_lib_prefix=no
  11715. need_version=no
  11716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11717. soname_spec='${libname}${release}${shared_ext}$major'
  11718. shlibpath_var=LD_LIBRARY_PATH
  11719. shlibpath_overrides_runpath=no
  11720. hardcode_into_libs=yes
  11721. dynamic_linker='ldqnx.so'
  11722. ;;
  11723. openbsd*)
  11724. version_type=sunos
  11725. sys_lib_dlsearch_path_spec="/usr/lib"
  11726. need_lib_prefix=no
  11727. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11728. case $host_os in
  11729. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11730. *) need_version=no ;;
  11731. esac
  11732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11733. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11734. shlibpath_var=LD_LIBRARY_PATH
  11735. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11736. case $host_os in
  11737. openbsd2.[89] | openbsd2.[89].*)
  11738. shlibpath_overrides_runpath=no
  11739. ;;
  11740. *)
  11741. shlibpath_overrides_runpath=yes
  11742. ;;
  11743. esac
  11744. else
  11745. shlibpath_overrides_runpath=yes
  11746. fi
  11747. ;;
  11748. os2*)
  11749. libname_spec='$name'
  11750. shrext_cmds=".dll"
  11751. need_lib_prefix=no
  11752. library_names_spec='$libname${shared_ext} $libname.a'
  11753. dynamic_linker='OS/2 ld.exe'
  11754. shlibpath_var=LIBPATH
  11755. ;;
  11756. osf3* | osf4* | osf5*)
  11757. version_type=osf
  11758. need_lib_prefix=no
  11759. need_version=no
  11760. soname_spec='${libname}${release}${shared_ext}$major'
  11761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11762. shlibpath_var=LD_LIBRARY_PATH
  11763. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11764. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11765. ;;
  11766. rdos*)
  11767. dynamic_linker=no
  11768. ;;
  11769. solaris*)
  11770. version_type=linux
  11771. need_lib_prefix=no
  11772. need_version=no
  11773. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11774. soname_spec='${libname}${release}${shared_ext}$major'
  11775. shlibpath_var=LD_LIBRARY_PATH
  11776. shlibpath_overrides_runpath=yes
  11777. hardcode_into_libs=yes
  11778. # ldd complains unless libraries are executable
  11779. postinstall_cmds='chmod +x $lib'
  11780. ;;
  11781. sunos4*)
  11782. version_type=sunos
  11783. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11784. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11785. shlibpath_var=LD_LIBRARY_PATH
  11786. shlibpath_overrides_runpath=yes
  11787. if test "$with_gnu_ld" = yes; then
  11788. need_lib_prefix=no
  11789. fi
  11790. need_version=yes
  11791. ;;
  11792. sysv4 | sysv4.3*)
  11793. version_type=linux
  11794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11795. soname_spec='${libname}${release}${shared_ext}$major'
  11796. shlibpath_var=LD_LIBRARY_PATH
  11797. case $host_vendor in
  11798. sni)
  11799. shlibpath_overrides_runpath=no
  11800. need_lib_prefix=no
  11801. runpath_var=LD_RUN_PATH
  11802. ;;
  11803. siemens)
  11804. need_lib_prefix=no
  11805. ;;
  11806. motorola)
  11807. need_lib_prefix=no
  11808. need_version=no
  11809. shlibpath_overrides_runpath=no
  11810. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11811. ;;
  11812. esac
  11813. ;;
  11814. sysv4*MP*)
  11815. if test -d /usr/nec ;then
  11816. version_type=linux
  11817. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11818. soname_spec='$libname${shared_ext}.$major'
  11819. shlibpath_var=LD_LIBRARY_PATH
  11820. fi
  11821. ;;
  11822. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11823. version_type=freebsd-elf
  11824. need_lib_prefix=no
  11825. need_version=no
  11826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11827. soname_spec='${libname}${release}${shared_ext}$major'
  11828. shlibpath_var=LD_LIBRARY_PATH
  11829. shlibpath_overrides_runpath=yes
  11830. hardcode_into_libs=yes
  11831. if test "$with_gnu_ld" = yes; then
  11832. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11833. else
  11834. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11835. case $host_os in
  11836. sco3.2v5*)
  11837. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11838. ;;
  11839. esac
  11840. fi
  11841. sys_lib_dlsearch_path_spec='/usr/lib'
  11842. ;;
  11843. tpf*)
  11844. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11845. version_type=linux
  11846. need_lib_prefix=no
  11847. need_version=no
  11848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11849. shlibpath_var=LD_LIBRARY_PATH
  11850. shlibpath_overrides_runpath=no
  11851. hardcode_into_libs=yes
  11852. ;;
  11853. uts4*)
  11854. version_type=linux
  11855. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11856. soname_spec='${libname}${release}${shared_ext}$major'
  11857. shlibpath_var=LD_LIBRARY_PATH
  11858. ;;
  11859. *)
  11860. dynamic_linker=no
  11861. ;;
  11862. esac
  11863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11864. $as_echo "$dynamic_linker" >&6; }
  11865. test "$dynamic_linker" = no && can_build_shared=no
  11866. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11867. if test "$GCC" = yes; then
  11868. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11869. fi
  11870. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11871. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11872. fi
  11873. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11874. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11875. fi
  11876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11877. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11878. hardcode_action_CXX=
  11879. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  11880. test -n "$runpath_var_CXX" ||
  11881. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11882. # We can hardcode non-existent directories.
  11883. if test "$hardcode_direct_CXX" != no &&
  11884. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11885. # have to relink, otherwise we might link with an installed library
  11886. # when we should be linking with a yet-to-be-installed one
  11887. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11888. test "$hardcode_minus_L_CXX" != no; then
  11889. # Linking always hardcodes the temporary library directory.
  11890. hardcode_action_CXX=relink
  11891. else
  11892. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11893. hardcode_action_CXX=immediate
  11894. fi
  11895. else
  11896. # We cannot hardcode anything, or else we can only hardcode existing
  11897. # directories.
  11898. hardcode_action_CXX=unsupported
  11899. fi
  11900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  11901. $as_echo "$hardcode_action_CXX" >&6; }
  11902. if test "$hardcode_action_CXX" = relink ||
  11903. test "$inherit_rpath_CXX" = yes; then
  11904. # Fast installation is not supported
  11905. enable_fast_install=no
  11906. elif test "$shlibpath_overrides_runpath" = yes ||
  11907. test "$enable_shared" = no; then
  11908. # Fast installation is not necessary
  11909. enable_fast_install=needless
  11910. fi
  11911. fi # test -n "$compiler"
  11912. CC=$lt_save_CC
  11913. LDCXX=$LD
  11914. LD=$lt_save_LD
  11915. GCC=$lt_save_GCC
  11916. with_gnu_ld=$lt_save_with_gnu_ld
  11917. lt_cv_path_LDCXX=$lt_cv_path_LD
  11918. lt_cv_path_LD=$lt_save_path_LD
  11919. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11920. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11921. fi # test "$_lt_caught_CXX_error" != yes
  11922. ac_ext=c
  11923. ac_cpp='$CPP $CPPFLAGS'
  11924. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11925. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11926. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11927. ac_config_commands="$ac_config_commands libtool"
  11928. # Only expand once:
  11929. ac_config_headers="$ac_config_headers config.h"
  11930. am__api_version='1.11'
  11931. # Find a good install program. We prefer a C program (faster),
  11932. # so one script is as good as another. But avoid the broken or
  11933. # incompatible versions:
  11934. # SysV /etc/install, /usr/sbin/install
  11935. # SunOS /usr/etc/install
  11936. # IRIX /sbin/install
  11937. # AIX /bin/install
  11938. # AmigaOS /C/install, which installs bootblocks on floppy discs
  11939. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  11940. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  11941. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  11942. # OS/2's system install, which has a completely different semantic
  11943. # ./install, which can be erroneously created by make from ./install.sh.
  11944. # Reject install programs that cannot install multiple files.
  11945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  11946. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  11947. if test -z "$INSTALL"; then
  11948. if test "${ac_cv_path_install+set}" = set; then :
  11949. $as_echo_n "(cached) " >&6
  11950. else
  11951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11952. for as_dir in $PATH
  11953. do
  11954. IFS=$as_save_IFS
  11955. test -z "$as_dir" && as_dir=.
  11956. # Account for people who put trailing slashes in PATH elements.
  11957. case $as_dir/ in #((
  11958. ./ | .// | /[cC]/* | \
  11959. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  11960. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  11961. /usr/ucb/* ) ;;
  11962. *)
  11963. # OSF1 and SCO ODT 3.0 have their own names for install.
  11964. # Don't use installbsd from OSF since it installs stuff as root
  11965. # by default.
  11966. for ac_prog in ginstall scoinst install; do
  11967. for ac_exec_ext in '' $ac_executable_extensions; do
  11968. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  11969. if test $ac_prog = install &&
  11970. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  11971. # AIX install. It has an incompatible calling convention.
  11972. :
  11973. elif test $ac_prog = install &&
  11974. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  11975. # program-specific install script used by HP pwplus--don't use.
  11976. :
  11977. else
  11978. rm -rf conftest.one conftest.two conftest.dir
  11979. echo one > conftest.one
  11980. echo two > conftest.two
  11981. mkdir conftest.dir
  11982. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  11983. test -s conftest.one && test -s conftest.two &&
  11984. test -s conftest.dir/conftest.one &&
  11985. test -s conftest.dir/conftest.two
  11986. then
  11987. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  11988. break 3
  11989. fi
  11990. fi
  11991. fi
  11992. done
  11993. done
  11994. ;;
  11995. esac
  11996. done
  11997. IFS=$as_save_IFS
  11998. rm -rf conftest.one conftest.two conftest.dir
  11999. fi
  12000. if test "${ac_cv_path_install+set}" = set; then
  12001. INSTALL=$ac_cv_path_install
  12002. else
  12003. # As a last resort, use the slow shell script. Don't cache a
  12004. # value for INSTALL within a source directory, because that will
  12005. # break other packages using the cache if that directory is
  12006. # removed, or if the value is a relative name.
  12007. INSTALL=$ac_install_sh
  12008. fi
  12009. fi
  12010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  12011. $as_echo "$INSTALL" >&6; }
  12012. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  12013. # It thinks the first close brace ends the variable substitution.
  12014. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  12015. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  12016. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  12017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  12018. $as_echo_n "checking whether build environment is sane... " >&6; }
  12019. # Just in case
  12020. sleep 1
  12021. echo timestamp > conftest.file
  12022. # Reject unsafe characters in $srcdir or the absolute working directory
  12023. # name. Accept space and tab only in the latter.
  12024. am_lf='
  12025. '
  12026. case `pwd` in
  12027. *[\\\"\#\$\&\'\`$am_lf]*)
  12028. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  12029. esac
  12030. case $srcdir in
  12031. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  12032. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  12033. esac
  12034. # Do `set' in a subshell so we don't clobber the current shell's
  12035. # arguments. Must try -L first in case configure is actually a
  12036. # symlink; some systems play weird games with the mod time of symlinks
  12037. # (eg FreeBSD returns the mod time of the symlink's containing
  12038. # directory).
  12039. if (
  12040. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  12041. if test "$*" = "X"; then
  12042. # -L didn't work.
  12043. set X `ls -t "$srcdir/configure" conftest.file`
  12044. fi
  12045. rm -f conftest.file
  12046. if test "$*" != "X $srcdir/configure conftest.file" \
  12047. && test "$*" != "X conftest.file $srcdir/configure"; then
  12048. # If neither matched, then we have a broken ls. This can happen
  12049. # if, for instance, CONFIG_SHELL is bash and it inherits a
  12050. # broken ls alias from the environment. This has actually
  12051. # happened. Such a system could not be considered "sane".
  12052. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  12053. alias in your environment" "$LINENO" 5
  12054. fi
  12055. test "$2" = conftest.file
  12056. )
  12057. then
  12058. # Ok.
  12059. :
  12060. else
  12061. as_fn_error "newly created file is older than distributed files!
  12062. Check your system clock" "$LINENO" 5
  12063. fi
  12064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12065. $as_echo "yes" >&6; }
  12066. test "$program_prefix" != NONE &&
  12067. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  12068. # Use a double $ so make ignores it.
  12069. test "$program_suffix" != NONE &&
  12070. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  12071. # Double any \ or $.
  12072. # By default was `s,x,x', remove it if useless.
  12073. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  12074. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  12075. # expand $ac_aux_dir to an absolute path
  12076. am_aux_dir=`cd $ac_aux_dir && pwd`
  12077. if test x"${MISSING+set}" != xset; then
  12078. case $am_aux_dir in
  12079. *\ * | *\ *)
  12080. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  12081. *)
  12082. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  12083. esac
  12084. fi
  12085. # Use eval to expand $SHELL
  12086. if eval "$MISSING --run true"; then
  12087. am_missing_run="$MISSING --run "
  12088. else
  12089. am_missing_run=
  12090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  12091. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  12092. fi
  12093. if test x"${install_sh}" != xset; then
  12094. case $am_aux_dir in
  12095. *\ * | *\ *)
  12096. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  12097. *)
  12098. install_sh="\${SHELL} $am_aux_dir/install-sh"
  12099. esac
  12100. fi
  12101. # Installed binaries are usually stripped using `strip' when the user
  12102. # run `make install-strip'. However `strip' might not be the right
  12103. # tool to use in cross-compilation environments, therefore Automake
  12104. # will honor the `STRIP' environment variable to overrule this program.
  12105. if test "$cross_compiling" != no; then
  12106. if test -n "$ac_tool_prefix"; then
  12107. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  12108. set dummy ${ac_tool_prefix}strip; ac_word=$2
  12109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12110. $as_echo_n "checking for $ac_word... " >&6; }
  12111. if test "${ac_cv_prog_STRIP+set}" = set; then :
  12112. $as_echo_n "(cached) " >&6
  12113. else
  12114. if test -n "$STRIP"; then
  12115. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  12116. else
  12117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12118. for as_dir in $PATH
  12119. do
  12120. IFS=$as_save_IFS
  12121. test -z "$as_dir" && as_dir=.
  12122. for ac_exec_ext in '' $ac_executable_extensions; do
  12123. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12124. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  12125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12126. break 2
  12127. fi
  12128. done
  12129. done
  12130. IFS=$as_save_IFS
  12131. fi
  12132. fi
  12133. STRIP=$ac_cv_prog_STRIP
  12134. if test -n "$STRIP"; then
  12135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  12136. $as_echo "$STRIP" >&6; }
  12137. else
  12138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12139. $as_echo "no" >&6; }
  12140. fi
  12141. fi
  12142. if test -z "$ac_cv_prog_STRIP"; then
  12143. ac_ct_STRIP=$STRIP
  12144. # Extract the first word of "strip", so it can be a program name with args.
  12145. set dummy strip; ac_word=$2
  12146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12147. $as_echo_n "checking for $ac_word... " >&6; }
  12148. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  12149. $as_echo_n "(cached) " >&6
  12150. else
  12151. if test -n "$ac_ct_STRIP"; then
  12152. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  12153. else
  12154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12155. for as_dir in $PATH
  12156. do
  12157. IFS=$as_save_IFS
  12158. test -z "$as_dir" && as_dir=.
  12159. for ac_exec_ext in '' $ac_executable_extensions; do
  12160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12161. ac_cv_prog_ac_ct_STRIP="strip"
  12162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12163. break 2
  12164. fi
  12165. done
  12166. done
  12167. IFS=$as_save_IFS
  12168. fi
  12169. fi
  12170. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  12171. if test -n "$ac_ct_STRIP"; then
  12172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  12173. $as_echo "$ac_ct_STRIP" >&6; }
  12174. else
  12175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12176. $as_echo "no" >&6; }
  12177. fi
  12178. if test "x$ac_ct_STRIP" = x; then
  12179. STRIP=":"
  12180. else
  12181. case $cross_compiling:$ac_tool_warned in
  12182. yes:)
  12183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12184. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12185. ac_tool_warned=yes ;;
  12186. esac
  12187. STRIP=$ac_ct_STRIP
  12188. fi
  12189. else
  12190. STRIP="$ac_cv_prog_STRIP"
  12191. fi
  12192. fi
  12193. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  12194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  12195. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  12196. if test -z "$MKDIR_P"; then
  12197. if test "${ac_cv_path_mkdir+set}" = set; then :
  12198. $as_echo_n "(cached) " >&6
  12199. else
  12200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12201. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  12202. do
  12203. IFS=$as_save_IFS
  12204. test -z "$as_dir" && as_dir=.
  12205. for ac_prog in mkdir gmkdir; do
  12206. for ac_exec_ext in '' $ac_executable_extensions; do
  12207. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  12208. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  12209. 'mkdir (GNU coreutils) '* | \
  12210. 'mkdir (coreutils) '* | \
  12211. 'mkdir (fileutils) '4.1*)
  12212. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  12213. break 3;;
  12214. esac
  12215. done
  12216. done
  12217. done
  12218. IFS=$as_save_IFS
  12219. fi
  12220. if test "${ac_cv_path_mkdir+set}" = set; then
  12221. MKDIR_P="$ac_cv_path_mkdir -p"
  12222. else
  12223. # As a last resort, use the slow shell script. Don't cache a
  12224. # value for MKDIR_P within a source directory, because that will
  12225. # break other packages using the cache if that directory is
  12226. # removed, or if the value is a relative name.
  12227. test -d ./--version && rmdir ./--version
  12228. MKDIR_P="$ac_install_sh -d"
  12229. fi
  12230. fi
  12231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  12232. $as_echo "$MKDIR_P" >&6; }
  12233. mkdir_p="$MKDIR_P"
  12234. case $mkdir_p in
  12235. [\\/$]* | ?:[\\/]*) ;;
  12236. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  12237. esac
  12238. for ac_prog in gawk mawk nawk awk
  12239. do
  12240. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12241. set dummy $ac_prog; ac_word=$2
  12242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12243. $as_echo_n "checking for $ac_word... " >&6; }
  12244. if test "${ac_cv_prog_AWK+set}" = set; then :
  12245. $as_echo_n "(cached) " >&6
  12246. else
  12247. if test -n "$AWK"; then
  12248. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  12249. else
  12250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12251. for as_dir in $PATH
  12252. do
  12253. IFS=$as_save_IFS
  12254. test -z "$as_dir" && as_dir=.
  12255. for ac_exec_ext in '' $ac_executable_extensions; do
  12256. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12257. ac_cv_prog_AWK="$ac_prog"
  12258. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12259. break 2
  12260. fi
  12261. done
  12262. done
  12263. IFS=$as_save_IFS
  12264. fi
  12265. fi
  12266. AWK=$ac_cv_prog_AWK
  12267. if test -n "$AWK"; then
  12268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  12269. $as_echo "$AWK" >&6; }
  12270. else
  12271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12272. $as_echo "no" >&6; }
  12273. fi
  12274. test -n "$AWK" && break
  12275. done
  12276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  12277. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  12278. set x ${MAKE-make}
  12279. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  12280. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  12281. $as_echo_n "(cached) " >&6
  12282. else
  12283. cat >conftest.make <<\_ACEOF
  12284. SHELL = /bin/sh
  12285. all:
  12286. @echo '@@@%%%=$(MAKE)=@@@%%%'
  12287. _ACEOF
  12288. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  12289. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  12290. *@@@%%%=?*=@@@%%%*)
  12291. eval ac_cv_prog_make_${ac_make}_set=yes;;
  12292. *)
  12293. eval ac_cv_prog_make_${ac_make}_set=no;;
  12294. esac
  12295. rm -f conftest.make
  12296. fi
  12297. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  12298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12299. $as_echo "yes" >&6; }
  12300. SET_MAKE=
  12301. else
  12302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12303. $as_echo "no" >&6; }
  12304. SET_MAKE="MAKE=${MAKE-make}"
  12305. fi
  12306. rm -rf .tst 2>/dev/null
  12307. mkdir .tst 2>/dev/null
  12308. if test -d .tst; then
  12309. am__leading_dot=.
  12310. else
  12311. am__leading_dot=_
  12312. fi
  12313. rmdir .tst 2>/dev/null
  12314. DEPDIR="${am__leading_dot}deps"
  12315. ac_config_commands="$ac_config_commands depfiles"
  12316. am_make=${MAKE-make}
  12317. cat > confinc << 'END'
  12318. am__doit:
  12319. @echo this is the am__doit target
  12320. .PHONY: am__doit
  12321. END
  12322. # If we don't find an include directive, just comment out the code.
  12323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  12324. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  12325. am__include="#"
  12326. am__quote=
  12327. _am_result=none
  12328. # First try GNU make style include.
  12329. echo "include confinc" > confmf
  12330. # Ignore all kinds of additional output from `make'.
  12331. case `$am_make -s -f confmf 2> /dev/null` in #(
  12332. *the\ am__doit\ target*)
  12333. am__include=include
  12334. am__quote=
  12335. _am_result=GNU
  12336. ;;
  12337. esac
  12338. # Now try BSD make style include.
  12339. if test "$am__include" = "#"; then
  12340. echo '.include "confinc"' > confmf
  12341. case `$am_make -s -f confmf 2> /dev/null` in #(
  12342. *the\ am__doit\ target*)
  12343. am__include=.include
  12344. am__quote="\""
  12345. _am_result=BSD
  12346. ;;
  12347. esac
  12348. fi
  12349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  12350. $as_echo "$_am_result" >&6; }
  12351. rm -f confinc confmf
  12352. # Check whether --enable-dependency-tracking was given.
  12353. if test "${enable_dependency_tracking+set}" = set; then :
  12354. enableval=$enable_dependency_tracking;
  12355. fi
  12356. if test "x$enable_dependency_tracking" != xno; then
  12357. am_depcomp="$ac_aux_dir/depcomp"
  12358. AMDEPBACKSLASH='\'
  12359. fi
  12360. if test "x$enable_dependency_tracking" != xno; then
  12361. AMDEP_TRUE=
  12362. AMDEP_FALSE='#'
  12363. else
  12364. AMDEP_TRUE='#'
  12365. AMDEP_FALSE=
  12366. fi
  12367. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  12368. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  12369. # is not polluted with repeated "-I."
  12370. am__isrc=' -I$(srcdir)'
  12371. # test to see if srcdir already configured
  12372. if test -f $srcdir/config.status; then
  12373. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  12374. fi
  12375. fi
  12376. # test whether we have cygpath
  12377. if test -z "$CYGPATH_W"; then
  12378. if (cygpath --version) >/dev/null 2>/dev/null; then
  12379. CYGPATH_W='cygpath -w'
  12380. else
  12381. CYGPATH_W=echo
  12382. fi
  12383. fi
  12384. # Define the identity of the package.
  12385. PACKAGE='clish'
  12386. VERSION='1.2.0'
  12387. cat >>confdefs.h <<_ACEOF
  12388. #define PACKAGE "$PACKAGE"
  12389. _ACEOF
  12390. cat >>confdefs.h <<_ACEOF
  12391. #define VERSION "$VERSION"
  12392. _ACEOF
  12393. # Some tools Automake needs.
  12394. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  12395. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  12396. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  12397. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  12398. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  12399. # We need awk for the "check" target. The system "awk" is bad on
  12400. # some platforms.
  12401. # Always define AMTAR for backward compatibility.
  12402. AMTAR=${AMTAR-"${am_missing_run}tar"}
  12403. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  12404. depcc="$CC" am_compiler_list=
  12405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12406. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12407. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  12408. $as_echo_n "(cached) " >&6
  12409. else
  12410. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12411. # We make a subdir and do the tests there. Otherwise we can end up
  12412. # making bogus files that we don't know about and never remove. For
  12413. # instance it was reported that on HP-UX the gcc test will end up
  12414. # making a dummy file named `D' -- because `-MD' means `put the output
  12415. # in D'.
  12416. mkdir conftest.dir
  12417. # Copy depcomp to subdir because otherwise we won't find it if we're
  12418. # using a relative directory.
  12419. cp "$am_depcomp" conftest.dir
  12420. cd conftest.dir
  12421. # We will build objects and dependencies in a subdirectory because
  12422. # it helps to detect inapplicable dependency modes. For instance
  12423. # both Tru64's cc and ICC support -MD to output dependencies as a
  12424. # side effect of compilation, but ICC will put the dependencies in
  12425. # the current directory while Tru64 will put them in the object
  12426. # directory.
  12427. mkdir sub
  12428. am_cv_CC_dependencies_compiler_type=none
  12429. if test "$am_compiler_list" = ""; then
  12430. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12431. fi
  12432. am__universal=false
  12433. case " $depcc " in #(
  12434. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12435. esac
  12436. for depmode in $am_compiler_list; do
  12437. # Setup a source with many dependencies, because some compilers
  12438. # like to wrap large dependency lists on column 80 (with \), and
  12439. # we should not choose a depcomp mode which is confused by this.
  12440. #
  12441. # We need to recreate these files for each test, as the compiler may
  12442. # overwrite some of them when testing with obscure command lines.
  12443. # This happens at least with the AIX C compiler.
  12444. : > sub/conftest.c
  12445. for i in 1 2 3 4 5 6; do
  12446. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12447. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12448. # Solaris 8's {/usr,}/bin/sh.
  12449. touch sub/conftst$i.h
  12450. done
  12451. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12452. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12453. # mode. It turns out that the SunPro C++ compiler does not properly
  12454. # handle `-M -o', and we need to detect this. Also, some Intel
  12455. # versions had trouble with output in subdirs
  12456. am__obj=sub/conftest.${OBJEXT-o}
  12457. am__minus_obj="-o $am__obj"
  12458. case $depmode in
  12459. gcc)
  12460. # This depmode causes a compiler race in universal mode.
  12461. test "$am__universal" = false || continue
  12462. ;;
  12463. nosideeffect)
  12464. # after this tag, mechanisms are not by side-effect, so they'll
  12465. # only be used when explicitly requested
  12466. if test "x$enable_dependency_tracking" = xyes; then
  12467. continue
  12468. else
  12469. break
  12470. fi
  12471. ;;
  12472. msvisualcpp | msvcmsys)
  12473. # This compiler won't grok `-c -o', but also, the minuso test has
  12474. # not run yet. These depmodes are late enough in the game, and
  12475. # so weak that their functioning should not be impacted.
  12476. am__obj=conftest.${OBJEXT-o}
  12477. am__minus_obj=
  12478. ;;
  12479. none) break ;;
  12480. esac
  12481. if depmode=$depmode \
  12482. source=sub/conftest.c object=$am__obj \
  12483. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12484. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12485. >/dev/null 2>conftest.err &&
  12486. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12487. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12488. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12489. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12490. # icc doesn't choke on unknown options, it will just issue warnings
  12491. # or remarks (even with -Werror). So we grep stderr for any message
  12492. # that says an option was ignored or not supported.
  12493. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12494. # icc: Command line warning: ignoring option '-M'; no argument required
  12495. # The diagnosis changed in icc 8.0:
  12496. # icc: Command line remark: option '-MP' not supported
  12497. if (grep 'ignoring option' conftest.err ||
  12498. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12499. am_cv_CC_dependencies_compiler_type=$depmode
  12500. break
  12501. fi
  12502. fi
  12503. done
  12504. cd ..
  12505. rm -rf conftest.dir
  12506. else
  12507. am_cv_CC_dependencies_compiler_type=none
  12508. fi
  12509. fi
  12510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12511. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12512. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12513. if
  12514. test "x$enable_dependency_tracking" != xno \
  12515. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12516. am__fastdepCC_TRUE=
  12517. am__fastdepCC_FALSE='#'
  12518. else
  12519. am__fastdepCC_TRUE='#'
  12520. am__fastdepCC_FALSE=
  12521. fi
  12522. depcc="$CXX" am_compiler_list=
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12524. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12525. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  12526. $as_echo_n "(cached) " >&6
  12527. else
  12528. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12529. # We make a subdir and do the tests there. Otherwise we can end up
  12530. # making bogus files that we don't know about and never remove. For
  12531. # instance it was reported that on HP-UX the gcc test will end up
  12532. # making a dummy file named `D' -- because `-MD' means `put the output
  12533. # in D'.
  12534. mkdir conftest.dir
  12535. # Copy depcomp to subdir because otherwise we won't find it if we're
  12536. # using a relative directory.
  12537. cp "$am_depcomp" conftest.dir
  12538. cd conftest.dir
  12539. # We will build objects and dependencies in a subdirectory because
  12540. # it helps to detect inapplicable dependency modes. For instance
  12541. # both Tru64's cc and ICC support -MD to output dependencies as a
  12542. # side effect of compilation, but ICC will put the dependencies in
  12543. # the current directory while Tru64 will put them in the object
  12544. # directory.
  12545. mkdir sub
  12546. am_cv_CXX_dependencies_compiler_type=none
  12547. if test "$am_compiler_list" = ""; then
  12548. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12549. fi
  12550. am__universal=false
  12551. case " $depcc " in #(
  12552. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12553. esac
  12554. for depmode in $am_compiler_list; do
  12555. # Setup a source with many dependencies, because some compilers
  12556. # like to wrap large dependency lists on column 80 (with \), and
  12557. # we should not choose a depcomp mode which is confused by this.
  12558. #
  12559. # We need to recreate these files for each test, as the compiler may
  12560. # overwrite some of them when testing with obscure command lines.
  12561. # This happens at least with the AIX C compiler.
  12562. : > sub/conftest.c
  12563. for i in 1 2 3 4 5 6; do
  12564. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12565. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12566. # Solaris 8's {/usr,}/bin/sh.
  12567. touch sub/conftst$i.h
  12568. done
  12569. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12570. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12571. # mode. It turns out that the SunPro C++ compiler does not properly
  12572. # handle `-M -o', and we need to detect this. Also, some Intel
  12573. # versions had trouble with output in subdirs
  12574. am__obj=sub/conftest.${OBJEXT-o}
  12575. am__minus_obj="-o $am__obj"
  12576. case $depmode in
  12577. gcc)
  12578. # This depmode causes a compiler race in universal mode.
  12579. test "$am__universal" = false || continue
  12580. ;;
  12581. nosideeffect)
  12582. # after this tag, mechanisms are not by side-effect, so they'll
  12583. # only be used when explicitly requested
  12584. if test "x$enable_dependency_tracking" = xyes; then
  12585. continue
  12586. else
  12587. break
  12588. fi
  12589. ;;
  12590. msvisualcpp | msvcmsys)
  12591. # This compiler won't grok `-c -o', but also, the minuso test has
  12592. # not run yet. These depmodes are late enough in the game, and
  12593. # so weak that their functioning should not be impacted.
  12594. am__obj=conftest.${OBJEXT-o}
  12595. am__minus_obj=
  12596. ;;
  12597. none) break ;;
  12598. esac
  12599. if depmode=$depmode \
  12600. source=sub/conftest.c object=$am__obj \
  12601. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12602. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12603. >/dev/null 2>conftest.err &&
  12604. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12605. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12606. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12607. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12608. # icc doesn't choke on unknown options, it will just issue warnings
  12609. # or remarks (even with -Werror). So we grep stderr for any message
  12610. # that says an option was ignored or not supported.
  12611. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12612. # icc: Command line warning: ignoring option '-M'; no argument required
  12613. # The diagnosis changed in icc 8.0:
  12614. # icc: Command line remark: option '-MP' not supported
  12615. if (grep 'ignoring option' conftest.err ||
  12616. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12617. am_cv_CXX_dependencies_compiler_type=$depmode
  12618. break
  12619. fi
  12620. fi
  12621. done
  12622. cd ..
  12623. rm -rf conftest.dir
  12624. else
  12625. am_cv_CXX_dependencies_compiler_type=none
  12626. fi
  12627. fi
  12628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12629. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12630. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12631. if
  12632. test "x$enable_dependency_tracking" != xno \
  12633. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12634. am__fastdepCXX_TRUE=
  12635. am__fastdepCXX_FALSE='#'
  12636. else
  12637. am__fastdepCXX_TRUE='#'
  12638. am__fastdepCXX_FALSE=
  12639. fi
  12640. if test "x$CC" != xcc; then
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  12642. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  12643. else
  12644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  12645. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  12646. fi
  12647. set dummy $CC; ac_cc=`$as_echo "$2" |
  12648. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  12649. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  12650. $as_echo_n "(cached) " >&6
  12651. else
  12652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12653. /* end confdefs.h. */
  12654. int
  12655. main ()
  12656. {
  12657. ;
  12658. return 0;
  12659. }
  12660. _ACEOF
  12661. # Make sure it works both with $CC and with simple cc.
  12662. # We do the test twice because some compilers refuse to overwrite an
  12663. # existing .o file with -o, though they will create one.
  12664. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  12665. rm -f conftest2.*
  12666. if { { case "(($ac_try" in
  12667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12668. *) ac_try_echo=$ac_try;;
  12669. esac
  12670. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12671. $as_echo "$ac_try_echo"; } >&5
  12672. (eval "$ac_try") 2>&5
  12673. ac_status=$?
  12674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12675. test $ac_status = 0; } &&
  12676. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  12677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12678. *) ac_try_echo=$ac_try;;
  12679. esac
  12680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12681. $as_echo "$ac_try_echo"; } >&5
  12682. (eval "$ac_try") 2>&5
  12683. ac_status=$?
  12684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12685. test $ac_status = 0; };
  12686. then
  12687. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  12688. if test "x$CC" != xcc; then
  12689. # Test first that cc exists at all.
  12690. if { ac_try='cc -c conftest.$ac_ext >&5'
  12691. { { case "(($ac_try" in
  12692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12693. *) ac_try_echo=$ac_try;;
  12694. esac
  12695. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12696. $as_echo "$ac_try_echo"; } >&5
  12697. (eval "$ac_try") 2>&5
  12698. ac_status=$?
  12699. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12700. test $ac_status = 0; }; }; then
  12701. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  12702. rm -f conftest2.*
  12703. if { { case "(($ac_try" in
  12704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12705. *) ac_try_echo=$ac_try;;
  12706. esac
  12707. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12708. $as_echo "$ac_try_echo"; } >&5
  12709. (eval "$ac_try") 2>&5
  12710. ac_status=$?
  12711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12712. test $ac_status = 0; } &&
  12713. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  12714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12715. *) ac_try_echo=$ac_try;;
  12716. esac
  12717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12718. $as_echo "$ac_try_echo"; } >&5
  12719. (eval "$ac_try") 2>&5
  12720. ac_status=$?
  12721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12722. test $ac_status = 0; };
  12723. then
  12724. # cc works too.
  12725. :
  12726. else
  12727. # cc exists but doesn't like -o.
  12728. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  12729. fi
  12730. fi
  12731. fi
  12732. else
  12733. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  12734. fi
  12735. rm -f core conftest*
  12736. fi
  12737. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  12738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12739. $as_echo "yes" >&6; }
  12740. else
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12742. $as_echo "no" >&6; }
  12743. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  12744. fi
  12745. # FIXME: we rely on the cache variable name because
  12746. # there is no other way.
  12747. set dummy $CC
  12748. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  12749. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  12750. if test "$am_t" != yes; then
  12751. # Losing compiler, so override with the script.
  12752. # FIXME: It is wrong to rewrite CC.
  12753. # But if we don't then we get into trouble of one sort or another.
  12754. # A longer-term fix would be to have automake use am__CC in this case,
  12755. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  12756. CC="$am_aux_dir/compile $CC"
  12757. fi
  12758. # needed to handle 64-bit architecture
  12759. # The cast to long int works around a bug in the HP C Compiler
  12760. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12761. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12762. # This bug is HP SR number 8606223364.
  12763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  12764. $as_echo_n "checking size of int... " >&6; }
  12765. if test "${ac_cv_sizeof_int+set}" = set; then :
  12766. $as_echo_n "(cached) " >&6
  12767. else
  12768. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  12769. else
  12770. if test "$ac_cv_type_int" = yes; then
  12771. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12772. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12773. { as_fn_set_status 77
  12774. as_fn_error "cannot compute sizeof (int)
  12775. See \`config.log' for more details." "$LINENO" 5; }; }
  12776. else
  12777. ac_cv_sizeof_int=0
  12778. fi
  12779. fi
  12780. fi
  12781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  12782. $as_echo "$ac_cv_sizeof_int" >&6; }
  12783. cat >>confdefs.h <<_ACEOF
  12784. #define SIZEOF_INT $ac_cv_sizeof_int
  12785. _ACEOF
  12786. # The cast to long int works around a bug in the HP C Compiler
  12787. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12788. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12789. # This bug is HP SR number 8606223364.
  12790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  12791. $as_echo_n "checking size of long... " >&6; }
  12792. if test "${ac_cv_sizeof_long+set}" = set; then :
  12793. $as_echo_n "(cached) " >&6
  12794. else
  12795. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  12796. else
  12797. if test "$ac_cv_type_long" = yes; then
  12798. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12799. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12800. { as_fn_set_status 77
  12801. as_fn_error "cannot compute sizeof (long)
  12802. See \`config.log' for more details." "$LINENO" 5; }; }
  12803. else
  12804. ac_cv_sizeof_long=0
  12805. fi
  12806. fi
  12807. fi
  12808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  12809. $as_echo "$ac_cv_sizeof_long" >&6; }
  12810. cat >>confdefs.h <<_ACEOF
  12811. #define SIZEOF_LONG $ac_cv_sizeof_long
  12812. _ACEOF
  12813. # The cast to long int works around a bug in the HP C Compiler
  12814. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12815. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12816. # This bug is HP SR number 8606223364.
  12817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  12818. $as_echo_n "checking size of size_t... " >&6; }
  12819. if test "${ac_cv_sizeof_size_t+set}" = set; then :
  12820. $as_echo_n "(cached) " >&6
  12821. else
  12822. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  12823. else
  12824. if test "$ac_cv_type_size_t" = yes; then
  12825. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12826. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12827. { as_fn_set_status 77
  12828. as_fn_error "cannot compute sizeof (size_t)
  12829. See \`config.log' for more details." "$LINENO" 5; }; }
  12830. else
  12831. ac_cv_sizeof_size_t=0
  12832. fi
  12833. fi
  12834. fi
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  12836. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  12837. cat >>confdefs.h <<_ACEOF
  12838. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  12839. _ACEOF
  12840. #------------------------------------------------------------------------
  12841. # Handle the --prefix=... option
  12842. #------------------------------------------------------------------------
  12843. if test "${prefix}" = "NONE"; then
  12844. prefix=/usr/local
  12845. fi
  12846. if test "${exec_prefix}" = "NONE"; then
  12847. exec_prefix=$prefix
  12848. fi
  12849. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  12850. eval libdir="$libdir"
  12851. ################################
  12852. # Deal with debugging options
  12853. ################################
  12854. # Check whether --enable-debug was given.
  12855. if test "${enable_debug+set}" = set; then :
  12856. enableval=$enable_debug;
  12857. else
  12858. enable_debug=no
  12859. fi
  12860. if test x$enable_debug = xyes; then
  12861. DEBUG_TRUE=
  12862. DEBUG_FALSE='#'
  12863. else
  12864. DEBUG_TRUE='#'
  12865. DEBUG_FALSE=
  12866. fi
  12867. ################################
  12868. # Check for the LUB library
  12869. ################################
  12870. LUB_LIBS="-llub"
  12871. LUB_CFLAGS=""
  12872. if test x$LUB_LIBS = x; then
  12873. as_fn_error "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  12874. fi
  12875. ################################
  12876. # Check for the KONF library
  12877. ################################
  12878. KONF_LIBS="-lkonf"
  12879. KONF_CFLAGS=""
  12880. if test x$KONF_LIBS = x; then
  12881. as_fn_error "Cannot find the \"CLI config\" library" "$LINENO" 5
  12882. fi
  12883. ################################
  12884. # Check for the TINYRL library
  12885. ################################
  12886. TINYRL_LIBS="-ltinyrl"
  12887. TINYRL_CFLAGS=""
  12888. if test x$TINYRL_LIBS = x; then
  12889. as_fn_error "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  12890. fi
  12891. ################################
  12892. # Check for the TINYXML library
  12893. ################################
  12894. TINYXML_LIBS="-ltinyxml"
  12895. TINYXML_CXXFLAGS="-std=gnu++98"
  12896. if test x$TINYXML_LIBS = x; then
  12897. as_fn_error "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  12898. fi
  12899. ################################
  12900. # Check for the PTHREAD library
  12901. ################################
  12902. # Check whether --with-pthread was given.
  12903. if test "${with_pthread+set}" = set; then :
  12904. withval=$with_pthread;
  12905. fi
  12906. for ac_header in pthread.h
  12907. do :
  12908. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  12909. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  12910. cat >>confdefs.h <<_ACEOF
  12911. #define HAVE_PTHREAD_H 1
  12912. _ACEOF
  12913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  12914. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  12915. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  12916. $as_echo_n "(cached) " >&6
  12917. else
  12918. ac_check_lib_save_LIBS=$LIBS
  12919. LIBS="-lpthread $LIBS"
  12920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12921. /* end confdefs.h. */
  12922. /* Override any GCC internal prototype to avoid an error.
  12923. Use char because int might match the return type of a GCC
  12924. builtin and then its argument prototype would still apply. */
  12925. #ifdef __cplusplus
  12926. extern "C"
  12927. #endif
  12928. char pthread_create ();
  12929. int
  12930. main ()
  12931. {
  12932. return pthread_create ();
  12933. ;
  12934. return 0;
  12935. }
  12936. _ACEOF
  12937. if ac_fn_c_try_link "$LINENO"; then :
  12938. ac_cv_lib_pthread_pthread_create=yes
  12939. else
  12940. ac_cv_lib_pthread_pthread_create=no
  12941. fi
  12942. rm -f core conftest.err conftest.$ac_objext \
  12943. conftest$ac_exeext conftest.$ac_ext
  12944. LIBS=$ac_check_lib_save_LIBS
  12945. fi
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  12947. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  12948. if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  12949. $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
  12950. if test x$with_pthread = x; then
  12951. PTHREAD_LIBS="-lpthread"
  12952. else
  12953. PTHREAD_CFLAGS="-I$with_pthread/include"
  12954. PTHREAD_LIBS="-L$with_pthread/lib -lpthread"
  12955. fi
  12956. fi
  12957. fi
  12958. done
  12959. if test x$PTHREAD_LIBS = x; then
  12960. as_fn_error "Cannot find the POSIX threads library" "$LINENO" 5
  12961. fi
  12962. ################################
  12963. # Check for the RT library
  12964. ################################
  12965. # Check whether --with-rt was given.
  12966. if test "${with_rt+set}" = set; then :
  12967. withval=$with_rt;
  12968. fi
  12969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  12970. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  12971. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
  12972. $as_echo_n "(cached) " >&6
  12973. else
  12974. ac_check_lib_save_LIBS=$LIBS
  12975. LIBS="-lrt $LIBS"
  12976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12977. /* end confdefs.h. */
  12978. /* Override any GCC internal prototype to avoid an error.
  12979. Use char because int might match the return type of a GCC
  12980. builtin and then its argument prototype would still apply. */
  12981. #ifdef __cplusplus
  12982. extern "C"
  12983. #endif
  12984. char clock_gettime ();
  12985. int
  12986. main ()
  12987. {
  12988. return clock_gettime ();
  12989. ;
  12990. return 0;
  12991. }
  12992. _ACEOF
  12993. if ac_fn_c_try_link "$LINENO"; then :
  12994. ac_cv_lib_rt_clock_gettime=yes
  12995. else
  12996. ac_cv_lib_rt_clock_gettime=no
  12997. fi
  12998. rm -f core conftest.err conftest.$ac_objext \
  12999. conftest$ac_exeext conftest.$ac_ext
  13000. LIBS=$ac_check_lib_save_LIBS
  13001. fi
  13002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13003. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13004. if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
  13005. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  13006. if test x$with_rt = x; then
  13007. RT_LIBS="-lrt"
  13008. else
  13009. RT_CFLAGS="-I$with_rt/include"
  13010. RT_LIBS="-L$with_rt/lib -lrt"
  13011. fi
  13012. fi
  13013. ################################
  13014. # Check for the TCL library
  13015. ################################
  13016. TCL_CONFIG=${libdir}/tclConfig.sh
  13017. # Check whether --with-tcl was given.
  13018. if test "${with_tcl+set}" = set; then :
  13019. withval=$with_tcl;
  13020. fi
  13021. if test -e $TCL_CONFIG; then
  13022. . ${TCL_CONFIG}; # get TCL_VERSION
  13023. for ac_header in tcl.h
  13024. do :
  13025. ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
  13026. if test "x$ac_cv_header_tcl_h" = x""yes; then :
  13027. cat >>confdefs.h <<_ACEOF
  13028. #define HAVE_TCL_H 1
  13029. _ACEOF
  13030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl" >&5
  13031. $as_echo_n "checking for Tcl_CreateInterp in -ltcl... " >&6; }
  13032. if test "${ac_cv_lib_tcl_Tcl_CreateInterp+set}" = set; then :
  13033. $as_echo_n "(cached) " >&6
  13034. else
  13035. ac_check_lib_save_LIBS=$LIBS
  13036. LIBS="-ltcl $LIBS"
  13037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13038. /* end confdefs.h. */
  13039. /* Override any GCC internal prototype to avoid an error.
  13040. Use char because int might match the return type of a GCC
  13041. builtin and then its argument prototype would still apply. */
  13042. #ifdef __cplusplus
  13043. extern "C"
  13044. #endif
  13045. char Tcl_CreateInterp ();
  13046. int
  13047. main ()
  13048. {
  13049. return Tcl_CreateInterp ();
  13050. ;
  13051. return 0;
  13052. }
  13053. _ACEOF
  13054. if ac_fn_c_try_link "$LINENO"; then :
  13055. ac_cv_lib_tcl_Tcl_CreateInterp=yes
  13056. else
  13057. ac_cv_lib_tcl_Tcl_CreateInterp=no
  13058. fi
  13059. rm -f core conftest.err conftest.$ac_objext \
  13060. conftest$ac_exeext conftest.$ac_ext
  13061. LIBS=$ac_check_lib_save_LIBS
  13062. fi
  13063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_Tcl_CreateInterp" >&5
  13064. $as_echo "$ac_cv_lib_tcl_Tcl_CreateInterp" >&6; }
  13065. if test "x$ac_cv_lib_tcl_Tcl_CreateInterp" = x""yes; then :
  13066. if test x$with_tcl = x; then
  13067. TCL_LIBS="-ltcl"
  13068. else
  13069. TCL_CFLAGS="-I${TCL_DIR}/include"
  13070. TCL_LIBS="-L${TCL_DIR}/lib -ltcl"
  13071. fi
  13072. fi
  13073. fi
  13074. done
  13075. if test x$TCL_LIBS != x; then
  13076. $as_echo "#define HAVE_LIBTCL /**/" >>confdefs.h
  13077. fi
  13078. fi
  13079. ################################
  13080. # Check for inclusion of lub_heap
  13081. ################################
  13082. # Check whether --enable-lubheap was given.
  13083. if test "${enable_lubheap+set}" = set; then :
  13084. enableval=$enable_lubheap;
  13085. else
  13086. enable_lubheap=no
  13087. fi
  13088. if test x$enable_lubheap = xyes; then
  13089. LUBHEAP_TRUE=
  13090. LUBHEAP_FALSE='#'
  13091. else
  13092. LUBHEAP_TRUE='#'
  13093. LUBHEAP_FALSE=
  13094. fi
  13095. if test x$enable_lubheap = xyes; then
  13096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing standard memory libraries with lubheap" >&5
  13097. $as_echo "$as_me: WARNING: Replacing standard memory libraries with lubheap" >&2;}
  13098. LUBHEAP_LIBS="-llubheap"
  13099. LUBHEAP_CFLAGS=""
  13100. if test x$LUBHEAP_LIBS = x; then
  13101. as_fn_error "Cannot find the \"Little Useful Bits Heap\" library" "$LINENO" 5
  13102. fi
  13103. fi
  13104. ################################
  13105. # Check for linkage with GPL libraries
  13106. ################################
  13107. # Check whether --enable-gpl was given.
  13108. if test "${enable_gpl+set}" = set; then :
  13109. enableval=$enable_gpl;
  13110. else
  13111. enable_gpl=yes
  13112. fi
  13113. if test x$enable_gpl = xyes; then
  13114. ################################
  13115. # Check for BFD library
  13116. ################################
  13117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking with GPL licence libraries" >&5
  13118. $as_echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  13119. for ac_header in bfd.h
  13120. do :
  13121. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  13122. if test "x$ac_cv_header_bfd_h" = x""yes; then :
  13123. cat >>confdefs.h <<_ACEOF
  13124. #define HAVE_BFD_H 1
  13125. _ACEOF
  13126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
  13127. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  13128. if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then :
  13129. $as_echo_n "(cached) " >&6
  13130. else
  13131. ac_check_lib_save_LIBS=$LIBS
  13132. LIBS="-lbfd $LIBS"
  13133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13134. /* end confdefs.h. */
  13135. /* Override any GCC internal prototype to avoid an error.
  13136. Use char because int might match the return type of a GCC
  13137. builtin and then its argument prototype would still apply. */
  13138. #ifdef __cplusplus
  13139. extern "C"
  13140. #endif
  13141. char bfd_init ();
  13142. int
  13143. main ()
  13144. {
  13145. return bfd_init ();
  13146. ;
  13147. return 0;
  13148. }
  13149. _ACEOF
  13150. if ac_fn_c_try_link "$LINENO"; then :
  13151. ac_cv_lib_bfd_bfd_init=yes
  13152. else
  13153. ac_cv_lib_bfd_bfd_init=no
  13154. fi
  13155. rm -f core conftest.err conftest.$ac_objext \
  13156. conftest$ac_exeext conftest.$ac_ext
  13157. LIBS=$ac_check_lib_save_LIBS
  13158. fi
  13159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
  13160. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  13161. if test "x$ac_cv_lib_bfd_bfd_init" = x""yes; then :
  13162. $as_echo "#define HAVE_LIBBFD /**/" >>confdefs.h
  13163. BFD_LIBS="-lbfd -liberty"
  13164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_dgettext in -lintl" >&5
  13165. $as_echo_n "checking for libintl_dgettext in -lintl... " >&6; }
  13166. if test "${ac_cv_lib_intl_libintl_dgettext+set}" = set; then :
  13167. $as_echo_n "(cached) " >&6
  13168. else
  13169. ac_check_lib_save_LIBS=$LIBS
  13170. LIBS="-lintl $LIBS"
  13171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13172. /* end confdefs.h. */
  13173. /* Override any GCC internal prototype to avoid an error.
  13174. Use char because int might match the return type of a GCC
  13175. builtin and then its argument prototype would still apply. */
  13176. #ifdef __cplusplus
  13177. extern "C"
  13178. #endif
  13179. char libintl_dgettext ();
  13180. int
  13181. main ()
  13182. {
  13183. return libintl_dgettext ();
  13184. ;
  13185. return 0;
  13186. }
  13187. _ACEOF
  13188. if ac_fn_c_try_link "$LINENO"; then :
  13189. ac_cv_lib_intl_libintl_dgettext=yes
  13190. else
  13191. ac_cv_lib_intl_libintl_dgettext=no
  13192. fi
  13193. rm -f core conftest.err conftest.$ac_objext \
  13194. conftest$ac_exeext conftest.$ac_ext
  13195. LIBS=$ac_check_lib_save_LIBS
  13196. fi
  13197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  13198. $as_echo "$ac_cv_lib_intl_libintl_dgettext" >&6; }
  13199. if test "x$ac_cv_lib_intl_libintl_dgettext" = x""yes; then :
  13200. $as_echo "#define HAVE_LIBINTL /**/" >>confdefs.h
  13201. BFD_LIBS="$BFD_LIBS -lintl"
  13202. fi
  13203. fi
  13204. fi
  13205. done
  13206. else
  13207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  13208. $as_echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  13209. fi
  13210. ac_config_files="$ac_config_files Makefile"
  13211. cat >confcache <<\_ACEOF
  13212. # This file is a shell script that caches the results of configure
  13213. # tests run on this system so they can be shared between configure
  13214. # scripts and configure runs, see configure's option --config-cache.
  13215. # It is not useful on other systems. If it contains results you don't
  13216. # want to keep, you may remove or edit it.
  13217. #
  13218. # config.status only pays attention to the cache file if you give it
  13219. # the --recheck option to rerun configure.
  13220. #
  13221. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13222. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13223. # following values.
  13224. _ACEOF
  13225. # The following way of writing the cache mishandles newlines in values,
  13226. # but we know of no workaround that is simple, portable, and efficient.
  13227. # So, we kill variables containing newlines.
  13228. # Ultrix sh set writes to stderr and can't be redirected directly,
  13229. # and sets the high bit in the cache file unless we assign to the vars.
  13230. (
  13231. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13232. eval ac_val=\$$ac_var
  13233. case $ac_val in #(
  13234. *${as_nl}*)
  13235. case $ac_var in #(
  13236. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13237. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13238. esac
  13239. case $ac_var in #(
  13240. _ | IFS | as_nl) ;; #(
  13241. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13242. *) { eval $ac_var=; unset $ac_var;} ;;
  13243. esac ;;
  13244. esac
  13245. done
  13246. (set) 2>&1 |
  13247. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13248. *${as_nl}ac_space=\ *)
  13249. # `set' does not quote correctly, so add quotes: double-quote
  13250. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13251. sed -n \
  13252. "s/'/'\\\\''/g;
  13253. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13254. ;; #(
  13255. *)
  13256. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13257. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13258. ;;
  13259. esac |
  13260. sort
  13261. ) |
  13262. sed '
  13263. /^ac_cv_env_/b end
  13264. t clear
  13265. :clear
  13266. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13267. t end
  13268. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13269. :end' >>confcache
  13270. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13271. if test -w "$cache_file"; then
  13272. test "x$cache_file" != "x/dev/null" &&
  13273. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13274. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13275. cat confcache >$cache_file
  13276. else
  13277. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13278. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13279. fi
  13280. fi
  13281. rm -f confcache
  13282. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13283. # Let make expand exec_prefix.
  13284. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13285. DEFS=-DHAVE_CONFIG_H
  13286. ac_libobjs=
  13287. ac_ltlibobjs=
  13288. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13289. # 1. Remove the extension, and $U if already installed.
  13290. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13291. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13292. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13293. # will be set to the directory where LIBOBJS objects are built.
  13294. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13295. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13296. done
  13297. LIBOBJS=$ac_libobjs
  13298. LTLIBOBJS=$ac_ltlibobjs
  13299. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13300. as_fn_error "conditional \"AMDEP\" was never defined.
  13301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13302. fi
  13303. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13304. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13305. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13306. fi
  13307. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13308. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13309. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13310. fi
  13311. if test -n "$EXEEXT"; then
  13312. am__EXEEXT_TRUE=
  13313. am__EXEEXT_FALSE='#'
  13314. else
  13315. am__EXEEXT_TRUE='#'
  13316. am__EXEEXT_FALSE=
  13317. fi
  13318. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  13319. as_fn_error "conditional \"DEBUG\" was never defined.
  13320. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13321. fi
  13322. if test -z "${LUBHEAP_TRUE}" && test -z "${LUBHEAP_FALSE}"; then
  13323. as_fn_error "conditional \"LUBHEAP\" was never defined.
  13324. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13325. fi
  13326. : ${CONFIG_STATUS=./config.status}
  13327. ac_write_fail=0
  13328. ac_clean_files_save=$ac_clean_files
  13329. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13330. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13331. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13332. as_write_fail=0
  13333. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13334. #! $SHELL
  13335. # Generated by $as_me.
  13336. # Run this file to recreate the current configuration.
  13337. # Compiler output produced by configure, useful for debugging
  13338. # configure, is in config.log if it exists.
  13339. debug=false
  13340. ac_cs_recheck=false
  13341. ac_cs_silent=false
  13342. SHELL=\${CONFIG_SHELL-$SHELL}
  13343. export SHELL
  13344. _ASEOF
  13345. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13346. ## -------------------- ##
  13347. ## M4sh Initialization. ##
  13348. ## -------------------- ##
  13349. # Be more Bourne compatible
  13350. DUALCASE=1; export DUALCASE # for MKS sh
  13351. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13352. emulate sh
  13353. NULLCMD=:
  13354. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13355. # is contrary to our usage. Disable this feature.
  13356. alias -g '${1+"$@"}'='"$@"'
  13357. setopt NO_GLOB_SUBST
  13358. else
  13359. case `(set -o) 2>/dev/null` in #(
  13360. *posix*) :
  13361. set -o posix ;; #(
  13362. *) :
  13363. ;;
  13364. esac
  13365. fi
  13366. as_nl='
  13367. '
  13368. export as_nl
  13369. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13370. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13371. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13372. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13373. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13374. # but without wasting forks for bash or zsh.
  13375. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13376. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13377. as_echo='print -r --'
  13378. as_echo_n='print -rn --'
  13379. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13380. as_echo='printf %s\n'
  13381. as_echo_n='printf %s'
  13382. else
  13383. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13384. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13385. as_echo_n='/usr/ucb/echo -n'
  13386. else
  13387. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13388. as_echo_n_body='eval
  13389. arg=$1;
  13390. case $arg in #(
  13391. *"$as_nl"*)
  13392. expr "X$arg" : "X\\(.*\\)$as_nl";
  13393. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13394. esac;
  13395. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13396. '
  13397. export as_echo_n_body
  13398. as_echo_n='sh -c $as_echo_n_body as_echo'
  13399. fi
  13400. export as_echo_body
  13401. as_echo='sh -c $as_echo_body as_echo'
  13402. fi
  13403. # The user is always right.
  13404. if test "${PATH_SEPARATOR+set}" != set; then
  13405. PATH_SEPARATOR=:
  13406. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13407. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13408. PATH_SEPARATOR=';'
  13409. }
  13410. fi
  13411. # IFS
  13412. # We need space, tab and new line, in precisely that order. Quoting is
  13413. # there to prevent editors from complaining about space-tab.
  13414. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13415. # splitting by setting IFS to empty value.)
  13416. IFS=" "" $as_nl"
  13417. # Find who we are. Look in the path if we contain no directory separator.
  13418. case $0 in #((
  13419. *[\\/]* ) as_myself=$0 ;;
  13420. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13421. for as_dir in $PATH
  13422. do
  13423. IFS=$as_save_IFS
  13424. test -z "$as_dir" && as_dir=.
  13425. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13426. done
  13427. IFS=$as_save_IFS
  13428. ;;
  13429. esac
  13430. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13431. # in which case we are not to be found in the path.
  13432. if test "x$as_myself" = x; then
  13433. as_myself=$0
  13434. fi
  13435. if test ! -f "$as_myself"; then
  13436. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13437. exit 1
  13438. fi
  13439. # Unset variables that we do not need and which cause bugs (e.g. in
  13440. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13441. # suppresses any "Segmentation fault" message there. '((' could
  13442. # trigger a bug in pdksh 5.2.14.
  13443. for as_var in BASH_ENV ENV MAIL MAILPATH
  13444. do eval test x\${$as_var+set} = xset \
  13445. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13446. done
  13447. PS1='$ '
  13448. PS2='> '
  13449. PS4='+ '
  13450. # NLS nuisances.
  13451. LC_ALL=C
  13452. export LC_ALL
  13453. LANGUAGE=C
  13454. export LANGUAGE
  13455. # CDPATH.
  13456. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13457. # as_fn_error ERROR [LINENO LOG_FD]
  13458. # ---------------------------------
  13459. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13460. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13461. # script with status $?, using 1 if that was 0.
  13462. as_fn_error ()
  13463. {
  13464. as_status=$?; test $as_status -eq 0 && as_status=1
  13465. if test "$3"; then
  13466. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13467. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13468. fi
  13469. $as_echo "$as_me: error: $1" >&2
  13470. as_fn_exit $as_status
  13471. } # as_fn_error
  13472. # as_fn_set_status STATUS
  13473. # -----------------------
  13474. # Set $? to STATUS, without forking.
  13475. as_fn_set_status ()
  13476. {
  13477. return $1
  13478. } # as_fn_set_status
  13479. # as_fn_exit STATUS
  13480. # -----------------
  13481. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13482. as_fn_exit ()
  13483. {
  13484. set +e
  13485. as_fn_set_status $1
  13486. exit $1
  13487. } # as_fn_exit
  13488. # as_fn_unset VAR
  13489. # ---------------
  13490. # Portably unset VAR.
  13491. as_fn_unset ()
  13492. {
  13493. { eval $1=; unset $1;}
  13494. }
  13495. as_unset=as_fn_unset
  13496. # as_fn_append VAR VALUE
  13497. # ----------------------
  13498. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13499. # advantage of any shell optimizations that allow amortized linear growth over
  13500. # repeated appends, instead of the typical quadratic growth present in naive
  13501. # implementations.
  13502. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13503. eval 'as_fn_append ()
  13504. {
  13505. eval $1+=\$2
  13506. }'
  13507. else
  13508. as_fn_append ()
  13509. {
  13510. eval $1=\$$1\$2
  13511. }
  13512. fi # as_fn_append
  13513. # as_fn_arith ARG...
  13514. # ------------------
  13515. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13516. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13517. # must be portable across $(()) and expr.
  13518. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13519. eval 'as_fn_arith ()
  13520. {
  13521. as_val=$(( $* ))
  13522. }'
  13523. else
  13524. as_fn_arith ()
  13525. {
  13526. as_val=`expr "$@" || test $? -eq 1`
  13527. }
  13528. fi # as_fn_arith
  13529. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13530. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13531. as_expr=expr
  13532. else
  13533. as_expr=false
  13534. fi
  13535. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13536. as_basename=basename
  13537. else
  13538. as_basename=false
  13539. fi
  13540. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13541. as_dirname=dirname
  13542. else
  13543. as_dirname=false
  13544. fi
  13545. as_me=`$as_basename -- "$0" ||
  13546. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13547. X"$0" : 'X\(//\)$' \| \
  13548. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13549. $as_echo X/"$0" |
  13550. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13551. s//\1/
  13552. q
  13553. }
  13554. /^X\/\(\/\/\)$/{
  13555. s//\1/
  13556. q
  13557. }
  13558. /^X\/\(\/\).*/{
  13559. s//\1/
  13560. q
  13561. }
  13562. s/.*/./; q'`
  13563. # Avoid depending upon Character Ranges.
  13564. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13565. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13566. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13567. as_cr_digits='0123456789'
  13568. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13569. ECHO_C= ECHO_N= ECHO_T=
  13570. case `echo -n x` in #(((((
  13571. -n*)
  13572. case `echo 'xy\c'` in
  13573. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13574. xy) ECHO_C='\c';;
  13575. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13576. ECHO_T=' ';;
  13577. esac;;
  13578. *)
  13579. ECHO_N='-n';;
  13580. esac
  13581. rm -f conf$$ conf$$.exe conf$$.file
  13582. if test -d conf$$.dir; then
  13583. rm -f conf$$.dir/conf$$.file
  13584. else
  13585. rm -f conf$$.dir
  13586. mkdir conf$$.dir 2>/dev/null
  13587. fi
  13588. if (echo >conf$$.file) 2>/dev/null; then
  13589. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13590. as_ln_s='ln -s'
  13591. # ... but there are two gotchas:
  13592. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13593. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13594. # In both cases, we have to default to `cp -p'.
  13595. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13596. as_ln_s='cp -p'
  13597. elif ln conf$$.file conf$$ 2>/dev/null; then
  13598. as_ln_s=ln
  13599. else
  13600. as_ln_s='cp -p'
  13601. fi
  13602. else
  13603. as_ln_s='cp -p'
  13604. fi
  13605. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13606. rmdir conf$$.dir 2>/dev/null
  13607. # as_fn_mkdir_p
  13608. # -------------
  13609. # Create "$as_dir" as a directory, including parents if necessary.
  13610. as_fn_mkdir_p ()
  13611. {
  13612. case $as_dir in #(
  13613. -*) as_dir=./$as_dir;;
  13614. esac
  13615. test -d "$as_dir" || eval $as_mkdir_p || {
  13616. as_dirs=
  13617. while :; do
  13618. case $as_dir in #(
  13619. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13620. *) as_qdir=$as_dir;;
  13621. esac
  13622. as_dirs="'$as_qdir' $as_dirs"
  13623. as_dir=`$as_dirname -- "$as_dir" ||
  13624. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13625. X"$as_dir" : 'X\(//\)[^/]' \| \
  13626. X"$as_dir" : 'X\(//\)$' \| \
  13627. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13628. $as_echo X"$as_dir" |
  13629. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13630. s//\1/
  13631. q
  13632. }
  13633. /^X\(\/\/\)[^/].*/{
  13634. s//\1/
  13635. q
  13636. }
  13637. /^X\(\/\/\)$/{
  13638. s//\1/
  13639. q
  13640. }
  13641. /^X\(\/\).*/{
  13642. s//\1/
  13643. q
  13644. }
  13645. s/.*/./; q'`
  13646. test -d "$as_dir" && break
  13647. done
  13648. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13649. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13650. } # as_fn_mkdir_p
  13651. if mkdir -p . 2>/dev/null; then
  13652. as_mkdir_p='mkdir -p "$as_dir"'
  13653. else
  13654. test -d ./-p && rmdir ./-p
  13655. as_mkdir_p=false
  13656. fi
  13657. if test -x / >/dev/null 2>&1; then
  13658. as_test_x='test -x'
  13659. else
  13660. if ls -dL / >/dev/null 2>&1; then
  13661. as_ls_L_option=L
  13662. else
  13663. as_ls_L_option=
  13664. fi
  13665. as_test_x='
  13666. eval sh -c '\''
  13667. if test -d "$1"; then
  13668. test -d "$1/.";
  13669. else
  13670. case $1 in #(
  13671. -*)set "./$1";;
  13672. esac;
  13673. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13674. ???[sx]*):;;*)false;;esac;fi
  13675. '\'' sh
  13676. '
  13677. fi
  13678. as_executable_p=$as_test_x
  13679. # Sed expression to map a string onto a valid CPP name.
  13680. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13681. # Sed expression to map a string onto a valid variable name.
  13682. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13683. exec 6>&1
  13684. ## ----------------------------------- ##
  13685. ## Main body of $CONFIG_STATUS script. ##
  13686. ## ----------------------------------- ##
  13687. _ASEOF
  13688. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13689. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13690. # Save the log message, to keep $0 and so on meaningful, and to
  13691. # report actual input values of CONFIG_FILES etc. instead of their
  13692. # values after options handling.
  13693. ac_log="
  13694. This file was extended by clish $as_me 1.2.0, which was
  13695. generated by GNU Autoconf 2.64. Invocation command line was
  13696. CONFIG_FILES = $CONFIG_FILES
  13697. CONFIG_HEADERS = $CONFIG_HEADERS
  13698. CONFIG_LINKS = $CONFIG_LINKS
  13699. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13700. $ $0 $@
  13701. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13702. "
  13703. _ACEOF
  13704. case $ac_config_files in *"
  13705. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13706. esac
  13707. case $ac_config_headers in *"
  13708. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13709. esac
  13710. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13711. # Files that config.status was made for.
  13712. config_files="$ac_config_files"
  13713. config_headers="$ac_config_headers"
  13714. config_commands="$ac_config_commands"
  13715. _ACEOF
  13716. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13717. ac_cs_usage="\
  13718. \`$as_me' instantiates files and other configuration actions
  13719. from templates according to the current configuration. Unless the files
  13720. and actions are specified as TAGs, all are instantiated by default.
  13721. Usage: $0 [OPTION]... [TAG]...
  13722. -h, --help print this help, then exit
  13723. -V, --version print version number and configuration settings, then exit
  13724. -q, --quiet, --silent
  13725. do not print progress messages
  13726. -d, --debug don't remove temporary files
  13727. --recheck update $as_me by reconfiguring in the same conditions
  13728. --file=FILE[:TEMPLATE]
  13729. instantiate the configuration file FILE
  13730. --header=FILE[:TEMPLATE]
  13731. instantiate the configuration header FILE
  13732. Configuration files:
  13733. $config_files
  13734. Configuration headers:
  13735. $config_headers
  13736. Configuration commands:
  13737. $config_commands
  13738. Report bugs to <serj.kalichev at gmail dot com>."
  13739. _ACEOF
  13740. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13741. ac_cs_version="\\
  13742. clish config.status 1.2.0
  13743. configured by $0, generated by GNU Autoconf 2.64,
  13744. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13745. Copyright (C) 2009 Free Software Foundation, Inc.
  13746. This config.status script is free software; the Free Software Foundation
  13747. gives unlimited permission to copy, distribute and modify it."
  13748. ac_pwd='$ac_pwd'
  13749. srcdir='$srcdir'
  13750. INSTALL='$INSTALL'
  13751. MKDIR_P='$MKDIR_P'
  13752. AWK='$AWK'
  13753. test -n "\$AWK" || AWK=awk
  13754. _ACEOF
  13755. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13756. # The default lists apply if the user does not specify any file.
  13757. ac_need_defaults=:
  13758. while test $# != 0
  13759. do
  13760. case $1 in
  13761. --*=*)
  13762. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13763. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13764. ac_shift=:
  13765. ;;
  13766. *)
  13767. ac_option=$1
  13768. ac_optarg=$2
  13769. ac_shift=shift
  13770. ;;
  13771. esac
  13772. case $ac_option in
  13773. # Handling of the options.
  13774. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13775. ac_cs_recheck=: ;;
  13776. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13777. $as_echo "$ac_cs_version"; exit ;;
  13778. --debug | --debu | --deb | --de | --d | -d )
  13779. debug=: ;;
  13780. --file | --fil | --fi | --f )
  13781. $ac_shift
  13782. case $ac_optarg in
  13783. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13784. esac
  13785. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13786. ac_need_defaults=false;;
  13787. --header | --heade | --head | --hea )
  13788. $ac_shift
  13789. case $ac_optarg in
  13790. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13791. esac
  13792. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13793. ac_need_defaults=false;;
  13794. --he | --h)
  13795. # Conflict between --help and --header
  13796. as_fn_error "ambiguous option: \`$1'
  13797. Try \`$0 --help' for more information.";;
  13798. --help | --hel | -h )
  13799. $as_echo "$ac_cs_usage"; exit ;;
  13800. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13801. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13802. ac_cs_silent=: ;;
  13803. # This is an error.
  13804. -*) as_fn_error "unrecognized option: \`$1'
  13805. Try \`$0 --help' for more information." ;;
  13806. *) as_fn_append ac_config_targets " $1"
  13807. ac_need_defaults=false ;;
  13808. esac
  13809. shift
  13810. done
  13811. ac_configure_extra_args=
  13812. if $ac_cs_silent; then
  13813. exec 6>/dev/null
  13814. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13815. fi
  13816. _ACEOF
  13817. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13818. if \$ac_cs_recheck; then
  13819. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13820. shift
  13821. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13822. CONFIG_SHELL='$SHELL'
  13823. export CONFIG_SHELL
  13824. exec "\$@"
  13825. fi
  13826. _ACEOF
  13827. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13828. exec 5>>config.log
  13829. {
  13830. echo
  13831. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13832. ## Running $as_me. ##
  13833. _ASBOX
  13834. $as_echo "$ac_log"
  13835. } >&5
  13836. _ACEOF
  13837. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13838. #
  13839. # INIT-COMMANDS
  13840. #
  13841. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13842. # if CDPATH is set.
  13843. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13844. sed_quote_subst='$sed_quote_subst'
  13845. double_quote_subst='$double_quote_subst'
  13846. delay_variable_subst='$delay_variable_subst'
  13847. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  13848. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13849. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13850. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13851. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13852. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13853. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13854. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13855. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13856. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13857. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13858. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13859. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13860. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13861. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13862. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13863. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13864. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13865. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13866. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13867. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13868. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13869. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13870. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13871. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13872. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13873. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13874. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13875. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13876. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13877. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13878. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13879. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13880. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13881. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13882. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13883. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13884. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13885. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13886. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13887. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13888. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13889. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13890. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13891. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13892. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13893. 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"`'
  13894. 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"`'
  13895. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13896. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13897. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13898. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13899. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13900. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13901. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13902. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13903. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13904. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13905. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13906. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13907. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13908. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13909. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13910. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13911. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13912. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13913. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13914. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13915. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13916. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13917. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13918. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13919. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13920. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13921. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13922. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13923. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13924. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13925. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13926. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13927. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13928. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13929. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13930. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13931. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13932. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13933. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13934. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13935. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13936. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13937. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13938. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13939. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13940. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13941. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13942. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13943. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13944. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13945. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13946. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13947. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13948. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13949. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13950. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13951. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13952. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13953. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13954. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13955. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13956. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13957. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13958. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13959. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13960. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13961. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13962. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13963. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13964. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13965. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13966. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13967. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13968. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13969. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13970. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  13971. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  13972. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  13973. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13974. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13975. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13976. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13977. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13978. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13979. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13980. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13981. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13982. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13983. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13984. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13985. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13986. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13987. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13988. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13989. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13990. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13991. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13992. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13993. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13994. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13995. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13996. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13997. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13998. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13999. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14000. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14001. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14002. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14003. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14004. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14005. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14006. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14007. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14008. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14009. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14010. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14011. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14012. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14013. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14014. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14015. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14016. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14017. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14018. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14019. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14020. LTCC='$LTCC'
  14021. LTCFLAGS='$LTCFLAGS'
  14022. compiler='$compiler_DEFAULT'
  14023. # Quote evaled strings.
  14024. for var in SED \
  14025. GREP \
  14026. EGREP \
  14027. FGREP \
  14028. LD \
  14029. NM \
  14030. LN_S \
  14031. lt_SP2NL \
  14032. lt_NL2SP \
  14033. reload_flag \
  14034. deplibs_check_method \
  14035. file_magic_cmd \
  14036. AR \
  14037. AR_FLAGS \
  14038. STRIP \
  14039. RANLIB \
  14040. CC \
  14041. CFLAGS \
  14042. compiler \
  14043. lt_cv_sys_global_symbol_pipe \
  14044. lt_cv_sys_global_symbol_to_cdecl \
  14045. lt_cv_sys_global_symbol_to_c_name_address \
  14046. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14047. SHELL \
  14048. ECHO \
  14049. lt_prog_compiler_no_builtin_flag \
  14050. lt_prog_compiler_wl \
  14051. lt_prog_compiler_pic \
  14052. lt_prog_compiler_static \
  14053. lt_cv_prog_compiler_c_o \
  14054. need_locks \
  14055. DSYMUTIL \
  14056. NMEDIT \
  14057. LIPO \
  14058. OTOOL \
  14059. OTOOL64 \
  14060. shrext_cmds \
  14061. export_dynamic_flag_spec \
  14062. whole_archive_flag_spec \
  14063. compiler_needs_object \
  14064. with_gnu_ld \
  14065. allow_undefined_flag \
  14066. no_undefined_flag \
  14067. hardcode_libdir_flag_spec \
  14068. hardcode_libdir_flag_spec_ld \
  14069. hardcode_libdir_separator \
  14070. fix_srcfile_path \
  14071. exclude_expsyms \
  14072. include_expsyms \
  14073. file_list_spec \
  14074. variables_saved_for_relink \
  14075. libname_spec \
  14076. library_names_spec \
  14077. soname_spec \
  14078. finish_eval \
  14079. old_striplib \
  14080. striplib \
  14081. compiler_lib_search_dirs \
  14082. predep_objects \
  14083. postdep_objects \
  14084. predeps \
  14085. postdeps \
  14086. compiler_lib_search_path \
  14087. LD_CXX \
  14088. compiler_CXX \
  14089. lt_prog_compiler_no_builtin_flag_CXX \
  14090. lt_prog_compiler_wl_CXX \
  14091. lt_prog_compiler_pic_CXX \
  14092. lt_prog_compiler_static_CXX \
  14093. lt_cv_prog_compiler_c_o_CXX \
  14094. export_dynamic_flag_spec_CXX \
  14095. whole_archive_flag_spec_CXX \
  14096. compiler_needs_object_CXX \
  14097. with_gnu_ld_CXX \
  14098. allow_undefined_flag_CXX \
  14099. no_undefined_flag_CXX \
  14100. hardcode_libdir_flag_spec_CXX \
  14101. hardcode_libdir_flag_spec_ld_CXX \
  14102. hardcode_libdir_separator_CXX \
  14103. fix_srcfile_path_CXX \
  14104. exclude_expsyms_CXX \
  14105. include_expsyms_CXX \
  14106. file_list_spec_CXX \
  14107. compiler_lib_search_dirs_CXX \
  14108. predep_objects_CXX \
  14109. postdep_objects_CXX \
  14110. predeps_CXX \
  14111. postdeps_CXX \
  14112. compiler_lib_search_path_CXX; do
  14113. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14114. *[\\\\\\\`\\"\\\$]*)
  14115. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14116. ;;
  14117. *)
  14118. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14119. ;;
  14120. esac
  14121. done
  14122. # Double-quote double-evaled strings.
  14123. for var in reload_cmds \
  14124. old_postinstall_cmds \
  14125. old_postuninstall_cmds \
  14126. old_archive_cmds \
  14127. extract_expsyms_cmds \
  14128. old_archive_from_new_cmds \
  14129. old_archive_from_expsyms_cmds \
  14130. archive_cmds \
  14131. archive_expsym_cmds \
  14132. module_cmds \
  14133. module_expsym_cmds \
  14134. export_symbols_cmds \
  14135. prelink_cmds \
  14136. postinstall_cmds \
  14137. postuninstall_cmds \
  14138. finish_cmds \
  14139. sys_lib_search_path_spec \
  14140. sys_lib_dlsearch_path_spec \
  14141. old_archive_cmds_CXX \
  14142. old_archive_from_new_cmds_CXX \
  14143. old_archive_from_expsyms_cmds_CXX \
  14144. archive_cmds_CXX \
  14145. archive_expsym_cmds_CXX \
  14146. module_cmds_CXX \
  14147. module_expsym_cmds_CXX \
  14148. export_symbols_cmds_CXX \
  14149. prelink_cmds_CXX; do
  14150. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14151. *[\\\\\\\`\\"\\\$]*)
  14152. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14153. ;;
  14154. *)
  14155. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14156. ;;
  14157. esac
  14158. done
  14159. # Fix-up fallback echo if it was mangled by the above quoting rules.
  14160. case \$lt_ECHO in
  14161. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14162. ;;
  14163. esac
  14164. ac_aux_dir='$ac_aux_dir'
  14165. xsi_shell='$xsi_shell'
  14166. lt_shell_append='$lt_shell_append'
  14167. # See if we are running on zsh, and set the options which allow our
  14168. # commands through without removal of \ escapes INIT.
  14169. if test -n "\${ZSH_VERSION+set}" ; then
  14170. setopt NO_GLOB_SUBST
  14171. fi
  14172. PACKAGE='$PACKAGE'
  14173. VERSION='$VERSION'
  14174. TIMESTAMP='$TIMESTAMP'
  14175. RM='$RM'
  14176. ofile='$ofile'
  14177. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14178. _ACEOF
  14179. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14180. # Handling of arguments.
  14181. for ac_config_target in $ac_config_targets
  14182. do
  14183. case $ac_config_target in
  14184. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14185. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14186. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14187. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14188. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14189. esac
  14190. done
  14191. # If the user did not use the arguments to specify the items to instantiate,
  14192. # then the envvar interface is used. Set only those that are not.
  14193. # We use the long form for the default assignment because of an extremely
  14194. # bizarre bug on SunOS 4.1.3.
  14195. if $ac_need_defaults; then
  14196. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14197. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14198. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14199. fi
  14200. # Have a temporary directory for convenience. Make it in the build tree
  14201. # simply because there is no reason against having it here, and in addition,
  14202. # creating and moving files from /tmp can sometimes cause problems.
  14203. # Hook for its removal unless debugging.
  14204. # Note that there is a small window in which the directory will not be cleaned:
  14205. # after its creation but before its name has been assigned to `$tmp'.
  14206. $debug ||
  14207. {
  14208. tmp=
  14209. trap 'exit_status=$?
  14210. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14211. ' 0
  14212. trap 'as_fn_exit 1' 1 2 13 15
  14213. }
  14214. # Create a (secure) tmp directory for tmp files.
  14215. {
  14216. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14217. test -n "$tmp" && test -d "$tmp"
  14218. } ||
  14219. {
  14220. tmp=./conf$$-$RANDOM
  14221. (umask 077 && mkdir "$tmp")
  14222. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14223. # Set up the scripts for CONFIG_FILES section.
  14224. # No need to generate them if there are no CONFIG_FILES.
  14225. # This happens for instance with `./config.status config.h'.
  14226. if test -n "$CONFIG_FILES"; then
  14227. ac_cr=`echo X | tr X '\015'`
  14228. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14229. # But we know of no other shell where ac_cr would be empty at this
  14230. # point, so we can use a bashism as a fallback.
  14231. if test "x$ac_cr" = x; then
  14232. eval ac_cr=\$\'\\r\'
  14233. fi
  14234. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14235. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14236. ac_cs_awk_cr='\r'
  14237. else
  14238. ac_cs_awk_cr=$ac_cr
  14239. fi
  14240. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14241. _ACEOF
  14242. {
  14243. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14244. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14245. echo "_ACEOF"
  14246. } >conf$$subs.sh ||
  14247. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14248. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14249. ac_delim='%!_!# '
  14250. for ac_last_try in false false false false false :; do
  14251. . ./conf$$subs.sh ||
  14252. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14253. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14254. if test $ac_delim_n = $ac_delim_num; then
  14255. break
  14256. elif $ac_last_try; then
  14257. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14258. else
  14259. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14260. fi
  14261. done
  14262. rm -f conf$$subs.sh
  14263. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14264. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14265. _ACEOF
  14266. sed -n '
  14267. h
  14268. s/^/S["/; s/!.*/"]=/
  14269. p
  14270. g
  14271. s/^[^!]*!//
  14272. :repl
  14273. t repl
  14274. s/'"$ac_delim"'$//
  14275. t delim
  14276. :nl
  14277. h
  14278. s/\(.\{148\}\).*/\1/
  14279. t more1
  14280. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14281. p
  14282. n
  14283. b repl
  14284. :more1
  14285. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14286. p
  14287. g
  14288. s/.\{148\}//
  14289. t nl
  14290. :delim
  14291. h
  14292. s/\(.\{148\}\).*/\1/
  14293. t more2
  14294. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14295. p
  14296. b
  14297. :more2
  14298. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14299. p
  14300. g
  14301. s/.\{148\}//
  14302. t delim
  14303. ' <conf$$subs.awk | sed '
  14304. /^[^""]/{
  14305. N
  14306. s/\n//
  14307. }
  14308. ' >>$CONFIG_STATUS || ac_write_fail=1
  14309. rm -f conf$$subs.awk
  14310. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14311. _ACAWK
  14312. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14313. for (key in S) S_is_set[key] = 1
  14314. FS = ""
  14315. }
  14316. {
  14317. line = $ 0
  14318. nfields = split(line, field, "@")
  14319. substed = 0
  14320. len = length(field[1])
  14321. for (i = 2; i < nfields; i++) {
  14322. key = field[i]
  14323. keylen = length(key)
  14324. if (S_is_set[key]) {
  14325. value = S[key]
  14326. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14327. len += length(value) + length(field[++i])
  14328. substed = 1
  14329. } else
  14330. len += 1 + keylen
  14331. }
  14332. print line
  14333. }
  14334. _ACAWK
  14335. _ACEOF
  14336. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14337. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14338. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14339. else
  14340. cat
  14341. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14342. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14343. _ACEOF
  14344. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14345. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14346. # trailing colons and then remove the whole line if VPATH becomes empty
  14347. # (actually we leave an empty line to preserve line numbers).
  14348. if test "x$srcdir" = x.; then
  14349. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14350. s/:*\$(srcdir):*/:/
  14351. s/:*\${srcdir}:*/:/
  14352. s/:*@srcdir@:*/:/
  14353. s/^\([^=]*=[ ]*\):*/\1/
  14354. s/:*$//
  14355. s/^[^=]*=[ ]*$//
  14356. }'
  14357. fi
  14358. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14359. fi # test -n "$CONFIG_FILES"
  14360. # Set up the scripts for CONFIG_HEADERS section.
  14361. # No need to generate them if there are no CONFIG_HEADERS.
  14362. # This happens for instance with `./config.status Makefile'.
  14363. if test -n "$CONFIG_HEADERS"; then
  14364. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14365. BEGIN {
  14366. _ACEOF
  14367. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14368. # here-document in config.status, that substitutes the proper values into
  14369. # config.h.in to produce config.h.
  14370. # Create a delimiter string that does not exist in confdefs.h, to ease
  14371. # handling of long lines.
  14372. ac_delim='%!_!# '
  14373. for ac_last_try in false false :; do
  14374. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14375. if test -z "$ac_t"; then
  14376. break
  14377. elif $ac_last_try; then
  14378. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14379. else
  14380. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14381. fi
  14382. done
  14383. # For the awk script, D is an array of macro values keyed by name,
  14384. # likewise P contains macro parameters if any. Preserve backslash
  14385. # newline sequences.
  14386. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14387. sed -n '
  14388. s/.\{148\}/&'"$ac_delim"'/g
  14389. t rset
  14390. :rset
  14391. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14392. t def
  14393. d
  14394. :def
  14395. s/\\$//
  14396. t bsnl
  14397. s/["\\]/\\&/g
  14398. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14399. D["\1"]=" \3"/p
  14400. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14401. d
  14402. :bsnl
  14403. s/["\\]/\\&/g
  14404. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14405. D["\1"]=" \3\\\\\\n"\\/p
  14406. t cont
  14407. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14408. t cont
  14409. d
  14410. :cont
  14411. n
  14412. s/.\{148\}/&'"$ac_delim"'/g
  14413. t clear
  14414. :clear
  14415. s/\\$//
  14416. t bsnlc
  14417. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14418. d
  14419. :bsnlc
  14420. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14421. b cont
  14422. ' <confdefs.h | sed '
  14423. s/'"$ac_delim"'/"\\\
  14424. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14425. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14426. for (key in D) D_is_set[key] = 1
  14427. FS = ""
  14428. }
  14429. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14430. line = \$ 0
  14431. split(line, arg, " ")
  14432. if (arg[1] == "#") {
  14433. defundef = arg[2]
  14434. mac1 = arg[3]
  14435. } else {
  14436. defundef = substr(arg[1], 2)
  14437. mac1 = arg[2]
  14438. }
  14439. split(mac1, mac2, "(") #)
  14440. macro = mac2[1]
  14441. prefix = substr(line, 1, index(line, defundef) - 1)
  14442. if (D_is_set[macro]) {
  14443. # Preserve the white space surrounding the "#".
  14444. print prefix "define", macro P[macro] D[macro]
  14445. next
  14446. } else {
  14447. # Replace #undef with comments. This is necessary, for example,
  14448. # in the case of _POSIX_SOURCE, which is predefined and required
  14449. # on some systems where configure will not decide to define it.
  14450. if (defundef == "undef") {
  14451. print "/*", prefix defundef, macro, "*/"
  14452. next
  14453. }
  14454. }
  14455. }
  14456. { print }
  14457. _ACAWK
  14458. _ACEOF
  14459. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14460. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14461. fi # test -n "$CONFIG_HEADERS"
  14462. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14463. shift
  14464. for ac_tag
  14465. do
  14466. case $ac_tag in
  14467. :[FHLC]) ac_mode=$ac_tag; continue;;
  14468. esac
  14469. case $ac_mode$ac_tag in
  14470. :[FHL]*:*);;
  14471. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14472. :[FH]-) ac_tag=-:-;;
  14473. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14474. esac
  14475. ac_save_IFS=$IFS
  14476. IFS=:
  14477. set x $ac_tag
  14478. IFS=$ac_save_IFS
  14479. shift
  14480. ac_file=$1
  14481. shift
  14482. case $ac_mode in
  14483. :L) ac_source=$1;;
  14484. :[FH])
  14485. ac_file_inputs=
  14486. for ac_f
  14487. do
  14488. case $ac_f in
  14489. -) ac_f="$tmp/stdin";;
  14490. *) # Look for the file first in the build tree, then in the source tree
  14491. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14492. # because $ac_f cannot contain `:'.
  14493. test -f "$ac_f" ||
  14494. case $ac_f in
  14495. [\\/$]*) false;;
  14496. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14497. esac ||
  14498. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14499. esac
  14500. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14501. as_fn_append ac_file_inputs " '$ac_f'"
  14502. done
  14503. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14504. # use $as_me), people would be surprised to read:
  14505. # /* config.h. Generated by config.status. */
  14506. configure_input='Generated from '`
  14507. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14508. `' by configure.'
  14509. if test x"$ac_file" != x-; then
  14510. configure_input="$ac_file. $configure_input"
  14511. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14512. $as_echo "$as_me: creating $ac_file" >&6;}
  14513. fi
  14514. # Neutralize special characters interpreted by sed in replacement strings.
  14515. case $configure_input in #(
  14516. *\&* | *\|* | *\\* )
  14517. ac_sed_conf_input=`$as_echo "$configure_input" |
  14518. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14519. *) ac_sed_conf_input=$configure_input;;
  14520. esac
  14521. case $ac_tag in
  14522. *:-:* | *:-) cat >"$tmp/stdin" \
  14523. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14524. esac
  14525. ;;
  14526. esac
  14527. ac_dir=`$as_dirname -- "$ac_file" ||
  14528. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14529. X"$ac_file" : 'X\(//\)[^/]' \| \
  14530. X"$ac_file" : 'X\(//\)$' \| \
  14531. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14532. $as_echo X"$ac_file" |
  14533. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14534. s//\1/
  14535. q
  14536. }
  14537. /^X\(\/\/\)[^/].*/{
  14538. s//\1/
  14539. q
  14540. }
  14541. /^X\(\/\/\)$/{
  14542. s//\1/
  14543. q
  14544. }
  14545. /^X\(\/\).*/{
  14546. s//\1/
  14547. q
  14548. }
  14549. s/.*/./; q'`
  14550. as_dir="$ac_dir"; as_fn_mkdir_p
  14551. ac_builddir=.
  14552. case "$ac_dir" in
  14553. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14554. *)
  14555. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14556. # A ".." for each directory in $ac_dir_suffix.
  14557. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14558. case $ac_top_builddir_sub in
  14559. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14560. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14561. esac ;;
  14562. esac
  14563. ac_abs_top_builddir=$ac_pwd
  14564. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14565. # for backward compatibility:
  14566. ac_top_builddir=$ac_top_build_prefix
  14567. case $srcdir in
  14568. .) # We are building in place.
  14569. ac_srcdir=.
  14570. ac_top_srcdir=$ac_top_builddir_sub
  14571. ac_abs_top_srcdir=$ac_pwd ;;
  14572. [\\/]* | ?:[\\/]* ) # Absolute name.
  14573. ac_srcdir=$srcdir$ac_dir_suffix;
  14574. ac_top_srcdir=$srcdir
  14575. ac_abs_top_srcdir=$srcdir ;;
  14576. *) # Relative name.
  14577. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14578. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14579. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14580. esac
  14581. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14582. case $ac_mode in
  14583. :F)
  14584. #
  14585. # CONFIG_FILE
  14586. #
  14587. case $INSTALL in
  14588. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14589. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14590. esac
  14591. ac_MKDIR_P=$MKDIR_P
  14592. case $MKDIR_P in
  14593. [\\/$]* | ?:[\\/]* ) ;;
  14594. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14595. esac
  14596. _ACEOF
  14597. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14598. # If the template does not know about datarootdir, expand it.
  14599. # FIXME: This hack should be removed a few years after 2.60.
  14600. ac_datarootdir_hack=; ac_datarootdir_seen=
  14601. ac_sed_dataroot='
  14602. /datarootdir/ {
  14603. p
  14604. q
  14605. }
  14606. /@datadir@/p
  14607. /@docdir@/p
  14608. /@infodir@/p
  14609. /@localedir@/p
  14610. /@mandir@/p'
  14611. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14612. *datarootdir*) ac_datarootdir_seen=yes;;
  14613. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14615. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14616. _ACEOF
  14617. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14618. ac_datarootdir_hack='
  14619. s&@datadir@&$datadir&g
  14620. s&@docdir@&$docdir&g
  14621. s&@infodir@&$infodir&g
  14622. s&@localedir@&$localedir&g
  14623. s&@mandir@&$mandir&g
  14624. s&\\\${datarootdir}&$datarootdir&g' ;;
  14625. esac
  14626. _ACEOF
  14627. # Neutralize VPATH when `$srcdir' = `.'.
  14628. # Shell code in configure.ac might set extrasub.
  14629. # FIXME: do we really want to maintain this feature?
  14630. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14631. ac_sed_extra="$ac_vpsub
  14632. $extrasub
  14633. _ACEOF
  14634. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14635. :t
  14636. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14637. s|@configure_input@|$ac_sed_conf_input|;t t
  14638. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14639. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14640. s&@srcdir@&$ac_srcdir&;t t
  14641. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14642. s&@top_srcdir@&$ac_top_srcdir&;t t
  14643. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14644. s&@builddir@&$ac_builddir&;t t
  14645. s&@abs_builddir@&$ac_abs_builddir&;t t
  14646. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14647. s&@INSTALL@&$ac_INSTALL&;t t
  14648. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14649. $ac_datarootdir_hack
  14650. "
  14651. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14652. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14653. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14654. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14655. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14657. which seems to be undefined. Please make sure it is defined." >&5
  14658. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14659. which seems to be undefined. Please make sure it is defined." >&2;}
  14660. rm -f "$tmp/stdin"
  14661. case $ac_file in
  14662. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14663. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14664. esac \
  14665. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14666. ;;
  14667. :H)
  14668. #
  14669. # CONFIG_HEADER
  14670. #
  14671. if test x"$ac_file" != x-; then
  14672. {
  14673. $as_echo "/* $configure_input */" \
  14674. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14675. } >"$tmp/config.h" \
  14676. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14677. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14678. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14679. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14680. else
  14681. rm -f "$ac_file"
  14682. mv "$tmp/config.h" "$ac_file" \
  14683. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14684. fi
  14685. else
  14686. $as_echo "/* $configure_input */" \
  14687. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14688. || as_fn_error "could not create -" "$LINENO" 5
  14689. fi
  14690. # Compute "$ac_file"'s index in $config_headers.
  14691. _am_arg="$ac_file"
  14692. _am_stamp_count=1
  14693. for _am_header in $config_headers :; do
  14694. case $_am_header in
  14695. $_am_arg | $_am_arg:* )
  14696. break ;;
  14697. * )
  14698. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14699. esac
  14700. done
  14701. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14702. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14703. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14704. X"$_am_arg" : 'X\(//\)$' \| \
  14705. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14706. $as_echo X"$_am_arg" |
  14707. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14708. s//\1/
  14709. q
  14710. }
  14711. /^X\(\/\/\)[^/].*/{
  14712. s//\1/
  14713. q
  14714. }
  14715. /^X\(\/\/\)$/{
  14716. s//\1/
  14717. q
  14718. }
  14719. /^X\(\/\).*/{
  14720. s//\1/
  14721. q
  14722. }
  14723. s/.*/./; q'`/stamp-h$_am_stamp_count
  14724. ;;
  14725. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14726. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14727. ;;
  14728. esac
  14729. case $ac_file$ac_mode in
  14730. "libtool":C)
  14731. # See if we are running on zsh, and set the options which allow our
  14732. # commands through without removal of \ escapes.
  14733. if test -n "${ZSH_VERSION+set}" ; then
  14734. setopt NO_GLOB_SUBST
  14735. fi
  14736. cfgfile="${ofile}T"
  14737. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14738. $RM "$cfgfile"
  14739. cat <<_LT_EOF >> "$cfgfile"
  14740. #! $SHELL
  14741. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14742. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14743. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14744. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14745. #
  14746. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14747. # 2006, 2007, 2008 Free Software Foundation, Inc.
  14748. # Written by Gordon Matzigkeit, 1996
  14749. #
  14750. # This file is part of GNU Libtool.
  14751. #
  14752. # GNU Libtool is free software; you can redistribute it and/or
  14753. # modify it under the terms of the GNU General Public License as
  14754. # published by the Free Software Foundation; either version 2 of
  14755. # the License, or (at your option) any later version.
  14756. #
  14757. # As a special exception to the GNU General Public License,
  14758. # if you distribute this file as part of a program or library that
  14759. # is built using GNU Libtool, you may include this file under the
  14760. # same distribution terms that you use for the rest of that program.
  14761. #
  14762. # GNU Libtool is distributed in the hope that it will be useful,
  14763. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14764. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14765. # GNU General Public License for more details.
  14766. #
  14767. # You should have received a copy of the GNU General Public License
  14768. # along with GNU Libtool; see the file COPYING. If not, a copy
  14769. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14770. # obtained by writing to the Free Software Foundation, Inc.,
  14771. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14772. # The names of the tagged configurations supported by this script.
  14773. available_tags="CXX "
  14774. # ### BEGIN LIBTOOL CONFIG
  14775. # Assembler program.
  14776. AS=$AS
  14777. # DLL creation program.
  14778. DLLTOOL=$DLLTOOL
  14779. # Object dumper program.
  14780. OBJDUMP=$OBJDUMP
  14781. # Which release of libtool.m4 was used?
  14782. macro_version=$macro_version
  14783. macro_revision=$macro_revision
  14784. # Whether or not to build shared libraries.
  14785. build_libtool_libs=$enable_shared
  14786. # Whether or not to build static libraries.
  14787. build_old_libs=$enable_static
  14788. # What type of objects to build.
  14789. pic_mode=$pic_mode
  14790. # Whether or not to optimize for fast installation.
  14791. fast_install=$enable_fast_install
  14792. # The host system.
  14793. host_alias=$host_alias
  14794. host=$host
  14795. host_os=$host_os
  14796. # The build system.
  14797. build_alias=$build_alias
  14798. build=$build
  14799. build_os=$build_os
  14800. # A sed program that does not truncate output.
  14801. SED=$lt_SED
  14802. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14803. Xsed="\$SED -e 1s/^X//"
  14804. # A grep program that handles long lines.
  14805. GREP=$lt_GREP
  14806. # An ERE matcher.
  14807. EGREP=$lt_EGREP
  14808. # A literal string matcher.
  14809. FGREP=$lt_FGREP
  14810. # A BSD- or MS-compatible name lister.
  14811. NM=$lt_NM
  14812. # Whether we need soft or hard links.
  14813. LN_S=$lt_LN_S
  14814. # What is the maximum length of a command?
  14815. max_cmd_len=$max_cmd_len
  14816. # Object file suffix (normally "o").
  14817. objext=$ac_objext
  14818. # Executable file suffix (normally "").
  14819. exeext=$exeext
  14820. # whether the shell understands "unset".
  14821. lt_unset=$lt_unset
  14822. # turn spaces into newlines.
  14823. SP2NL=$lt_lt_SP2NL
  14824. # turn newlines into spaces.
  14825. NL2SP=$lt_lt_NL2SP
  14826. # How to create reloadable object files.
  14827. reload_flag=$lt_reload_flag
  14828. reload_cmds=$lt_reload_cmds
  14829. # Method to check whether dependent libraries are shared objects.
  14830. deplibs_check_method=$lt_deplibs_check_method
  14831. # Command to use when deplibs_check_method == "file_magic".
  14832. file_magic_cmd=$lt_file_magic_cmd
  14833. # The archiver.
  14834. AR=$lt_AR
  14835. AR_FLAGS=$lt_AR_FLAGS
  14836. # A symbol stripping program.
  14837. STRIP=$lt_STRIP
  14838. # Commands used to install an old-style archive.
  14839. RANLIB=$lt_RANLIB
  14840. old_postinstall_cmds=$lt_old_postinstall_cmds
  14841. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14842. # A C compiler.
  14843. LTCC=$lt_CC
  14844. # LTCC compiler flags.
  14845. LTCFLAGS=$lt_CFLAGS
  14846. # Take the output of nm and produce a listing of raw symbols and C names.
  14847. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14848. # Transform the output of nm in a proper C declaration.
  14849. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14850. # Transform the output of nm in a C name address pair.
  14851. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14852. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14853. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14854. # The name of the directory that contains temporary libtool files.
  14855. objdir=$objdir
  14856. # Shell to use when invoking shell scripts.
  14857. SHELL=$lt_SHELL
  14858. # An echo program that does not interpret backslashes.
  14859. ECHO=$lt_ECHO
  14860. # Used to examine libraries when file_magic_cmd begins with "file".
  14861. MAGIC_CMD=$MAGIC_CMD
  14862. # Must we lock files when doing compilation?
  14863. need_locks=$lt_need_locks
  14864. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14865. DSYMUTIL=$lt_DSYMUTIL
  14866. # Tool to change global to local symbols on Mac OS X.
  14867. NMEDIT=$lt_NMEDIT
  14868. # Tool to manipulate fat objects and archives on Mac OS X.
  14869. LIPO=$lt_LIPO
  14870. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14871. OTOOL=$lt_OTOOL
  14872. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14873. OTOOL64=$lt_OTOOL64
  14874. # Old archive suffix (normally "a").
  14875. libext=$libext
  14876. # Shared library suffix (normally ".so").
  14877. shrext_cmds=$lt_shrext_cmds
  14878. # The commands to extract the exported symbol list from a shared archive.
  14879. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14880. # Variables whose values should be saved in libtool wrapper scripts and
  14881. # restored at link time.
  14882. variables_saved_for_relink=$lt_variables_saved_for_relink
  14883. # Do we need the "lib" prefix for modules?
  14884. need_lib_prefix=$need_lib_prefix
  14885. # Do we need a version for libraries?
  14886. need_version=$need_version
  14887. # Library versioning type.
  14888. version_type=$version_type
  14889. # Shared library runtime path variable.
  14890. runpath_var=$runpath_var
  14891. # Shared library path variable.
  14892. shlibpath_var=$shlibpath_var
  14893. # Is shlibpath searched before the hard-coded library search path?
  14894. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14895. # Format of library name prefix.
  14896. libname_spec=$lt_libname_spec
  14897. # List of archive names. First name is the real one, the rest are links.
  14898. # The last name is the one that the linker finds with -lNAME
  14899. library_names_spec=$lt_library_names_spec
  14900. # The coded name of the library, if different from the real name.
  14901. soname_spec=$lt_soname_spec
  14902. # Command to use after installation of a shared archive.
  14903. postinstall_cmds=$lt_postinstall_cmds
  14904. # Command to use after uninstallation of a shared archive.
  14905. postuninstall_cmds=$lt_postuninstall_cmds
  14906. # Commands used to finish a libtool library installation in a directory.
  14907. finish_cmds=$lt_finish_cmds
  14908. # As "finish_cmds", except a single script fragment to be evaled but
  14909. # not shown.
  14910. finish_eval=$lt_finish_eval
  14911. # Whether we should hardcode library paths into libraries.
  14912. hardcode_into_libs=$hardcode_into_libs
  14913. # Compile-time system search path for libraries.
  14914. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14915. # Run-time system search path for libraries.
  14916. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14917. # Whether dlopen is supported.
  14918. dlopen_support=$enable_dlopen
  14919. # Whether dlopen of programs is supported.
  14920. dlopen_self=$enable_dlopen_self
  14921. # Whether dlopen of statically linked programs is supported.
  14922. dlopen_self_static=$enable_dlopen_self_static
  14923. # Commands to strip libraries.
  14924. old_striplib=$lt_old_striplib
  14925. striplib=$lt_striplib
  14926. # The linker used to build libraries.
  14927. LD=$lt_LD
  14928. # Commands used to build an old-style archive.
  14929. old_archive_cmds=$lt_old_archive_cmds
  14930. # A language specific compiler.
  14931. CC=$lt_compiler
  14932. # Is the compiler the GNU compiler?
  14933. with_gcc=$GCC
  14934. # Compiler flag to turn off builtin functions.
  14935. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14936. # How to pass a linker flag through the compiler.
  14937. wl=$lt_lt_prog_compiler_wl
  14938. # Additional compiler flags for building library objects.
  14939. pic_flag=$lt_lt_prog_compiler_pic
  14940. # Compiler flag to prevent dynamic linking.
  14941. link_static_flag=$lt_lt_prog_compiler_static
  14942. # Does compiler simultaneously support -c and -o options?
  14943. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14944. # Whether or not to add -lc for building shared libraries.
  14945. build_libtool_need_lc=$archive_cmds_need_lc
  14946. # Whether or not to disallow shared libs when runtime libs are static.
  14947. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14948. # Compiler flag to allow reflexive dlopens.
  14949. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14950. # Compiler flag to generate shared objects directly from archives.
  14951. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14952. # Whether the compiler copes with passing no objects directly.
  14953. compiler_needs_object=$lt_compiler_needs_object
  14954. # Create an old-style archive from a shared archive.
  14955. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14956. # Create a temporary old-style archive to link instead of a shared archive.
  14957. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14958. # Commands used to build a shared archive.
  14959. archive_cmds=$lt_archive_cmds
  14960. archive_expsym_cmds=$lt_archive_expsym_cmds
  14961. # Commands used to build a loadable module if different from building
  14962. # a shared archive.
  14963. module_cmds=$lt_module_cmds
  14964. module_expsym_cmds=$lt_module_expsym_cmds
  14965. # Whether we are building with GNU ld or not.
  14966. with_gnu_ld=$lt_with_gnu_ld
  14967. # Flag that allows shared libraries with undefined symbols to be built.
  14968. allow_undefined_flag=$lt_allow_undefined_flag
  14969. # Flag that enforces no undefined symbols.
  14970. no_undefined_flag=$lt_no_undefined_flag
  14971. # Flag to hardcode \$libdir into a binary during linking.
  14972. # This must work even if \$libdir does not exist
  14973. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14974. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14975. # during linking. This must work even if \$libdir does not exist.
  14976. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14977. # Whether we need a single "-rpath" flag with a separated argument.
  14978. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14979. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14980. # DIR into the resulting binary.
  14981. hardcode_direct=$hardcode_direct
  14982. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14983. # DIR into the resulting binary and the resulting library dependency is
  14984. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14985. # library is relocated.
  14986. hardcode_direct_absolute=$hardcode_direct_absolute
  14987. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14988. # into the resulting binary.
  14989. hardcode_minus_L=$hardcode_minus_L
  14990. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14991. # into the resulting binary.
  14992. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14993. # Set to "yes" if building a shared library automatically hardcodes DIR
  14994. # into the library and all subsequent libraries and executables linked
  14995. # against it.
  14996. hardcode_automatic=$hardcode_automatic
  14997. # Set to yes if linker adds runtime paths of dependent libraries
  14998. # to runtime path list.
  14999. inherit_rpath=$inherit_rpath
  15000. # Whether libtool must link a program against all its dependency libraries.
  15001. link_all_deplibs=$link_all_deplibs
  15002. # Fix the shell variable \$srcfile for the compiler.
  15003. fix_srcfile_path=$lt_fix_srcfile_path
  15004. # Set to "yes" if exported symbols are required.
  15005. always_export_symbols=$always_export_symbols
  15006. # The commands to list exported symbols.
  15007. export_symbols_cmds=$lt_export_symbols_cmds
  15008. # Symbols that should not be listed in the preloaded symbols.
  15009. exclude_expsyms=$lt_exclude_expsyms
  15010. # Symbols that must always be exported.
  15011. include_expsyms=$lt_include_expsyms
  15012. # Commands necessary for linking programs (against libraries) with templates.
  15013. prelink_cmds=$lt_prelink_cmds
  15014. # Specify filename containing input files.
  15015. file_list_spec=$lt_file_list_spec
  15016. # How to hardcode a shared library path into an executable.
  15017. hardcode_action=$hardcode_action
  15018. # The directories searched by this compiler when creating a shared library.
  15019. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15020. # Dependencies to place before and after the objects being linked to
  15021. # create a shared library.
  15022. predep_objects=$lt_predep_objects
  15023. postdep_objects=$lt_postdep_objects
  15024. predeps=$lt_predeps
  15025. postdeps=$lt_postdeps
  15026. # The library search path used internally by the compiler when linking
  15027. # a shared library.
  15028. compiler_lib_search_path=$lt_compiler_lib_search_path
  15029. # ### END LIBTOOL CONFIG
  15030. _LT_EOF
  15031. case $host_os in
  15032. aix3*)
  15033. cat <<\_LT_EOF >> "$cfgfile"
  15034. # AIX sometimes has problems with the GCC collect2 program. For some
  15035. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15036. # vanish in a puff of smoke.
  15037. if test "X${COLLECT_NAMES+set}" != Xset; then
  15038. COLLECT_NAMES=
  15039. export COLLECT_NAMES
  15040. fi
  15041. _LT_EOF
  15042. ;;
  15043. esac
  15044. ltmain="$ac_aux_dir/ltmain.sh"
  15045. # We use sed instead of cat because bash on DJGPP gets confused if
  15046. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15047. # text mode, it properly converts lines to CR/LF. This bash problem
  15048. # is reportedly fixed, but why not run on old versions too?
  15049. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15050. || (rm -f "$cfgfile"; exit 1)
  15051. case $xsi_shell in
  15052. yes)
  15053. cat << \_LT_EOF >> "$cfgfile"
  15054. # func_dirname file append nondir_replacement
  15055. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15056. # otherwise set result to NONDIR_REPLACEMENT.
  15057. func_dirname ()
  15058. {
  15059. case ${1} in
  15060. */*) func_dirname_result="${1%/*}${2}" ;;
  15061. * ) func_dirname_result="${3}" ;;
  15062. esac
  15063. }
  15064. # func_basename file
  15065. func_basename ()
  15066. {
  15067. func_basename_result="${1##*/}"
  15068. }
  15069. # func_dirname_and_basename file append nondir_replacement
  15070. # perform func_basename and func_dirname in a single function
  15071. # call:
  15072. # dirname: Compute the dirname of FILE. If nonempty,
  15073. # add APPEND to the result, otherwise set result
  15074. # to NONDIR_REPLACEMENT.
  15075. # value returned in "$func_dirname_result"
  15076. # basename: Compute filename of FILE.
  15077. # value retuned in "$func_basename_result"
  15078. # Implementation must be kept synchronized with func_dirname
  15079. # and func_basename. For efficiency, we do not delegate to
  15080. # those functions but instead duplicate the functionality here.
  15081. func_dirname_and_basename ()
  15082. {
  15083. case ${1} in
  15084. */*) func_dirname_result="${1%/*}${2}" ;;
  15085. * ) func_dirname_result="${3}" ;;
  15086. esac
  15087. func_basename_result="${1##*/}"
  15088. }
  15089. # func_stripname prefix suffix name
  15090. # strip PREFIX and SUFFIX off of NAME.
  15091. # PREFIX and SUFFIX must not contain globbing or regex special
  15092. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15093. # dot (in which case that matches only a dot).
  15094. func_stripname ()
  15095. {
  15096. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15097. # positional parameters, so assign one to ordinary parameter first.
  15098. func_stripname_result=${3}
  15099. func_stripname_result=${func_stripname_result#"${1}"}
  15100. func_stripname_result=${func_stripname_result%"${2}"}
  15101. }
  15102. # func_opt_split
  15103. func_opt_split ()
  15104. {
  15105. func_opt_split_opt=${1%%=*}
  15106. func_opt_split_arg=${1#*=}
  15107. }
  15108. # func_lo2o object
  15109. func_lo2o ()
  15110. {
  15111. case ${1} in
  15112. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15113. *) func_lo2o_result=${1} ;;
  15114. esac
  15115. }
  15116. # func_xform libobj-or-source
  15117. func_xform ()
  15118. {
  15119. func_xform_result=${1%.*}.lo
  15120. }
  15121. # func_arith arithmetic-term...
  15122. func_arith ()
  15123. {
  15124. func_arith_result=$(( $* ))
  15125. }
  15126. # func_len string
  15127. # STRING may not start with a hyphen.
  15128. func_len ()
  15129. {
  15130. func_len_result=${#1}
  15131. }
  15132. _LT_EOF
  15133. ;;
  15134. *) # Bourne compatible functions.
  15135. cat << \_LT_EOF >> "$cfgfile"
  15136. # func_dirname file append nondir_replacement
  15137. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15138. # otherwise set result to NONDIR_REPLACEMENT.
  15139. func_dirname ()
  15140. {
  15141. # Extract subdirectory from the argument.
  15142. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  15143. if test "X$func_dirname_result" = "X${1}"; then
  15144. func_dirname_result="${3}"
  15145. else
  15146. func_dirname_result="$func_dirname_result${2}"
  15147. fi
  15148. }
  15149. # func_basename file
  15150. func_basename ()
  15151. {
  15152. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  15153. }
  15154. # func_stripname prefix suffix name
  15155. # strip PREFIX and SUFFIX off of NAME.
  15156. # PREFIX and SUFFIX must not contain globbing or regex special
  15157. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15158. # dot (in which case that matches only a dot).
  15159. # func_strip_suffix prefix name
  15160. func_stripname ()
  15161. {
  15162. case ${2} in
  15163. .*) func_stripname_result=`$ECHO "X${3}" \
  15164. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  15165. *) func_stripname_result=`$ECHO "X${3}" \
  15166. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  15167. esac
  15168. }
  15169. # sed scripts:
  15170. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15171. my_sed_long_arg='1s/^-[^=]*=//'
  15172. # func_opt_split
  15173. func_opt_split ()
  15174. {
  15175. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  15176. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  15177. }
  15178. # func_lo2o object
  15179. func_lo2o ()
  15180. {
  15181. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  15182. }
  15183. # func_xform libobj-or-source
  15184. func_xform ()
  15185. {
  15186. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  15187. }
  15188. # func_arith arithmetic-term...
  15189. func_arith ()
  15190. {
  15191. func_arith_result=`expr "$@"`
  15192. }
  15193. # func_len string
  15194. # STRING may not start with a hyphen.
  15195. func_len ()
  15196. {
  15197. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15198. }
  15199. _LT_EOF
  15200. esac
  15201. case $lt_shell_append in
  15202. yes)
  15203. cat << \_LT_EOF >> "$cfgfile"
  15204. # func_append var value
  15205. # Append VALUE to the end of shell variable VAR.
  15206. func_append ()
  15207. {
  15208. eval "$1+=\$2"
  15209. }
  15210. _LT_EOF
  15211. ;;
  15212. *)
  15213. cat << \_LT_EOF >> "$cfgfile"
  15214. # func_append var value
  15215. # Append VALUE to the end of shell variable VAR.
  15216. func_append ()
  15217. {
  15218. eval "$1=\$$1\$2"
  15219. }
  15220. _LT_EOF
  15221. ;;
  15222. esac
  15223. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15224. || (rm -f "$cfgfile"; exit 1)
  15225. mv -f "$cfgfile" "$ofile" ||
  15226. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15227. chmod +x "$ofile"
  15228. cat <<_LT_EOF >> "$ofile"
  15229. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15230. # The linker used to build libraries.
  15231. LD=$lt_LD_CXX
  15232. # Commands used to build an old-style archive.
  15233. old_archive_cmds=$lt_old_archive_cmds_CXX
  15234. # A language specific compiler.
  15235. CC=$lt_compiler_CXX
  15236. # Is the compiler the GNU compiler?
  15237. with_gcc=$GCC_CXX
  15238. # Compiler flag to turn off builtin functions.
  15239. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15240. # How to pass a linker flag through the compiler.
  15241. wl=$lt_lt_prog_compiler_wl_CXX
  15242. # Additional compiler flags for building library objects.
  15243. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15244. # Compiler flag to prevent dynamic linking.
  15245. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15246. # Does compiler simultaneously support -c and -o options?
  15247. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15248. # Whether or not to add -lc for building shared libraries.
  15249. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15250. # Whether or not to disallow shared libs when runtime libs are static.
  15251. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15252. # Compiler flag to allow reflexive dlopens.
  15253. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15254. # Compiler flag to generate shared objects directly from archives.
  15255. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15256. # Whether the compiler copes with passing no objects directly.
  15257. compiler_needs_object=$lt_compiler_needs_object_CXX
  15258. # Create an old-style archive from a shared archive.
  15259. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15260. # Create a temporary old-style archive to link instead of a shared archive.
  15261. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15262. # Commands used to build a shared archive.
  15263. archive_cmds=$lt_archive_cmds_CXX
  15264. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15265. # Commands used to build a loadable module if different from building
  15266. # a shared archive.
  15267. module_cmds=$lt_module_cmds_CXX
  15268. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15269. # Whether we are building with GNU ld or not.
  15270. with_gnu_ld=$lt_with_gnu_ld_CXX
  15271. # Flag that allows shared libraries with undefined symbols to be built.
  15272. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15273. # Flag that enforces no undefined symbols.
  15274. no_undefined_flag=$lt_no_undefined_flag_CXX
  15275. # Flag to hardcode \$libdir into a binary during linking.
  15276. # This must work even if \$libdir does not exist
  15277. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15278. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15279. # during linking. This must work even if \$libdir does not exist.
  15280. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15281. # Whether we need a single "-rpath" flag with a separated argument.
  15282. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15283. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15284. # DIR into the resulting binary.
  15285. hardcode_direct=$hardcode_direct_CXX
  15286. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15287. # DIR into the resulting binary and the resulting library dependency is
  15288. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15289. # library is relocated.
  15290. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15291. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15292. # into the resulting binary.
  15293. hardcode_minus_L=$hardcode_minus_L_CXX
  15294. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15295. # into the resulting binary.
  15296. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15297. # Set to "yes" if building a shared library automatically hardcodes DIR
  15298. # into the library and all subsequent libraries and executables linked
  15299. # against it.
  15300. hardcode_automatic=$hardcode_automatic_CXX
  15301. # Set to yes if linker adds runtime paths of dependent libraries
  15302. # to runtime path list.
  15303. inherit_rpath=$inherit_rpath_CXX
  15304. # Whether libtool must link a program against all its dependency libraries.
  15305. link_all_deplibs=$link_all_deplibs_CXX
  15306. # Fix the shell variable \$srcfile for the compiler.
  15307. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15308. # Set to "yes" if exported symbols are required.
  15309. always_export_symbols=$always_export_symbols_CXX
  15310. # The commands to list exported symbols.
  15311. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15312. # Symbols that should not be listed in the preloaded symbols.
  15313. exclude_expsyms=$lt_exclude_expsyms_CXX
  15314. # Symbols that must always be exported.
  15315. include_expsyms=$lt_include_expsyms_CXX
  15316. # Commands necessary for linking programs (against libraries) with templates.
  15317. prelink_cmds=$lt_prelink_cmds_CXX
  15318. # Specify filename containing input files.
  15319. file_list_spec=$lt_file_list_spec_CXX
  15320. # How to hardcode a shared library path into an executable.
  15321. hardcode_action=$hardcode_action_CXX
  15322. # The directories searched by this compiler when creating a shared library.
  15323. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15324. # Dependencies to place before and after the objects being linked to
  15325. # create a shared library.
  15326. predep_objects=$lt_predep_objects_CXX
  15327. postdep_objects=$lt_postdep_objects_CXX
  15328. predeps=$lt_predeps_CXX
  15329. postdeps=$lt_postdeps_CXX
  15330. # The library search path used internally by the compiler when linking
  15331. # a shared library.
  15332. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15333. # ### END LIBTOOL TAG CONFIG: CXX
  15334. _LT_EOF
  15335. ;;
  15336. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15337. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15338. # are listed without --file. Let's play safe and only enable the eval
  15339. # if we detect the quoting.
  15340. case $CONFIG_FILES in
  15341. *\'*) eval set x "$CONFIG_FILES" ;;
  15342. *) set x $CONFIG_FILES ;;
  15343. esac
  15344. shift
  15345. for mf
  15346. do
  15347. # Strip MF so we end up with the name of the file.
  15348. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15349. # Check whether this is an Automake generated Makefile or not.
  15350. # We used to match only the files named `Makefile.in', but
  15351. # some people rename them; so instead we look at the file content.
  15352. # Grep'ing the first line is not enough: some people post-process
  15353. # each Makefile.in and add a new line on top of each file to say so.
  15354. # Grep'ing the whole file is not good either: AIX grep has a line
  15355. # limit of 2048, but all sed's we know have understand at least 4000.
  15356. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15357. dirpart=`$as_dirname -- "$mf" ||
  15358. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15359. X"$mf" : 'X\(//\)[^/]' \| \
  15360. X"$mf" : 'X\(//\)$' \| \
  15361. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15362. $as_echo X"$mf" |
  15363. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15364. s//\1/
  15365. q
  15366. }
  15367. /^X\(\/\/\)[^/].*/{
  15368. s//\1/
  15369. q
  15370. }
  15371. /^X\(\/\/\)$/{
  15372. s//\1/
  15373. q
  15374. }
  15375. /^X\(\/\).*/{
  15376. s//\1/
  15377. q
  15378. }
  15379. s/.*/./; q'`
  15380. else
  15381. continue
  15382. fi
  15383. # Extract the definition of DEPDIR, am__include, and am__quote
  15384. # from the Makefile without running `make'.
  15385. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15386. test -z "$DEPDIR" && continue
  15387. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15388. test -z "am__include" && continue
  15389. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15390. # When using ansi2knr, U may be empty or an underscore; expand it
  15391. U=`sed -n 's/^U = //p' < "$mf"`
  15392. # Find all dependency output files, they are included files with
  15393. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15394. # simplest approach to changing $(DEPDIR) to its actual value in the
  15395. # expansion.
  15396. for file in `sed -n "
  15397. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15398. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15399. # Make sure the directory exists.
  15400. test -f "$dirpart/$file" && continue
  15401. fdir=`$as_dirname -- "$file" ||
  15402. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15403. X"$file" : 'X\(//\)[^/]' \| \
  15404. X"$file" : 'X\(//\)$' \| \
  15405. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15406. $as_echo X"$file" |
  15407. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15408. s//\1/
  15409. q
  15410. }
  15411. /^X\(\/\/\)[^/].*/{
  15412. s//\1/
  15413. q
  15414. }
  15415. /^X\(\/\/\)$/{
  15416. s//\1/
  15417. q
  15418. }
  15419. /^X\(\/\).*/{
  15420. s//\1/
  15421. q
  15422. }
  15423. s/.*/./; q'`
  15424. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15425. # echo "creating $dirpart/$file"
  15426. echo '# dummy' > "$dirpart/$file"
  15427. done
  15428. done
  15429. }
  15430. ;;
  15431. esac
  15432. done # for ac_tag
  15433. as_fn_exit 0
  15434. _ACEOF
  15435. ac_clean_files=$ac_clean_files_save
  15436. test $ac_write_fail = 0 ||
  15437. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15438. # configure is writing to config.log, and then calls config.status.
  15439. # config.status does its own redirection, appending to config.log.
  15440. # Unfortunately, on DOS this fails, as config.log is still kept open
  15441. # by configure, so config.status won't be able to write to it; its
  15442. # output is simply discarded. So we exec the FD to /dev/null,
  15443. # effectively closing config.log, so it can be properly (re)opened and
  15444. # appended to by config.status. When coming back to configure, we
  15445. # need to make the FD available again.
  15446. if test "$no_create" != yes; then
  15447. ac_cs_success=:
  15448. ac_config_status_args=
  15449. test "$silent" = yes &&
  15450. ac_config_status_args="$ac_config_status_args --quiet"
  15451. exec 5>/dev/null
  15452. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15453. exec 5>>config.log
  15454. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15455. # would make configure fail if this is the last instruction.
  15456. $ac_cs_success || as_fn_exit $?
  15457. fi
  15458. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15460. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15461. fi