configure 568 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for klish 1.5.2.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  164. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. PATH=/empty FPATH=/empty; export PATH FPATH
  168. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  169. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  231. $0: gmail dot com about your system, including any error
  232. $0: possibly output before this message. Then install a
  233. $0: modern shell, or manually run the script under such a
  234. $0: shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='klish'
  523. PACKAGE_TARNAME='klish'
  524. PACKAGE_VERSION='1.5.2'
  525. PACKAGE_STRING='klish 1.5.2'
  526. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  527. PACKAGE_URL=''
  528. # Factoring default headers for most tests.
  529. ac_includes_default="\
  530. #include <stdio.h>
  531. #ifdef HAVE_SYS_TYPES_H
  532. # include <sys/types.h>
  533. #endif
  534. #ifdef HAVE_SYS_STAT_H
  535. # include <sys/stat.h>
  536. #endif
  537. #ifdef STDC_HEADERS
  538. # include <stdlib.h>
  539. # include <stddef.h>
  540. #else
  541. # ifdef HAVE_STDLIB_H
  542. # include <stdlib.h>
  543. # endif
  544. #endif
  545. #ifdef HAVE_STRING_H
  546. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  547. # include <memory.h>
  548. # endif
  549. # include <string.h>
  550. #endif
  551. #ifdef HAVE_STRINGS_H
  552. # include <strings.h>
  553. #endif
  554. #ifdef HAVE_INTTYPES_H
  555. # include <inttypes.h>
  556. #endif
  557. #ifdef HAVE_STDINT_H
  558. # include <stdint.h>
  559. #endif
  560. #ifdef HAVE_UNISTD_H
  561. # include <unistd.h>
  562. #endif"
  563. ac_subst_vars='am__EXEEXT_FALSE
  564. am__EXEEXT_TRUE
  565. LTLIBOBJS
  566. LIBOBJS
  567. BFD_LIBS
  568. LUBHEAP_CFLAGS
  569. LUBHEAP_LIBS
  570. LUBHEAP_FALSE
  571. LUBHEAP_TRUE
  572. TCL_FALSE
  573. TCL_TRUE
  574. TCL_VERSION
  575. TCL_LIBS
  576. TCL_CFLAGS
  577. RT_CFLAGS
  578. RT_LIBS
  579. PTHREAD_CFLAGS
  580. PTHREAD_LIBS
  581. TINYXML_CXXFLAGS
  582. TINYXML_LIBS
  583. TINYRL_CFLAGS
  584. TINYRL_LIBS
  585. KONF_CFLAGS
  586. KONF_LIBS
  587. LUB_CFLAGS
  588. LUB_LIBS
  589. DEBUG_FALSE
  590. DEBUG_TRUE
  591. am__fastdepCXX_FALSE
  592. am__fastdepCXX_TRUE
  593. CXXDEPMODE
  594. am__fastdepCC_FALSE
  595. am__fastdepCC_TRUE
  596. CCDEPMODE
  597. AMDEPBACKSLASH
  598. AMDEP_FALSE
  599. AMDEP_TRUE
  600. am__quote
  601. am__include
  602. DEPDIR
  603. am__untar
  604. am__tar
  605. AMTAR
  606. am__leading_dot
  607. SET_MAKE
  608. mkdir_p
  609. MKDIR_P
  610. INSTALL_STRIP_PROGRAM
  611. install_sh
  612. MAKEINFO
  613. AUTOHEADER
  614. AUTOMAKE
  615. AUTOCONF
  616. ACLOCAL
  617. VERSION
  618. PACKAGE
  619. CYGPATH_W
  620. am__isrc
  621. INSTALL_DATA
  622. INSTALL_SCRIPT
  623. INSTALL_PROGRAM
  624. CXXCPP
  625. CPP
  626. OTOOL64
  627. OTOOL
  628. LIPO
  629. NMEDIT
  630. DSYMUTIL
  631. MANIFEST_TOOL
  632. AWK
  633. RANLIB
  634. STRIP
  635. ac_ct_AR
  636. AR
  637. LN_S
  638. NM
  639. ac_ct_DUMPBIN
  640. DUMPBIN
  641. LD
  642. FGREP
  643. EGREP
  644. GREP
  645. SED
  646. LIBTOOL
  647. OBJDUMP
  648. DLLTOOL
  649. AS
  650. host_os
  651. host_vendor
  652. host_cpu
  653. host
  654. build_os
  655. build_vendor
  656. build_cpu
  657. build
  658. ac_ct_CXX
  659. CXXFLAGS
  660. CXX
  661. OBJEXT
  662. EXEEXT
  663. ac_ct_CC
  664. CPPFLAGS
  665. LDFLAGS
  666. CFLAGS
  667. CC
  668. target_alias
  669. host_alias
  670. build_alias
  671. LIBS
  672. ECHO_T
  673. ECHO_N
  674. ECHO_C
  675. DEFS
  676. mandir
  677. localedir
  678. libdir
  679. psdir
  680. pdfdir
  681. dvidir
  682. htmldir
  683. infodir
  684. docdir
  685. oldincludedir
  686. includedir
  687. localstatedir
  688. sharedstatedir
  689. sysconfdir
  690. datadir
  691. datarootdir
  692. libexecdir
  693. sbindir
  694. bindir
  695. program_transform_name
  696. prefix
  697. exec_prefix
  698. PACKAGE_URL
  699. PACKAGE_BUGREPORT
  700. PACKAGE_STRING
  701. PACKAGE_VERSION
  702. PACKAGE_TARNAME
  703. PACKAGE_NAME
  704. PATH_SEPARATOR
  705. SHELL'
  706. ac_subst_files=''
  707. ac_user_opts='
  708. enable_option_checking
  709. enable_shared
  710. enable_static
  711. with_pic
  712. enable_fast_install
  713. with_gnu_ld
  714. with_sysroot
  715. enable_libtool_lock
  716. enable_dependency_tracking
  717. enable_debug
  718. with_pthread
  719. with_rt
  720. with_tcl
  721. enable_lubheap
  722. enable_gpl
  723. '
  724. ac_precious_vars='build_alias
  725. host_alias
  726. target_alias
  727. CC
  728. CFLAGS
  729. LDFLAGS
  730. LIBS
  731. CPPFLAGS
  732. CXX
  733. CXXFLAGS
  734. CCC
  735. CPP
  736. CXXCPP'
  737. # Initialize some variables set by options.
  738. ac_init_help=
  739. ac_init_version=false
  740. ac_unrecognized_opts=
  741. ac_unrecognized_sep=
  742. # The variables have the same names as the options, with
  743. # dashes changed to underlines.
  744. cache_file=/dev/null
  745. exec_prefix=NONE
  746. no_create=
  747. no_recursion=
  748. prefix=NONE
  749. program_prefix=NONE
  750. program_suffix=NONE
  751. program_transform_name=s,x,x,
  752. silent=
  753. site=
  754. srcdir=
  755. verbose=
  756. x_includes=NONE
  757. x_libraries=NONE
  758. # Installation directory options.
  759. # These are left unexpanded so users can "make install exec_prefix=/foo"
  760. # and all the variables that are supposed to be based on exec_prefix
  761. # by default will actually change.
  762. # Use braces instead of parens because sh, perl, etc. also accept them.
  763. # (The list follows the same order as the GNU Coding Standards.)
  764. bindir='${exec_prefix}/bin'
  765. sbindir='${exec_prefix}/sbin'
  766. libexecdir='${exec_prefix}/libexec'
  767. datarootdir='${prefix}/share'
  768. datadir='${datarootdir}'
  769. sysconfdir='${prefix}/etc'
  770. sharedstatedir='${prefix}/com'
  771. localstatedir='${prefix}/var'
  772. includedir='${prefix}/include'
  773. oldincludedir='/usr/include'
  774. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  775. infodir='${datarootdir}/info'
  776. htmldir='${docdir}'
  777. dvidir='${docdir}'
  778. pdfdir='${docdir}'
  779. psdir='${docdir}'
  780. libdir='${exec_prefix}/lib'
  781. localedir='${datarootdir}/locale'
  782. mandir='${datarootdir}/man'
  783. ac_prev=
  784. ac_dashdash=
  785. for ac_option
  786. do
  787. # If the previous option needs an argument, assign it.
  788. if test -n "$ac_prev"; then
  789. eval $ac_prev=\$ac_option
  790. ac_prev=
  791. continue
  792. fi
  793. case $ac_option in
  794. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  795. *=) ac_optarg= ;;
  796. *) ac_optarg=yes ;;
  797. esac
  798. # Accept the important Cygnus configure options, so we can diagnose typos.
  799. case $ac_dashdash$ac_option in
  800. --)
  801. ac_dashdash=yes ;;
  802. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  803. ac_prev=bindir ;;
  804. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  805. bindir=$ac_optarg ;;
  806. -build | --build | --buil | --bui | --bu)
  807. ac_prev=build_alias ;;
  808. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  809. build_alias=$ac_optarg ;;
  810. -cache-file | --cache-file | --cache-fil | --cache-fi \
  811. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  812. ac_prev=cache_file ;;
  813. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  814. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  815. cache_file=$ac_optarg ;;
  816. --config-cache | -C)
  817. cache_file=config.cache ;;
  818. -datadir | --datadir | --datadi | --datad)
  819. ac_prev=datadir ;;
  820. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  821. datadir=$ac_optarg ;;
  822. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  823. | --dataroo | --dataro | --datar)
  824. ac_prev=datarootdir ;;
  825. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  826. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  827. datarootdir=$ac_optarg ;;
  828. -disable-* | --disable-*)
  829. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  830. # Reject names that are not valid shell variable names.
  831. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  832. as_fn_error $? "invalid feature name: $ac_useropt"
  833. ac_useropt_orig=$ac_useropt
  834. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  835. case $ac_user_opts in
  836. *"
  837. "enable_$ac_useropt"
  838. "*) ;;
  839. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  840. ac_unrecognized_sep=', ';;
  841. esac
  842. eval enable_$ac_useropt=no ;;
  843. -docdir | --docdir | --docdi | --doc | --do)
  844. ac_prev=docdir ;;
  845. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  846. docdir=$ac_optarg ;;
  847. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  848. ac_prev=dvidir ;;
  849. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  850. dvidir=$ac_optarg ;;
  851. -enable-* | --enable-*)
  852. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  853. # Reject names that are not valid shell variable names.
  854. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  855. as_fn_error $? "invalid feature name: $ac_useropt"
  856. ac_useropt_orig=$ac_useropt
  857. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  858. case $ac_user_opts in
  859. *"
  860. "enable_$ac_useropt"
  861. "*) ;;
  862. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  863. ac_unrecognized_sep=', ';;
  864. esac
  865. eval enable_$ac_useropt=\$ac_optarg ;;
  866. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  867. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  868. | --exec | --exe | --ex)
  869. ac_prev=exec_prefix ;;
  870. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  871. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  872. | --exec=* | --exe=* | --ex=*)
  873. exec_prefix=$ac_optarg ;;
  874. -gas | --gas | --ga | --g)
  875. # Obsolete; use --with-gas.
  876. with_gas=yes ;;
  877. -help | --help | --hel | --he | -h)
  878. ac_init_help=long ;;
  879. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  880. ac_init_help=recursive ;;
  881. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  882. ac_init_help=short ;;
  883. -host | --host | --hos | --ho)
  884. ac_prev=host_alias ;;
  885. -host=* | --host=* | --hos=* | --ho=*)
  886. host_alias=$ac_optarg ;;
  887. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  888. ac_prev=htmldir ;;
  889. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  890. | --ht=*)
  891. htmldir=$ac_optarg ;;
  892. -includedir | --includedir | --includedi | --included | --include \
  893. | --includ | --inclu | --incl | --inc)
  894. ac_prev=includedir ;;
  895. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  896. | --includ=* | --inclu=* | --incl=* | --inc=*)
  897. includedir=$ac_optarg ;;
  898. -infodir | --infodir | --infodi | --infod | --info | --inf)
  899. ac_prev=infodir ;;
  900. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  901. infodir=$ac_optarg ;;
  902. -libdir | --libdir | --libdi | --libd)
  903. ac_prev=libdir ;;
  904. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  905. libdir=$ac_optarg ;;
  906. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  907. | --libexe | --libex | --libe)
  908. ac_prev=libexecdir ;;
  909. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  910. | --libexe=* | --libex=* | --libe=*)
  911. libexecdir=$ac_optarg ;;
  912. -localedir | --localedir | --localedi | --localed | --locale)
  913. ac_prev=localedir ;;
  914. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  915. localedir=$ac_optarg ;;
  916. -localstatedir | --localstatedir | --localstatedi | --localstated \
  917. | --localstate | --localstat | --localsta | --localst | --locals)
  918. ac_prev=localstatedir ;;
  919. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  920. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  921. localstatedir=$ac_optarg ;;
  922. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  923. ac_prev=mandir ;;
  924. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  925. mandir=$ac_optarg ;;
  926. -nfp | --nfp | --nf)
  927. # Obsolete; use --without-fp.
  928. with_fp=no ;;
  929. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  930. | --no-cr | --no-c | -n)
  931. no_create=yes ;;
  932. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  933. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  934. no_recursion=yes ;;
  935. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  936. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  937. | --oldin | --oldi | --old | --ol | --o)
  938. ac_prev=oldincludedir ;;
  939. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  940. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  941. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  942. oldincludedir=$ac_optarg ;;
  943. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  944. ac_prev=prefix ;;
  945. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  946. prefix=$ac_optarg ;;
  947. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  948. | --program-pre | --program-pr | --program-p)
  949. ac_prev=program_prefix ;;
  950. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  951. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  952. program_prefix=$ac_optarg ;;
  953. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  954. | --program-suf | --program-su | --program-s)
  955. ac_prev=program_suffix ;;
  956. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  957. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  958. program_suffix=$ac_optarg ;;
  959. -program-transform-name | --program-transform-name \
  960. | --program-transform-nam | --program-transform-na \
  961. | --program-transform-n | --program-transform- \
  962. | --program-transform | --program-transfor \
  963. | --program-transfo | --program-transf \
  964. | --program-trans | --program-tran \
  965. | --progr-tra | --program-tr | --program-t)
  966. ac_prev=program_transform_name ;;
  967. -program-transform-name=* | --program-transform-name=* \
  968. | --program-transform-nam=* | --program-transform-na=* \
  969. | --program-transform-n=* | --program-transform-=* \
  970. | --program-transform=* | --program-transfor=* \
  971. | --program-transfo=* | --program-transf=* \
  972. | --program-trans=* | --program-tran=* \
  973. | --progr-tra=* | --program-tr=* | --program-t=*)
  974. program_transform_name=$ac_optarg ;;
  975. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  976. ac_prev=pdfdir ;;
  977. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  978. pdfdir=$ac_optarg ;;
  979. -psdir | --psdir | --psdi | --psd | --ps)
  980. ac_prev=psdir ;;
  981. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  982. psdir=$ac_optarg ;;
  983. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  984. | -silent | --silent | --silen | --sile | --sil)
  985. silent=yes ;;
  986. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  987. ac_prev=sbindir ;;
  988. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  989. | --sbi=* | --sb=*)
  990. sbindir=$ac_optarg ;;
  991. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  992. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  993. | --sharedst | --shareds | --shared | --share | --shar \
  994. | --sha | --sh)
  995. ac_prev=sharedstatedir ;;
  996. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  997. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  998. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  999. | --sha=* | --sh=*)
  1000. sharedstatedir=$ac_optarg ;;
  1001. -site | --site | --sit)
  1002. ac_prev=site ;;
  1003. -site=* | --site=* | --sit=*)
  1004. site=$ac_optarg ;;
  1005. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1006. ac_prev=srcdir ;;
  1007. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1008. srcdir=$ac_optarg ;;
  1009. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1010. | --syscon | --sysco | --sysc | --sys | --sy)
  1011. ac_prev=sysconfdir ;;
  1012. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1013. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1014. sysconfdir=$ac_optarg ;;
  1015. -target | --target | --targe | --targ | --tar | --ta | --t)
  1016. ac_prev=target_alias ;;
  1017. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1018. target_alias=$ac_optarg ;;
  1019. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1020. verbose=yes ;;
  1021. -version | --version | --versio | --versi | --vers | -V)
  1022. ac_init_version=: ;;
  1023. -with-* | --with-*)
  1024. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1025. # Reject names that are not valid shell variable names.
  1026. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1027. as_fn_error $? "invalid package name: $ac_useropt"
  1028. ac_useropt_orig=$ac_useropt
  1029. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1030. case $ac_user_opts in
  1031. *"
  1032. "with_$ac_useropt"
  1033. "*) ;;
  1034. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1035. ac_unrecognized_sep=', ';;
  1036. esac
  1037. eval with_$ac_useropt=\$ac_optarg ;;
  1038. -without-* | --without-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error $? "invalid package name: $ac_useropt"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "with_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval with_$ac_useropt=no ;;
  1053. --x)
  1054. # Obsolete; use --with-x.
  1055. with_x=yes ;;
  1056. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1057. | --x-incl | --x-inc | --x-in | --x-i)
  1058. ac_prev=x_includes ;;
  1059. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1060. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1061. x_includes=$ac_optarg ;;
  1062. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1063. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1064. ac_prev=x_libraries ;;
  1065. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1066. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1067. x_libraries=$ac_optarg ;;
  1068. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1069. Try \`$0 --help' for more information"
  1070. ;;
  1071. *=*)
  1072. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1073. # Reject names that are not valid shell variable names.
  1074. case $ac_envvar in #(
  1075. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1076. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1077. esac
  1078. eval $ac_envvar=\$ac_optarg
  1079. export $ac_envvar ;;
  1080. *)
  1081. # FIXME: should be removed in autoconf 3.0.
  1082. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1083. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1084. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1085. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1086. ;;
  1087. esac
  1088. done
  1089. if test -n "$ac_prev"; then
  1090. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1091. as_fn_error $? "missing argument to $ac_option"
  1092. fi
  1093. if test -n "$ac_unrecognized_opts"; then
  1094. case $enable_option_checking in
  1095. no) ;;
  1096. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1097. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1098. esac
  1099. fi
  1100. # Check all directory arguments for consistency.
  1101. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1102. datadir sysconfdir sharedstatedir localstatedir includedir \
  1103. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1104. libdir localedir mandir
  1105. do
  1106. eval ac_val=\$$ac_var
  1107. # Remove trailing slashes.
  1108. case $ac_val in
  1109. */ )
  1110. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1111. eval $ac_var=\$ac_val;;
  1112. esac
  1113. # Be sure to have absolute directory names.
  1114. case $ac_val in
  1115. [\\/$]* | ?:[\\/]* ) continue;;
  1116. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1117. esac
  1118. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1119. done
  1120. # There might be people who depend on the old broken behavior: `$host'
  1121. # used to hold the argument of --host etc.
  1122. # FIXME: To remove some day.
  1123. build=$build_alias
  1124. host=$host_alias
  1125. target=$target_alias
  1126. # FIXME: To remove some day.
  1127. if test "x$host_alias" != x; then
  1128. if test "x$build_alias" = x; then
  1129. cross_compiling=maybe
  1130. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1131. If a cross compiler is detected then cross compile mode will be used" >&2
  1132. elif test "x$build_alias" != "x$host_alias"; then
  1133. cross_compiling=yes
  1134. fi
  1135. fi
  1136. ac_tool_prefix=
  1137. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1138. test "$silent" = yes && exec 6>/dev/null
  1139. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1140. ac_ls_di=`ls -di .` &&
  1141. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1142. as_fn_error $? "working directory cannot be determined"
  1143. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1144. as_fn_error $? "pwd does not report name of working directory"
  1145. # Find the source files, if location was not specified.
  1146. if test -z "$srcdir"; then
  1147. ac_srcdir_defaulted=yes
  1148. # Try the directory containing this script, then the parent directory.
  1149. ac_confdir=`$as_dirname -- "$as_myself" ||
  1150. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1151. X"$as_myself" : 'X\(//\)[^/]' \| \
  1152. X"$as_myself" : 'X\(//\)$' \| \
  1153. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1154. $as_echo X"$as_myself" |
  1155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\/\)[^/].*/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\/\)$/{
  1164. s//\1/
  1165. q
  1166. }
  1167. /^X\(\/\).*/{
  1168. s//\1/
  1169. q
  1170. }
  1171. s/.*/./; q'`
  1172. srcdir=$ac_confdir
  1173. if test ! -r "$srcdir/$ac_unique_file"; then
  1174. srcdir=..
  1175. fi
  1176. else
  1177. ac_srcdir_defaulted=no
  1178. fi
  1179. if test ! -r "$srcdir/$ac_unique_file"; then
  1180. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1181. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1182. fi
  1183. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1184. ac_abs_confdir=`(
  1185. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1186. pwd)`
  1187. # When building in place, set srcdir=.
  1188. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1189. srcdir=.
  1190. fi
  1191. # Remove unnecessary trailing slashes from srcdir.
  1192. # Double slashes in file names in object file debugging info
  1193. # mess up M-x gdb in Emacs.
  1194. case $srcdir in
  1195. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1196. esac
  1197. for ac_var in $ac_precious_vars; do
  1198. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1199. eval ac_env_${ac_var}_value=\$${ac_var}
  1200. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1201. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1202. done
  1203. #
  1204. # Report the --help message.
  1205. #
  1206. if test "$ac_init_help" = "long"; then
  1207. # Omit some internal or obsolete options to make the list less imposing.
  1208. # This message is too long to be a string in the A/UX 3.1 sh.
  1209. cat <<_ACEOF
  1210. \`configure' configures klish 1.5.2 to adapt to many kinds of systems.
  1211. Usage: $0 [OPTION]... [VAR=VALUE]...
  1212. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1213. VAR=VALUE. See below for descriptions of some of the useful variables.
  1214. Defaults for the options are specified in brackets.
  1215. Configuration:
  1216. -h, --help display this help and exit
  1217. --help=short display options specific to this package
  1218. --help=recursive display the short help of all the included packages
  1219. -V, --version display version information and exit
  1220. -q, --quiet, --silent do not print \`checking ...' messages
  1221. --cache-file=FILE cache test results in FILE [disabled]
  1222. -C, --config-cache alias for \`--cache-file=config.cache'
  1223. -n, --no-create do not create output files
  1224. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1225. Installation directories:
  1226. --prefix=PREFIX install architecture-independent files in PREFIX
  1227. [$ac_default_prefix]
  1228. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1229. [PREFIX]
  1230. By default, \`make install' will install all the files in
  1231. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1232. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1233. for instance \`--prefix=\$HOME'.
  1234. For better control, use the options below.
  1235. Fine tuning of the installation directories:
  1236. --bindir=DIR user executables [EPREFIX/bin]
  1237. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1238. --libexecdir=DIR program executables [EPREFIX/libexec]
  1239. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1240. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1241. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1242. --libdir=DIR object code libraries [EPREFIX/lib]
  1243. --includedir=DIR C header files [PREFIX/include]
  1244. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1245. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1246. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1247. --infodir=DIR info documentation [DATAROOTDIR/info]
  1248. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1249. --mandir=DIR man documentation [DATAROOTDIR/man]
  1250. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1251. --htmldir=DIR html documentation [DOCDIR]
  1252. --dvidir=DIR dvi documentation [DOCDIR]
  1253. --pdfdir=DIR pdf documentation [DOCDIR]
  1254. --psdir=DIR ps documentation [DOCDIR]
  1255. _ACEOF
  1256. cat <<\_ACEOF
  1257. Program names:
  1258. --program-prefix=PREFIX prepend PREFIX to installed program names
  1259. --program-suffix=SUFFIX append SUFFIX to installed program names
  1260. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1261. System types:
  1262. --build=BUILD configure for building on BUILD [guessed]
  1263. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1264. _ACEOF
  1265. fi
  1266. if test -n "$ac_init_help"; then
  1267. case $ac_init_help in
  1268. short | recursive ) echo "Configuration of klish 1.5.2:";;
  1269. esac
  1270. cat <<\_ACEOF
  1271. Optional Features:
  1272. --disable-option-checking ignore unrecognized --enable/--with options
  1273. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1274. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1275. --enable-shared[=PKGS] build shared libraries [default=yes]
  1276. --enable-static[=PKGS] build static libraries [default=yes]
  1277. --enable-fast-install[=PKGS]
  1278. optimize for fast installation [default=yes]
  1279. --disable-libtool-lock avoid locking (might break parallel builds)
  1280. --disable-dependency-tracking speeds up one-time build
  1281. --enable-dependency-tracking do not reject slow dependency extractors
  1282. --enable-debug Turn on debugging including asserts [default=no]
  1283. --enable-lubheap Replace standard memory libaries with lubheap
  1284. (EXPERIMENTAL) [default=no]
  1285. --enable-gpl Link with GPL licenced libraries [default=yes]
  1286. Optional Packages:
  1287. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1288. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1289. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1290. both]
  1291. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1292. --with-sysroot=DIR Search for dependent libraries within DIR
  1293. (or the compiler's sysroot if not specified).
  1294. --with-pthread=DIR Use POSIX threads library distribution in DIR
  1295. --with-rt=DIR Use POSIX real time library distribution in DIR
  1296. --with-tcl=DIR Use TCL library distribution in DIR
  1297. Some influential environment variables:
  1298. CC C compiler command
  1299. CFLAGS C compiler flags
  1300. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1301. nonstandard directory <lib dir>
  1302. LIBS libraries to pass to the linker, e.g. -l<library>
  1303. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1304. you have headers in a nonstandard directory <include dir>
  1305. CXX C++ compiler command
  1306. CXXFLAGS C++ compiler flags
  1307. CPP C preprocessor
  1308. CXXCPP C++ preprocessor
  1309. Use these variables to override the choices made by `configure' or to help
  1310. it to find libraries and programs with nonstandard names/locations.
  1311. Report bugs to <serj.kalichev at gmail dot com>.
  1312. _ACEOF
  1313. ac_status=$?
  1314. fi
  1315. if test "$ac_init_help" = "recursive"; then
  1316. # If there are subdirs, report their specific --help.
  1317. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1318. test -d "$ac_dir" ||
  1319. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1320. continue
  1321. ac_builddir=.
  1322. case "$ac_dir" in
  1323. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1324. *)
  1325. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1326. # A ".." for each directory in $ac_dir_suffix.
  1327. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1328. case $ac_top_builddir_sub in
  1329. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1330. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1331. esac ;;
  1332. esac
  1333. ac_abs_top_builddir=$ac_pwd
  1334. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1335. # for backward compatibility:
  1336. ac_top_builddir=$ac_top_build_prefix
  1337. case $srcdir in
  1338. .) # We are building in place.
  1339. ac_srcdir=.
  1340. ac_top_srcdir=$ac_top_builddir_sub
  1341. ac_abs_top_srcdir=$ac_pwd ;;
  1342. [\\/]* | ?:[\\/]* ) # Absolute name.
  1343. ac_srcdir=$srcdir$ac_dir_suffix;
  1344. ac_top_srcdir=$srcdir
  1345. ac_abs_top_srcdir=$srcdir ;;
  1346. *) # Relative name.
  1347. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1348. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1349. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1350. esac
  1351. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1352. cd "$ac_dir" || { ac_status=$?; continue; }
  1353. # Check for guested configure.
  1354. if test -f "$ac_srcdir/configure.gnu"; then
  1355. echo &&
  1356. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1357. elif test -f "$ac_srcdir/configure"; then
  1358. echo &&
  1359. $SHELL "$ac_srcdir/configure" --help=recursive
  1360. else
  1361. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1362. fi || ac_status=$?
  1363. cd "$ac_pwd" || { ac_status=$?; break; }
  1364. done
  1365. fi
  1366. test -n "$ac_init_help" && exit $ac_status
  1367. if $ac_init_version; then
  1368. cat <<\_ACEOF
  1369. klish configure 1.5.2
  1370. generated by GNU Autoconf 2.68
  1371. Copyright (C) 2010 Free Software Foundation, Inc.
  1372. This configure script is free software; the Free Software Foundation
  1373. gives unlimited permission to copy, distribute and modify it.
  1374. _ACEOF
  1375. exit
  1376. fi
  1377. ## ------------------------ ##
  1378. ## Autoconf initialization. ##
  1379. ## ------------------------ ##
  1380. # ac_fn_c_try_compile LINENO
  1381. # --------------------------
  1382. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1383. ac_fn_c_try_compile ()
  1384. {
  1385. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1386. rm -f conftest.$ac_objext
  1387. if { { ac_try="$ac_compile"
  1388. case "(($ac_try" in
  1389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1390. *) ac_try_echo=$ac_try;;
  1391. esac
  1392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1393. $as_echo "$ac_try_echo"; } >&5
  1394. (eval "$ac_compile") 2>conftest.err
  1395. ac_status=$?
  1396. if test -s conftest.err; then
  1397. grep -v '^ *+' conftest.err >conftest.er1
  1398. cat conftest.er1 >&5
  1399. mv -f conftest.er1 conftest.err
  1400. fi
  1401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1402. test $ac_status = 0; } && {
  1403. test -z "$ac_c_werror_flag" ||
  1404. test ! -s conftest.err
  1405. } && test -s conftest.$ac_objext; then :
  1406. ac_retval=0
  1407. else
  1408. $as_echo "$as_me: failed program was:" >&5
  1409. sed 's/^/| /' conftest.$ac_ext >&5
  1410. ac_retval=1
  1411. fi
  1412. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1413. as_fn_set_status $ac_retval
  1414. } # ac_fn_c_try_compile
  1415. # ac_fn_cxx_try_compile LINENO
  1416. # ----------------------------
  1417. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1418. ac_fn_cxx_try_compile ()
  1419. {
  1420. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1421. rm -f conftest.$ac_objext
  1422. if { { ac_try="$ac_compile"
  1423. case "(($ac_try" in
  1424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1425. *) ac_try_echo=$ac_try;;
  1426. esac
  1427. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1428. $as_echo "$ac_try_echo"; } >&5
  1429. (eval "$ac_compile") 2>conftest.err
  1430. ac_status=$?
  1431. if test -s conftest.err; then
  1432. grep -v '^ *+' conftest.err >conftest.er1
  1433. cat conftest.er1 >&5
  1434. mv -f conftest.er1 conftest.err
  1435. fi
  1436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1437. test $ac_status = 0; } && {
  1438. test -z "$ac_cxx_werror_flag" ||
  1439. test ! -s conftest.err
  1440. } && test -s conftest.$ac_objext; then :
  1441. ac_retval=0
  1442. else
  1443. $as_echo "$as_me: failed program was:" >&5
  1444. sed 's/^/| /' conftest.$ac_ext >&5
  1445. ac_retval=1
  1446. fi
  1447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1448. as_fn_set_status $ac_retval
  1449. } # ac_fn_cxx_try_compile
  1450. # ac_fn_c_try_link LINENO
  1451. # -----------------------
  1452. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1453. ac_fn_c_try_link ()
  1454. {
  1455. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1456. rm -f conftest.$ac_objext conftest$ac_exeext
  1457. if { { ac_try="$ac_link"
  1458. case "(($ac_try" in
  1459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1460. *) ac_try_echo=$ac_try;;
  1461. esac
  1462. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1463. $as_echo "$ac_try_echo"; } >&5
  1464. (eval "$ac_link") 2>conftest.err
  1465. ac_status=$?
  1466. if test -s conftest.err; then
  1467. grep -v '^ *+' conftest.err >conftest.er1
  1468. cat conftest.er1 >&5
  1469. mv -f conftest.er1 conftest.err
  1470. fi
  1471. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1472. test $ac_status = 0; } && {
  1473. test -z "$ac_c_werror_flag" ||
  1474. test ! -s conftest.err
  1475. } && test -s conftest$ac_exeext && {
  1476. test "$cross_compiling" = yes ||
  1477. $as_test_x conftest$ac_exeext
  1478. }; then :
  1479. ac_retval=0
  1480. else
  1481. $as_echo "$as_me: failed program was:" >&5
  1482. sed 's/^/| /' conftest.$ac_ext >&5
  1483. ac_retval=1
  1484. fi
  1485. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1486. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1487. # interfere with the next link command; also delete a directory that is
  1488. # left behind by Apple's compiler. We do this before executing the actions.
  1489. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1490. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1491. as_fn_set_status $ac_retval
  1492. } # ac_fn_c_try_link
  1493. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1494. # -------------------------------------------------------
  1495. # Tests whether HEADER exists and can be compiled using the include files in
  1496. # INCLUDES, setting the cache variable VAR accordingly.
  1497. ac_fn_c_check_header_compile ()
  1498. {
  1499. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1501. $as_echo_n "checking for $2... " >&6; }
  1502. if eval \${$3+:} false; then :
  1503. $as_echo_n "(cached) " >&6
  1504. else
  1505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1506. /* end confdefs.h. */
  1507. $4
  1508. #include <$2>
  1509. _ACEOF
  1510. if ac_fn_c_try_compile "$LINENO"; then :
  1511. eval "$3=yes"
  1512. else
  1513. eval "$3=no"
  1514. fi
  1515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1516. fi
  1517. eval ac_res=\$$3
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1519. $as_echo "$ac_res" >&6; }
  1520. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1521. } # ac_fn_c_check_header_compile
  1522. # ac_fn_c_try_cpp LINENO
  1523. # ----------------------
  1524. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1525. ac_fn_c_try_cpp ()
  1526. {
  1527. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1528. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1529. case "(($ac_try" in
  1530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1531. *) ac_try_echo=$ac_try;;
  1532. esac
  1533. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1534. $as_echo "$ac_try_echo"; } >&5
  1535. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1536. ac_status=$?
  1537. if test -s conftest.err; then
  1538. grep -v '^ *+' conftest.err >conftest.er1
  1539. cat conftest.er1 >&5
  1540. mv -f conftest.er1 conftest.err
  1541. fi
  1542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1543. test $ac_status = 0; } > conftest.i && {
  1544. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1545. test ! -s conftest.err
  1546. }; then :
  1547. ac_retval=0
  1548. else
  1549. $as_echo "$as_me: failed program was:" >&5
  1550. sed 's/^/| /' conftest.$ac_ext >&5
  1551. ac_retval=1
  1552. fi
  1553. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1554. as_fn_set_status $ac_retval
  1555. } # ac_fn_c_try_cpp
  1556. # ac_fn_c_try_run LINENO
  1557. # ----------------------
  1558. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1559. # that executables *can* be run.
  1560. ac_fn_c_try_run ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. if { { ac_try="$ac_link"
  1564. case "(($ac_try" in
  1565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1566. *) ac_try_echo=$ac_try;;
  1567. esac
  1568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1569. $as_echo "$ac_try_echo"; } >&5
  1570. (eval "$ac_link") 2>&5
  1571. ac_status=$?
  1572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1573. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1574. { { case "(($ac_try" in
  1575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1576. *) ac_try_echo=$ac_try;;
  1577. esac
  1578. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1579. $as_echo "$ac_try_echo"; } >&5
  1580. (eval "$ac_try") 2>&5
  1581. ac_status=$?
  1582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1583. test $ac_status = 0; }; }; then :
  1584. ac_retval=0
  1585. else
  1586. $as_echo "$as_me: program exited with status $ac_status" >&5
  1587. $as_echo "$as_me: failed program was:" >&5
  1588. sed 's/^/| /' conftest.$ac_ext >&5
  1589. ac_retval=$ac_status
  1590. fi
  1591. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1592. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1593. as_fn_set_status $ac_retval
  1594. } # ac_fn_c_try_run
  1595. # ac_fn_c_check_func LINENO FUNC VAR
  1596. # ----------------------------------
  1597. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1598. ac_fn_c_check_func ()
  1599. {
  1600. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1602. $as_echo_n "checking for $2... " >&6; }
  1603. if eval \${$3+:} false; then :
  1604. $as_echo_n "(cached) " >&6
  1605. else
  1606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1607. /* end confdefs.h. */
  1608. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1609. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1610. #define $2 innocuous_$2
  1611. /* System header to define __stub macros and hopefully few prototypes,
  1612. which can conflict with char $2 (); below.
  1613. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1614. <limits.h> exists even on freestanding compilers. */
  1615. #ifdef __STDC__
  1616. # include <limits.h>
  1617. #else
  1618. # include <assert.h>
  1619. #endif
  1620. #undef $2
  1621. /* Override any GCC internal prototype to avoid an error.
  1622. Use char because int might match the return type of a GCC
  1623. builtin and then its argument prototype would still apply. */
  1624. #ifdef __cplusplus
  1625. extern "C"
  1626. #endif
  1627. char $2 ();
  1628. /* The GNU C library defines this for functions which it implements
  1629. to always fail with ENOSYS. Some functions are actually named
  1630. something starting with __ and the normal name is an alias. */
  1631. #if defined __stub_$2 || defined __stub___$2
  1632. choke me
  1633. #endif
  1634. int
  1635. main ()
  1636. {
  1637. return $2 ();
  1638. ;
  1639. return 0;
  1640. }
  1641. _ACEOF
  1642. if ac_fn_c_try_link "$LINENO"; then :
  1643. eval "$3=yes"
  1644. else
  1645. eval "$3=no"
  1646. fi
  1647. rm -f core conftest.err conftest.$ac_objext \
  1648. conftest$ac_exeext conftest.$ac_ext
  1649. fi
  1650. eval ac_res=\$$3
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1652. $as_echo "$ac_res" >&6; }
  1653. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1654. } # ac_fn_c_check_func
  1655. # ac_fn_cxx_try_cpp LINENO
  1656. # ------------------------
  1657. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1658. ac_fn_cxx_try_cpp ()
  1659. {
  1660. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1661. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1662. case "(($ac_try" in
  1663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1664. *) ac_try_echo=$ac_try;;
  1665. esac
  1666. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1667. $as_echo "$ac_try_echo"; } >&5
  1668. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1669. ac_status=$?
  1670. if test -s conftest.err; then
  1671. grep -v '^ *+' conftest.err >conftest.er1
  1672. cat conftest.er1 >&5
  1673. mv -f conftest.er1 conftest.err
  1674. fi
  1675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1676. test $ac_status = 0; } > conftest.i && {
  1677. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1678. test ! -s conftest.err
  1679. }; then :
  1680. ac_retval=0
  1681. else
  1682. $as_echo "$as_me: failed program was:" >&5
  1683. sed 's/^/| /' conftest.$ac_ext >&5
  1684. ac_retval=1
  1685. fi
  1686. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1687. as_fn_set_status $ac_retval
  1688. } # ac_fn_cxx_try_cpp
  1689. # ac_fn_cxx_try_link LINENO
  1690. # -------------------------
  1691. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1692. ac_fn_cxx_try_link ()
  1693. {
  1694. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1695. rm -f conftest.$ac_objext conftest$ac_exeext
  1696. if { { ac_try="$ac_link"
  1697. case "(($ac_try" in
  1698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1699. *) ac_try_echo=$ac_try;;
  1700. esac
  1701. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1702. $as_echo "$ac_try_echo"; } >&5
  1703. (eval "$ac_link") 2>conftest.err
  1704. ac_status=$?
  1705. if test -s conftest.err; then
  1706. grep -v '^ *+' conftest.err >conftest.er1
  1707. cat conftest.er1 >&5
  1708. mv -f conftest.er1 conftest.err
  1709. fi
  1710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1711. test $ac_status = 0; } && {
  1712. test -z "$ac_cxx_werror_flag" ||
  1713. test ! -s conftest.err
  1714. } && test -s conftest$ac_exeext && {
  1715. test "$cross_compiling" = yes ||
  1716. $as_test_x conftest$ac_exeext
  1717. }; then :
  1718. ac_retval=0
  1719. else
  1720. $as_echo "$as_me: failed program was:" >&5
  1721. sed 's/^/| /' conftest.$ac_ext >&5
  1722. ac_retval=1
  1723. fi
  1724. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1725. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1726. # interfere with the next link command; also delete a directory that is
  1727. # left behind by Apple's compiler. We do this before executing the actions.
  1728. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1729. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1730. as_fn_set_status $ac_retval
  1731. } # ac_fn_cxx_try_link
  1732. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1733. # --------------------------------------------
  1734. # Tries to find the compile-time value of EXPR in a program that includes
  1735. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1736. # computed
  1737. ac_fn_c_compute_int ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. if test "$cross_compiling" = yes; then
  1741. # Depending upon the size, compute the lo and hi bounds.
  1742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1743. /* end confdefs.h. */
  1744. $4
  1745. int
  1746. main ()
  1747. {
  1748. static int test_array [1 - 2 * !(($2) >= 0)];
  1749. test_array [0] = 0
  1750. ;
  1751. return 0;
  1752. }
  1753. _ACEOF
  1754. if ac_fn_c_try_compile "$LINENO"; then :
  1755. ac_lo=0 ac_mid=0
  1756. while :; do
  1757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1758. /* end confdefs.h. */
  1759. $4
  1760. int
  1761. main ()
  1762. {
  1763. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1764. test_array [0] = 0
  1765. ;
  1766. return 0;
  1767. }
  1768. _ACEOF
  1769. if ac_fn_c_try_compile "$LINENO"; then :
  1770. ac_hi=$ac_mid; break
  1771. else
  1772. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1773. if test $ac_lo -le $ac_mid; then
  1774. ac_lo= ac_hi=
  1775. break
  1776. fi
  1777. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1780. done
  1781. else
  1782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1783. /* end confdefs.h. */
  1784. $4
  1785. int
  1786. main ()
  1787. {
  1788. static int test_array [1 - 2 * !(($2) < 0)];
  1789. test_array [0] = 0
  1790. ;
  1791. return 0;
  1792. }
  1793. _ACEOF
  1794. if ac_fn_c_try_compile "$LINENO"; then :
  1795. ac_hi=-1 ac_mid=-1
  1796. while :; do
  1797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1798. /* end confdefs.h. */
  1799. $4
  1800. int
  1801. main ()
  1802. {
  1803. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1804. test_array [0] = 0
  1805. ;
  1806. return 0;
  1807. }
  1808. _ACEOF
  1809. if ac_fn_c_try_compile "$LINENO"; then :
  1810. ac_lo=$ac_mid; break
  1811. else
  1812. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1813. if test $ac_mid -le $ac_hi; then
  1814. ac_lo= ac_hi=
  1815. break
  1816. fi
  1817. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1818. fi
  1819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1820. done
  1821. else
  1822. ac_lo= ac_hi=
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1825. fi
  1826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1827. # Binary search between lo and hi bounds.
  1828. while test "x$ac_lo" != "x$ac_hi"; do
  1829. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. $4
  1833. int
  1834. main ()
  1835. {
  1836. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1837. test_array [0] = 0
  1838. ;
  1839. return 0;
  1840. }
  1841. _ACEOF
  1842. if ac_fn_c_try_compile "$LINENO"; then :
  1843. ac_hi=$ac_mid
  1844. else
  1845. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1846. fi
  1847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1848. done
  1849. case $ac_lo in #((
  1850. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1851. '') ac_retval=1 ;;
  1852. esac
  1853. else
  1854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1855. /* end confdefs.h. */
  1856. $4
  1857. static long int longval () { return $2; }
  1858. static unsigned long int ulongval () { return $2; }
  1859. #include <stdio.h>
  1860. #include <stdlib.h>
  1861. int
  1862. main ()
  1863. {
  1864. FILE *f = fopen ("conftest.val", "w");
  1865. if (! f)
  1866. return 1;
  1867. if (($2) < 0)
  1868. {
  1869. long int i = longval ();
  1870. if (i != ($2))
  1871. return 1;
  1872. fprintf (f, "%ld", i);
  1873. }
  1874. else
  1875. {
  1876. unsigned long int i = ulongval ();
  1877. if (i != ($2))
  1878. return 1;
  1879. fprintf (f, "%lu", i);
  1880. }
  1881. /* Do not output a trailing newline, as this causes \r\n confusion
  1882. on some platforms. */
  1883. return ferror (f) || fclose (f) != 0;
  1884. ;
  1885. return 0;
  1886. }
  1887. _ACEOF
  1888. if ac_fn_c_try_run "$LINENO"; then :
  1889. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1890. else
  1891. ac_retval=1
  1892. fi
  1893. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1894. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1895. rm -f conftest.val
  1896. fi
  1897. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1898. as_fn_set_status $ac_retval
  1899. } # ac_fn_c_compute_int
  1900. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1901. # -------------------------------------------------------
  1902. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1903. # the include files in INCLUDES and setting the cache variable VAR
  1904. # accordingly.
  1905. ac_fn_c_check_header_mongrel ()
  1906. {
  1907. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1908. if eval \${$3+:} false; then :
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1910. $as_echo_n "checking for $2... " >&6; }
  1911. if eval \${$3+:} false; then :
  1912. $as_echo_n "(cached) " >&6
  1913. fi
  1914. eval ac_res=\$$3
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1916. $as_echo "$ac_res" >&6; }
  1917. else
  1918. # Is the header compilable?
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1920. $as_echo_n "checking $2 usability... " >&6; }
  1921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1922. /* end confdefs.h. */
  1923. $4
  1924. #include <$2>
  1925. _ACEOF
  1926. if ac_fn_c_try_compile "$LINENO"; then :
  1927. ac_header_compiler=yes
  1928. else
  1929. ac_header_compiler=no
  1930. fi
  1931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1933. $as_echo "$ac_header_compiler" >&6; }
  1934. # Is the header present?
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1936. $as_echo_n "checking $2 presence... " >&6; }
  1937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1938. /* end confdefs.h. */
  1939. #include <$2>
  1940. _ACEOF
  1941. if ac_fn_c_try_cpp "$LINENO"; then :
  1942. ac_header_preproc=yes
  1943. else
  1944. ac_header_preproc=no
  1945. fi
  1946. rm -f conftest.err conftest.i conftest.$ac_ext
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1948. $as_echo "$ac_header_preproc" >&6; }
  1949. # So? What about this header?
  1950. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1951. yes:no: )
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1953. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1955. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1956. ;;
  1957. no:yes:* )
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1959. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1961. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1963. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1965. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1967. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1968. ( $as_echo "## --------------------------------------------- ##
  1969. ## Report this to serj.kalichev at gmail dot com ##
  1970. ## --------------------------------------------- ##"
  1971. ) | sed "s/^/$as_me: WARNING: /" >&2
  1972. ;;
  1973. esac
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1975. $as_echo_n "checking for $2... " >&6; }
  1976. if eval \${$3+:} false; then :
  1977. $as_echo_n "(cached) " >&6
  1978. else
  1979. eval "$3=\$ac_header_compiler"
  1980. fi
  1981. eval ac_res=\$$3
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1983. $as_echo "$ac_res" >&6; }
  1984. fi
  1985. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1986. } # ac_fn_c_check_header_mongrel
  1987. cat >config.log <<_ACEOF
  1988. This file contains any messages produced by compilers while
  1989. running configure, to aid debugging if configure makes a mistake.
  1990. It was created by klish $as_me 1.5.2, which was
  1991. generated by GNU Autoconf 2.68. Invocation command line was
  1992. $ $0 $@
  1993. _ACEOF
  1994. exec 5>>config.log
  1995. {
  1996. cat <<_ASUNAME
  1997. ## --------- ##
  1998. ## Platform. ##
  1999. ## --------- ##
  2000. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2001. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2002. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2003. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2004. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2005. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2006. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2007. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2008. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2009. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2010. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2011. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2012. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2013. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2014. _ASUNAME
  2015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2016. for as_dir in $PATH
  2017. do
  2018. IFS=$as_save_IFS
  2019. test -z "$as_dir" && as_dir=.
  2020. $as_echo "PATH: $as_dir"
  2021. done
  2022. IFS=$as_save_IFS
  2023. } >&5
  2024. cat >&5 <<_ACEOF
  2025. ## ----------- ##
  2026. ## Core tests. ##
  2027. ## ----------- ##
  2028. _ACEOF
  2029. # Keep a trace of the command line.
  2030. # Strip out --no-create and --no-recursion so they do not pile up.
  2031. # Strip out --silent because we don't want to record it for future runs.
  2032. # Also quote any args containing shell meta-characters.
  2033. # Make two passes to allow for proper duplicate-argument suppression.
  2034. ac_configure_args=
  2035. ac_configure_args0=
  2036. ac_configure_args1=
  2037. ac_must_keep_next=false
  2038. for ac_pass in 1 2
  2039. do
  2040. for ac_arg
  2041. do
  2042. case $ac_arg in
  2043. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2044. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2045. | -silent | --silent | --silen | --sile | --sil)
  2046. continue ;;
  2047. *\'*)
  2048. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2049. esac
  2050. case $ac_pass in
  2051. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2052. 2)
  2053. as_fn_append ac_configure_args1 " '$ac_arg'"
  2054. if test $ac_must_keep_next = true; then
  2055. ac_must_keep_next=false # Got value, back to normal.
  2056. else
  2057. case $ac_arg in
  2058. *=* | --config-cache | -C | -disable-* | --disable-* \
  2059. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2060. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2061. | -with-* | --with-* | -without-* | --without-* | --x)
  2062. case "$ac_configure_args0 " in
  2063. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2064. esac
  2065. ;;
  2066. -* ) ac_must_keep_next=true ;;
  2067. esac
  2068. fi
  2069. as_fn_append ac_configure_args " '$ac_arg'"
  2070. ;;
  2071. esac
  2072. done
  2073. done
  2074. { ac_configure_args0=; unset ac_configure_args0;}
  2075. { ac_configure_args1=; unset ac_configure_args1;}
  2076. # When interrupted or exit'd, cleanup temporary files, and complete
  2077. # config.log. We remove comments because anyway the quotes in there
  2078. # would cause problems or look ugly.
  2079. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2080. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2081. trap 'exit_status=$?
  2082. # Save into config.log some information that might help in debugging.
  2083. {
  2084. echo
  2085. $as_echo "## ---------------- ##
  2086. ## Cache variables. ##
  2087. ## ---------------- ##"
  2088. echo
  2089. # The following way of writing the cache mishandles newlines in values,
  2090. (
  2091. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2092. eval ac_val=\$$ac_var
  2093. case $ac_val in #(
  2094. *${as_nl}*)
  2095. case $ac_var in #(
  2096. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2097. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2098. esac
  2099. case $ac_var in #(
  2100. _ | IFS | as_nl) ;; #(
  2101. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2102. *) { eval $ac_var=; unset $ac_var;} ;;
  2103. esac ;;
  2104. esac
  2105. done
  2106. (set) 2>&1 |
  2107. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2108. *${as_nl}ac_space=\ *)
  2109. sed -n \
  2110. "s/'\''/'\''\\\\'\'''\''/g;
  2111. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2112. ;; #(
  2113. *)
  2114. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2115. ;;
  2116. esac |
  2117. sort
  2118. )
  2119. echo
  2120. $as_echo "## ----------------- ##
  2121. ## Output variables. ##
  2122. ## ----------------- ##"
  2123. echo
  2124. for ac_var in $ac_subst_vars
  2125. do
  2126. eval ac_val=\$$ac_var
  2127. case $ac_val in
  2128. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2129. esac
  2130. $as_echo "$ac_var='\''$ac_val'\''"
  2131. done | sort
  2132. echo
  2133. if test -n "$ac_subst_files"; then
  2134. $as_echo "## ------------------- ##
  2135. ## File substitutions. ##
  2136. ## ------------------- ##"
  2137. echo
  2138. for ac_var in $ac_subst_files
  2139. do
  2140. eval ac_val=\$$ac_var
  2141. case $ac_val in
  2142. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2143. esac
  2144. $as_echo "$ac_var='\''$ac_val'\''"
  2145. done | sort
  2146. echo
  2147. fi
  2148. if test -s confdefs.h; then
  2149. $as_echo "## ----------- ##
  2150. ## confdefs.h. ##
  2151. ## ----------- ##"
  2152. echo
  2153. cat confdefs.h
  2154. echo
  2155. fi
  2156. test "$ac_signal" != 0 &&
  2157. $as_echo "$as_me: caught signal $ac_signal"
  2158. $as_echo "$as_me: exit $exit_status"
  2159. } >&5
  2160. rm -f core *.core core.conftest.* &&
  2161. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2162. exit $exit_status
  2163. ' 0
  2164. for ac_signal in 1 2 13 15; do
  2165. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2166. done
  2167. ac_signal=0
  2168. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2169. rm -f -r conftest* confdefs.h
  2170. $as_echo "/* confdefs.h */" > confdefs.h
  2171. # Predefined preprocessor variables.
  2172. cat >>confdefs.h <<_ACEOF
  2173. #define PACKAGE_NAME "$PACKAGE_NAME"
  2174. _ACEOF
  2175. cat >>confdefs.h <<_ACEOF
  2176. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2177. _ACEOF
  2178. cat >>confdefs.h <<_ACEOF
  2179. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2180. _ACEOF
  2181. cat >>confdefs.h <<_ACEOF
  2182. #define PACKAGE_STRING "$PACKAGE_STRING"
  2183. _ACEOF
  2184. cat >>confdefs.h <<_ACEOF
  2185. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2186. _ACEOF
  2187. cat >>confdefs.h <<_ACEOF
  2188. #define PACKAGE_URL "$PACKAGE_URL"
  2189. _ACEOF
  2190. # Let the site file select an alternate cache file if it wants to.
  2191. # Prefer an explicitly selected file to automatically selected ones.
  2192. ac_site_file1=NONE
  2193. ac_site_file2=NONE
  2194. if test -n "$CONFIG_SITE"; then
  2195. # We do not want a PATH search for config.site.
  2196. case $CONFIG_SITE in #((
  2197. -*) ac_site_file1=./$CONFIG_SITE;;
  2198. */*) ac_site_file1=$CONFIG_SITE;;
  2199. *) ac_site_file1=./$CONFIG_SITE;;
  2200. esac
  2201. elif test "x$prefix" != xNONE; then
  2202. ac_site_file1=$prefix/share/config.site
  2203. ac_site_file2=$prefix/etc/config.site
  2204. else
  2205. ac_site_file1=$ac_default_prefix/share/config.site
  2206. ac_site_file2=$ac_default_prefix/etc/config.site
  2207. fi
  2208. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2209. do
  2210. test "x$ac_site_file" = xNONE && continue
  2211. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2213. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2214. sed 's/^/| /' "$ac_site_file" >&5
  2215. . "$ac_site_file" \
  2216. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2217. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2218. as_fn_error $? "failed to load site script $ac_site_file
  2219. See \`config.log' for more details" "$LINENO" 5; }
  2220. fi
  2221. done
  2222. if test -r "$cache_file"; then
  2223. # Some versions of bash will fail to source /dev/null (special files
  2224. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2225. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2226. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2227. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2228. case $cache_file in
  2229. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2230. *) . "./$cache_file";;
  2231. esac
  2232. fi
  2233. else
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2235. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2236. >$cache_file
  2237. fi
  2238. # Check that the precious variables saved in the cache have kept the same
  2239. # value.
  2240. ac_cache_corrupted=false
  2241. for ac_var in $ac_precious_vars; do
  2242. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2243. eval ac_new_set=\$ac_env_${ac_var}_set
  2244. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2245. eval ac_new_val=\$ac_env_${ac_var}_value
  2246. case $ac_old_set,$ac_new_set in
  2247. set,)
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2249. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2250. ac_cache_corrupted=: ;;
  2251. ,set)
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2253. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2254. ac_cache_corrupted=: ;;
  2255. ,);;
  2256. *)
  2257. if test "x$ac_old_val" != "x$ac_new_val"; then
  2258. # differences in whitespace do not lead to failure.
  2259. ac_old_val_w=`echo x $ac_old_val`
  2260. ac_new_val_w=`echo x $ac_new_val`
  2261. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2263. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2264. ac_cache_corrupted=:
  2265. else
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2267. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2268. eval $ac_var=\$ac_old_val
  2269. fi
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2271. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2273. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2274. fi;;
  2275. esac
  2276. # Pass precious variables to config.status.
  2277. if test "$ac_new_set" = set; then
  2278. case $ac_new_val in
  2279. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2280. *) ac_arg=$ac_var=$ac_new_val ;;
  2281. esac
  2282. case " $ac_configure_args " in
  2283. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2284. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2285. esac
  2286. fi
  2287. done
  2288. if $ac_cache_corrupted; then
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2290. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2292. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2293. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2294. fi
  2295. ## -------------------- ##
  2296. ## Main body of script. ##
  2297. ## -------------------- ##
  2298. ac_ext=c
  2299. ac_cpp='$CPP $CPPFLAGS'
  2300. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2301. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2302. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2303. ac_aux_dir=
  2304. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2305. if test -f "$ac_dir/install-sh"; then
  2306. ac_aux_dir=$ac_dir
  2307. ac_install_sh="$ac_aux_dir/install-sh -c"
  2308. break
  2309. elif test -f "$ac_dir/install.sh"; then
  2310. ac_aux_dir=$ac_dir
  2311. ac_install_sh="$ac_aux_dir/install.sh -c"
  2312. break
  2313. elif test -f "$ac_dir/shtool"; then
  2314. ac_aux_dir=$ac_dir
  2315. ac_install_sh="$ac_aux_dir/shtool install -c"
  2316. break
  2317. fi
  2318. done
  2319. if test -z "$ac_aux_dir"; then
  2320. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2321. fi
  2322. # These three variables are undocumented and unsupported,
  2323. # and are intended to be withdrawn in a future Autoconf release.
  2324. # They can cause serious problems if a builder's source tree is in a directory
  2325. # whose full name contains unusual characters.
  2326. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2327. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2328. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2329. # Checks for programs.
  2330. ac_ext=c
  2331. ac_cpp='$CPP $CPPFLAGS'
  2332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2335. if test -n "$ac_tool_prefix"; then
  2336. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2337. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2339. $as_echo_n "checking for $ac_word... " >&6; }
  2340. if ${ac_cv_prog_CC+:} false; then :
  2341. $as_echo_n "(cached) " >&6
  2342. else
  2343. if test -n "$CC"; then
  2344. ac_cv_prog_CC="$CC" # Let the user override the test.
  2345. else
  2346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2347. for as_dir in $PATH
  2348. do
  2349. IFS=$as_save_IFS
  2350. test -z "$as_dir" && as_dir=.
  2351. for ac_exec_ext in '' $ac_executable_extensions; do
  2352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2353. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2355. break 2
  2356. fi
  2357. done
  2358. done
  2359. IFS=$as_save_IFS
  2360. fi
  2361. fi
  2362. CC=$ac_cv_prog_CC
  2363. if test -n "$CC"; then
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2365. $as_echo "$CC" >&6; }
  2366. else
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2368. $as_echo "no" >&6; }
  2369. fi
  2370. fi
  2371. if test -z "$ac_cv_prog_CC"; then
  2372. ac_ct_CC=$CC
  2373. # Extract the first word of "gcc", so it can be a program name with args.
  2374. set dummy gcc; ac_word=$2
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2376. $as_echo_n "checking for $ac_word... " >&6; }
  2377. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. if test -n "$ac_ct_CC"; then
  2381. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2382. else
  2383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2384. for as_dir in $PATH
  2385. do
  2386. IFS=$as_save_IFS
  2387. test -z "$as_dir" && as_dir=.
  2388. for ac_exec_ext in '' $ac_executable_extensions; do
  2389. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2390. ac_cv_prog_ac_ct_CC="gcc"
  2391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2392. break 2
  2393. fi
  2394. done
  2395. done
  2396. IFS=$as_save_IFS
  2397. fi
  2398. fi
  2399. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2400. if test -n "$ac_ct_CC"; then
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2402. $as_echo "$ac_ct_CC" >&6; }
  2403. else
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2405. $as_echo "no" >&6; }
  2406. fi
  2407. if test "x$ac_ct_CC" = x; then
  2408. CC=""
  2409. else
  2410. case $cross_compiling:$ac_tool_warned in
  2411. yes:)
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2413. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2414. ac_tool_warned=yes ;;
  2415. esac
  2416. CC=$ac_ct_CC
  2417. fi
  2418. else
  2419. CC="$ac_cv_prog_CC"
  2420. fi
  2421. if test -z "$CC"; then
  2422. if test -n "$ac_tool_prefix"; then
  2423. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2424. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2426. $as_echo_n "checking for $ac_word... " >&6; }
  2427. if ${ac_cv_prog_CC+:} false; then :
  2428. $as_echo_n "(cached) " >&6
  2429. else
  2430. if test -n "$CC"; then
  2431. ac_cv_prog_CC="$CC" # Let the user override the test.
  2432. else
  2433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2434. for as_dir in $PATH
  2435. do
  2436. IFS=$as_save_IFS
  2437. test -z "$as_dir" && as_dir=.
  2438. for ac_exec_ext in '' $ac_executable_extensions; do
  2439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2440. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2442. break 2
  2443. fi
  2444. done
  2445. done
  2446. IFS=$as_save_IFS
  2447. fi
  2448. fi
  2449. CC=$ac_cv_prog_CC
  2450. if test -n "$CC"; then
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2452. $as_echo "$CC" >&6; }
  2453. else
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2455. $as_echo "no" >&6; }
  2456. fi
  2457. fi
  2458. fi
  2459. if test -z "$CC"; then
  2460. # Extract the first word of "cc", so it can be a program name with args.
  2461. set dummy cc; ac_word=$2
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2463. $as_echo_n "checking for $ac_word... " >&6; }
  2464. if ${ac_cv_prog_CC+:} false; then :
  2465. $as_echo_n "(cached) " >&6
  2466. else
  2467. if test -n "$CC"; then
  2468. ac_cv_prog_CC="$CC" # Let the user override the test.
  2469. else
  2470. ac_prog_rejected=no
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH
  2473. do
  2474. IFS=$as_save_IFS
  2475. test -z "$as_dir" && as_dir=.
  2476. for ac_exec_ext in '' $ac_executable_extensions; do
  2477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2478. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2479. ac_prog_rejected=yes
  2480. continue
  2481. fi
  2482. ac_cv_prog_CC="cc"
  2483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2484. break 2
  2485. fi
  2486. done
  2487. done
  2488. IFS=$as_save_IFS
  2489. if test $ac_prog_rejected = yes; then
  2490. # We found a bogon in the path, so make sure we never use it.
  2491. set dummy $ac_cv_prog_CC
  2492. shift
  2493. if test $# != 0; then
  2494. # We chose a different compiler from the bogus one.
  2495. # However, it has the same basename, so the bogon will be chosen
  2496. # first if we set CC to just the basename; use the full file name.
  2497. shift
  2498. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2499. fi
  2500. fi
  2501. fi
  2502. fi
  2503. CC=$ac_cv_prog_CC
  2504. if test -n "$CC"; then
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2506. $as_echo "$CC" >&6; }
  2507. else
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2509. $as_echo "no" >&6; }
  2510. fi
  2511. fi
  2512. if test -z "$CC"; then
  2513. if test -n "$ac_tool_prefix"; then
  2514. for ac_prog in cl.exe
  2515. do
  2516. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2517. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2519. $as_echo_n "checking for $ac_word... " >&6; }
  2520. if ${ac_cv_prog_CC+:} false; then :
  2521. $as_echo_n "(cached) " >&6
  2522. else
  2523. if test -n "$CC"; then
  2524. ac_cv_prog_CC="$CC" # Let the user override the test.
  2525. else
  2526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2527. for as_dir in $PATH
  2528. do
  2529. IFS=$as_save_IFS
  2530. test -z "$as_dir" && as_dir=.
  2531. for ac_exec_ext in '' $ac_executable_extensions; do
  2532. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2533. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2534. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2535. break 2
  2536. fi
  2537. done
  2538. done
  2539. IFS=$as_save_IFS
  2540. fi
  2541. fi
  2542. CC=$ac_cv_prog_CC
  2543. if test -n "$CC"; then
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2545. $as_echo "$CC" >&6; }
  2546. else
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2548. $as_echo "no" >&6; }
  2549. fi
  2550. test -n "$CC" && break
  2551. done
  2552. fi
  2553. if test -z "$CC"; then
  2554. ac_ct_CC=$CC
  2555. for ac_prog in cl.exe
  2556. do
  2557. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2558. set dummy $ac_prog; ac_word=$2
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2560. $as_echo_n "checking for $ac_word... " >&6; }
  2561. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2562. $as_echo_n "(cached) " >&6
  2563. else
  2564. if test -n "$ac_ct_CC"; then
  2565. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2566. else
  2567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2568. for as_dir in $PATH
  2569. do
  2570. IFS=$as_save_IFS
  2571. test -z "$as_dir" && as_dir=.
  2572. for ac_exec_ext in '' $ac_executable_extensions; do
  2573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2574. ac_cv_prog_ac_ct_CC="$ac_prog"
  2575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2576. break 2
  2577. fi
  2578. done
  2579. done
  2580. IFS=$as_save_IFS
  2581. fi
  2582. fi
  2583. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2584. if test -n "$ac_ct_CC"; then
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2586. $as_echo "$ac_ct_CC" >&6; }
  2587. else
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2589. $as_echo "no" >&6; }
  2590. fi
  2591. test -n "$ac_ct_CC" && break
  2592. done
  2593. if test "x$ac_ct_CC" = x; then
  2594. CC=""
  2595. else
  2596. case $cross_compiling:$ac_tool_warned in
  2597. yes:)
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2599. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2600. ac_tool_warned=yes ;;
  2601. esac
  2602. CC=$ac_ct_CC
  2603. fi
  2604. fi
  2605. fi
  2606. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2607. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2608. as_fn_error $? "no acceptable C compiler found in \$PATH
  2609. See \`config.log' for more details" "$LINENO" 5; }
  2610. # Provide some information about the compiler.
  2611. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2612. set X $ac_compile
  2613. ac_compiler=$2
  2614. for ac_option in --version -v -V -qversion; do
  2615. { { ac_try="$ac_compiler $ac_option >&5"
  2616. case "(($ac_try" in
  2617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2618. *) ac_try_echo=$ac_try;;
  2619. esac
  2620. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2621. $as_echo "$ac_try_echo"; } >&5
  2622. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2623. ac_status=$?
  2624. if test -s conftest.err; then
  2625. sed '10a\
  2626. ... rest of stderr output deleted ...
  2627. 10q' conftest.err >conftest.er1
  2628. cat conftest.er1 >&5
  2629. fi
  2630. rm -f conftest.er1 conftest.err
  2631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2632. test $ac_status = 0; }
  2633. done
  2634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2635. /* end confdefs.h. */
  2636. int
  2637. main ()
  2638. {
  2639. ;
  2640. return 0;
  2641. }
  2642. _ACEOF
  2643. ac_clean_files_save=$ac_clean_files
  2644. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2645. # Try to create an executable without -o first, disregard a.out.
  2646. # It will help us diagnose broken compilers, and finding out an intuition
  2647. # of exeext.
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2649. $as_echo_n "checking whether the C compiler works... " >&6; }
  2650. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2651. # The possible output files:
  2652. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2653. ac_rmfiles=
  2654. for ac_file in $ac_files
  2655. do
  2656. case $ac_file in
  2657. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2658. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2659. esac
  2660. done
  2661. rm -f $ac_rmfiles
  2662. if { { ac_try="$ac_link_default"
  2663. case "(($ac_try" in
  2664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2665. *) ac_try_echo=$ac_try;;
  2666. esac
  2667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2668. $as_echo "$ac_try_echo"; } >&5
  2669. (eval "$ac_link_default") 2>&5
  2670. ac_status=$?
  2671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2672. test $ac_status = 0; }; then :
  2673. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2674. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2675. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2676. # so that the user can short-circuit this test for compilers unknown to
  2677. # Autoconf.
  2678. for ac_file in $ac_files ''
  2679. do
  2680. test -f "$ac_file" || continue
  2681. case $ac_file in
  2682. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2683. ;;
  2684. [ab].out )
  2685. # We found the default executable, but exeext='' is most
  2686. # certainly right.
  2687. break;;
  2688. *.* )
  2689. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2690. then :; else
  2691. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2692. fi
  2693. # We set ac_cv_exeext here because the later test for it is not
  2694. # safe: cross compilers may not add the suffix if given an `-o'
  2695. # argument, so we may need to know it at that point already.
  2696. # Even if this section looks crufty: it has the advantage of
  2697. # actually working.
  2698. break;;
  2699. * )
  2700. break;;
  2701. esac
  2702. done
  2703. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2704. else
  2705. ac_file=''
  2706. fi
  2707. if test -z "$ac_file"; then :
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2709. $as_echo "no" >&6; }
  2710. $as_echo "$as_me: failed program was:" >&5
  2711. sed 's/^/| /' conftest.$ac_ext >&5
  2712. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2713. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2714. as_fn_error 77 "C compiler cannot create executables
  2715. See \`config.log' for more details" "$LINENO" 5; }
  2716. else
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2718. $as_echo "yes" >&6; }
  2719. fi
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2721. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2723. $as_echo "$ac_file" >&6; }
  2724. ac_exeext=$ac_cv_exeext
  2725. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2726. ac_clean_files=$ac_clean_files_save
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2728. $as_echo_n "checking for suffix of executables... " >&6; }
  2729. if { { ac_try="$ac_link"
  2730. case "(($ac_try" in
  2731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2732. *) ac_try_echo=$ac_try;;
  2733. esac
  2734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2735. $as_echo "$ac_try_echo"; } >&5
  2736. (eval "$ac_link") 2>&5
  2737. ac_status=$?
  2738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2739. test $ac_status = 0; }; then :
  2740. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2741. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2742. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2743. # `rm'.
  2744. for ac_file in conftest.exe conftest conftest.*; do
  2745. test -f "$ac_file" || continue
  2746. case $ac_file in
  2747. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2748. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2749. break;;
  2750. * ) break;;
  2751. esac
  2752. done
  2753. else
  2754. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2756. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2757. See \`config.log' for more details" "$LINENO" 5; }
  2758. fi
  2759. rm -f conftest conftest$ac_cv_exeext
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2761. $as_echo "$ac_cv_exeext" >&6; }
  2762. rm -f conftest.$ac_ext
  2763. EXEEXT=$ac_cv_exeext
  2764. ac_exeext=$EXEEXT
  2765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2766. /* end confdefs.h. */
  2767. #include <stdio.h>
  2768. int
  2769. main ()
  2770. {
  2771. FILE *f = fopen ("conftest.out", "w");
  2772. return ferror (f) || fclose (f) != 0;
  2773. ;
  2774. return 0;
  2775. }
  2776. _ACEOF
  2777. ac_clean_files="$ac_clean_files conftest.out"
  2778. # Check that the compiler produces executables we can run. If not, either
  2779. # the compiler is broken, or we cross compile.
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2781. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2782. if test "$cross_compiling" != yes; then
  2783. { { ac_try="$ac_link"
  2784. case "(($ac_try" in
  2785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2786. *) ac_try_echo=$ac_try;;
  2787. esac
  2788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2789. $as_echo "$ac_try_echo"; } >&5
  2790. (eval "$ac_link") 2>&5
  2791. ac_status=$?
  2792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2793. test $ac_status = 0; }
  2794. if { ac_try='./conftest$ac_cv_exeext'
  2795. { { case "(($ac_try" in
  2796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2797. *) ac_try_echo=$ac_try;;
  2798. esac
  2799. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2800. $as_echo "$ac_try_echo"; } >&5
  2801. (eval "$ac_try") 2>&5
  2802. ac_status=$?
  2803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2804. test $ac_status = 0; }; }; then
  2805. cross_compiling=no
  2806. else
  2807. if test "$cross_compiling" = maybe; then
  2808. cross_compiling=yes
  2809. else
  2810. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2811. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2812. as_fn_error $? "cannot run C compiled programs.
  2813. If you meant to cross compile, use \`--host'.
  2814. See \`config.log' for more details" "$LINENO" 5; }
  2815. fi
  2816. fi
  2817. fi
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2819. $as_echo "$cross_compiling" >&6; }
  2820. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2821. ac_clean_files=$ac_clean_files_save
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2823. $as_echo_n "checking for suffix of object files... " >&6; }
  2824. if ${ac_cv_objext+:} false; then :
  2825. $as_echo_n "(cached) " >&6
  2826. else
  2827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2828. /* end confdefs.h. */
  2829. int
  2830. main ()
  2831. {
  2832. ;
  2833. return 0;
  2834. }
  2835. _ACEOF
  2836. rm -f conftest.o conftest.obj
  2837. if { { ac_try="$ac_compile"
  2838. case "(($ac_try" in
  2839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2840. *) ac_try_echo=$ac_try;;
  2841. esac
  2842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2843. $as_echo "$ac_try_echo"; } >&5
  2844. (eval "$ac_compile") 2>&5
  2845. ac_status=$?
  2846. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2847. test $ac_status = 0; }; then :
  2848. for ac_file in conftest.o conftest.obj conftest.*; do
  2849. test -f "$ac_file" || continue;
  2850. case $ac_file in
  2851. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2852. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2853. break;;
  2854. esac
  2855. done
  2856. else
  2857. $as_echo "$as_me: failed program was:" >&5
  2858. sed 's/^/| /' conftest.$ac_ext >&5
  2859. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2860. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2861. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2862. See \`config.log' for more details" "$LINENO" 5; }
  2863. fi
  2864. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2865. fi
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2867. $as_echo "$ac_cv_objext" >&6; }
  2868. OBJEXT=$ac_cv_objext
  2869. ac_objext=$OBJEXT
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2871. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2872. if ${ac_cv_c_compiler_gnu+:} false; then :
  2873. $as_echo_n "(cached) " >&6
  2874. else
  2875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2876. /* end confdefs.h. */
  2877. int
  2878. main ()
  2879. {
  2880. #ifndef __GNUC__
  2881. choke me
  2882. #endif
  2883. ;
  2884. return 0;
  2885. }
  2886. _ACEOF
  2887. if ac_fn_c_try_compile "$LINENO"; then :
  2888. ac_compiler_gnu=yes
  2889. else
  2890. ac_compiler_gnu=no
  2891. fi
  2892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2893. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2894. fi
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2896. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2897. if test $ac_compiler_gnu = yes; then
  2898. GCC=yes
  2899. else
  2900. GCC=
  2901. fi
  2902. ac_test_CFLAGS=${CFLAGS+set}
  2903. ac_save_CFLAGS=$CFLAGS
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2905. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2906. if ${ac_cv_prog_cc_g+:} false; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  2909. ac_save_c_werror_flag=$ac_c_werror_flag
  2910. ac_c_werror_flag=yes
  2911. ac_cv_prog_cc_g=no
  2912. CFLAGS="-g"
  2913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2914. /* end confdefs.h. */
  2915. int
  2916. main ()
  2917. {
  2918. ;
  2919. return 0;
  2920. }
  2921. _ACEOF
  2922. if ac_fn_c_try_compile "$LINENO"; then :
  2923. ac_cv_prog_cc_g=yes
  2924. else
  2925. CFLAGS=""
  2926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2927. /* end confdefs.h. */
  2928. int
  2929. main ()
  2930. {
  2931. ;
  2932. return 0;
  2933. }
  2934. _ACEOF
  2935. if ac_fn_c_try_compile "$LINENO"; then :
  2936. else
  2937. ac_c_werror_flag=$ac_save_c_werror_flag
  2938. CFLAGS="-g"
  2939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2940. /* end confdefs.h. */
  2941. int
  2942. main ()
  2943. {
  2944. ;
  2945. return 0;
  2946. }
  2947. _ACEOF
  2948. if ac_fn_c_try_compile "$LINENO"; then :
  2949. ac_cv_prog_cc_g=yes
  2950. fi
  2951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2952. fi
  2953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2954. fi
  2955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2956. ac_c_werror_flag=$ac_save_c_werror_flag
  2957. fi
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2959. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2960. if test "$ac_test_CFLAGS" = set; then
  2961. CFLAGS=$ac_save_CFLAGS
  2962. elif test $ac_cv_prog_cc_g = yes; then
  2963. if test "$GCC" = yes; then
  2964. CFLAGS="-g -O2"
  2965. else
  2966. CFLAGS="-g"
  2967. fi
  2968. else
  2969. if test "$GCC" = yes; then
  2970. CFLAGS="-O2"
  2971. else
  2972. CFLAGS=
  2973. fi
  2974. fi
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2976. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2977. if ${ac_cv_prog_cc_c89+:} false; then :
  2978. $as_echo_n "(cached) " >&6
  2979. else
  2980. ac_cv_prog_cc_c89=no
  2981. ac_save_CC=$CC
  2982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2983. /* end confdefs.h. */
  2984. #include <stdarg.h>
  2985. #include <stdio.h>
  2986. #include <sys/types.h>
  2987. #include <sys/stat.h>
  2988. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2989. struct buf { int x; };
  2990. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2991. static char *e (p, i)
  2992. char **p;
  2993. int i;
  2994. {
  2995. return p[i];
  2996. }
  2997. static char *f (char * (*g) (char **, int), char **p, ...)
  2998. {
  2999. char *s;
  3000. va_list v;
  3001. va_start (v,p);
  3002. s = g (p, va_arg (v,int));
  3003. va_end (v);
  3004. return s;
  3005. }
  3006. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3007. function prototypes and stuff, but not '\xHH' hex character constants.
  3008. These don't provoke an error unfortunately, instead are silently treated
  3009. as 'x'. The following induces an error, until -std is added to get
  3010. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3011. array size at least. It's necessary to write '\x00'==0 to get something
  3012. that's true only with -std. */
  3013. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3014. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3015. inside strings and character constants. */
  3016. #define FOO(x) 'x'
  3017. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3018. int test (int i, double x);
  3019. struct s1 {int (*f) (int a);};
  3020. struct s2 {int (*f) (double a);};
  3021. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3022. int argc;
  3023. char **argv;
  3024. int
  3025. main ()
  3026. {
  3027. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3028. ;
  3029. return 0;
  3030. }
  3031. _ACEOF
  3032. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3033. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3034. do
  3035. CC="$ac_save_CC $ac_arg"
  3036. if ac_fn_c_try_compile "$LINENO"; then :
  3037. ac_cv_prog_cc_c89=$ac_arg
  3038. fi
  3039. rm -f core conftest.err conftest.$ac_objext
  3040. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3041. done
  3042. rm -f conftest.$ac_ext
  3043. CC=$ac_save_CC
  3044. fi
  3045. # AC_CACHE_VAL
  3046. case "x$ac_cv_prog_cc_c89" in
  3047. x)
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3049. $as_echo "none needed" >&6; } ;;
  3050. xno)
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3052. $as_echo "unsupported" >&6; } ;;
  3053. *)
  3054. CC="$CC $ac_cv_prog_cc_c89"
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3056. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3057. esac
  3058. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3059. fi
  3060. ac_ext=c
  3061. ac_cpp='$CPP $CPPFLAGS'
  3062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3065. ac_ext=cpp
  3066. ac_cpp='$CXXCPP $CPPFLAGS'
  3067. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3068. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3069. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3070. if test -z "$CXX"; then
  3071. if test -n "$CCC"; then
  3072. CXX=$CCC
  3073. else
  3074. if test -n "$ac_tool_prefix"; then
  3075. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3076. do
  3077. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3078. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3080. $as_echo_n "checking for $ac_word... " >&6; }
  3081. if ${ac_cv_prog_CXX+:} false; then :
  3082. $as_echo_n "(cached) " >&6
  3083. else
  3084. if test -n "$CXX"; then
  3085. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3086. else
  3087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3088. for as_dir in $PATH
  3089. do
  3090. IFS=$as_save_IFS
  3091. test -z "$as_dir" && as_dir=.
  3092. for ac_exec_ext in '' $ac_executable_extensions; do
  3093. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3094. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3095. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3096. break 2
  3097. fi
  3098. done
  3099. done
  3100. IFS=$as_save_IFS
  3101. fi
  3102. fi
  3103. CXX=$ac_cv_prog_CXX
  3104. if test -n "$CXX"; then
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3106. $as_echo "$CXX" >&6; }
  3107. else
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3109. $as_echo "no" >&6; }
  3110. fi
  3111. test -n "$CXX" && break
  3112. done
  3113. fi
  3114. if test -z "$CXX"; then
  3115. ac_ct_CXX=$CXX
  3116. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3117. do
  3118. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3119. set dummy $ac_prog; ac_word=$2
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3121. $as_echo_n "checking for $ac_word... " >&6; }
  3122. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3123. $as_echo_n "(cached) " >&6
  3124. else
  3125. if test -n "$ac_ct_CXX"; then
  3126. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3127. else
  3128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3129. for as_dir in $PATH
  3130. do
  3131. IFS=$as_save_IFS
  3132. test -z "$as_dir" && as_dir=.
  3133. for ac_exec_ext in '' $ac_executable_extensions; do
  3134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3135. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3137. break 2
  3138. fi
  3139. done
  3140. done
  3141. IFS=$as_save_IFS
  3142. fi
  3143. fi
  3144. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3145. if test -n "$ac_ct_CXX"; then
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3147. $as_echo "$ac_ct_CXX" >&6; }
  3148. else
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3150. $as_echo "no" >&6; }
  3151. fi
  3152. test -n "$ac_ct_CXX" && break
  3153. done
  3154. if test "x$ac_ct_CXX" = x; then
  3155. CXX="g++"
  3156. else
  3157. case $cross_compiling:$ac_tool_warned in
  3158. yes:)
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3160. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3161. ac_tool_warned=yes ;;
  3162. esac
  3163. CXX=$ac_ct_CXX
  3164. fi
  3165. fi
  3166. fi
  3167. fi
  3168. # Provide some information about the compiler.
  3169. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3170. set X $ac_compile
  3171. ac_compiler=$2
  3172. for ac_option in --version -v -V -qversion; do
  3173. { { ac_try="$ac_compiler $ac_option >&5"
  3174. case "(($ac_try" in
  3175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3176. *) ac_try_echo=$ac_try;;
  3177. esac
  3178. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3179. $as_echo "$ac_try_echo"; } >&5
  3180. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3181. ac_status=$?
  3182. if test -s conftest.err; then
  3183. sed '10a\
  3184. ... rest of stderr output deleted ...
  3185. 10q' conftest.err >conftest.er1
  3186. cat conftest.er1 >&5
  3187. fi
  3188. rm -f conftest.er1 conftest.err
  3189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3190. test $ac_status = 0; }
  3191. done
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3193. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3194. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3198. /* end confdefs.h. */
  3199. int
  3200. main ()
  3201. {
  3202. #ifndef __GNUC__
  3203. choke me
  3204. #endif
  3205. ;
  3206. return 0;
  3207. }
  3208. _ACEOF
  3209. if ac_fn_cxx_try_compile "$LINENO"; then :
  3210. ac_compiler_gnu=yes
  3211. else
  3212. ac_compiler_gnu=no
  3213. fi
  3214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3215. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3216. fi
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3218. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3219. if test $ac_compiler_gnu = yes; then
  3220. GXX=yes
  3221. else
  3222. GXX=
  3223. fi
  3224. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3225. ac_save_CXXFLAGS=$CXXFLAGS
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3227. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3228. if ${ac_cv_prog_cxx_g+:} false; then :
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3232. ac_cxx_werror_flag=yes
  3233. ac_cv_prog_cxx_g=no
  3234. CXXFLAGS="-g"
  3235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3236. /* end confdefs.h. */
  3237. int
  3238. main ()
  3239. {
  3240. ;
  3241. return 0;
  3242. }
  3243. _ACEOF
  3244. if ac_fn_cxx_try_compile "$LINENO"; then :
  3245. ac_cv_prog_cxx_g=yes
  3246. else
  3247. CXXFLAGS=""
  3248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3249. /* end confdefs.h. */
  3250. int
  3251. main ()
  3252. {
  3253. ;
  3254. return 0;
  3255. }
  3256. _ACEOF
  3257. if ac_fn_cxx_try_compile "$LINENO"; then :
  3258. else
  3259. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3260. CXXFLAGS="-g"
  3261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3262. /* end confdefs.h. */
  3263. int
  3264. main ()
  3265. {
  3266. ;
  3267. return 0;
  3268. }
  3269. _ACEOF
  3270. if ac_fn_cxx_try_compile "$LINENO"; then :
  3271. ac_cv_prog_cxx_g=yes
  3272. fi
  3273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3274. fi
  3275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3276. fi
  3277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3278. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3279. fi
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3281. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3282. if test "$ac_test_CXXFLAGS" = set; then
  3283. CXXFLAGS=$ac_save_CXXFLAGS
  3284. elif test $ac_cv_prog_cxx_g = yes; then
  3285. if test "$GXX" = yes; then
  3286. CXXFLAGS="-g -O2"
  3287. else
  3288. CXXFLAGS="-g"
  3289. fi
  3290. else
  3291. if test "$GXX" = yes; then
  3292. CXXFLAGS="-O2"
  3293. else
  3294. CXXFLAGS=
  3295. fi
  3296. fi
  3297. ac_ext=c
  3298. ac_cpp='$CPP $CPPFLAGS'
  3299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3302. # Make sure we can run config.sub.
  3303. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3304. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3306. $as_echo_n "checking build system type... " >&6; }
  3307. if ${ac_cv_build+:} false; then :
  3308. $as_echo_n "(cached) " >&6
  3309. else
  3310. ac_build_alias=$build_alias
  3311. test "x$ac_build_alias" = x &&
  3312. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3313. test "x$ac_build_alias" = x &&
  3314. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3315. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3316. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3317. fi
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3319. $as_echo "$ac_cv_build" >&6; }
  3320. case $ac_cv_build in
  3321. *-*-*) ;;
  3322. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3323. esac
  3324. build=$ac_cv_build
  3325. ac_save_IFS=$IFS; IFS='-'
  3326. set x $ac_cv_build
  3327. shift
  3328. build_cpu=$1
  3329. build_vendor=$2
  3330. shift; shift
  3331. # Remember, the first character of IFS is used to create $*,
  3332. # except with old shells:
  3333. build_os=$*
  3334. IFS=$ac_save_IFS
  3335. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3337. $as_echo_n "checking host system type... " >&6; }
  3338. if ${ac_cv_host+:} false; then :
  3339. $as_echo_n "(cached) " >&6
  3340. else
  3341. if test "x$host_alias" = x; then
  3342. ac_cv_host=$ac_cv_build
  3343. else
  3344. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3345. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3346. fi
  3347. fi
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3349. $as_echo "$ac_cv_host" >&6; }
  3350. case $ac_cv_host in
  3351. *-*-*) ;;
  3352. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3353. esac
  3354. host=$ac_cv_host
  3355. ac_save_IFS=$IFS; IFS='-'
  3356. set x $ac_cv_host
  3357. shift
  3358. host_cpu=$1
  3359. host_vendor=$2
  3360. shift; shift
  3361. # Remember, the first character of IFS is used to create $*,
  3362. # except with old shells:
  3363. host_os=$*
  3364. IFS=$ac_save_IFS
  3365. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3366. enable_win32_dll=yes
  3367. case $host in
  3368. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3369. if test -n "$ac_tool_prefix"; then
  3370. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3371. set dummy ${ac_tool_prefix}as; ac_word=$2
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3373. $as_echo_n "checking for $ac_word... " >&6; }
  3374. if ${ac_cv_prog_AS+:} false; then :
  3375. $as_echo_n "(cached) " >&6
  3376. else
  3377. if test -n "$AS"; then
  3378. ac_cv_prog_AS="$AS" # Let the user override the test.
  3379. else
  3380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3381. for as_dir in $PATH
  3382. do
  3383. IFS=$as_save_IFS
  3384. test -z "$as_dir" && as_dir=.
  3385. for ac_exec_ext in '' $ac_executable_extensions; do
  3386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3387. ac_cv_prog_AS="${ac_tool_prefix}as"
  3388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3389. break 2
  3390. fi
  3391. done
  3392. done
  3393. IFS=$as_save_IFS
  3394. fi
  3395. fi
  3396. AS=$ac_cv_prog_AS
  3397. if test -n "$AS"; then
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3399. $as_echo "$AS" >&6; }
  3400. else
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3402. $as_echo "no" >&6; }
  3403. fi
  3404. fi
  3405. if test -z "$ac_cv_prog_AS"; then
  3406. ac_ct_AS=$AS
  3407. # Extract the first word of "as", so it can be a program name with args.
  3408. set dummy as; ac_word=$2
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3410. $as_echo_n "checking for $ac_word... " >&6; }
  3411. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  3412. $as_echo_n "(cached) " >&6
  3413. else
  3414. if test -n "$ac_ct_AS"; then
  3415. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3416. else
  3417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3418. for as_dir in $PATH
  3419. do
  3420. IFS=$as_save_IFS
  3421. test -z "$as_dir" && as_dir=.
  3422. for ac_exec_ext in '' $ac_executable_extensions; do
  3423. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3424. ac_cv_prog_ac_ct_AS="as"
  3425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3426. break 2
  3427. fi
  3428. done
  3429. done
  3430. IFS=$as_save_IFS
  3431. fi
  3432. fi
  3433. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3434. if test -n "$ac_ct_AS"; then
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3436. $as_echo "$ac_ct_AS" >&6; }
  3437. else
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3439. $as_echo "no" >&6; }
  3440. fi
  3441. if test "x$ac_ct_AS" = x; then
  3442. AS="false"
  3443. else
  3444. case $cross_compiling:$ac_tool_warned in
  3445. yes:)
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3447. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3448. ac_tool_warned=yes ;;
  3449. esac
  3450. AS=$ac_ct_AS
  3451. fi
  3452. else
  3453. AS="$ac_cv_prog_AS"
  3454. fi
  3455. if test -n "$ac_tool_prefix"; then
  3456. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3457. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3459. $as_echo_n "checking for $ac_word... " >&6; }
  3460. if ${ac_cv_prog_DLLTOOL+:} false; then :
  3461. $as_echo_n "(cached) " >&6
  3462. else
  3463. if test -n "$DLLTOOL"; then
  3464. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3465. else
  3466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3467. for as_dir in $PATH
  3468. do
  3469. IFS=$as_save_IFS
  3470. test -z "$as_dir" && as_dir=.
  3471. for ac_exec_ext in '' $ac_executable_extensions; do
  3472. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3473. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3475. break 2
  3476. fi
  3477. done
  3478. done
  3479. IFS=$as_save_IFS
  3480. fi
  3481. fi
  3482. DLLTOOL=$ac_cv_prog_DLLTOOL
  3483. if test -n "$DLLTOOL"; then
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3485. $as_echo "$DLLTOOL" >&6; }
  3486. else
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3488. $as_echo "no" >&6; }
  3489. fi
  3490. fi
  3491. if test -z "$ac_cv_prog_DLLTOOL"; then
  3492. ac_ct_DLLTOOL=$DLLTOOL
  3493. # Extract the first word of "dlltool", so it can be a program name with args.
  3494. set dummy dlltool; ac_word=$2
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3496. $as_echo_n "checking for $ac_word... " >&6; }
  3497. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  3498. $as_echo_n "(cached) " >&6
  3499. else
  3500. if test -n "$ac_ct_DLLTOOL"; then
  3501. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3502. else
  3503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3504. for as_dir in $PATH
  3505. do
  3506. IFS=$as_save_IFS
  3507. test -z "$as_dir" && as_dir=.
  3508. for ac_exec_ext in '' $ac_executable_extensions; do
  3509. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3510. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3512. break 2
  3513. fi
  3514. done
  3515. done
  3516. IFS=$as_save_IFS
  3517. fi
  3518. fi
  3519. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3520. if test -n "$ac_ct_DLLTOOL"; then
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3522. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3523. else
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3525. $as_echo "no" >&6; }
  3526. fi
  3527. if test "x$ac_ct_DLLTOOL" = x; then
  3528. DLLTOOL="false"
  3529. else
  3530. case $cross_compiling:$ac_tool_warned in
  3531. yes:)
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3533. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3534. ac_tool_warned=yes ;;
  3535. esac
  3536. DLLTOOL=$ac_ct_DLLTOOL
  3537. fi
  3538. else
  3539. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3540. fi
  3541. if test -n "$ac_tool_prefix"; then
  3542. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3543. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3545. $as_echo_n "checking for $ac_word... " >&6; }
  3546. if ${ac_cv_prog_OBJDUMP+:} false; then :
  3547. $as_echo_n "(cached) " >&6
  3548. else
  3549. if test -n "$OBJDUMP"; then
  3550. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3551. else
  3552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3553. for as_dir in $PATH
  3554. do
  3555. IFS=$as_save_IFS
  3556. test -z "$as_dir" && as_dir=.
  3557. for ac_exec_ext in '' $ac_executable_extensions; do
  3558. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3559. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3561. break 2
  3562. fi
  3563. done
  3564. done
  3565. IFS=$as_save_IFS
  3566. fi
  3567. fi
  3568. OBJDUMP=$ac_cv_prog_OBJDUMP
  3569. if test -n "$OBJDUMP"; then
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3571. $as_echo "$OBJDUMP" >&6; }
  3572. else
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3574. $as_echo "no" >&6; }
  3575. fi
  3576. fi
  3577. if test -z "$ac_cv_prog_OBJDUMP"; then
  3578. ac_ct_OBJDUMP=$OBJDUMP
  3579. # Extract the first word of "objdump", so it can be a program name with args.
  3580. set dummy objdump; ac_word=$2
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3582. $as_echo_n "checking for $ac_word... " >&6; }
  3583. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. if test -n "$ac_ct_OBJDUMP"; then
  3587. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3588. else
  3589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3590. for as_dir in $PATH
  3591. do
  3592. IFS=$as_save_IFS
  3593. test -z "$as_dir" && as_dir=.
  3594. for ac_exec_ext in '' $ac_executable_extensions; do
  3595. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3596. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3598. break 2
  3599. fi
  3600. done
  3601. done
  3602. IFS=$as_save_IFS
  3603. fi
  3604. fi
  3605. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3606. if test -n "$ac_ct_OBJDUMP"; then
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3608. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3609. else
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3611. $as_echo "no" >&6; }
  3612. fi
  3613. if test "x$ac_ct_OBJDUMP" = x; then
  3614. OBJDUMP="false"
  3615. else
  3616. case $cross_compiling:$ac_tool_warned in
  3617. yes:)
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3619. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3620. ac_tool_warned=yes ;;
  3621. esac
  3622. OBJDUMP=$ac_ct_OBJDUMP
  3623. fi
  3624. else
  3625. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3626. fi
  3627. ;;
  3628. esac
  3629. test -z "$AS" && AS=as
  3630. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3631. test -z "$OBJDUMP" && OBJDUMP=objdump
  3632. case `pwd` in
  3633. *\ * | *\ *)
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3635. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3636. esac
  3637. macro_version='2.4.2'
  3638. macro_revision='1.3337'
  3639. ltmain="$ac_aux_dir/ltmain.sh"
  3640. # Backslashify metacharacters that are still active within
  3641. # double-quoted strings.
  3642. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3643. # Same as above, but do not quote variable references.
  3644. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3645. # Sed substitution to delay expansion of an escaped shell variable in a
  3646. # double_quote_subst'ed string.
  3647. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3648. # Sed substitution to delay expansion of an escaped single quote.
  3649. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3650. # Sed substitution to avoid accidental globbing in evaled expressions
  3651. no_glob_subst='s/\*/\\\*/g'
  3652. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3653. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3654. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3656. $as_echo_n "checking how to print strings... " >&6; }
  3657. # Test print first, because it will be a builtin if present.
  3658. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3659. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3660. ECHO='print -r --'
  3661. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3662. ECHO='printf %s\n'
  3663. else
  3664. # Use this function as a fallback that always works.
  3665. func_fallback_echo ()
  3666. {
  3667. eval 'cat <<_LTECHO_EOF
  3668. $1
  3669. _LTECHO_EOF'
  3670. }
  3671. ECHO='func_fallback_echo'
  3672. fi
  3673. # func_echo_all arg...
  3674. # Invoke $ECHO with all args, space-separated.
  3675. func_echo_all ()
  3676. {
  3677. $ECHO ""
  3678. }
  3679. case "$ECHO" in
  3680. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3681. $as_echo "printf" >&6; } ;;
  3682. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3683. $as_echo "print -r" >&6; } ;;
  3684. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3685. $as_echo "cat" >&6; } ;;
  3686. esac
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3688. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3689. if ${ac_cv_path_SED+:} false; then :
  3690. $as_echo_n "(cached) " >&6
  3691. else
  3692. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3693. for ac_i in 1 2 3 4 5 6 7; do
  3694. ac_script="$ac_script$as_nl$ac_script"
  3695. done
  3696. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3697. { ac_script=; unset ac_script;}
  3698. if test -z "$SED"; then
  3699. ac_path_SED_found=false
  3700. # Loop through the user's path and test for each of PROGNAME-LIST
  3701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3702. for as_dir in $PATH
  3703. do
  3704. IFS=$as_save_IFS
  3705. test -z "$as_dir" && as_dir=.
  3706. for ac_prog in sed gsed; do
  3707. for ac_exec_ext in '' $ac_executable_extensions; do
  3708. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3709. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3710. # Check for GNU ac_path_SED and select it if it is found.
  3711. # Check for GNU $ac_path_SED
  3712. case `"$ac_path_SED" --version 2>&1` in
  3713. *GNU*)
  3714. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3715. *)
  3716. ac_count=0
  3717. $as_echo_n 0123456789 >"conftest.in"
  3718. while :
  3719. do
  3720. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3721. mv "conftest.tmp" "conftest.in"
  3722. cp "conftest.in" "conftest.nl"
  3723. $as_echo '' >> "conftest.nl"
  3724. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3725. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3726. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3727. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3728. # Best one so far, save it but keep looking for a better one
  3729. ac_cv_path_SED="$ac_path_SED"
  3730. ac_path_SED_max=$ac_count
  3731. fi
  3732. # 10*(2^10) chars as input seems more than enough
  3733. test $ac_count -gt 10 && break
  3734. done
  3735. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3736. esac
  3737. $ac_path_SED_found && break 3
  3738. done
  3739. done
  3740. done
  3741. IFS=$as_save_IFS
  3742. if test -z "$ac_cv_path_SED"; then
  3743. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3744. fi
  3745. else
  3746. ac_cv_path_SED=$SED
  3747. fi
  3748. fi
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3750. $as_echo "$ac_cv_path_SED" >&6; }
  3751. SED="$ac_cv_path_SED"
  3752. rm -f conftest.sed
  3753. test -z "$SED" && SED=sed
  3754. Xsed="$SED -e 1s/^X//"
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3756. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3757. if ${ac_cv_path_GREP+:} false; then :
  3758. $as_echo_n "(cached) " >&6
  3759. else
  3760. if test -z "$GREP"; then
  3761. ac_path_GREP_found=false
  3762. # Loop through the user's path and test for each of PROGNAME-LIST
  3763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3764. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3765. do
  3766. IFS=$as_save_IFS
  3767. test -z "$as_dir" && as_dir=.
  3768. for ac_prog in grep ggrep; do
  3769. for ac_exec_ext in '' $ac_executable_extensions; do
  3770. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3771. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3772. # Check for GNU ac_path_GREP and select it if it is found.
  3773. # Check for GNU $ac_path_GREP
  3774. case `"$ac_path_GREP" --version 2>&1` in
  3775. *GNU*)
  3776. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3777. *)
  3778. ac_count=0
  3779. $as_echo_n 0123456789 >"conftest.in"
  3780. while :
  3781. do
  3782. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3783. mv "conftest.tmp" "conftest.in"
  3784. cp "conftest.in" "conftest.nl"
  3785. $as_echo 'GREP' >> "conftest.nl"
  3786. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3787. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3788. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3789. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3790. # Best one so far, save it but keep looking for a better one
  3791. ac_cv_path_GREP="$ac_path_GREP"
  3792. ac_path_GREP_max=$ac_count
  3793. fi
  3794. # 10*(2^10) chars as input seems more than enough
  3795. test $ac_count -gt 10 && break
  3796. done
  3797. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3798. esac
  3799. $ac_path_GREP_found && break 3
  3800. done
  3801. done
  3802. done
  3803. IFS=$as_save_IFS
  3804. if test -z "$ac_cv_path_GREP"; then
  3805. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3806. fi
  3807. else
  3808. ac_cv_path_GREP=$GREP
  3809. fi
  3810. fi
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3812. $as_echo "$ac_cv_path_GREP" >&6; }
  3813. GREP="$ac_cv_path_GREP"
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3815. $as_echo_n "checking for egrep... " >&6; }
  3816. if ${ac_cv_path_EGREP+:} false; then :
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3820. then ac_cv_path_EGREP="$GREP -E"
  3821. else
  3822. if test -z "$EGREP"; then
  3823. ac_path_EGREP_found=false
  3824. # Loop through the user's path and test for each of PROGNAME-LIST
  3825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3826. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3827. do
  3828. IFS=$as_save_IFS
  3829. test -z "$as_dir" && as_dir=.
  3830. for ac_prog in egrep; do
  3831. for ac_exec_ext in '' $ac_executable_extensions; do
  3832. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3833. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3834. # Check for GNU ac_path_EGREP and select it if it is found.
  3835. # Check for GNU $ac_path_EGREP
  3836. case `"$ac_path_EGREP" --version 2>&1` in
  3837. *GNU*)
  3838. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3839. *)
  3840. ac_count=0
  3841. $as_echo_n 0123456789 >"conftest.in"
  3842. while :
  3843. do
  3844. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3845. mv "conftest.tmp" "conftest.in"
  3846. cp "conftest.in" "conftest.nl"
  3847. $as_echo 'EGREP' >> "conftest.nl"
  3848. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3849. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3850. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3851. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3852. # Best one so far, save it but keep looking for a better one
  3853. ac_cv_path_EGREP="$ac_path_EGREP"
  3854. ac_path_EGREP_max=$ac_count
  3855. fi
  3856. # 10*(2^10) chars as input seems more than enough
  3857. test $ac_count -gt 10 && break
  3858. done
  3859. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3860. esac
  3861. $ac_path_EGREP_found && break 3
  3862. done
  3863. done
  3864. done
  3865. IFS=$as_save_IFS
  3866. if test -z "$ac_cv_path_EGREP"; then
  3867. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3868. fi
  3869. else
  3870. ac_cv_path_EGREP=$EGREP
  3871. fi
  3872. fi
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3875. $as_echo "$ac_cv_path_EGREP" >&6; }
  3876. EGREP="$ac_cv_path_EGREP"
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3878. $as_echo_n "checking for fgrep... " >&6; }
  3879. if ${ac_cv_path_FGREP+:} false; then :
  3880. $as_echo_n "(cached) " >&6
  3881. else
  3882. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3883. then ac_cv_path_FGREP="$GREP -F"
  3884. else
  3885. if test -z "$FGREP"; then
  3886. ac_path_FGREP_found=false
  3887. # Loop through the user's path and test for each of PROGNAME-LIST
  3888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3889. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3890. do
  3891. IFS=$as_save_IFS
  3892. test -z "$as_dir" && as_dir=.
  3893. for ac_prog in fgrep; do
  3894. for ac_exec_ext in '' $ac_executable_extensions; do
  3895. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3896. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3897. # Check for GNU ac_path_FGREP and select it if it is found.
  3898. # Check for GNU $ac_path_FGREP
  3899. case `"$ac_path_FGREP" --version 2>&1` in
  3900. *GNU*)
  3901. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3902. *)
  3903. ac_count=0
  3904. $as_echo_n 0123456789 >"conftest.in"
  3905. while :
  3906. do
  3907. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3908. mv "conftest.tmp" "conftest.in"
  3909. cp "conftest.in" "conftest.nl"
  3910. $as_echo 'FGREP' >> "conftest.nl"
  3911. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3912. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3913. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3914. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3915. # Best one so far, save it but keep looking for a better one
  3916. ac_cv_path_FGREP="$ac_path_FGREP"
  3917. ac_path_FGREP_max=$ac_count
  3918. fi
  3919. # 10*(2^10) chars as input seems more than enough
  3920. test $ac_count -gt 10 && break
  3921. done
  3922. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3923. esac
  3924. $ac_path_FGREP_found && break 3
  3925. done
  3926. done
  3927. done
  3928. IFS=$as_save_IFS
  3929. if test -z "$ac_cv_path_FGREP"; then
  3930. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3931. fi
  3932. else
  3933. ac_cv_path_FGREP=$FGREP
  3934. fi
  3935. fi
  3936. fi
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3938. $as_echo "$ac_cv_path_FGREP" >&6; }
  3939. FGREP="$ac_cv_path_FGREP"
  3940. test -z "$GREP" && GREP=grep
  3941. # Check whether --with-gnu-ld was given.
  3942. if test "${with_gnu_ld+set}" = set; then :
  3943. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3944. else
  3945. with_gnu_ld=no
  3946. fi
  3947. ac_prog=ld
  3948. if test "$GCC" = yes; then
  3949. # Check if gcc -print-prog-name=ld gives a path.
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3951. $as_echo_n "checking for ld used by $CC... " >&6; }
  3952. case $host in
  3953. *-*-mingw*)
  3954. # gcc leaves a trailing carriage return which upsets mingw
  3955. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3956. *)
  3957. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3958. esac
  3959. case $ac_prog in
  3960. # Accept absolute paths.
  3961. [\\/]* | ?:[\\/]*)
  3962. re_direlt='/[^/][^/]*/\.\./'
  3963. # Canonicalize the pathname of ld
  3964. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3965. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3966. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3967. done
  3968. test -z "$LD" && LD="$ac_prog"
  3969. ;;
  3970. "")
  3971. # If it fails, then pretend we aren't using GCC.
  3972. ac_prog=ld
  3973. ;;
  3974. *)
  3975. # If it is relative, then search for the first ld in PATH.
  3976. with_gnu_ld=unknown
  3977. ;;
  3978. esac
  3979. elif test "$with_gnu_ld" = yes; then
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3981. $as_echo_n "checking for GNU ld... " >&6; }
  3982. else
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3984. $as_echo_n "checking for non-GNU ld... " >&6; }
  3985. fi
  3986. if ${lt_cv_path_LD+:} false; then :
  3987. $as_echo_n "(cached) " >&6
  3988. else
  3989. if test -z "$LD"; then
  3990. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3991. for ac_dir in $PATH; do
  3992. IFS="$lt_save_ifs"
  3993. test -z "$ac_dir" && ac_dir=.
  3994. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3995. lt_cv_path_LD="$ac_dir/$ac_prog"
  3996. # Check to see if the program is GNU ld. I'd rather use --version,
  3997. # but apparently some variants of GNU ld only accept -v.
  3998. # Break only if it was the GNU/non-GNU ld that we prefer.
  3999. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4000. *GNU* | *'with BFD'*)
  4001. test "$with_gnu_ld" != no && break
  4002. ;;
  4003. *)
  4004. test "$with_gnu_ld" != yes && break
  4005. ;;
  4006. esac
  4007. fi
  4008. done
  4009. IFS="$lt_save_ifs"
  4010. else
  4011. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4012. fi
  4013. fi
  4014. LD="$lt_cv_path_LD"
  4015. if test -n "$LD"; then
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4017. $as_echo "$LD" >&6; }
  4018. else
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4020. $as_echo "no" >&6; }
  4021. fi
  4022. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4024. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4025. if ${lt_cv_prog_gnu_ld+:} false; then :
  4026. $as_echo_n "(cached) " >&6
  4027. else
  4028. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4029. case `$LD -v 2>&1 </dev/null` in
  4030. *GNU* | *'with BFD'*)
  4031. lt_cv_prog_gnu_ld=yes
  4032. ;;
  4033. *)
  4034. lt_cv_prog_gnu_ld=no
  4035. ;;
  4036. esac
  4037. fi
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4039. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4040. with_gnu_ld=$lt_cv_prog_gnu_ld
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4042. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4043. if ${lt_cv_path_NM+:} false; then :
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. if test -n "$NM"; then
  4047. # Let the user override the test.
  4048. lt_cv_path_NM="$NM"
  4049. else
  4050. lt_nm_to_check="${ac_tool_prefix}nm"
  4051. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4052. lt_nm_to_check="$lt_nm_to_check nm"
  4053. fi
  4054. for lt_tmp_nm in $lt_nm_to_check; do
  4055. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4056. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4057. IFS="$lt_save_ifs"
  4058. test -z "$ac_dir" && ac_dir=.
  4059. tmp_nm="$ac_dir/$lt_tmp_nm"
  4060. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4061. # Check to see if the nm accepts a BSD-compat flag.
  4062. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4063. # nm: unknown option "B" ignored
  4064. # Tru64's nm complains that /dev/null is an invalid object file
  4065. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4066. */dev/null* | *'Invalid file or object type'*)
  4067. lt_cv_path_NM="$tmp_nm -B"
  4068. break
  4069. ;;
  4070. *)
  4071. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4072. */dev/null*)
  4073. lt_cv_path_NM="$tmp_nm -p"
  4074. break
  4075. ;;
  4076. *)
  4077. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4078. continue # so that we can try to find one that supports BSD flags
  4079. ;;
  4080. esac
  4081. ;;
  4082. esac
  4083. fi
  4084. done
  4085. IFS="$lt_save_ifs"
  4086. done
  4087. : ${lt_cv_path_NM=no}
  4088. fi
  4089. fi
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4091. $as_echo "$lt_cv_path_NM" >&6; }
  4092. if test "$lt_cv_path_NM" != "no"; then
  4093. NM="$lt_cv_path_NM"
  4094. else
  4095. # Didn't find any BSD compatible name lister, look for dumpbin.
  4096. if test -n "$DUMPBIN"; then :
  4097. # Let the user override the test.
  4098. else
  4099. if test -n "$ac_tool_prefix"; then
  4100. for ac_prog in dumpbin "link -dump"
  4101. do
  4102. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4103. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4105. $as_echo_n "checking for $ac_word... " >&6; }
  4106. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4107. $as_echo_n "(cached) " >&6
  4108. else
  4109. if test -n "$DUMPBIN"; then
  4110. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4111. else
  4112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4113. for as_dir in $PATH
  4114. do
  4115. IFS=$as_save_IFS
  4116. test -z "$as_dir" && as_dir=.
  4117. for ac_exec_ext in '' $ac_executable_extensions; do
  4118. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4119. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4121. break 2
  4122. fi
  4123. done
  4124. done
  4125. IFS=$as_save_IFS
  4126. fi
  4127. fi
  4128. DUMPBIN=$ac_cv_prog_DUMPBIN
  4129. if test -n "$DUMPBIN"; then
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4131. $as_echo "$DUMPBIN" >&6; }
  4132. else
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4134. $as_echo "no" >&6; }
  4135. fi
  4136. test -n "$DUMPBIN" && break
  4137. done
  4138. fi
  4139. if test -z "$DUMPBIN"; then
  4140. ac_ct_DUMPBIN=$DUMPBIN
  4141. for ac_prog in dumpbin "link -dump"
  4142. do
  4143. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4144. set dummy $ac_prog; ac_word=$2
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4146. $as_echo_n "checking for $ac_word... " >&6; }
  4147. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4148. $as_echo_n "(cached) " >&6
  4149. else
  4150. if test -n "$ac_ct_DUMPBIN"; then
  4151. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4152. else
  4153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4154. for as_dir in $PATH
  4155. do
  4156. IFS=$as_save_IFS
  4157. test -z "$as_dir" && as_dir=.
  4158. for ac_exec_ext in '' $ac_executable_extensions; do
  4159. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4160. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4162. break 2
  4163. fi
  4164. done
  4165. done
  4166. IFS=$as_save_IFS
  4167. fi
  4168. fi
  4169. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4170. if test -n "$ac_ct_DUMPBIN"; then
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4172. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4173. else
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4175. $as_echo "no" >&6; }
  4176. fi
  4177. test -n "$ac_ct_DUMPBIN" && break
  4178. done
  4179. if test "x$ac_ct_DUMPBIN" = x; then
  4180. DUMPBIN=":"
  4181. else
  4182. case $cross_compiling:$ac_tool_warned in
  4183. yes:)
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4185. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4186. ac_tool_warned=yes ;;
  4187. esac
  4188. DUMPBIN=$ac_ct_DUMPBIN
  4189. fi
  4190. fi
  4191. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4192. *COFF*)
  4193. DUMPBIN="$DUMPBIN -symbols"
  4194. ;;
  4195. *)
  4196. DUMPBIN=:
  4197. ;;
  4198. esac
  4199. fi
  4200. if test "$DUMPBIN" != ":"; then
  4201. NM="$DUMPBIN"
  4202. fi
  4203. fi
  4204. test -z "$NM" && NM=nm
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4206. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4207. if ${lt_cv_nm_interface+:} false; then :
  4208. $as_echo_n "(cached) " >&6
  4209. else
  4210. lt_cv_nm_interface="BSD nm"
  4211. echo "int some_variable = 0;" > conftest.$ac_ext
  4212. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4213. (eval "$ac_compile" 2>conftest.err)
  4214. cat conftest.err >&5
  4215. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4216. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4217. cat conftest.err >&5
  4218. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4219. cat conftest.out >&5
  4220. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4221. lt_cv_nm_interface="MS dumpbin"
  4222. fi
  4223. rm -f conftest*
  4224. fi
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4226. $as_echo "$lt_cv_nm_interface" >&6; }
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4228. $as_echo_n "checking whether ln -s works... " >&6; }
  4229. LN_S=$as_ln_s
  4230. if test "$LN_S" = "ln -s"; then
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4232. $as_echo "yes" >&6; }
  4233. else
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4235. $as_echo "no, using $LN_S" >&6; }
  4236. fi
  4237. # find the maximum length of command line arguments
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4239. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4240. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. i=0
  4244. teststring="ABCD"
  4245. case $build_os in
  4246. msdosdjgpp*)
  4247. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4248. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4249. # during glob expansion). Even if it were fixed, the result of this
  4250. # check would be larger than it should be.
  4251. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4252. ;;
  4253. gnu*)
  4254. # Under GNU Hurd, this test is not required because there is
  4255. # no limit to the length of command line arguments.
  4256. # Libtool will interpret -1 as no limit whatsoever
  4257. lt_cv_sys_max_cmd_len=-1;
  4258. ;;
  4259. cygwin* | mingw* | cegcc*)
  4260. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4261. # about 5 minutes as the teststring grows exponentially.
  4262. # Worse, since 9x/ME are not pre-emptively multitasking,
  4263. # you end up with a "frozen" computer, even though with patience
  4264. # the test eventually succeeds (with a max line length of 256k).
  4265. # Instead, let's just punt: use the minimum linelength reported by
  4266. # all of the supported platforms: 8192 (on NT/2K/XP).
  4267. lt_cv_sys_max_cmd_len=8192;
  4268. ;;
  4269. mint*)
  4270. # On MiNT this can take a long time and run out of memory.
  4271. lt_cv_sys_max_cmd_len=8192;
  4272. ;;
  4273. amigaos*)
  4274. # On AmigaOS with pdksh, this test takes hours, literally.
  4275. # So we just punt and use a minimum line length of 8192.
  4276. lt_cv_sys_max_cmd_len=8192;
  4277. ;;
  4278. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4279. # This has been around since 386BSD, at least. Likely further.
  4280. if test -x /sbin/sysctl; then
  4281. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4282. elif test -x /usr/sbin/sysctl; then
  4283. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4284. else
  4285. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4286. fi
  4287. # And add a safety zone
  4288. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4289. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4290. ;;
  4291. interix*)
  4292. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4293. lt_cv_sys_max_cmd_len=196608
  4294. ;;
  4295. os2*)
  4296. # The test takes a long time on OS/2.
  4297. lt_cv_sys_max_cmd_len=8192
  4298. ;;
  4299. osf*)
  4300. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4301. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4302. # nice to cause kernel panics so lets avoid the loop below.
  4303. # First set a reasonable default.
  4304. lt_cv_sys_max_cmd_len=16384
  4305. #
  4306. if test -x /sbin/sysconfig; then
  4307. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4308. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4309. esac
  4310. fi
  4311. ;;
  4312. sco3.2v5*)
  4313. lt_cv_sys_max_cmd_len=102400
  4314. ;;
  4315. sysv5* | sco5v6* | sysv4.2uw2*)
  4316. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4317. if test -n "$kargmax"; then
  4318. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4319. else
  4320. lt_cv_sys_max_cmd_len=32768
  4321. fi
  4322. ;;
  4323. *)
  4324. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4325. if test -n "$lt_cv_sys_max_cmd_len"; then
  4326. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4327. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4328. else
  4329. # Make teststring a little bigger before we do anything with it.
  4330. # a 1K string should be a reasonable start.
  4331. for i in 1 2 3 4 5 6 7 8 ; do
  4332. teststring=$teststring$teststring
  4333. done
  4334. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4335. # If test is not a shell built-in, we'll probably end up computing a
  4336. # maximum length that is only half of the actual maximum length, but
  4337. # we can't tell.
  4338. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4339. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4340. test $i != 17 # 1/2 MB should be enough
  4341. do
  4342. i=`expr $i + 1`
  4343. teststring=$teststring$teststring
  4344. done
  4345. # Only check the string length outside the loop.
  4346. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4347. teststring=
  4348. # Add a significant safety factor because C++ compilers can tack on
  4349. # massive amounts of additional arguments before passing them to the
  4350. # linker. It appears as though 1/2 is a usable value.
  4351. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4352. fi
  4353. ;;
  4354. esac
  4355. fi
  4356. if test -n $lt_cv_sys_max_cmd_len ; then
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4358. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4359. else
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4361. $as_echo "none" >&6; }
  4362. fi
  4363. max_cmd_len=$lt_cv_sys_max_cmd_len
  4364. : ${CP="cp -f"}
  4365. : ${MV="mv -f"}
  4366. : ${RM="rm -f"}
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4368. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4369. # Try some XSI features
  4370. xsi_shell=no
  4371. ( _lt_dummy="a/b/c"
  4372. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4373. = c,a/b,b/c, \
  4374. && eval 'test $(( 1 + 1 )) -eq 2 \
  4375. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4376. && xsi_shell=yes
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4378. $as_echo "$xsi_shell" >&6; }
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4380. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4381. lt_shell_append=no
  4382. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4383. >/dev/null 2>&1 \
  4384. && lt_shell_append=yes
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4386. $as_echo "$lt_shell_append" >&6; }
  4387. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4388. lt_unset=unset
  4389. else
  4390. lt_unset=false
  4391. fi
  4392. # test EBCDIC or ASCII
  4393. case `echo X|tr X '\101'` in
  4394. A) # ASCII based system
  4395. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4396. lt_SP2NL='tr \040 \012'
  4397. lt_NL2SP='tr \015\012 \040\040'
  4398. ;;
  4399. *) # EBCDIC based system
  4400. lt_SP2NL='tr \100 \n'
  4401. lt_NL2SP='tr \r\n \100\100'
  4402. ;;
  4403. esac
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4405. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4406. if ${lt_cv_to_host_file_cmd+:} false; then :
  4407. $as_echo_n "(cached) " >&6
  4408. else
  4409. case $host in
  4410. *-*-mingw* )
  4411. case $build in
  4412. *-*-mingw* ) # actually msys
  4413. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4414. ;;
  4415. *-*-cygwin* )
  4416. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4417. ;;
  4418. * ) # otherwise, assume *nix
  4419. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4420. ;;
  4421. esac
  4422. ;;
  4423. *-*-cygwin* )
  4424. case $build in
  4425. *-*-mingw* ) # actually msys
  4426. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4427. ;;
  4428. *-*-cygwin* )
  4429. lt_cv_to_host_file_cmd=func_convert_file_noop
  4430. ;;
  4431. * ) # otherwise, assume *nix
  4432. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4433. ;;
  4434. esac
  4435. ;;
  4436. * ) # unhandled hosts (and "normal" native builds)
  4437. lt_cv_to_host_file_cmd=func_convert_file_noop
  4438. ;;
  4439. esac
  4440. fi
  4441. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4443. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4445. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4446. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4447. $as_echo_n "(cached) " >&6
  4448. else
  4449. #assume ordinary cross tools, or native build.
  4450. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4451. case $host in
  4452. *-*-mingw* )
  4453. case $build in
  4454. *-*-mingw* ) # actually msys
  4455. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4456. ;;
  4457. esac
  4458. ;;
  4459. esac
  4460. fi
  4461. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4463. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4465. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4466. if ${lt_cv_ld_reload_flag+:} false; then :
  4467. $as_echo_n "(cached) " >&6
  4468. else
  4469. lt_cv_ld_reload_flag='-r'
  4470. fi
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4472. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4473. reload_flag=$lt_cv_ld_reload_flag
  4474. case $reload_flag in
  4475. "" | " "*) ;;
  4476. *) reload_flag=" $reload_flag" ;;
  4477. esac
  4478. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4479. case $host_os in
  4480. cygwin* | mingw* | pw32* | cegcc*)
  4481. if test "$GCC" != yes; then
  4482. reload_cmds=false
  4483. fi
  4484. ;;
  4485. darwin*)
  4486. if test "$GCC" = yes; then
  4487. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4488. else
  4489. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4490. fi
  4491. ;;
  4492. esac
  4493. if test -n "$ac_tool_prefix"; then
  4494. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4495. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4497. $as_echo_n "checking for $ac_word... " >&6; }
  4498. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4499. $as_echo_n "(cached) " >&6
  4500. else
  4501. if test -n "$OBJDUMP"; then
  4502. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4503. else
  4504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4505. for as_dir in $PATH
  4506. do
  4507. IFS=$as_save_IFS
  4508. test -z "$as_dir" && as_dir=.
  4509. for ac_exec_ext in '' $ac_executable_extensions; do
  4510. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4511. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4513. break 2
  4514. fi
  4515. done
  4516. done
  4517. IFS=$as_save_IFS
  4518. fi
  4519. fi
  4520. OBJDUMP=$ac_cv_prog_OBJDUMP
  4521. if test -n "$OBJDUMP"; then
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4523. $as_echo "$OBJDUMP" >&6; }
  4524. else
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4526. $as_echo "no" >&6; }
  4527. fi
  4528. fi
  4529. if test -z "$ac_cv_prog_OBJDUMP"; then
  4530. ac_ct_OBJDUMP=$OBJDUMP
  4531. # Extract the first word of "objdump", so it can be a program name with args.
  4532. set dummy objdump; ac_word=$2
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4534. $as_echo_n "checking for $ac_word... " >&6; }
  4535. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4536. $as_echo_n "(cached) " >&6
  4537. else
  4538. if test -n "$ac_ct_OBJDUMP"; then
  4539. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4540. else
  4541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4542. for as_dir in $PATH
  4543. do
  4544. IFS=$as_save_IFS
  4545. test -z "$as_dir" && as_dir=.
  4546. for ac_exec_ext in '' $ac_executable_extensions; do
  4547. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4548. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4550. break 2
  4551. fi
  4552. done
  4553. done
  4554. IFS=$as_save_IFS
  4555. fi
  4556. fi
  4557. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4558. if test -n "$ac_ct_OBJDUMP"; then
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4560. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4561. else
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4563. $as_echo "no" >&6; }
  4564. fi
  4565. if test "x$ac_ct_OBJDUMP" = x; then
  4566. OBJDUMP="false"
  4567. else
  4568. case $cross_compiling:$ac_tool_warned in
  4569. yes:)
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4571. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4572. ac_tool_warned=yes ;;
  4573. esac
  4574. OBJDUMP=$ac_ct_OBJDUMP
  4575. fi
  4576. else
  4577. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4578. fi
  4579. test -z "$OBJDUMP" && OBJDUMP=objdump
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4581. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4582. if ${lt_cv_deplibs_check_method+:} false; then :
  4583. $as_echo_n "(cached) " >&6
  4584. else
  4585. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4586. lt_cv_file_magic_test_file=
  4587. lt_cv_deplibs_check_method='unknown'
  4588. # Need to set the preceding variable on all platforms that support
  4589. # interlibrary dependencies.
  4590. # 'none' -- dependencies not supported.
  4591. # `unknown' -- same as none, but documents that we really don't know.
  4592. # 'pass_all' -- all dependencies passed with no checks.
  4593. # 'test_compile' -- check by making test program.
  4594. # 'file_magic [[regex]]' -- check by looking for files in library path
  4595. # which responds to the $file_magic_cmd with a given extended regex.
  4596. # If you have `file' or equivalent on your system and you're not sure
  4597. # whether `pass_all' will *always* work, you probably want this one.
  4598. case $host_os in
  4599. aix[4-9]*)
  4600. lt_cv_deplibs_check_method=pass_all
  4601. ;;
  4602. beos*)
  4603. lt_cv_deplibs_check_method=pass_all
  4604. ;;
  4605. bsdi[45]*)
  4606. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4607. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4608. lt_cv_file_magic_test_file=/shlib/libc.so
  4609. ;;
  4610. cygwin*)
  4611. # func_win32_libid is a shell function defined in ltmain.sh
  4612. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4613. lt_cv_file_magic_cmd='func_win32_libid'
  4614. ;;
  4615. mingw* | pw32*)
  4616. # Base MSYS/MinGW do not provide the 'file' command needed by
  4617. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4618. # unless we find 'file', for example because we are cross-compiling.
  4619. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4620. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4621. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4622. lt_cv_file_magic_cmd='func_win32_libid'
  4623. else
  4624. # Keep this pattern in sync with the one in func_win32_libid.
  4625. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4626. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4627. fi
  4628. ;;
  4629. cegcc*)
  4630. # use the weaker test based on 'objdump'. See mingw*.
  4631. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4632. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4633. ;;
  4634. darwin* | rhapsody*)
  4635. lt_cv_deplibs_check_method=pass_all
  4636. ;;
  4637. freebsd* | dragonfly*)
  4638. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4639. case $host_cpu in
  4640. i*86 )
  4641. # Not sure whether the presence of OpenBSD here was a mistake.
  4642. # Let's accept both of them until this is cleared up.
  4643. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4644. lt_cv_file_magic_cmd=/usr/bin/file
  4645. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4646. ;;
  4647. esac
  4648. else
  4649. lt_cv_deplibs_check_method=pass_all
  4650. fi
  4651. ;;
  4652. gnu*)
  4653. lt_cv_deplibs_check_method=pass_all
  4654. ;;
  4655. haiku*)
  4656. lt_cv_deplibs_check_method=pass_all
  4657. ;;
  4658. hpux10.20* | hpux11*)
  4659. lt_cv_file_magic_cmd=/usr/bin/file
  4660. case $host_cpu in
  4661. ia64*)
  4662. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4663. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4664. ;;
  4665. hppa*64*)
  4666. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4667. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4668. ;;
  4669. *)
  4670. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4671. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4672. ;;
  4673. esac
  4674. ;;
  4675. interix[3-9]*)
  4676. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4677. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4678. ;;
  4679. irix5* | irix6* | nonstopux*)
  4680. case $LD in
  4681. *-32|*"-32 ") libmagic=32-bit;;
  4682. *-n32|*"-n32 ") libmagic=N32;;
  4683. *-64|*"-64 ") libmagic=64-bit;;
  4684. *) libmagic=never-match;;
  4685. esac
  4686. lt_cv_deplibs_check_method=pass_all
  4687. ;;
  4688. # This must be glibc/ELF.
  4689. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4690. lt_cv_deplibs_check_method=pass_all
  4691. ;;
  4692. netbsd*)
  4693. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4694. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4695. else
  4696. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4697. fi
  4698. ;;
  4699. newos6*)
  4700. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4701. lt_cv_file_magic_cmd=/usr/bin/file
  4702. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4703. ;;
  4704. *nto* | *qnx*)
  4705. lt_cv_deplibs_check_method=pass_all
  4706. ;;
  4707. openbsd*)
  4708. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4709. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4710. else
  4711. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4712. fi
  4713. ;;
  4714. osf3* | osf4* | osf5*)
  4715. lt_cv_deplibs_check_method=pass_all
  4716. ;;
  4717. rdos*)
  4718. lt_cv_deplibs_check_method=pass_all
  4719. ;;
  4720. solaris*)
  4721. lt_cv_deplibs_check_method=pass_all
  4722. ;;
  4723. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4724. lt_cv_deplibs_check_method=pass_all
  4725. ;;
  4726. sysv4 | sysv4.3*)
  4727. case $host_vendor in
  4728. motorola)
  4729. 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]'
  4730. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4731. ;;
  4732. ncr)
  4733. lt_cv_deplibs_check_method=pass_all
  4734. ;;
  4735. sequent)
  4736. lt_cv_file_magic_cmd='/bin/file'
  4737. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4738. ;;
  4739. sni)
  4740. lt_cv_file_magic_cmd='/bin/file'
  4741. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4742. lt_cv_file_magic_test_file=/lib/libc.so
  4743. ;;
  4744. siemens)
  4745. lt_cv_deplibs_check_method=pass_all
  4746. ;;
  4747. pc)
  4748. lt_cv_deplibs_check_method=pass_all
  4749. ;;
  4750. esac
  4751. ;;
  4752. tpf*)
  4753. lt_cv_deplibs_check_method=pass_all
  4754. ;;
  4755. esac
  4756. fi
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4758. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4759. file_magic_glob=
  4760. want_nocaseglob=no
  4761. if test "$build" = "$host"; then
  4762. case $host_os in
  4763. mingw* | pw32*)
  4764. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4765. want_nocaseglob=yes
  4766. else
  4767. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4768. fi
  4769. ;;
  4770. esac
  4771. fi
  4772. file_magic_cmd=$lt_cv_file_magic_cmd
  4773. deplibs_check_method=$lt_cv_deplibs_check_method
  4774. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4775. if test -n "$ac_tool_prefix"; then
  4776. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4777. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4779. $as_echo_n "checking for $ac_word... " >&6; }
  4780. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4781. $as_echo_n "(cached) " >&6
  4782. else
  4783. if test -n "$DLLTOOL"; then
  4784. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4785. else
  4786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4787. for as_dir in $PATH
  4788. do
  4789. IFS=$as_save_IFS
  4790. test -z "$as_dir" && as_dir=.
  4791. for ac_exec_ext in '' $ac_executable_extensions; do
  4792. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4793. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4795. break 2
  4796. fi
  4797. done
  4798. done
  4799. IFS=$as_save_IFS
  4800. fi
  4801. fi
  4802. DLLTOOL=$ac_cv_prog_DLLTOOL
  4803. if test -n "$DLLTOOL"; then
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4805. $as_echo "$DLLTOOL" >&6; }
  4806. else
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4808. $as_echo "no" >&6; }
  4809. fi
  4810. fi
  4811. if test -z "$ac_cv_prog_DLLTOOL"; then
  4812. ac_ct_DLLTOOL=$DLLTOOL
  4813. # Extract the first word of "dlltool", so it can be a program name with args.
  4814. set dummy dlltool; ac_word=$2
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4816. $as_echo_n "checking for $ac_word... " >&6; }
  4817. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4818. $as_echo_n "(cached) " >&6
  4819. else
  4820. if test -n "$ac_ct_DLLTOOL"; then
  4821. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4822. else
  4823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4824. for as_dir in $PATH
  4825. do
  4826. IFS=$as_save_IFS
  4827. test -z "$as_dir" && as_dir=.
  4828. for ac_exec_ext in '' $ac_executable_extensions; do
  4829. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4830. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4832. break 2
  4833. fi
  4834. done
  4835. done
  4836. IFS=$as_save_IFS
  4837. fi
  4838. fi
  4839. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4840. if test -n "$ac_ct_DLLTOOL"; then
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4842. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4843. else
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4845. $as_echo "no" >&6; }
  4846. fi
  4847. if test "x$ac_ct_DLLTOOL" = x; then
  4848. DLLTOOL="false"
  4849. else
  4850. case $cross_compiling:$ac_tool_warned in
  4851. yes:)
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4853. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4854. ac_tool_warned=yes ;;
  4855. esac
  4856. DLLTOOL=$ac_ct_DLLTOOL
  4857. fi
  4858. else
  4859. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4860. fi
  4861. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4863. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4864. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4865. $as_echo_n "(cached) " >&6
  4866. else
  4867. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4868. case $host_os in
  4869. cygwin* | mingw* | pw32* | cegcc*)
  4870. # two different shell functions defined in ltmain.sh
  4871. # decide which to use based on capabilities of $DLLTOOL
  4872. case `$DLLTOOL --help 2>&1` in
  4873. *--identify-strict*)
  4874. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4875. ;;
  4876. *)
  4877. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4878. ;;
  4879. esac
  4880. ;;
  4881. *)
  4882. # fallback: assume linklib IS sharedlib
  4883. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4884. ;;
  4885. esac
  4886. fi
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4888. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4889. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4890. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4891. if test -n "$ac_tool_prefix"; then
  4892. for ac_prog in ar
  4893. do
  4894. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4895. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4897. $as_echo_n "checking for $ac_word... " >&6; }
  4898. if ${ac_cv_prog_AR+:} false; then :
  4899. $as_echo_n "(cached) " >&6
  4900. else
  4901. if test -n "$AR"; then
  4902. ac_cv_prog_AR="$AR" # Let the user override the test.
  4903. else
  4904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4905. for as_dir in $PATH
  4906. do
  4907. IFS=$as_save_IFS
  4908. test -z "$as_dir" && as_dir=.
  4909. for ac_exec_ext in '' $ac_executable_extensions; do
  4910. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4911. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4913. break 2
  4914. fi
  4915. done
  4916. done
  4917. IFS=$as_save_IFS
  4918. fi
  4919. fi
  4920. AR=$ac_cv_prog_AR
  4921. if test -n "$AR"; then
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4923. $as_echo "$AR" >&6; }
  4924. else
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4926. $as_echo "no" >&6; }
  4927. fi
  4928. test -n "$AR" && break
  4929. done
  4930. fi
  4931. if test -z "$AR"; then
  4932. ac_ct_AR=$AR
  4933. for ac_prog in ar
  4934. do
  4935. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4936. set dummy $ac_prog; ac_word=$2
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4938. $as_echo_n "checking for $ac_word... " >&6; }
  4939. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4940. $as_echo_n "(cached) " >&6
  4941. else
  4942. if test -n "$ac_ct_AR"; then
  4943. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4944. else
  4945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4946. for as_dir in $PATH
  4947. do
  4948. IFS=$as_save_IFS
  4949. test -z "$as_dir" && as_dir=.
  4950. for ac_exec_ext in '' $ac_executable_extensions; do
  4951. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4952. ac_cv_prog_ac_ct_AR="$ac_prog"
  4953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4954. break 2
  4955. fi
  4956. done
  4957. done
  4958. IFS=$as_save_IFS
  4959. fi
  4960. fi
  4961. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4962. if test -n "$ac_ct_AR"; then
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4964. $as_echo "$ac_ct_AR" >&6; }
  4965. else
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4967. $as_echo "no" >&6; }
  4968. fi
  4969. test -n "$ac_ct_AR" && break
  4970. done
  4971. if test "x$ac_ct_AR" = x; then
  4972. AR="false"
  4973. else
  4974. case $cross_compiling:$ac_tool_warned in
  4975. yes:)
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4977. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4978. ac_tool_warned=yes ;;
  4979. esac
  4980. AR=$ac_ct_AR
  4981. fi
  4982. fi
  4983. : ${AR=ar}
  4984. : ${AR_FLAGS=cru}
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4986. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4987. if ${lt_cv_ar_at_file+:} false; then :
  4988. $as_echo_n "(cached) " >&6
  4989. else
  4990. lt_cv_ar_at_file=no
  4991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4992. /* end confdefs.h. */
  4993. int
  4994. main ()
  4995. {
  4996. ;
  4997. return 0;
  4998. }
  4999. _ACEOF
  5000. if ac_fn_c_try_compile "$LINENO"; then :
  5001. echo conftest.$ac_objext > conftest.lst
  5002. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5003. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5004. (eval $lt_ar_try) 2>&5
  5005. ac_status=$?
  5006. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5007. test $ac_status = 0; }
  5008. if test "$ac_status" -eq 0; then
  5009. # Ensure the archiver fails upon bogus file names.
  5010. rm -f conftest.$ac_objext libconftest.a
  5011. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5012. (eval $lt_ar_try) 2>&5
  5013. ac_status=$?
  5014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5015. test $ac_status = 0; }
  5016. if test "$ac_status" -ne 0; then
  5017. lt_cv_ar_at_file=@
  5018. fi
  5019. fi
  5020. rm -f conftest.* libconftest.a
  5021. fi
  5022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5023. fi
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5025. $as_echo "$lt_cv_ar_at_file" >&6; }
  5026. if test "x$lt_cv_ar_at_file" = xno; then
  5027. archiver_list_spec=
  5028. else
  5029. archiver_list_spec=$lt_cv_ar_at_file
  5030. fi
  5031. if test -n "$ac_tool_prefix"; then
  5032. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5033. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5035. $as_echo_n "checking for $ac_word... " >&6; }
  5036. if ${ac_cv_prog_STRIP+:} false; then :
  5037. $as_echo_n "(cached) " >&6
  5038. else
  5039. if test -n "$STRIP"; then
  5040. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5041. else
  5042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5043. for as_dir in $PATH
  5044. do
  5045. IFS=$as_save_IFS
  5046. test -z "$as_dir" && as_dir=.
  5047. for ac_exec_ext in '' $ac_executable_extensions; do
  5048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5049. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5051. break 2
  5052. fi
  5053. done
  5054. done
  5055. IFS=$as_save_IFS
  5056. fi
  5057. fi
  5058. STRIP=$ac_cv_prog_STRIP
  5059. if test -n "$STRIP"; then
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5061. $as_echo "$STRIP" >&6; }
  5062. else
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5064. $as_echo "no" >&6; }
  5065. fi
  5066. fi
  5067. if test -z "$ac_cv_prog_STRIP"; then
  5068. ac_ct_STRIP=$STRIP
  5069. # Extract the first word of "strip", so it can be a program name with args.
  5070. set dummy strip; ac_word=$2
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5072. $as_echo_n "checking for $ac_word... " >&6; }
  5073. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5074. $as_echo_n "(cached) " >&6
  5075. else
  5076. if test -n "$ac_ct_STRIP"; then
  5077. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5078. else
  5079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5080. for as_dir in $PATH
  5081. do
  5082. IFS=$as_save_IFS
  5083. test -z "$as_dir" && as_dir=.
  5084. for ac_exec_ext in '' $ac_executable_extensions; do
  5085. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5086. ac_cv_prog_ac_ct_STRIP="strip"
  5087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5088. break 2
  5089. fi
  5090. done
  5091. done
  5092. IFS=$as_save_IFS
  5093. fi
  5094. fi
  5095. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5096. if test -n "$ac_ct_STRIP"; then
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5098. $as_echo "$ac_ct_STRIP" >&6; }
  5099. else
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5101. $as_echo "no" >&6; }
  5102. fi
  5103. if test "x$ac_ct_STRIP" = x; then
  5104. STRIP=":"
  5105. else
  5106. case $cross_compiling:$ac_tool_warned in
  5107. yes:)
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5109. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5110. ac_tool_warned=yes ;;
  5111. esac
  5112. STRIP=$ac_ct_STRIP
  5113. fi
  5114. else
  5115. STRIP="$ac_cv_prog_STRIP"
  5116. fi
  5117. test -z "$STRIP" && STRIP=:
  5118. if test -n "$ac_tool_prefix"; then
  5119. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5120. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5122. $as_echo_n "checking for $ac_word... " >&6; }
  5123. if ${ac_cv_prog_RANLIB+:} false; then :
  5124. $as_echo_n "(cached) " >&6
  5125. else
  5126. if test -n "$RANLIB"; then
  5127. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5128. else
  5129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5130. for as_dir in $PATH
  5131. do
  5132. IFS=$as_save_IFS
  5133. test -z "$as_dir" && as_dir=.
  5134. for ac_exec_ext in '' $ac_executable_extensions; do
  5135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5136. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5138. break 2
  5139. fi
  5140. done
  5141. done
  5142. IFS=$as_save_IFS
  5143. fi
  5144. fi
  5145. RANLIB=$ac_cv_prog_RANLIB
  5146. if test -n "$RANLIB"; then
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5148. $as_echo "$RANLIB" >&6; }
  5149. else
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5151. $as_echo "no" >&6; }
  5152. fi
  5153. fi
  5154. if test -z "$ac_cv_prog_RANLIB"; then
  5155. ac_ct_RANLIB=$RANLIB
  5156. # Extract the first word of "ranlib", so it can be a program name with args.
  5157. set dummy ranlib; ac_word=$2
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5159. $as_echo_n "checking for $ac_word... " >&6; }
  5160. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5161. $as_echo_n "(cached) " >&6
  5162. else
  5163. if test -n "$ac_ct_RANLIB"; then
  5164. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5165. else
  5166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5167. for as_dir in $PATH
  5168. do
  5169. IFS=$as_save_IFS
  5170. test -z "$as_dir" && as_dir=.
  5171. for ac_exec_ext in '' $ac_executable_extensions; do
  5172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5173. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5175. break 2
  5176. fi
  5177. done
  5178. done
  5179. IFS=$as_save_IFS
  5180. fi
  5181. fi
  5182. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5183. if test -n "$ac_ct_RANLIB"; then
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5185. $as_echo "$ac_ct_RANLIB" >&6; }
  5186. else
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5188. $as_echo "no" >&6; }
  5189. fi
  5190. if test "x$ac_ct_RANLIB" = x; then
  5191. RANLIB=":"
  5192. else
  5193. case $cross_compiling:$ac_tool_warned in
  5194. yes:)
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5196. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5197. ac_tool_warned=yes ;;
  5198. esac
  5199. RANLIB=$ac_ct_RANLIB
  5200. fi
  5201. else
  5202. RANLIB="$ac_cv_prog_RANLIB"
  5203. fi
  5204. test -z "$RANLIB" && RANLIB=:
  5205. # Determine commands to create old-style static archives.
  5206. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5207. old_postinstall_cmds='chmod 644 $oldlib'
  5208. old_postuninstall_cmds=
  5209. if test -n "$RANLIB"; then
  5210. case $host_os in
  5211. openbsd*)
  5212. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5213. ;;
  5214. *)
  5215. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5216. ;;
  5217. esac
  5218. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5219. fi
  5220. case $host_os in
  5221. darwin*)
  5222. lock_old_archive_extraction=yes ;;
  5223. *)
  5224. lock_old_archive_extraction=no ;;
  5225. esac
  5226. for ac_prog in gawk mawk nawk awk
  5227. do
  5228. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5229. set dummy $ac_prog; ac_word=$2
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5231. $as_echo_n "checking for $ac_word... " >&6; }
  5232. if ${ac_cv_prog_AWK+:} false; then :
  5233. $as_echo_n "(cached) " >&6
  5234. else
  5235. if test -n "$AWK"; then
  5236. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5237. else
  5238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5239. for as_dir in $PATH
  5240. do
  5241. IFS=$as_save_IFS
  5242. test -z "$as_dir" && as_dir=.
  5243. for ac_exec_ext in '' $ac_executable_extensions; do
  5244. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5245. ac_cv_prog_AWK="$ac_prog"
  5246. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5247. break 2
  5248. fi
  5249. done
  5250. done
  5251. IFS=$as_save_IFS
  5252. fi
  5253. fi
  5254. AWK=$ac_cv_prog_AWK
  5255. if test -n "$AWK"; then
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5257. $as_echo "$AWK" >&6; }
  5258. else
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5260. $as_echo "no" >&6; }
  5261. fi
  5262. test -n "$AWK" && break
  5263. done
  5264. # If no C compiler was specified, use CC.
  5265. LTCC=${LTCC-"$CC"}
  5266. # If no C compiler flags were specified, use CFLAGS.
  5267. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5268. # Allow CC to be a program name with arguments.
  5269. compiler=$CC
  5270. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5272. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5273. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. # These are sane defaults that work on at least a few old systems.
  5277. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5278. # Character class describing NM global symbol codes.
  5279. symcode='[BCDEGRST]'
  5280. # Regexp to match symbols that can be accessed directly from C.
  5281. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5282. # Define system-specific variables.
  5283. case $host_os in
  5284. aix*)
  5285. symcode='[BCDT]'
  5286. ;;
  5287. cygwin* | mingw* | pw32* | cegcc*)
  5288. symcode='[ABCDGISTW]'
  5289. ;;
  5290. hpux*)
  5291. if test "$host_cpu" = ia64; then
  5292. symcode='[ABCDEGRST]'
  5293. fi
  5294. ;;
  5295. irix* | nonstopux*)
  5296. symcode='[BCDEGRST]'
  5297. ;;
  5298. osf*)
  5299. symcode='[BCDEGQRST]'
  5300. ;;
  5301. solaris*)
  5302. symcode='[BDRT]'
  5303. ;;
  5304. sco3.2v5*)
  5305. symcode='[DT]'
  5306. ;;
  5307. sysv4.2uw2*)
  5308. symcode='[DT]'
  5309. ;;
  5310. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5311. symcode='[ABDT]'
  5312. ;;
  5313. sysv4)
  5314. symcode='[DFNSTU]'
  5315. ;;
  5316. esac
  5317. # If we're using GNU nm, then use its standard symbol codes.
  5318. case `$NM -V 2>&1` in
  5319. *GNU* | *'with BFD'*)
  5320. symcode='[ABCDGIRSTW]' ;;
  5321. esac
  5322. # Transform an extracted symbol line into a proper C declaration.
  5323. # Some systems (esp. on ia64) link data and code symbols differently,
  5324. # so use this general approach.
  5325. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5326. # Transform an extracted symbol line into symbol name and symbol address
  5327. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5328. 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'"
  5329. # Handle CRLF in mingw tool chain
  5330. opt_cr=
  5331. case $build_os in
  5332. mingw*)
  5333. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5334. ;;
  5335. esac
  5336. # Try without a prefix underscore, then with it.
  5337. for ac_symprfx in "" "_"; do
  5338. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5339. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5340. # Write the raw and C identifiers.
  5341. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5342. # Fake it for dumpbin and say T for any non-static function
  5343. # and D for any global variable.
  5344. # Also find C++ and __fastcall symbols from MSVC++,
  5345. # which start with @ or ?.
  5346. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5347. " {last_section=section; section=\$ 3};"\
  5348. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5349. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5350. " \$ 0!~/External *\|/{next};"\
  5351. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5352. " {if(hide[section]) next};"\
  5353. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5354. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5355. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5356. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5357. " ' prfx=^$ac_symprfx"
  5358. else
  5359. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5360. fi
  5361. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5362. # Check to see that the pipe works correctly.
  5363. pipe_works=no
  5364. rm -f conftest*
  5365. cat > conftest.$ac_ext <<_LT_EOF
  5366. #ifdef __cplusplus
  5367. extern "C" {
  5368. #endif
  5369. char nm_test_var;
  5370. void nm_test_func(void);
  5371. void nm_test_func(void){}
  5372. #ifdef __cplusplus
  5373. }
  5374. #endif
  5375. int main(){nm_test_var='a';nm_test_func();return(0);}
  5376. _LT_EOF
  5377. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5378. (eval $ac_compile) 2>&5
  5379. ac_status=$?
  5380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5381. test $ac_status = 0; }; then
  5382. # Now try to grab the symbols.
  5383. nlist=conftest.nm
  5384. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5385. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5386. ac_status=$?
  5387. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5388. test $ac_status = 0; } && test -s "$nlist"; then
  5389. # Try sorting and uniquifying the output.
  5390. if sort "$nlist" | uniq > "$nlist"T; then
  5391. mv -f "$nlist"T "$nlist"
  5392. else
  5393. rm -f "$nlist"T
  5394. fi
  5395. # Make sure that we snagged all the symbols we need.
  5396. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5397. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5398. cat <<_LT_EOF > conftest.$ac_ext
  5399. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5400. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5401. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5402. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5403. # define LT_DLSYM_CONST
  5404. #elif defined(__osf__)
  5405. /* This system does not cope well with relocations in const data. */
  5406. # define LT_DLSYM_CONST
  5407. #else
  5408. # define LT_DLSYM_CONST const
  5409. #endif
  5410. #ifdef __cplusplus
  5411. extern "C" {
  5412. #endif
  5413. _LT_EOF
  5414. # Now generate the symbol file.
  5415. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5416. cat <<_LT_EOF >> conftest.$ac_ext
  5417. /* The mapping between symbol names and symbols. */
  5418. LT_DLSYM_CONST struct {
  5419. const char *name;
  5420. void *address;
  5421. }
  5422. lt__PROGRAM__LTX_preloaded_symbols[] =
  5423. {
  5424. { "@PROGRAM@", (void *) 0 },
  5425. _LT_EOF
  5426. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5427. cat <<\_LT_EOF >> conftest.$ac_ext
  5428. {0, (void *) 0}
  5429. };
  5430. /* This works around a problem in FreeBSD linker */
  5431. #ifdef FREEBSD_WORKAROUND
  5432. static const void *lt_preloaded_setup() {
  5433. return lt__PROGRAM__LTX_preloaded_symbols;
  5434. }
  5435. #endif
  5436. #ifdef __cplusplus
  5437. }
  5438. #endif
  5439. _LT_EOF
  5440. # Now try linking the two files.
  5441. mv conftest.$ac_objext conftstm.$ac_objext
  5442. lt_globsym_save_LIBS=$LIBS
  5443. lt_globsym_save_CFLAGS=$CFLAGS
  5444. LIBS="conftstm.$ac_objext"
  5445. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5446. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5447. (eval $ac_link) 2>&5
  5448. ac_status=$?
  5449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5450. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5451. pipe_works=yes
  5452. fi
  5453. LIBS=$lt_globsym_save_LIBS
  5454. CFLAGS=$lt_globsym_save_CFLAGS
  5455. else
  5456. echo "cannot find nm_test_func in $nlist" >&5
  5457. fi
  5458. else
  5459. echo "cannot find nm_test_var in $nlist" >&5
  5460. fi
  5461. else
  5462. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5463. fi
  5464. else
  5465. echo "$progname: failed program was:" >&5
  5466. cat conftest.$ac_ext >&5
  5467. fi
  5468. rm -rf conftest* conftst*
  5469. # Do not use the global_symbol_pipe unless it works.
  5470. if test "$pipe_works" = yes; then
  5471. break
  5472. else
  5473. lt_cv_sys_global_symbol_pipe=
  5474. fi
  5475. done
  5476. fi
  5477. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5478. lt_cv_sys_global_symbol_to_cdecl=
  5479. fi
  5480. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5482. $as_echo "failed" >&6; }
  5483. else
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5485. $as_echo "ok" >&6; }
  5486. fi
  5487. # Response file support.
  5488. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5489. nm_file_list_spec='@'
  5490. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5491. nm_file_list_spec='@'
  5492. fi
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5494. $as_echo_n "checking for sysroot... " >&6; }
  5495. # Check whether --with-sysroot was given.
  5496. if test "${with_sysroot+set}" = set; then :
  5497. withval=$with_sysroot;
  5498. else
  5499. with_sysroot=no
  5500. fi
  5501. lt_sysroot=
  5502. case ${with_sysroot} in #(
  5503. yes)
  5504. if test "$GCC" = yes; then
  5505. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5506. fi
  5507. ;; #(
  5508. /*)
  5509. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5510. ;; #(
  5511. no|'')
  5512. ;; #(
  5513. *)
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5515. $as_echo "${with_sysroot}" >&6; }
  5516. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5517. ;;
  5518. esac
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5520. $as_echo "${lt_sysroot:-no}" >&6; }
  5521. # Check whether --enable-libtool-lock was given.
  5522. if test "${enable_libtool_lock+set}" = set; then :
  5523. enableval=$enable_libtool_lock;
  5524. fi
  5525. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5526. # Some flags need to be propagated to the compiler or linker for good
  5527. # libtool support.
  5528. case $host in
  5529. ia64-*-hpux*)
  5530. # Find out which ABI we are using.
  5531. echo 'int i;' > conftest.$ac_ext
  5532. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5533. (eval $ac_compile) 2>&5
  5534. ac_status=$?
  5535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5536. test $ac_status = 0; }; then
  5537. case `/usr/bin/file conftest.$ac_objext` in
  5538. *ELF-32*)
  5539. HPUX_IA64_MODE="32"
  5540. ;;
  5541. *ELF-64*)
  5542. HPUX_IA64_MODE="64"
  5543. ;;
  5544. esac
  5545. fi
  5546. rm -rf conftest*
  5547. ;;
  5548. *-*-irix6*)
  5549. # Find out which ABI we are using.
  5550. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5551. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5552. (eval $ac_compile) 2>&5
  5553. ac_status=$?
  5554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5555. test $ac_status = 0; }; then
  5556. if test "$lt_cv_prog_gnu_ld" = yes; then
  5557. case `/usr/bin/file conftest.$ac_objext` in
  5558. *32-bit*)
  5559. LD="${LD-ld} -melf32bsmip"
  5560. ;;
  5561. *N32*)
  5562. LD="${LD-ld} -melf32bmipn32"
  5563. ;;
  5564. *64-bit*)
  5565. LD="${LD-ld} -melf64bmip"
  5566. ;;
  5567. esac
  5568. else
  5569. case `/usr/bin/file conftest.$ac_objext` in
  5570. *32-bit*)
  5571. LD="${LD-ld} -32"
  5572. ;;
  5573. *N32*)
  5574. LD="${LD-ld} -n32"
  5575. ;;
  5576. *64-bit*)
  5577. LD="${LD-ld} -64"
  5578. ;;
  5579. esac
  5580. fi
  5581. fi
  5582. rm -rf conftest*
  5583. ;;
  5584. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5585. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5586. # Find out which ABI we are using.
  5587. echo 'int i;' > conftest.$ac_ext
  5588. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5589. (eval $ac_compile) 2>&5
  5590. ac_status=$?
  5591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5592. test $ac_status = 0; }; then
  5593. case `/usr/bin/file conftest.o` in
  5594. *32-bit*)
  5595. case $host in
  5596. x86_64-*kfreebsd*-gnu)
  5597. LD="${LD-ld} -m elf_i386_fbsd"
  5598. ;;
  5599. x86_64-*linux*)
  5600. LD="${LD-ld} -m elf_i386"
  5601. ;;
  5602. ppc64-*linux*|powerpc64-*linux*)
  5603. LD="${LD-ld} -m elf32ppclinux"
  5604. ;;
  5605. s390x-*linux*)
  5606. LD="${LD-ld} -m elf_s390"
  5607. ;;
  5608. sparc64-*linux*)
  5609. LD="${LD-ld} -m elf32_sparc"
  5610. ;;
  5611. esac
  5612. ;;
  5613. *64-bit*)
  5614. case $host in
  5615. x86_64-*kfreebsd*-gnu)
  5616. LD="${LD-ld} -m elf_x86_64_fbsd"
  5617. ;;
  5618. x86_64-*linux*)
  5619. LD="${LD-ld} -m elf_x86_64"
  5620. ;;
  5621. ppc*-*linux*|powerpc*-*linux*)
  5622. LD="${LD-ld} -m elf64ppc"
  5623. ;;
  5624. s390*-*linux*|s390*-*tpf*)
  5625. LD="${LD-ld} -m elf64_s390"
  5626. ;;
  5627. sparc*-*linux*)
  5628. LD="${LD-ld} -m elf64_sparc"
  5629. ;;
  5630. esac
  5631. ;;
  5632. esac
  5633. fi
  5634. rm -rf conftest*
  5635. ;;
  5636. *-*-sco3.2v5*)
  5637. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5638. SAVE_CFLAGS="$CFLAGS"
  5639. CFLAGS="$CFLAGS -belf"
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5641. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5642. if ${lt_cv_cc_needs_belf+:} false; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. ac_ext=c
  5646. ac_cpp='$CPP $CPPFLAGS'
  5647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5651. /* end confdefs.h. */
  5652. int
  5653. main ()
  5654. {
  5655. ;
  5656. return 0;
  5657. }
  5658. _ACEOF
  5659. if ac_fn_c_try_link "$LINENO"; then :
  5660. lt_cv_cc_needs_belf=yes
  5661. else
  5662. lt_cv_cc_needs_belf=no
  5663. fi
  5664. rm -f core conftest.err conftest.$ac_objext \
  5665. conftest$ac_exeext conftest.$ac_ext
  5666. ac_ext=c
  5667. ac_cpp='$CPP $CPPFLAGS'
  5668. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5669. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5670. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5671. fi
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5673. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5674. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5675. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5676. CFLAGS="$SAVE_CFLAGS"
  5677. fi
  5678. ;;
  5679. *-*solaris*)
  5680. # Find out which ABI we are using.
  5681. echo 'int i;' > conftest.$ac_ext
  5682. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5683. (eval $ac_compile) 2>&5
  5684. ac_status=$?
  5685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5686. test $ac_status = 0; }; then
  5687. case `/usr/bin/file conftest.o` in
  5688. *64-bit*)
  5689. case $lt_cv_prog_gnu_ld in
  5690. yes*)
  5691. case $host in
  5692. i?86-*-solaris*)
  5693. LD="${LD-ld} -m elf_x86_64"
  5694. ;;
  5695. sparc*-*-solaris*)
  5696. LD="${LD-ld} -m elf64_sparc"
  5697. ;;
  5698. esac
  5699. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5700. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5701. LD="${LD-ld}_sol2"
  5702. fi
  5703. ;;
  5704. *)
  5705. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5706. LD="${LD-ld} -64"
  5707. fi
  5708. ;;
  5709. esac
  5710. ;;
  5711. esac
  5712. fi
  5713. rm -rf conftest*
  5714. ;;
  5715. esac
  5716. need_locks="$enable_libtool_lock"
  5717. if test -n "$ac_tool_prefix"; then
  5718. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5719. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5721. $as_echo_n "checking for $ac_word... " >&6; }
  5722. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5723. $as_echo_n "(cached) " >&6
  5724. else
  5725. if test -n "$MANIFEST_TOOL"; then
  5726. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5727. else
  5728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5729. for as_dir in $PATH
  5730. do
  5731. IFS=$as_save_IFS
  5732. test -z "$as_dir" && as_dir=.
  5733. for ac_exec_ext in '' $ac_executable_extensions; do
  5734. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5735. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5737. break 2
  5738. fi
  5739. done
  5740. done
  5741. IFS=$as_save_IFS
  5742. fi
  5743. fi
  5744. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5745. if test -n "$MANIFEST_TOOL"; then
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5747. $as_echo "$MANIFEST_TOOL" >&6; }
  5748. else
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5750. $as_echo "no" >&6; }
  5751. fi
  5752. fi
  5753. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5754. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5755. # Extract the first word of "mt", so it can be a program name with args.
  5756. set dummy mt; ac_word=$2
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5758. $as_echo_n "checking for $ac_word... " >&6; }
  5759. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5760. $as_echo_n "(cached) " >&6
  5761. else
  5762. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5763. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5764. else
  5765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5766. for as_dir in $PATH
  5767. do
  5768. IFS=$as_save_IFS
  5769. test -z "$as_dir" && as_dir=.
  5770. for ac_exec_ext in '' $ac_executable_extensions; do
  5771. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5772. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5774. break 2
  5775. fi
  5776. done
  5777. done
  5778. IFS=$as_save_IFS
  5779. fi
  5780. fi
  5781. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5782. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5784. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5785. else
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5787. $as_echo "no" >&6; }
  5788. fi
  5789. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5790. MANIFEST_TOOL=":"
  5791. else
  5792. case $cross_compiling:$ac_tool_warned in
  5793. yes:)
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5795. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5796. ac_tool_warned=yes ;;
  5797. esac
  5798. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5799. fi
  5800. else
  5801. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5802. fi
  5803. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5805. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5806. if ${lt_cv_path_mainfest_tool+:} false; then :
  5807. $as_echo_n "(cached) " >&6
  5808. else
  5809. lt_cv_path_mainfest_tool=no
  5810. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5811. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5812. cat conftest.err >&5
  5813. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5814. lt_cv_path_mainfest_tool=yes
  5815. fi
  5816. rm -f conftest*
  5817. fi
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5819. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5820. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5821. MANIFEST_TOOL=:
  5822. fi
  5823. case $host_os in
  5824. rhapsody* | darwin*)
  5825. if test -n "$ac_tool_prefix"; then
  5826. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5827. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5829. $as_echo_n "checking for $ac_word... " >&6; }
  5830. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5831. $as_echo_n "(cached) " >&6
  5832. else
  5833. if test -n "$DSYMUTIL"; then
  5834. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5835. else
  5836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5837. for as_dir in $PATH
  5838. do
  5839. IFS=$as_save_IFS
  5840. test -z "$as_dir" && as_dir=.
  5841. for ac_exec_ext in '' $ac_executable_extensions; do
  5842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5843. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5845. break 2
  5846. fi
  5847. done
  5848. done
  5849. IFS=$as_save_IFS
  5850. fi
  5851. fi
  5852. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5853. if test -n "$DSYMUTIL"; then
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5855. $as_echo "$DSYMUTIL" >&6; }
  5856. else
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5858. $as_echo "no" >&6; }
  5859. fi
  5860. fi
  5861. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5862. ac_ct_DSYMUTIL=$DSYMUTIL
  5863. # Extract the first word of "dsymutil", so it can be a program name with args.
  5864. set dummy dsymutil; ac_word=$2
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5866. $as_echo_n "checking for $ac_word... " >&6; }
  5867. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if test -n "$ac_ct_DSYMUTIL"; then
  5871. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5872. else
  5873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5874. for as_dir in $PATH
  5875. do
  5876. IFS=$as_save_IFS
  5877. test -z "$as_dir" && as_dir=.
  5878. for ac_exec_ext in '' $ac_executable_extensions; do
  5879. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5880. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5882. break 2
  5883. fi
  5884. done
  5885. done
  5886. IFS=$as_save_IFS
  5887. fi
  5888. fi
  5889. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5890. if test -n "$ac_ct_DSYMUTIL"; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5892. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5893. else
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5895. $as_echo "no" >&6; }
  5896. fi
  5897. if test "x$ac_ct_DSYMUTIL" = x; then
  5898. DSYMUTIL=":"
  5899. else
  5900. case $cross_compiling:$ac_tool_warned in
  5901. yes:)
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5903. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5904. ac_tool_warned=yes ;;
  5905. esac
  5906. DSYMUTIL=$ac_ct_DSYMUTIL
  5907. fi
  5908. else
  5909. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5910. fi
  5911. if test -n "$ac_tool_prefix"; then
  5912. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5913. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5915. $as_echo_n "checking for $ac_word... " >&6; }
  5916. if ${ac_cv_prog_NMEDIT+:} false; then :
  5917. $as_echo_n "(cached) " >&6
  5918. else
  5919. if test -n "$NMEDIT"; then
  5920. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5921. else
  5922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5923. for as_dir in $PATH
  5924. do
  5925. IFS=$as_save_IFS
  5926. test -z "$as_dir" && as_dir=.
  5927. for ac_exec_ext in '' $ac_executable_extensions; do
  5928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5929. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5931. break 2
  5932. fi
  5933. done
  5934. done
  5935. IFS=$as_save_IFS
  5936. fi
  5937. fi
  5938. NMEDIT=$ac_cv_prog_NMEDIT
  5939. if test -n "$NMEDIT"; then
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5941. $as_echo "$NMEDIT" >&6; }
  5942. else
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5944. $as_echo "no" >&6; }
  5945. fi
  5946. fi
  5947. if test -z "$ac_cv_prog_NMEDIT"; then
  5948. ac_ct_NMEDIT=$NMEDIT
  5949. # Extract the first word of "nmedit", so it can be a program name with args.
  5950. set dummy nmedit; ac_word=$2
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5952. $as_echo_n "checking for $ac_word... " >&6; }
  5953. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. if test -n "$ac_ct_NMEDIT"; then
  5957. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5958. else
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5966. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973. fi
  5974. fi
  5975. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5976. if test -n "$ac_ct_NMEDIT"; then
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5978. $as_echo "$ac_ct_NMEDIT" >&6; }
  5979. else
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5981. $as_echo "no" >&6; }
  5982. fi
  5983. if test "x$ac_ct_NMEDIT" = x; then
  5984. NMEDIT=":"
  5985. else
  5986. case $cross_compiling:$ac_tool_warned in
  5987. yes:)
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5990. ac_tool_warned=yes ;;
  5991. esac
  5992. NMEDIT=$ac_ct_NMEDIT
  5993. fi
  5994. else
  5995. NMEDIT="$ac_cv_prog_NMEDIT"
  5996. fi
  5997. if test -n "$ac_tool_prefix"; then
  5998. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5999. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6001. $as_echo_n "checking for $ac_word... " >&6; }
  6002. if ${ac_cv_prog_LIPO+:} false; then :
  6003. $as_echo_n "(cached) " >&6
  6004. else
  6005. if test -n "$LIPO"; then
  6006. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6007. else
  6008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6009. for as_dir in $PATH
  6010. do
  6011. IFS=$as_save_IFS
  6012. test -z "$as_dir" && as_dir=.
  6013. for ac_exec_ext in '' $ac_executable_extensions; do
  6014. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6015. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6017. break 2
  6018. fi
  6019. done
  6020. done
  6021. IFS=$as_save_IFS
  6022. fi
  6023. fi
  6024. LIPO=$ac_cv_prog_LIPO
  6025. if test -n "$LIPO"; then
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6027. $as_echo "$LIPO" >&6; }
  6028. else
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6030. $as_echo "no" >&6; }
  6031. fi
  6032. fi
  6033. if test -z "$ac_cv_prog_LIPO"; then
  6034. ac_ct_LIPO=$LIPO
  6035. # Extract the first word of "lipo", so it can be a program name with args.
  6036. set dummy lipo; ac_word=$2
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6038. $as_echo_n "checking for $ac_word... " >&6; }
  6039. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6040. $as_echo_n "(cached) " >&6
  6041. else
  6042. if test -n "$ac_ct_LIPO"; then
  6043. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6044. else
  6045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6046. for as_dir in $PATH
  6047. do
  6048. IFS=$as_save_IFS
  6049. test -z "$as_dir" && as_dir=.
  6050. for ac_exec_ext in '' $ac_executable_extensions; do
  6051. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6052. ac_cv_prog_ac_ct_LIPO="lipo"
  6053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6054. break 2
  6055. fi
  6056. done
  6057. done
  6058. IFS=$as_save_IFS
  6059. fi
  6060. fi
  6061. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6062. if test -n "$ac_ct_LIPO"; then
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6064. $as_echo "$ac_ct_LIPO" >&6; }
  6065. else
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6067. $as_echo "no" >&6; }
  6068. fi
  6069. if test "x$ac_ct_LIPO" = x; then
  6070. LIPO=":"
  6071. else
  6072. case $cross_compiling:$ac_tool_warned in
  6073. yes:)
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6075. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6076. ac_tool_warned=yes ;;
  6077. esac
  6078. LIPO=$ac_ct_LIPO
  6079. fi
  6080. else
  6081. LIPO="$ac_cv_prog_LIPO"
  6082. fi
  6083. if test -n "$ac_tool_prefix"; then
  6084. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6085. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6087. $as_echo_n "checking for $ac_word... " >&6; }
  6088. if ${ac_cv_prog_OTOOL+:} false; then :
  6089. $as_echo_n "(cached) " >&6
  6090. else
  6091. if test -n "$OTOOL"; then
  6092. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6093. else
  6094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6095. for as_dir in $PATH
  6096. do
  6097. IFS=$as_save_IFS
  6098. test -z "$as_dir" && as_dir=.
  6099. for ac_exec_ext in '' $ac_executable_extensions; do
  6100. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6101. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6103. break 2
  6104. fi
  6105. done
  6106. done
  6107. IFS=$as_save_IFS
  6108. fi
  6109. fi
  6110. OTOOL=$ac_cv_prog_OTOOL
  6111. if test -n "$OTOOL"; then
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6113. $as_echo "$OTOOL" >&6; }
  6114. else
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6116. $as_echo "no" >&6; }
  6117. fi
  6118. fi
  6119. if test -z "$ac_cv_prog_OTOOL"; then
  6120. ac_ct_OTOOL=$OTOOL
  6121. # Extract the first word of "otool", so it can be a program name with args.
  6122. set dummy otool; ac_word=$2
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6124. $as_echo_n "checking for $ac_word... " >&6; }
  6125. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6126. $as_echo_n "(cached) " >&6
  6127. else
  6128. if test -n "$ac_ct_OTOOL"; then
  6129. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6130. else
  6131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6132. for as_dir in $PATH
  6133. do
  6134. IFS=$as_save_IFS
  6135. test -z "$as_dir" && as_dir=.
  6136. for ac_exec_ext in '' $ac_executable_extensions; do
  6137. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6138. ac_cv_prog_ac_ct_OTOOL="otool"
  6139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6140. break 2
  6141. fi
  6142. done
  6143. done
  6144. IFS=$as_save_IFS
  6145. fi
  6146. fi
  6147. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6148. if test -n "$ac_ct_OTOOL"; then
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6150. $as_echo "$ac_ct_OTOOL" >&6; }
  6151. else
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6153. $as_echo "no" >&6; }
  6154. fi
  6155. if test "x$ac_ct_OTOOL" = x; then
  6156. OTOOL=":"
  6157. else
  6158. case $cross_compiling:$ac_tool_warned in
  6159. yes:)
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6161. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6162. ac_tool_warned=yes ;;
  6163. esac
  6164. OTOOL=$ac_ct_OTOOL
  6165. fi
  6166. else
  6167. OTOOL="$ac_cv_prog_OTOOL"
  6168. fi
  6169. if test -n "$ac_tool_prefix"; then
  6170. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6171. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6173. $as_echo_n "checking for $ac_word... " >&6; }
  6174. if ${ac_cv_prog_OTOOL64+:} false; then :
  6175. $as_echo_n "(cached) " >&6
  6176. else
  6177. if test -n "$OTOOL64"; then
  6178. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6179. else
  6180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6181. for as_dir in $PATH
  6182. do
  6183. IFS=$as_save_IFS
  6184. test -z "$as_dir" && as_dir=.
  6185. for ac_exec_ext in '' $ac_executable_extensions; do
  6186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6187. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6189. break 2
  6190. fi
  6191. done
  6192. done
  6193. IFS=$as_save_IFS
  6194. fi
  6195. fi
  6196. OTOOL64=$ac_cv_prog_OTOOL64
  6197. if test -n "$OTOOL64"; then
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6199. $as_echo "$OTOOL64" >&6; }
  6200. else
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6202. $as_echo "no" >&6; }
  6203. fi
  6204. fi
  6205. if test -z "$ac_cv_prog_OTOOL64"; then
  6206. ac_ct_OTOOL64=$OTOOL64
  6207. # Extract the first word of "otool64", so it can be a program name with args.
  6208. set dummy otool64; ac_word=$2
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6210. $as_echo_n "checking for $ac_word... " >&6; }
  6211. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6212. $as_echo_n "(cached) " >&6
  6213. else
  6214. if test -n "$ac_ct_OTOOL64"; then
  6215. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6216. else
  6217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6218. for as_dir in $PATH
  6219. do
  6220. IFS=$as_save_IFS
  6221. test -z "$as_dir" && as_dir=.
  6222. for ac_exec_ext in '' $ac_executable_extensions; do
  6223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6224. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6226. break 2
  6227. fi
  6228. done
  6229. done
  6230. IFS=$as_save_IFS
  6231. fi
  6232. fi
  6233. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6234. if test -n "$ac_ct_OTOOL64"; then
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6236. $as_echo "$ac_ct_OTOOL64" >&6; }
  6237. else
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6239. $as_echo "no" >&6; }
  6240. fi
  6241. if test "x$ac_ct_OTOOL64" = x; then
  6242. OTOOL64=":"
  6243. else
  6244. case $cross_compiling:$ac_tool_warned in
  6245. yes:)
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6247. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6248. ac_tool_warned=yes ;;
  6249. esac
  6250. OTOOL64=$ac_ct_OTOOL64
  6251. fi
  6252. else
  6253. OTOOL64="$ac_cv_prog_OTOOL64"
  6254. fi
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6256. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6257. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6258. $as_echo_n "(cached) " >&6
  6259. else
  6260. lt_cv_apple_cc_single_mod=no
  6261. if test -z "${LT_MULTI_MODULE}"; then
  6262. # By default we will add the -single_module flag. You can override
  6263. # by either setting the environment variable LT_MULTI_MODULE
  6264. # non-empty at configure time, or by adding -multi_module to the
  6265. # link flags.
  6266. rm -rf libconftest.dylib*
  6267. echo "int foo(void){return 1;}" > conftest.c
  6268. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6269. -dynamiclib -Wl,-single_module conftest.c" >&5
  6270. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6271. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6272. _lt_result=$?
  6273. # If there is a non-empty error log, and "single_module"
  6274. # appears in it, assume the flag caused a linker warning
  6275. if test -s conftest.err && $GREP single_module conftest.err; then
  6276. cat conftest.err >&5
  6277. # Otherwise, if the output was created with a 0 exit code from
  6278. # the compiler, it worked.
  6279. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6280. lt_cv_apple_cc_single_mod=yes
  6281. else
  6282. cat conftest.err >&5
  6283. fi
  6284. rm -rf libconftest.dylib*
  6285. rm -f conftest.*
  6286. fi
  6287. fi
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6289. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6291. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6292. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6293. $as_echo_n "(cached) " >&6
  6294. else
  6295. lt_cv_ld_exported_symbols_list=no
  6296. save_LDFLAGS=$LDFLAGS
  6297. echo "_main" > conftest.sym
  6298. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6300. /* end confdefs.h. */
  6301. int
  6302. main ()
  6303. {
  6304. ;
  6305. return 0;
  6306. }
  6307. _ACEOF
  6308. if ac_fn_c_try_link "$LINENO"; then :
  6309. lt_cv_ld_exported_symbols_list=yes
  6310. else
  6311. lt_cv_ld_exported_symbols_list=no
  6312. fi
  6313. rm -f core conftest.err conftest.$ac_objext \
  6314. conftest$ac_exeext conftest.$ac_ext
  6315. LDFLAGS="$save_LDFLAGS"
  6316. fi
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6318. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6320. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6321. if ${lt_cv_ld_force_load+:} false; then :
  6322. $as_echo_n "(cached) " >&6
  6323. else
  6324. lt_cv_ld_force_load=no
  6325. cat > conftest.c << _LT_EOF
  6326. int forced_loaded() { return 2;}
  6327. _LT_EOF
  6328. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6329. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6330. echo "$AR cru libconftest.a conftest.o" >&5
  6331. $AR cru libconftest.a conftest.o 2>&5
  6332. echo "$RANLIB libconftest.a" >&5
  6333. $RANLIB libconftest.a 2>&5
  6334. cat > conftest.c << _LT_EOF
  6335. int main() { return 0;}
  6336. _LT_EOF
  6337. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6338. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6339. _lt_result=$?
  6340. if test -s conftest.err && $GREP force_load conftest.err; then
  6341. cat conftest.err >&5
  6342. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6343. lt_cv_ld_force_load=yes
  6344. else
  6345. cat conftest.err >&5
  6346. fi
  6347. rm -f conftest.err libconftest.a conftest conftest.c
  6348. rm -rf conftest.dSYM
  6349. fi
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6351. $as_echo "$lt_cv_ld_force_load" >&6; }
  6352. case $host_os in
  6353. rhapsody* | darwin1.[012])
  6354. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6355. darwin1.*)
  6356. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6357. darwin*) # darwin 5.x on
  6358. # if running on 10.5 or later, the deployment target defaults
  6359. # to the OS version, if on x86, and 10.4, the deployment
  6360. # target defaults to 10.4. Don't you love it?
  6361. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6362. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6363. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6364. 10.[012]*)
  6365. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6366. 10.*)
  6367. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6368. esac
  6369. ;;
  6370. esac
  6371. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6372. _lt_dar_single_mod='$single_module'
  6373. fi
  6374. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6375. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6376. else
  6377. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6378. fi
  6379. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6380. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6381. else
  6382. _lt_dsymutil=
  6383. fi
  6384. ;;
  6385. esac
  6386. ac_ext=c
  6387. ac_cpp='$CPP $CPPFLAGS'
  6388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6392. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6393. # On Suns, sometimes $CPP names a directory.
  6394. if test -n "$CPP" && test -d "$CPP"; then
  6395. CPP=
  6396. fi
  6397. if test -z "$CPP"; then
  6398. if ${ac_cv_prog_CPP+:} false; then :
  6399. $as_echo_n "(cached) " >&6
  6400. else
  6401. # Double quotes because CPP needs to be expanded
  6402. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6403. do
  6404. ac_preproc_ok=false
  6405. for ac_c_preproc_warn_flag in '' yes
  6406. do
  6407. # Use a header file that comes with gcc, so configuring glibc
  6408. # with a fresh cross-compiler works.
  6409. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6410. # <limits.h> exists even on freestanding compilers.
  6411. # On the NeXT, cc -E runs the code through the compiler's parser,
  6412. # not just through cpp. "Syntax error" is here to catch this case.
  6413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6414. /* end confdefs.h. */
  6415. #ifdef __STDC__
  6416. # include <limits.h>
  6417. #else
  6418. # include <assert.h>
  6419. #endif
  6420. Syntax error
  6421. _ACEOF
  6422. if ac_fn_c_try_cpp "$LINENO"; then :
  6423. else
  6424. # Broken: fails on valid input.
  6425. continue
  6426. fi
  6427. rm -f conftest.err conftest.i conftest.$ac_ext
  6428. # OK, works on sane cases. Now check whether nonexistent headers
  6429. # can be detected and how.
  6430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6431. /* end confdefs.h. */
  6432. #include <ac_nonexistent.h>
  6433. _ACEOF
  6434. if ac_fn_c_try_cpp "$LINENO"; then :
  6435. # Broken: success on invalid input.
  6436. continue
  6437. else
  6438. # Passes both tests.
  6439. ac_preproc_ok=:
  6440. break
  6441. fi
  6442. rm -f conftest.err conftest.i conftest.$ac_ext
  6443. done
  6444. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6445. rm -f conftest.i conftest.err conftest.$ac_ext
  6446. if $ac_preproc_ok; then :
  6447. break
  6448. fi
  6449. done
  6450. ac_cv_prog_CPP=$CPP
  6451. fi
  6452. CPP=$ac_cv_prog_CPP
  6453. else
  6454. ac_cv_prog_CPP=$CPP
  6455. fi
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6457. $as_echo "$CPP" >&6; }
  6458. ac_preproc_ok=false
  6459. for ac_c_preproc_warn_flag in '' yes
  6460. do
  6461. # Use a header file that comes with gcc, so configuring glibc
  6462. # with a fresh cross-compiler works.
  6463. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6464. # <limits.h> exists even on freestanding compilers.
  6465. # On the NeXT, cc -E runs the code through the compiler's parser,
  6466. # not just through cpp. "Syntax error" is here to catch this case.
  6467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6468. /* end confdefs.h. */
  6469. #ifdef __STDC__
  6470. # include <limits.h>
  6471. #else
  6472. # include <assert.h>
  6473. #endif
  6474. Syntax error
  6475. _ACEOF
  6476. if ac_fn_c_try_cpp "$LINENO"; then :
  6477. else
  6478. # Broken: fails on valid input.
  6479. continue
  6480. fi
  6481. rm -f conftest.err conftest.i conftest.$ac_ext
  6482. # OK, works on sane cases. Now check whether nonexistent headers
  6483. # can be detected and how.
  6484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6485. /* end confdefs.h. */
  6486. #include <ac_nonexistent.h>
  6487. _ACEOF
  6488. if ac_fn_c_try_cpp "$LINENO"; then :
  6489. # Broken: success on invalid input.
  6490. continue
  6491. else
  6492. # Passes both tests.
  6493. ac_preproc_ok=:
  6494. break
  6495. fi
  6496. rm -f conftest.err conftest.i conftest.$ac_ext
  6497. done
  6498. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6499. rm -f conftest.i conftest.err conftest.$ac_ext
  6500. if $ac_preproc_ok; then :
  6501. else
  6502. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6503. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6504. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6505. See \`config.log' for more details" "$LINENO" 5; }
  6506. fi
  6507. ac_ext=c
  6508. ac_cpp='$CPP $CPPFLAGS'
  6509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6513. $as_echo_n "checking for ANSI C header files... " >&6; }
  6514. if ${ac_cv_header_stdc+:} false; then :
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6518. /* end confdefs.h. */
  6519. #include <stdlib.h>
  6520. #include <stdarg.h>
  6521. #include <string.h>
  6522. #include <float.h>
  6523. int
  6524. main ()
  6525. {
  6526. ;
  6527. return 0;
  6528. }
  6529. _ACEOF
  6530. if ac_fn_c_try_compile "$LINENO"; then :
  6531. ac_cv_header_stdc=yes
  6532. else
  6533. ac_cv_header_stdc=no
  6534. fi
  6535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6536. if test $ac_cv_header_stdc = yes; then
  6537. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6539. /* end confdefs.h. */
  6540. #include <string.h>
  6541. _ACEOF
  6542. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6543. $EGREP "memchr" >/dev/null 2>&1; then :
  6544. else
  6545. ac_cv_header_stdc=no
  6546. fi
  6547. rm -f conftest*
  6548. fi
  6549. if test $ac_cv_header_stdc = yes; then
  6550. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6552. /* end confdefs.h. */
  6553. #include <stdlib.h>
  6554. _ACEOF
  6555. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6556. $EGREP "free" >/dev/null 2>&1; then :
  6557. else
  6558. ac_cv_header_stdc=no
  6559. fi
  6560. rm -f conftest*
  6561. fi
  6562. if test $ac_cv_header_stdc = yes; then
  6563. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6564. if test "$cross_compiling" = yes; then :
  6565. :
  6566. else
  6567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6568. /* end confdefs.h. */
  6569. #include <ctype.h>
  6570. #include <stdlib.h>
  6571. #if ((' ' & 0x0FF) == 0x020)
  6572. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6573. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6574. #else
  6575. # define ISLOWER(c) \
  6576. (('a' <= (c) && (c) <= 'i') \
  6577. || ('j' <= (c) && (c) <= 'r') \
  6578. || ('s' <= (c) && (c) <= 'z'))
  6579. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6580. #endif
  6581. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6582. int
  6583. main ()
  6584. {
  6585. int i;
  6586. for (i = 0; i < 256; i++)
  6587. if (XOR (islower (i), ISLOWER (i))
  6588. || toupper (i) != TOUPPER (i))
  6589. return 2;
  6590. return 0;
  6591. }
  6592. _ACEOF
  6593. if ac_fn_c_try_run "$LINENO"; then :
  6594. else
  6595. ac_cv_header_stdc=no
  6596. fi
  6597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6598. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6599. fi
  6600. fi
  6601. fi
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6603. $as_echo "$ac_cv_header_stdc" >&6; }
  6604. if test $ac_cv_header_stdc = yes; then
  6605. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6606. fi
  6607. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6608. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6609. inttypes.h stdint.h unistd.h
  6610. do :
  6611. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6612. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6613. "
  6614. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6615. cat >>confdefs.h <<_ACEOF
  6616. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6617. _ACEOF
  6618. fi
  6619. done
  6620. for ac_header in dlfcn.h
  6621. do :
  6622. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6623. "
  6624. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6625. cat >>confdefs.h <<_ACEOF
  6626. #define HAVE_DLFCN_H 1
  6627. _ACEOF
  6628. fi
  6629. done
  6630. func_stripname_cnf ()
  6631. {
  6632. case ${2} in
  6633. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6634. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6635. esac
  6636. } # func_stripname_cnf
  6637. # Set options
  6638. enable_dlopen=no
  6639. # Check whether --enable-shared was given.
  6640. if test "${enable_shared+set}" = set; then :
  6641. enableval=$enable_shared; p=${PACKAGE-default}
  6642. case $enableval in
  6643. yes) enable_shared=yes ;;
  6644. no) enable_shared=no ;;
  6645. *)
  6646. enable_shared=no
  6647. # Look at the argument we got. We use all the common list separators.
  6648. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6649. for pkg in $enableval; do
  6650. IFS="$lt_save_ifs"
  6651. if test "X$pkg" = "X$p"; then
  6652. enable_shared=yes
  6653. fi
  6654. done
  6655. IFS="$lt_save_ifs"
  6656. ;;
  6657. esac
  6658. else
  6659. enable_shared=yes
  6660. fi
  6661. # Check whether --enable-static was given.
  6662. if test "${enable_static+set}" = set; then :
  6663. enableval=$enable_static; p=${PACKAGE-default}
  6664. case $enableval in
  6665. yes) enable_static=yes ;;
  6666. no) enable_static=no ;;
  6667. *)
  6668. enable_static=no
  6669. # Look at the argument we got. We use all the common list separators.
  6670. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6671. for pkg in $enableval; do
  6672. IFS="$lt_save_ifs"
  6673. if test "X$pkg" = "X$p"; then
  6674. enable_static=yes
  6675. fi
  6676. done
  6677. IFS="$lt_save_ifs"
  6678. ;;
  6679. esac
  6680. else
  6681. enable_static=yes
  6682. fi
  6683. # Check whether --with-pic was given.
  6684. if test "${with_pic+set}" = set; then :
  6685. withval=$with_pic; lt_p=${PACKAGE-default}
  6686. case $withval in
  6687. yes|no) pic_mode=$withval ;;
  6688. *)
  6689. pic_mode=default
  6690. # Look at the argument we got. We use all the common list separators.
  6691. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6692. for lt_pkg in $withval; do
  6693. IFS="$lt_save_ifs"
  6694. if test "X$lt_pkg" = "X$lt_p"; then
  6695. pic_mode=yes
  6696. fi
  6697. done
  6698. IFS="$lt_save_ifs"
  6699. ;;
  6700. esac
  6701. else
  6702. pic_mode=default
  6703. fi
  6704. test -z "$pic_mode" && pic_mode=default
  6705. # Check whether --enable-fast-install was given.
  6706. if test "${enable_fast_install+set}" = set; then :
  6707. enableval=$enable_fast_install; p=${PACKAGE-default}
  6708. case $enableval in
  6709. yes) enable_fast_install=yes ;;
  6710. no) enable_fast_install=no ;;
  6711. *)
  6712. enable_fast_install=no
  6713. # Look at the argument we got. We use all the common list separators.
  6714. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6715. for pkg in $enableval; do
  6716. IFS="$lt_save_ifs"
  6717. if test "X$pkg" = "X$p"; then
  6718. enable_fast_install=yes
  6719. fi
  6720. done
  6721. IFS="$lt_save_ifs"
  6722. ;;
  6723. esac
  6724. else
  6725. enable_fast_install=yes
  6726. fi
  6727. # This can be used to rebuild libtool when needed
  6728. LIBTOOL_DEPS="$ltmain"
  6729. # Always use our own libtool.
  6730. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6731. test -z "$LN_S" && LN_S="ln -s"
  6732. if test -n "${ZSH_VERSION+set}" ; then
  6733. setopt NO_GLOB_SUBST
  6734. fi
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6736. $as_echo_n "checking for objdir... " >&6; }
  6737. if ${lt_cv_objdir+:} false; then :
  6738. $as_echo_n "(cached) " >&6
  6739. else
  6740. rm -f .libs 2>/dev/null
  6741. mkdir .libs 2>/dev/null
  6742. if test -d .libs; then
  6743. lt_cv_objdir=.libs
  6744. else
  6745. # MS-DOS does not allow filenames that begin with a dot.
  6746. lt_cv_objdir=_libs
  6747. fi
  6748. rmdir .libs 2>/dev/null
  6749. fi
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6751. $as_echo "$lt_cv_objdir" >&6; }
  6752. objdir=$lt_cv_objdir
  6753. cat >>confdefs.h <<_ACEOF
  6754. #define LT_OBJDIR "$lt_cv_objdir/"
  6755. _ACEOF
  6756. case $host_os in
  6757. aix3*)
  6758. # AIX sometimes has problems with the GCC collect2 program. For some
  6759. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6760. # vanish in a puff of smoke.
  6761. if test "X${COLLECT_NAMES+set}" != Xset; then
  6762. COLLECT_NAMES=
  6763. export COLLECT_NAMES
  6764. fi
  6765. ;;
  6766. esac
  6767. # Global variables:
  6768. ofile=libtool
  6769. can_build_shared=yes
  6770. # All known linkers require a `.a' archive for static linking (except MSVC,
  6771. # which needs '.lib').
  6772. libext=a
  6773. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6774. old_CC="$CC"
  6775. old_CFLAGS="$CFLAGS"
  6776. # Set sane defaults for various variables
  6777. test -z "$CC" && CC=cc
  6778. test -z "$LTCC" && LTCC=$CC
  6779. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6780. test -z "$LD" && LD=ld
  6781. test -z "$ac_objext" && ac_objext=o
  6782. for cc_temp in $compiler""; do
  6783. case $cc_temp in
  6784. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6785. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6786. \-*) ;;
  6787. *) break;;
  6788. esac
  6789. done
  6790. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6791. # Only perform the check for file, if the check method requires it
  6792. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6793. case $deplibs_check_method in
  6794. file_magic*)
  6795. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6797. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6798. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6799. $as_echo_n "(cached) " >&6
  6800. else
  6801. case $MAGIC_CMD in
  6802. [\\/*] | ?:[\\/]*)
  6803. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6804. ;;
  6805. *)
  6806. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6807. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6808. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6809. for ac_dir in $ac_dummy; do
  6810. IFS="$lt_save_ifs"
  6811. test -z "$ac_dir" && ac_dir=.
  6812. if test -f $ac_dir/${ac_tool_prefix}file; then
  6813. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6814. if test -n "$file_magic_test_file"; then
  6815. case $deplibs_check_method in
  6816. "file_magic "*)
  6817. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6818. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6819. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6820. $EGREP "$file_magic_regex" > /dev/null; then
  6821. :
  6822. else
  6823. cat <<_LT_EOF 1>&2
  6824. *** Warning: the command libtool uses to detect shared libraries,
  6825. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6826. *** The result is that libtool may fail to recognize shared libraries
  6827. *** as such. This will affect the creation of libtool libraries that
  6828. *** depend on shared libraries, but programs linked with such libtool
  6829. *** libraries will work regardless of this problem. Nevertheless, you
  6830. *** may want to report the problem to your system manager and/or to
  6831. *** bug-libtool@gnu.org
  6832. _LT_EOF
  6833. fi ;;
  6834. esac
  6835. fi
  6836. break
  6837. fi
  6838. done
  6839. IFS="$lt_save_ifs"
  6840. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6841. ;;
  6842. esac
  6843. fi
  6844. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6845. if test -n "$MAGIC_CMD"; then
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6847. $as_echo "$MAGIC_CMD" >&6; }
  6848. else
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6850. $as_echo "no" >&6; }
  6851. fi
  6852. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6853. if test -n "$ac_tool_prefix"; then
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6855. $as_echo_n "checking for file... " >&6; }
  6856. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6857. $as_echo_n "(cached) " >&6
  6858. else
  6859. case $MAGIC_CMD in
  6860. [\\/*] | ?:[\\/]*)
  6861. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6862. ;;
  6863. *)
  6864. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6865. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6866. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6867. for ac_dir in $ac_dummy; do
  6868. IFS="$lt_save_ifs"
  6869. test -z "$ac_dir" && ac_dir=.
  6870. if test -f $ac_dir/file; then
  6871. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6872. if test -n "$file_magic_test_file"; then
  6873. case $deplibs_check_method in
  6874. "file_magic "*)
  6875. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6876. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6877. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6878. $EGREP "$file_magic_regex" > /dev/null; then
  6879. :
  6880. else
  6881. cat <<_LT_EOF 1>&2
  6882. *** Warning: the command libtool uses to detect shared libraries,
  6883. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6884. *** The result is that libtool may fail to recognize shared libraries
  6885. *** as such. This will affect the creation of libtool libraries that
  6886. *** depend on shared libraries, but programs linked with such libtool
  6887. *** libraries will work regardless of this problem. Nevertheless, you
  6888. *** may want to report the problem to your system manager and/or to
  6889. *** bug-libtool@gnu.org
  6890. _LT_EOF
  6891. fi ;;
  6892. esac
  6893. fi
  6894. break
  6895. fi
  6896. done
  6897. IFS="$lt_save_ifs"
  6898. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6899. ;;
  6900. esac
  6901. fi
  6902. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6903. if test -n "$MAGIC_CMD"; then
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6905. $as_echo "$MAGIC_CMD" >&6; }
  6906. else
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6908. $as_echo "no" >&6; }
  6909. fi
  6910. else
  6911. MAGIC_CMD=:
  6912. fi
  6913. fi
  6914. fi
  6915. ;;
  6916. esac
  6917. # Use C for the default configuration in the libtool script
  6918. lt_save_CC="$CC"
  6919. ac_ext=c
  6920. ac_cpp='$CPP $CPPFLAGS'
  6921. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6922. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6923. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6924. # Source file extension for C test sources.
  6925. ac_ext=c
  6926. # Object file extension for compiled C test sources.
  6927. objext=o
  6928. objext=$objext
  6929. # Code to be used in simple compile tests
  6930. lt_simple_compile_test_code="int some_variable = 0;"
  6931. # Code to be used in simple link tests
  6932. lt_simple_link_test_code='int main(){return(0);}'
  6933. # If no C compiler was specified, use CC.
  6934. LTCC=${LTCC-"$CC"}
  6935. # If no C compiler flags were specified, use CFLAGS.
  6936. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6937. # Allow CC to be a program name with arguments.
  6938. compiler=$CC
  6939. # Save the default compiler, since it gets overwritten when the other
  6940. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6941. compiler_DEFAULT=$CC
  6942. # save warnings/boilerplate of simple test code
  6943. ac_outfile=conftest.$ac_objext
  6944. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6945. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6946. _lt_compiler_boilerplate=`cat conftest.err`
  6947. $RM conftest*
  6948. ac_outfile=conftest.$ac_objext
  6949. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6950. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6951. _lt_linker_boilerplate=`cat conftest.err`
  6952. $RM -r conftest*
  6953. if test -n "$compiler"; then
  6954. lt_prog_compiler_no_builtin_flag=
  6955. if test "$GCC" = yes; then
  6956. case $cc_basename in
  6957. nvcc*)
  6958. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6959. *)
  6960. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6961. esac
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6963. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6964. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6965. $as_echo_n "(cached) " >&6
  6966. else
  6967. lt_cv_prog_compiler_rtti_exceptions=no
  6968. ac_outfile=conftest.$ac_objext
  6969. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6970. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6971. # Insert the option either (1) after the last *FLAGS variable, or
  6972. # (2) before a word containing "conftest.", or (3) at the end.
  6973. # Note that $ac_compile itself does not contain backslashes and begins
  6974. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6975. # The option is referenced via a variable to avoid confusing sed.
  6976. lt_compile=`echo "$ac_compile" | $SED \
  6977. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6978. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6979. -e 's:$: $lt_compiler_flag:'`
  6980. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6981. (eval "$lt_compile" 2>conftest.err)
  6982. ac_status=$?
  6983. cat conftest.err >&5
  6984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6985. if (exit $ac_status) && test -s "$ac_outfile"; then
  6986. # The compiler can only warn and ignore the option if not recognized
  6987. # So say no if there are warnings other than the usual output.
  6988. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6989. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6990. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6991. lt_cv_prog_compiler_rtti_exceptions=yes
  6992. fi
  6993. fi
  6994. $RM conftest*
  6995. fi
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6997. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6998. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6999. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7000. else
  7001. :
  7002. fi
  7003. fi
  7004. lt_prog_compiler_wl=
  7005. lt_prog_compiler_pic=
  7006. lt_prog_compiler_static=
  7007. if test "$GCC" = yes; then
  7008. lt_prog_compiler_wl='-Wl,'
  7009. lt_prog_compiler_static='-static'
  7010. case $host_os in
  7011. aix*)
  7012. # All AIX code is PIC.
  7013. if test "$host_cpu" = ia64; then
  7014. # AIX 5 now supports IA64 processor
  7015. lt_prog_compiler_static='-Bstatic'
  7016. fi
  7017. ;;
  7018. amigaos*)
  7019. case $host_cpu in
  7020. powerpc)
  7021. # see comment about AmigaOS4 .so support
  7022. lt_prog_compiler_pic='-fPIC'
  7023. ;;
  7024. m68k)
  7025. # FIXME: we need at least 68020 code to build shared libraries, but
  7026. # adding the `-m68020' flag to GCC prevents building anything better,
  7027. # like `-m68040'.
  7028. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7029. ;;
  7030. esac
  7031. ;;
  7032. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7033. # PIC is the default for these OSes.
  7034. ;;
  7035. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7036. # This hack is so that the source file can tell whether it is being
  7037. # built for inclusion in a dll (and should export symbols for example).
  7038. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7039. # (--disable-auto-import) libraries
  7040. lt_prog_compiler_pic='-DDLL_EXPORT'
  7041. ;;
  7042. darwin* | rhapsody*)
  7043. # PIC is the default on this platform
  7044. # Common symbols not allowed in MH_DYLIB files
  7045. lt_prog_compiler_pic='-fno-common'
  7046. ;;
  7047. haiku*)
  7048. # PIC is the default for Haiku.
  7049. # The "-static" flag exists, but is broken.
  7050. lt_prog_compiler_static=
  7051. ;;
  7052. hpux*)
  7053. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7054. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7055. # sets the default TLS model and affects inlining.
  7056. case $host_cpu in
  7057. hppa*64*)
  7058. # +Z the default
  7059. ;;
  7060. *)
  7061. lt_prog_compiler_pic='-fPIC'
  7062. ;;
  7063. esac
  7064. ;;
  7065. interix[3-9]*)
  7066. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7067. # Instead, we relocate shared libraries at runtime.
  7068. ;;
  7069. msdosdjgpp*)
  7070. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7071. # on systems that don't support them.
  7072. lt_prog_compiler_can_build_shared=no
  7073. enable_shared=no
  7074. ;;
  7075. *nto* | *qnx*)
  7076. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7077. # it will coredump.
  7078. lt_prog_compiler_pic='-fPIC -shared'
  7079. ;;
  7080. sysv4*MP*)
  7081. if test -d /usr/nec; then
  7082. lt_prog_compiler_pic=-Kconform_pic
  7083. fi
  7084. ;;
  7085. *)
  7086. lt_prog_compiler_pic='-fPIC'
  7087. ;;
  7088. esac
  7089. case $cc_basename in
  7090. nvcc*) # Cuda Compiler Driver 2.2
  7091. lt_prog_compiler_wl='-Xlinker '
  7092. if test -n "$lt_prog_compiler_pic"; then
  7093. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7094. fi
  7095. ;;
  7096. esac
  7097. else
  7098. # PORTME Check for flag to pass linker flags through the system compiler.
  7099. case $host_os in
  7100. aix*)
  7101. lt_prog_compiler_wl='-Wl,'
  7102. if test "$host_cpu" = ia64; then
  7103. # AIX 5 now supports IA64 processor
  7104. lt_prog_compiler_static='-Bstatic'
  7105. else
  7106. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7107. fi
  7108. ;;
  7109. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7110. # This hack is so that the source file can tell whether it is being
  7111. # built for inclusion in a dll (and should export symbols for example).
  7112. lt_prog_compiler_pic='-DDLL_EXPORT'
  7113. ;;
  7114. hpux9* | hpux10* | hpux11*)
  7115. lt_prog_compiler_wl='-Wl,'
  7116. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7117. # not for PA HP-UX.
  7118. case $host_cpu in
  7119. hppa*64*|ia64*)
  7120. # +Z the default
  7121. ;;
  7122. *)
  7123. lt_prog_compiler_pic='+Z'
  7124. ;;
  7125. esac
  7126. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7127. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7128. ;;
  7129. irix5* | irix6* | nonstopux*)
  7130. lt_prog_compiler_wl='-Wl,'
  7131. # PIC (with -KPIC) is the default.
  7132. lt_prog_compiler_static='-non_shared'
  7133. ;;
  7134. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7135. case $cc_basename in
  7136. # old Intel for x86_64 which still supported -KPIC.
  7137. ecc*)
  7138. lt_prog_compiler_wl='-Wl,'
  7139. lt_prog_compiler_pic='-KPIC'
  7140. lt_prog_compiler_static='-static'
  7141. ;;
  7142. # icc used to be incompatible with GCC.
  7143. # ICC 10 doesn't accept -KPIC any more.
  7144. icc* | ifort*)
  7145. lt_prog_compiler_wl='-Wl,'
  7146. lt_prog_compiler_pic='-fPIC'
  7147. lt_prog_compiler_static='-static'
  7148. ;;
  7149. # Lahey Fortran 8.1.
  7150. lf95*)
  7151. lt_prog_compiler_wl='-Wl,'
  7152. lt_prog_compiler_pic='--shared'
  7153. lt_prog_compiler_static='--static'
  7154. ;;
  7155. nagfor*)
  7156. # NAG Fortran compiler
  7157. lt_prog_compiler_wl='-Wl,-Wl,,'
  7158. lt_prog_compiler_pic='-PIC'
  7159. lt_prog_compiler_static='-Bstatic'
  7160. ;;
  7161. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7162. # Portland Group compilers (*not* the Pentium gcc compiler,
  7163. # which looks to be a dead project)
  7164. lt_prog_compiler_wl='-Wl,'
  7165. lt_prog_compiler_pic='-fpic'
  7166. lt_prog_compiler_static='-Bstatic'
  7167. ;;
  7168. ccc*)
  7169. lt_prog_compiler_wl='-Wl,'
  7170. # All Alpha code is PIC.
  7171. lt_prog_compiler_static='-non_shared'
  7172. ;;
  7173. xl* | bgxl* | bgf* | mpixl*)
  7174. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7175. lt_prog_compiler_wl='-Wl,'
  7176. lt_prog_compiler_pic='-qpic'
  7177. lt_prog_compiler_static='-qstaticlink'
  7178. ;;
  7179. *)
  7180. case `$CC -V 2>&1 | sed 5q` in
  7181. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7182. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7183. lt_prog_compiler_pic='-KPIC'
  7184. lt_prog_compiler_static='-Bstatic'
  7185. lt_prog_compiler_wl=''
  7186. ;;
  7187. *Sun\ F* | *Sun*Fortran*)
  7188. lt_prog_compiler_pic='-KPIC'
  7189. lt_prog_compiler_static='-Bstatic'
  7190. lt_prog_compiler_wl='-Qoption ld '
  7191. ;;
  7192. *Sun\ C*)
  7193. # Sun C 5.9
  7194. lt_prog_compiler_pic='-KPIC'
  7195. lt_prog_compiler_static='-Bstatic'
  7196. lt_prog_compiler_wl='-Wl,'
  7197. ;;
  7198. *Intel*\ [CF]*Compiler*)
  7199. lt_prog_compiler_wl='-Wl,'
  7200. lt_prog_compiler_pic='-fPIC'
  7201. lt_prog_compiler_static='-static'
  7202. ;;
  7203. *Portland\ Group*)
  7204. lt_prog_compiler_wl='-Wl,'
  7205. lt_prog_compiler_pic='-fpic'
  7206. lt_prog_compiler_static='-Bstatic'
  7207. ;;
  7208. esac
  7209. ;;
  7210. esac
  7211. ;;
  7212. newsos6)
  7213. lt_prog_compiler_pic='-KPIC'
  7214. lt_prog_compiler_static='-Bstatic'
  7215. ;;
  7216. *nto* | *qnx*)
  7217. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7218. # it will coredump.
  7219. lt_prog_compiler_pic='-fPIC -shared'
  7220. ;;
  7221. osf3* | osf4* | osf5*)
  7222. lt_prog_compiler_wl='-Wl,'
  7223. # All OSF/1 code is PIC.
  7224. lt_prog_compiler_static='-non_shared'
  7225. ;;
  7226. rdos*)
  7227. lt_prog_compiler_static='-non_shared'
  7228. ;;
  7229. solaris*)
  7230. lt_prog_compiler_pic='-KPIC'
  7231. lt_prog_compiler_static='-Bstatic'
  7232. case $cc_basename in
  7233. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7234. lt_prog_compiler_wl='-Qoption ld ';;
  7235. *)
  7236. lt_prog_compiler_wl='-Wl,';;
  7237. esac
  7238. ;;
  7239. sunos4*)
  7240. lt_prog_compiler_wl='-Qoption ld '
  7241. lt_prog_compiler_pic='-PIC'
  7242. lt_prog_compiler_static='-Bstatic'
  7243. ;;
  7244. sysv4 | sysv4.2uw2* | sysv4.3*)
  7245. lt_prog_compiler_wl='-Wl,'
  7246. lt_prog_compiler_pic='-KPIC'
  7247. lt_prog_compiler_static='-Bstatic'
  7248. ;;
  7249. sysv4*MP*)
  7250. if test -d /usr/nec ;then
  7251. lt_prog_compiler_pic='-Kconform_pic'
  7252. lt_prog_compiler_static='-Bstatic'
  7253. fi
  7254. ;;
  7255. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7256. lt_prog_compiler_wl='-Wl,'
  7257. lt_prog_compiler_pic='-KPIC'
  7258. lt_prog_compiler_static='-Bstatic'
  7259. ;;
  7260. unicos*)
  7261. lt_prog_compiler_wl='-Wl,'
  7262. lt_prog_compiler_can_build_shared=no
  7263. ;;
  7264. uts4*)
  7265. lt_prog_compiler_pic='-pic'
  7266. lt_prog_compiler_static='-Bstatic'
  7267. ;;
  7268. *)
  7269. lt_prog_compiler_can_build_shared=no
  7270. ;;
  7271. esac
  7272. fi
  7273. case $host_os in
  7274. # For platforms which do not support PIC, -DPIC is meaningless:
  7275. *djgpp*)
  7276. lt_prog_compiler_pic=
  7277. ;;
  7278. *)
  7279. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7280. ;;
  7281. esac
  7282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7283. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7284. if ${lt_cv_prog_compiler_pic+:} false; then :
  7285. $as_echo_n "(cached) " >&6
  7286. else
  7287. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7288. fi
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7290. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7291. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7292. #
  7293. # Check to make sure the PIC flag actually works.
  7294. #
  7295. if test -n "$lt_prog_compiler_pic"; then
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7297. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7298. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7299. $as_echo_n "(cached) " >&6
  7300. else
  7301. lt_cv_prog_compiler_pic_works=no
  7302. ac_outfile=conftest.$ac_objext
  7303. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7304. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7305. # Insert the option either (1) after the last *FLAGS variable, or
  7306. # (2) before a word containing "conftest.", or (3) at the end.
  7307. # Note that $ac_compile itself does not contain backslashes and begins
  7308. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7309. # The option is referenced via a variable to avoid confusing sed.
  7310. lt_compile=`echo "$ac_compile" | $SED \
  7311. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7312. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7313. -e 's:$: $lt_compiler_flag:'`
  7314. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7315. (eval "$lt_compile" 2>conftest.err)
  7316. ac_status=$?
  7317. cat conftest.err >&5
  7318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7319. if (exit $ac_status) && test -s "$ac_outfile"; then
  7320. # The compiler can only warn and ignore the option if not recognized
  7321. # So say no if there are warnings other than the usual output.
  7322. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7323. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7324. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7325. lt_cv_prog_compiler_pic_works=yes
  7326. fi
  7327. fi
  7328. $RM conftest*
  7329. fi
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7331. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7332. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7333. case $lt_prog_compiler_pic in
  7334. "" | " "*) ;;
  7335. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7336. esac
  7337. else
  7338. lt_prog_compiler_pic=
  7339. lt_prog_compiler_can_build_shared=no
  7340. fi
  7341. fi
  7342. #
  7343. # Check to make sure the static flag actually works.
  7344. #
  7345. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7347. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7348. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7349. $as_echo_n "(cached) " >&6
  7350. else
  7351. lt_cv_prog_compiler_static_works=no
  7352. save_LDFLAGS="$LDFLAGS"
  7353. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7354. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7355. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7356. # The linker can only warn and ignore the option if not recognized
  7357. # So say no if there are warnings
  7358. if test -s conftest.err; then
  7359. # Append any errors to the config.log.
  7360. cat conftest.err 1>&5
  7361. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7362. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7363. if diff conftest.exp conftest.er2 >/dev/null; then
  7364. lt_cv_prog_compiler_static_works=yes
  7365. fi
  7366. else
  7367. lt_cv_prog_compiler_static_works=yes
  7368. fi
  7369. fi
  7370. $RM -r conftest*
  7371. LDFLAGS="$save_LDFLAGS"
  7372. fi
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7374. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7375. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7376. :
  7377. else
  7378. lt_prog_compiler_static=
  7379. fi
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7381. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7382. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7383. $as_echo_n "(cached) " >&6
  7384. else
  7385. lt_cv_prog_compiler_c_o=no
  7386. $RM -r conftest 2>/dev/null
  7387. mkdir conftest
  7388. cd conftest
  7389. mkdir out
  7390. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7391. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7392. # Insert the option either (1) after the last *FLAGS variable, or
  7393. # (2) before a word containing "conftest.", or (3) at the end.
  7394. # Note that $ac_compile itself does not contain backslashes and begins
  7395. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7396. lt_compile=`echo "$ac_compile" | $SED \
  7397. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7398. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7399. -e 's:$: $lt_compiler_flag:'`
  7400. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7401. (eval "$lt_compile" 2>out/conftest.err)
  7402. ac_status=$?
  7403. cat out/conftest.err >&5
  7404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7405. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7406. then
  7407. # The compiler can only warn and ignore the option if not recognized
  7408. # So say no if there are warnings
  7409. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7410. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7411. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7412. lt_cv_prog_compiler_c_o=yes
  7413. fi
  7414. fi
  7415. chmod u+w . 2>&5
  7416. $RM conftest*
  7417. # SGI C++ compiler will create directory out/ii_files/ for
  7418. # template instantiation
  7419. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7420. $RM out/* && rmdir out
  7421. cd ..
  7422. $RM -r conftest
  7423. $RM conftest*
  7424. fi
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7426. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7428. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7429. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7430. $as_echo_n "(cached) " >&6
  7431. else
  7432. lt_cv_prog_compiler_c_o=no
  7433. $RM -r conftest 2>/dev/null
  7434. mkdir conftest
  7435. cd conftest
  7436. mkdir out
  7437. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7438. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7439. # Insert the option either (1) after the last *FLAGS variable, or
  7440. # (2) before a word containing "conftest.", or (3) at the end.
  7441. # Note that $ac_compile itself does not contain backslashes and begins
  7442. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7443. lt_compile=`echo "$ac_compile" | $SED \
  7444. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7445. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7446. -e 's:$: $lt_compiler_flag:'`
  7447. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7448. (eval "$lt_compile" 2>out/conftest.err)
  7449. ac_status=$?
  7450. cat out/conftest.err >&5
  7451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7452. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7453. then
  7454. # The compiler can only warn and ignore the option if not recognized
  7455. # So say no if there are warnings
  7456. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7457. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7458. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7459. lt_cv_prog_compiler_c_o=yes
  7460. fi
  7461. fi
  7462. chmod u+w . 2>&5
  7463. $RM conftest*
  7464. # SGI C++ compiler will create directory out/ii_files/ for
  7465. # template instantiation
  7466. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7467. $RM out/* && rmdir out
  7468. cd ..
  7469. $RM -r conftest
  7470. $RM conftest*
  7471. fi
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7473. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7474. hard_links="nottested"
  7475. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7476. # do not overwrite the value of need_locks provided by the user
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7478. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7479. hard_links=yes
  7480. $RM conftest*
  7481. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7482. touch conftest.a
  7483. ln conftest.a conftest.b 2>&5 || hard_links=no
  7484. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7486. $as_echo "$hard_links" >&6; }
  7487. if test "$hard_links" = no; then
  7488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7489. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7490. need_locks=warn
  7491. fi
  7492. else
  7493. need_locks=no
  7494. fi
  7495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7496. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7497. runpath_var=
  7498. allow_undefined_flag=
  7499. always_export_symbols=no
  7500. archive_cmds=
  7501. archive_expsym_cmds=
  7502. compiler_needs_object=no
  7503. enable_shared_with_static_runtimes=no
  7504. export_dynamic_flag_spec=
  7505. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7506. hardcode_automatic=no
  7507. hardcode_direct=no
  7508. hardcode_direct_absolute=no
  7509. hardcode_libdir_flag_spec=
  7510. hardcode_libdir_separator=
  7511. hardcode_minus_L=no
  7512. hardcode_shlibpath_var=unsupported
  7513. inherit_rpath=no
  7514. link_all_deplibs=unknown
  7515. module_cmds=
  7516. module_expsym_cmds=
  7517. old_archive_from_new_cmds=
  7518. old_archive_from_expsyms_cmds=
  7519. thread_safe_flag_spec=
  7520. whole_archive_flag_spec=
  7521. # include_expsyms should be a list of space-separated symbols to be *always*
  7522. # included in the symbol list
  7523. include_expsyms=
  7524. # exclude_expsyms can be an extended regexp of symbols to exclude
  7525. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7526. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7527. # as well as any symbol that contains `d'.
  7528. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7529. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7530. # platforms (ab)use it in PIC code, but their linkers get confused if
  7531. # the symbol is explicitly referenced. Since portable code cannot
  7532. # rely on this symbol name, it's probably fine to never include it in
  7533. # preloaded symbol tables.
  7534. # Exclude shared library initialization/finalization symbols.
  7535. extract_expsyms_cmds=
  7536. case $host_os in
  7537. cygwin* | mingw* | pw32* | cegcc*)
  7538. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7539. # When not using gcc, we currently assume that we are using
  7540. # Microsoft Visual C++.
  7541. if test "$GCC" != yes; then
  7542. with_gnu_ld=no
  7543. fi
  7544. ;;
  7545. interix*)
  7546. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7547. with_gnu_ld=yes
  7548. ;;
  7549. openbsd*)
  7550. with_gnu_ld=no
  7551. ;;
  7552. esac
  7553. ld_shlibs=yes
  7554. # On some targets, GNU ld is compatible enough with the native linker
  7555. # that we're better off using the native interface for both.
  7556. lt_use_gnu_ld_interface=no
  7557. if test "$with_gnu_ld" = yes; then
  7558. case $host_os in
  7559. aix*)
  7560. # The AIX port of GNU ld has always aspired to compatibility
  7561. # with the native linker. However, as the warning in the GNU ld
  7562. # block says, versions before 2.19.5* couldn't really create working
  7563. # shared libraries, regardless of the interface used.
  7564. case `$LD -v 2>&1` in
  7565. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7566. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7567. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7568. *)
  7569. lt_use_gnu_ld_interface=yes
  7570. ;;
  7571. esac
  7572. ;;
  7573. *)
  7574. lt_use_gnu_ld_interface=yes
  7575. ;;
  7576. esac
  7577. fi
  7578. if test "$lt_use_gnu_ld_interface" = yes; then
  7579. # If archive_cmds runs LD, not CC, wlarc should be empty
  7580. wlarc='${wl}'
  7581. # Set some defaults for GNU ld with shared library support. These
  7582. # are reset later if shared libraries are not supported. Putting them
  7583. # here allows them to be overridden if necessary.
  7584. runpath_var=LD_RUN_PATH
  7585. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7586. export_dynamic_flag_spec='${wl}--export-dynamic'
  7587. # ancient GNU ld didn't support --whole-archive et. al.
  7588. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7589. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7590. else
  7591. whole_archive_flag_spec=
  7592. fi
  7593. supports_anon_versioning=no
  7594. case `$LD -v 2>&1` in
  7595. *GNU\ gold*) supports_anon_versioning=yes ;;
  7596. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7597. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7598. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7599. *\ 2.11.*) ;; # other 2.11 versions
  7600. *) supports_anon_versioning=yes ;;
  7601. esac
  7602. # See if GNU ld supports shared libraries.
  7603. case $host_os in
  7604. aix[3-9]*)
  7605. # On AIX/PPC, the GNU linker is very broken
  7606. if test "$host_cpu" != ia64; then
  7607. ld_shlibs=no
  7608. cat <<_LT_EOF 1>&2
  7609. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7610. *** to be unable to reliably create shared libraries on AIX.
  7611. *** Therefore, libtool is disabling shared libraries support. If you
  7612. *** really care for shared libraries, you may want to install binutils
  7613. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7614. *** You will then need to restart the configuration process.
  7615. _LT_EOF
  7616. fi
  7617. ;;
  7618. amigaos*)
  7619. case $host_cpu in
  7620. powerpc)
  7621. # see comment about AmigaOS4 .so support
  7622. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7623. archive_expsym_cmds=''
  7624. ;;
  7625. m68k)
  7626. 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)'
  7627. hardcode_libdir_flag_spec='-L$libdir'
  7628. hardcode_minus_L=yes
  7629. ;;
  7630. esac
  7631. ;;
  7632. beos*)
  7633. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7634. allow_undefined_flag=unsupported
  7635. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7636. # support --undefined. This deserves some investigation. FIXME
  7637. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7638. else
  7639. ld_shlibs=no
  7640. fi
  7641. ;;
  7642. cygwin* | mingw* | pw32* | cegcc*)
  7643. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7644. # as there is no search path for DLLs.
  7645. hardcode_libdir_flag_spec='-L$libdir'
  7646. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7647. allow_undefined_flag=unsupported
  7648. always_export_symbols=no
  7649. enable_shared_with_static_runtimes=yes
  7650. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7651. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7652. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7653. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7654. # If the export-symbols file already is a .def file (1st line
  7655. # is EXPORTS), use it as is; otherwise, prepend...
  7656. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7657. cp $export_symbols $output_objdir/$soname.def;
  7658. else
  7659. echo EXPORTS > $output_objdir/$soname.def;
  7660. cat $export_symbols >> $output_objdir/$soname.def;
  7661. fi~
  7662. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7663. else
  7664. ld_shlibs=no
  7665. fi
  7666. ;;
  7667. haiku*)
  7668. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7669. link_all_deplibs=yes
  7670. ;;
  7671. interix[3-9]*)
  7672. hardcode_direct=no
  7673. hardcode_shlibpath_var=no
  7674. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7675. export_dynamic_flag_spec='${wl}-E'
  7676. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7677. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7678. # default) and relocated if they conflict, which is a slow very memory
  7679. # consuming and fragmenting process. To avoid this, we pick a random,
  7680. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7681. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7682. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7683. 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'
  7684. ;;
  7685. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7686. tmp_diet=no
  7687. if test "$host_os" = linux-dietlibc; then
  7688. case $cc_basename in
  7689. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7690. esac
  7691. fi
  7692. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7693. && test "$tmp_diet" = no
  7694. then
  7695. tmp_addflag=' $pic_flag'
  7696. tmp_sharedflag='-shared'
  7697. case $cc_basename,$host_cpu in
  7698. pgcc*) # Portland Group C compiler
  7699. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7700. tmp_addflag=' $pic_flag'
  7701. ;;
  7702. pgf77* | pgf90* | pgf95* | pgfortran*)
  7703. # Portland Group f77 and f90 compilers
  7704. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7705. tmp_addflag=' $pic_flag -Mnomain' ;;
  7706. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7707. tmp_addflag=' -i_dynamic' ;;
  7708. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7709. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7710. ifc* | ifort*) # Intel Fortran compiler
  7711. tmp_addflag=' -nofor_main' ;;
  7712. lf95*) # Lahey Fortran 8.1
  7713. whole_archive_flag_spec=
  7714. tmp_sharedflag='--shared' ;;
  7715. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7716. tmp_sharedflag='-qmkshrobj'
  7717. tmp_addflag= ;;
  7718. nvcc*) # Cuda Compiler Driver 2.2
  7719. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7720. compiler_needs_object=yes
  7721. ;;
  7722. esac
  7723. case `$CC -V 2>&1 | sed 5q` in
  7724. *Sun\ C*) # Sun C 5.9
  7725. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7726. compiler_needs_object=yes
  7727. tmp_sharedflag='-G' ;;
  7728. *Sun\ F*) # Sun Fortran 8.3
  7729. tmp_sharedflag='-G' ;;
  7730. esac
  7731. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7732. if test "x$supports_anon_versioning" = xyes; then
  7733. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7734. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7735. echo "local: *; };" >> $output_objdir/$libname.ver~
  7736. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7737. fi
  7738. case $cc_basename in
  7739. xlf* | bgf* | bgxlf* | mpixlf*)
  7740. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7741. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7742. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7743. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7744. if test "x$supports_anon_versioning" = xyes; then
  7745. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7746. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7747. echo "local: *; };" >> $output_objdir/$libname.ver~
  7748. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7749. fi
  7750. ;;
  7751. esac
  7752. else
  7753. ld_shlibs=no
  7754. fi
  7755. ;;
  7756. netbsd*)
  7757. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7758. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7759. wlarc=
  7760. else
  7761. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7762. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7763. fi
  7764. ;;
  7765. solaris*)
  7766. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7767. ld_shlibs=no
  7768. cat <<_LT_EOF 1>&2
  7769. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7770. *** create shared libraries on Solaris systems. Therefore, libtool
  7771. *** is disabling shared libraries support. We urge you to upgrade GNU
  7772. *** binutils to release 2.9.1 or newer. Another option is to modify
  7773. *** your PATH or compiler configuration so that the native linker is
  7774. *** used, and then restart.
  7775. _LT_EOF
  7776. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7777. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7778. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7779. else
  7780. ld_shlibs=no
  7781. fi
  7782. ;;
  7783. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7784. case `$LD -v 2>&1` in
  7785. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7786. ld_shlibs=no
  7787. cat <<_LT_EOF 1>&2
  7788. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7789. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7790. *** is disabling shared libraries support. We urge you to upgrade GNU
  7791. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7792. *** your PATH or compiler configuration so that the native linker is
  7793. *** used, and then restart.
  7794. _LT_EOF
  7795. ;;
  7796. *)
  7797. # For security reasons, it is highly recommended that you always
  7798. # use absolute paths for naming shared libraries, and exclude the
  7799. # DT_RUNPATH tag from executables and libraries. But doing so
  7800. # requires that you compile everything twice, which is a pain.
  7801. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7802. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7803. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7804. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7805. else
  7806. ld_shlibs=no
  7807. fi
  7808. ;;
  7809. esac
  7810. ;;
  7811. sunos4*)
  7812. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7813. wlarc=
  7814. hardcode_direct=yes
  7815. hardcode_shlibpath_var=no
  7816. ;;
  7817. *)
  7818. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7819. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7820. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7821. else
  7822. ld_shlibs=no
  7823. fi
  7824. ;;
  7825. esac
  7826. if test "$ld_shlibs" = no; then
  7827. runpath_var=
  7828. hardcode_libdir_flag_spec=
  7829. export_dynamic_flag_spec=
  7830. whole_archive_flag_spec=
  7831. fi
  7832. else
  7833. # PORTME fill in a description of your system's linker (not GNU ld)
  7834. case $host_os in
  7835. aix3*)
  7836. allow_undefined_flag=unsupported
  7837. always_export_symbols=yes
  7838. 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'
  7839. # Note: this linker hardcodes the directories in LIBPATH if there
  7840. # are no directories specified by -L.
  7841. hardcode_minus_L=yes
  7842. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7843. # Neither direct hardcoding nor static linking is supported with a
  7844. # broken collect2.
  7845. hardcode_direct=unsupported
  7846. fi
  7847. ;;
  7848. aix[4-9]*)
  7849. if test "$host_cpu" = ia64; then
  7850. # On IA64, the linker does run time linking by default, so we don't
  7851. # have to do anything special.
  7852. aix_use_runtimelinking=no
  7853. exp_sym_flag='-Bexport'
  7854. no_entry_flag=""
  7855. else
  7856. # If we're using GNU nm, then we don't want the "-C" option.
  7857. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7858. # Also, AIX nm treats weak defined symbols like other global
  7859. # defined symbols, whereas GNU nm marks them as "W".
  7860. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7861. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7862. else
  7863. 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'
  7864. fi
  7865. aix_use_runtimelinking=no
  7866. # Test if we are trying to use run time linking or normal
  7867. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7868. # need to do runtime linking.
  7869. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7870. for ld_flag in $LDFLAGS; do
  7871. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7872. aix_use_runtimelinking=yes
  7873. break
  7874. fi
  7875. done
  7876. ;;
  7877. esac
  7878. exp_sym_flag='-bexport'
  7879. no_entry_flag='-bnoentry'
  7880. fi
  7881. # When large executables or shared objects are built, AIX ld can
  7882. # have problems creating the table of contents. If linking a library
  7883. # or program results in "error TOC overflow" add -mminimal-toc to
  7884. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7885. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7886. archive_cmds=''
  7887. hardcode_direct=yes
  7888. hardcode_direct_absolute=yes
  7889. hardcode_libdir_separator=':'
  7890. link_all_deplibs=yes
  7891. file_list_spec='${wl}-f,'
  7892. if test "$GCC" = yes; then
  7893. case $host_os in aix4.[012]|aix4.[012].*)
  7894. # We only want to do this on AIX 4.2 and lower, the check
  7895. # below for broken collect2 doesn't work under 4.3+
  7896. collect2name=`${CC} -print-prog-name=collect2`
  7897. if test -f "$collect2name" &&
  7898. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7899. then
  7900. # We have reworked collect2
  7901. :
  7902. else
  7903. # We have old collect2
  7904. hardcode_direct=unsupported
  7905. # It fails to find uninstalled libraries when the uninstalled
  7906. # path is not listed in the libpath. Setting hardcode_minus_L
  7907. # to unsupported forces relinking
  7908. hardcode_minus_L=yes
  7909. hardcode_libdir_flag_spec='-L$libdir'
  7910. hardcode_libdir_separator=
  7911. fi
  7912. ;;
  7913. esac
  7914. shared_flag='-shared'
  7915. if test "$aix_use_runtimelinking" = yes; then
  7916. shared_flag="$shared_flag "'${wl}-G'
  7917. fi
  7918. else
  7919. # not using gcc
  7920. if test "$host_cpu" = ia64; then
  7921. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7922. # chokes on -Wl,-G. The following line is correct:
  7923. shared_flag='-G'
  7924. else
  7925. if test "$aix_use_runtimelinking" = yes; then
  7926. shared_flag='${wl}-G'
  7927. else
  7928. shared_flag='${wl}-bM:SRE'
  7929. fi
  7930. fi
  7931. fi
  7932. export_dynamic_flag_spec='${wl}-bexpall'
  7933. # It seems that -bexpall does not export symbols beginning with
  7934. # underscore (_), so it is better to generate a list of symbols to export.
  7935. always_export_symbols=yes
  7936. if test "$aix_use_runtimelinking" = yes; then
  7937. # Warning - without using the other runtime loading flags (-brtl),
  7938. # -berok will link without error, but may produce a broken library.
  7939. allow_undefined_flag='-berok'
  7940. # Determine the default libpath from the value encoded in an
  7941. # empty executable.
  7942. if test "${lt_cv_aix_libpath+set}" = set; then
  7943. aix_libpath=$lt_cv_aix_libpath
  7944. else
  7945. if ${lt_cv_aix_libpath_+:} false; then :
  7946. $as_echo_n "(cached) " >&6
  7947. else
  7948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7949. /* end confdefs.h. */
  7950. int
  7951. main ()
  7952. {
  7953. ;
  7954. return 0;
  7955. }
  7956. _ACEOF
  7957. if ac_fn_c_try_link "$LINENO"; then :
  7958. lt_aix_libpath_sed='
  7959. /Import File Strings/,/^$/ {
  7960. /^0/ {
  7961. s/^0 *\([^ ]*\) *$/\1/
  7962. p
  7963. }
  7964. }'
  7965. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7966. # Check for a 64-bit object if we didn't find anything.
  7967. if test -z "$lt_cv_aix_libpath_"; then
  7968. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7969. fi
  7970. fi
  7971. rm -f core conftest.err conftest.$ac_objext \
  7972. conftest$ac_exeext conftest.$ac_ext
  7973. if test -z "$lt_cv_aix_libpath_"; then
  7974. lt_cv_aix_libpath_="/usr/lib:/lib"
  7975. fi
  7976. fi
  7977. aix_libpath=$lt_cv_aix_libpath_
  7978. fi
  7979. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7980. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7981. else
  7982. if test "$host_cpu" = ia64; then
  7983. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7984. allow_undefined_flag="-z nodefs"
  7985. 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"
  7986. else
  7987. # Determine the default libpath from the value encoded in an
  7988. # empty executable.
  7989. if test "${lt_cv_aix_libpath+set}" = set; then
  7990. aix_libpath=$lt_cv_aix_libpath
  7991. else
  7992. if ${lt_cv_aix_libpath_+:} false; then :
  7993. $as_echo_n "(cached) " >&6
  7994. else
  7995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7996. /* end confdefs.h. */
  7997. int
  7998. main ()
  7999. {
  8000. ;
  8001. return 0;
  8002. }
  8003. _ACEOF
  8004. if ac_fn_c_try_link "$LINENO"; then :
  8005. lt_aix_libpath_sed='
  8006. /Import File Strings/,/^$/ {
  8007. /^0/ {
  8008. s/^0 *\([^ ]*\) *$/\1/
  8009. p
  8010. }
  8011. }'
  8012. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8013. # Check for a 64-bit object if we didn't find anything.
  8014. if test -z "$lt_cv_aix_libpath_"; then
  8015. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8016. fi
  8017. fi
  8018. rm -f core conftest.err conftest.$ac_objext \
  8019. conftest$ac_exeext conftest.$ac_ext
  8020. if test -z "$lt_cv_aix_libpath_"; then
  8021. lt_cv_aix_libpath_="/usr/lib:/lib"
  8022. fi
  8023. fi
  8024. aix_libpath=$lt_cv_aix_libpath_
  8025. fi
  8026. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8027. # Warning - without using the other run time loading flags,
  8028. # -berok will link without error, but may produce a broken library.
  8029. no_undefined_flag=' ${wl}-bernotok'
  8030. allow_undefined_flag=' ${wl}-berok'
  8031. if test "$with_gnu_ld" = yes; then
  8032. # We only use this code for GNU lds that support --whole-archive.
  8033. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8034. else
  8035. # Exported symbols can be pulled into shared objects from archives
  8036. whole_archive_flag_spec='$convenience'
  8037. fi
  8038. archive_cmds_need_lc=yes
  8039. # This is similar to how AIX traditionally builds its shared libraries.
  8040. 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'
  8041. fi
  8042. fi
  8043. ;;
  8044. amigaos*)
  8045. case $host_cpu in
  8046. powerpc)
  8047. # see comment about AmigaOS4 .so support
  8048. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8049. archive_expsym_cmds=''
  8050. ;;
  8051. m68k)
  8052. 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)'
  8053. hardcode_libdir_flag_spec='-L$libdir'
  8054. hardcode_minus_L=yes
  8055. ;;
  8056. esac
  8057. ;;
  8058. bsdi[45]*)
  8059. export_dynamic_flag_spec=-rdynamic
  8060. ;;
  8061. cygwin* | mingw* | pw32* | cegcc*)
  8062. # When not using gcc, we currently assume that we are using
  8063. # Microsoft Visual C++.
  8064. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8065. # no search path for DLLs.
  8066. case $cc_basename in
  8067. cl*)
  8068. # Native MSVC
  8069. hardcode_libdir_flag_spec=' '
  8070. allow_undefined_flag=unsupported
  8071. always_export_symbols=yes
  8072. file_list_spec='@'
  8073. # Tell ltmain to make .lib files, not .a files.
  8074. libext=lib
  8075. # Tell ltmain to make .dll files, not .so files.
  8076. shrext_cmds=".dll"
  8077. # FIXME: Setting linknames here is a bad hack.
  8078. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8079. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8080. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8081. else
  8082. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8083. fi~
  8084. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8085. linknames='
  8086. # The linker will not automatically build a static lib if we build a DLL.
  8087. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8088. enable_shared_with_static_runtimes=yes
  8089. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8090. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8091. # Don't use ranlib
  8092. old_postinstall_cmds='chmod 644 $oldlib'
  8093. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8094. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8095. case $lt_outputfile in
  8096. *.exe|*.EXE) ;;
  8097. *)
  8098. lt_outputfile="$lt_outputfile.exe"
  8099. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8100. ;;
  8101. esac~
  8102. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8103. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8104. $RM "$lt_outputfile.manifest";
  8105. fi'
  8106. ;;
  8107. *)
  8108. # Assume MSVC wrapper
  8109. hardcode_libdir_flag_spec=' '
  8110. allow_undefined_flag=unsupported
  8111. # Tell ltmain to make .lib files, not .a files.
  8112. libext=lib
  8113. # Tell ltmain to make .dll files, not .so files.
  8114. shrext_cmds=".dll"
  8115. # FIXME: Setting linknames here is a bad hack.
  8116. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8117. # The linker will automatically build a .lib file if we build a DLL.
  8118. old_archive_from_new_cmds='true'
  8119. # FIXME: Should let the user specify the lib program.
  8120. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8121. enable_shared_with_static_runtimes=yes
  8122. ;;
  8123. esac
  8124. ;;
  8125. darwin* | rhapsody*)
  8126. archive_cmds_need_lc=no
  8127. hardcode_direct=no
  8128. hardcode_automatic=yes
  8129. hardcode_shlibpath_var=unsupported
  8130. if test "$lt_cv_ld_force_load" = "yes"; then
  8131. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8132. else
  8133. whole_archive_flag_spec=''
  8134. fi
  8135. link_all_deplibs=yes
  8136. allow_undefined_flag="$_lt_dar_allow_undefined"
  8137. case $cc_basename in
  8138. ifort*) _lt_dar_can_shared=yes ;;
  8139. *) _lt_dar_can_shared=$GCC ;;
  8140. esac
  8141. if test "$_lt_dar_can_shared" = "yes"; then
  8142. output_verbose_link_cmd=func_echo_all
  8143. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8144. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8145. 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}"
  8146. 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}"
  8147. else
  8148. ld_shlibs=no
  8149. fi
  8150. ;;
  8151. dgux*)
  8152. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8153. hardcode_libdir_flag_spec='-L$libdir'
  8154. hardcode_shlibpath_var=no
  8155. ;;
  8156. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8157. # support. Future versions do this automatically, but an explicit c++rt0.o
  8158. # does not break anything, and helps significantly (at the cost of a little
  8159. # extra space).
  8160. freebsd2.2*)
  8161. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8162. hardcode_libdir_flag_spec='-R$libdir'
  8163. hardcode_direct=yes
  8164. hardcode_shlibpath_var=no
  8165. ;;
  8166. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8167. freebsd2.*)
  8168. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8169. hardcode_direct=yes
  8170. hardcode_minus_L=yes
  8171. hardcode_shlibpath_var=no
  8172. ;;
  8173. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8174. freebsd* | dragonfly*)
  8175. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8176. hardcode_libdir_flag_spec='-R$libdir'
  8177. hardcode_direct=yes
  8178. hardcode_shlibpath_var=no
  8179. ;;
  8180. hpux9*)
  8181. if test "$GCC" = yes; then
  8182. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8183. else
  8184. 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'
  8185. fi
  8186. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8187. hardcode_libdir_separator=:
  8188. hardcode_direct=yes
  8189. # hardcode_minus_L: Not really in the search PATH,
  8190. # but as the default location of the library.
  8191. hardcode_minus_L=yes
  8192. export_dynamic_flag_spec='${wl}-E'
  8193. ;;
  8194. hpux10*)
  8195. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8196. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8197. else
  8198. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8199. fi
  8200. if test "$with_gnu_ld" = no; then
  8201. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8202. hardcode_libdir_separator=:
  8203. hardcode_direct=yes
  8204. hardcode_direct_absolute=yes
  8205. export_dynamic_flag_spec='${wl}-E'
  8206. # hardcode_minus_L: Not really in the search PATH,
  8207. # but as the default location of the library.
  8208. hardcode_minus_L=yes
  8209. fi
  8210. ;;
  8211. hpux11*)
  8212. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8213. case $host_cpu in
  8214. hppa*64*)
  8215. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8216. ;;
  8217. ia64*)
  8218. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8219. ;;
  8220. *)
  8221. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8222. ;;
  8223. esac
  8224. else
  8225. case $host_cpu in
  8226. hppa*64*)
  8227. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8228. ;;
  8229. ia64*)
  8230. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8231. ;;
  8232. *)
  8233. # Older versions of the 11.00 compiler do not understand -b yet
  8234. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8236. $as_echo_n "checking if $CC understands -b... " >&6; }
  8237. if ${lt_cv_prog_compiler__b+:} false; then :
  8238. $as_echo_n "(cached) " >&6
  8239. else
  8240. lt_cv_prog_compiler__b=no
  8241. save_LDFLAGS="$LDFLAGS"
  8242. LDFLAGS="$LDFLAGS -b"
  8243. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8244. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8245. # The linker can only warn and ignore the option if not recognized
  8246. # So say no if there are warnings
  8247. if test -s conftest.err; then
  8248. # Append any errors to the config.log.
  8249. cat conftest.err 1>&5
  8250. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8251. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8252. if diff conftest.exp conftest.er2 >/dev/null; then
  8253. lt_cv_prog_compiler__b=yes
  8254. fi
  8255. else
  8256. lt_cv_prog_compiler__b=yes
  8257. fi
  8258. fi
  8259. $RM -r conftest*
  8260. LDFLAGS="$save_LDFLAGS"
  8261. fi
  8262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8263. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8264. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8265. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8266. else
  8267. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8268. fi
  8269. ;;
  8270. esac
  8271. fi
  8272. if test "$with_gnu_ld" = no; then
  8273. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8274. hardcode_libdir_separator=:
  8275. case $host_cpu in
  8276. hppa*64*|ia64*)
  8277. hardcode_direct=no
  8278. hardcode_shlibpath_var=no
  8279. ;;
  8280. *)
  8281. hardcode_direct=yes
  8282. hardcode_direct_absolute=yes
  8283. export_dynamic_flag_spec='${wl}-E'
  8284. # hardcode_minus_L: Not really in the search PATH,
  8285. # but as the default location of the library.
  8286. hardcode_minus_L=yes
  8287. ;;
  8288. esac
  8289. fi
  8290. ;;
  8291. irix5* | irix6* | nonstopux*)
  8292. if test "$GCC" = yes; then
  8293. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8294. # Try to use the -exported_symbol ld option, if it does not
  8295. # work, assume that -exports_file does not work either and
  8296. # implicitly export all symbols.
  8297. # This should be the same for all languages, so no per-tag cache variable.
  8298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8299. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8300. if ${lt_cv_irix_exported_symbol+:} false; then :
  8301. $as_echo_n "(cached) " >&6
  8302. else
  8303. save_LDFLAGS="$LDFLAGS"
  8304. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8306. /* end confdefs.h. */
  8307. int foo (void) { return 0; }
  8308. _ACEOF
  8309. if ac_fn_c_try_link "$LINENO"; then :
  8310. lt_cv_irix_exported_symbol=yes
  8311. else
  8312. lt_cv_irix_exported_symbol=no
  8313. fi
  8314. rm -f core conftest.err conftest.$ac_objext \
  8315. conftest$ac_exeext conftest.$ac_ext
  8316. LDFLAGS="$save_LDFLAGS"
  8317. fi
  8318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8319. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8320. if test "$lt_cv_irix_exported_symbol" = yes; then
  8321. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8322. fi
  8323. else
  8324. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8325. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8326. fi
  8327. archive_cmds_need_lc='no'
  8328. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8329. hardcode_libdir_separator=:
  8330. inherit_rpath=yes
  8331. link_all_deplibs=yes
  8332. ;;
  8333. netbsd*)
  8334. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8335. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8336. else
  8337. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8338. fi
  8339. hardcode_libdir_flag_spec='-R$libdir'
  8340. hardcode_direct=yes
  8341. hardcode_shlibpath_var=no
  8342. ;;
  8343. newsos6)
  8344. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8345. hardcode_direct=yes
  8346. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8347. hardcode_libdir_separator=:
  8348. hardcode_shlibpath_var=no
  8349. ;;
  8350. *nto* | *qnx*)
  8351. ;;
  8352. openbsd*)
  8353. if test -f /usr/libexec/ld.so; then
  8354. hardcode_direct=yes
  8355. hardcode_shlibpath_var=no
  8356. hardcode_direct_absolute=yes
  8357. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8358. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8359. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8360. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8361. export_dynamic_flag_spec='${wl}-E'
  8362. else
  8363. case $host_os in
  8364. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8365. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8366. hardcode_libdir_flag_spec='-R$libdir'
  8367. ;;
  8368. *)
  8369. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8370. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8371. ;;
  8372. esac
  8373. fi
  8374. else
  8375. ld_shlibs=no
  8376. fi
  8377. ;;
  8378. os2*)
  8379. hardcode_libdir_flag_spec='-L$libdir'
  8380. hardcode_minus_L=yes
  8381. allow_undefined_flag=unsupported
  8382. 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'
  8383. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8384. ;;
  8385. osf3*)
  8386. if test "$GCC" = yes; then
  8387. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8388. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8389. else
  8390. allow_undefined_flag=' -expect_unresolved \*'
  8391. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8392. fi
  8393. archive_cmds_need_lc='no'
  8394. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8395. hardcode_libdir_separator=:
  8396. ;;
  8397. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8398. if test "$GCC" = yes; then
  8399. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8400. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8401. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8402. else
  8403. allow_undefined_flag=' -expect_unresolved \*'
  8404. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8405. 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~
  8406. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8407. # Both c and cxx compiler support -rpath directly
  8408. hardcode_libdir_flag_spec='-rpath $libdir'
  8409. fi
  8410. archive_cmds_need_lc='no'
  8411. hardcode_libdir_separator=:
  8412. ;;
  8413. solaris*)
  8414. no_undefined_flag=' -z defs'
  8415. if test "$GCC" = yes; then
  8416. wlarc='${wl}'
  8417. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8418. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8419. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8420. else
  8421. case `$CC -V 2>&1` in
  8422. *"Compilers 5.0"*)
  8423. wlarc=''
  8424. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8425. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8426. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8427. ;;
  8428. *)
  8429. wlarc='${wl}'
  8430. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8431. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8432. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8433. ;;
  8434. esac
  8435. fi
  8436. hardcode_libdir_flag_spec='-R$libdir'
  8437. hardcode_shlibpath_var=no
  8438. case $host_os in
  8439. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8440. *)
  8441. # The compiler driver will combine and reorder linker options,
  8442. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8443. # but is careful enough not to reorder.
  8444. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8445. if test "$GCC" = yes; then
  8446. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8447. else
  8448. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8449. fi
  8450. ;;
  8451. esac
  8452. link_all_deplibs=yes
  8453. ;;
  8454. sunos4*)
  8455. if test "x$host_vendor" = xsequent; then
  8456. # Use $CC to link under sequent, because it throws in some extra .o
  8457. # files that make .init and .fini sections work.
  8458. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8459. else
  8460. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8461. fi
  8462. hardcode_libdir_flag_spec='-L$libdir'
  8463. hardcode_direct=yes
  8464. hardcode_minus_L=yes
  8465. hardcode_shlibpath_var=no
  8466. ;;
  8467. sysv4)
  8468. case $host_vendor in
  8469. sni)
  8470. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8471. hardcode_direct=yes # is this really true???
  8472. ;;
  8473. siemens)
  8474. ## LD is ld it makes a PLAMLIB
  8475. ## CC just makes a GrossModule.
  8476. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8477. reload_cmds='$CC -r -o $output$reload_objs'
  8478. hardcode_direct=no
  8479. ;;
  8480. motorola)
  8481. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8482. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8483. ;;
  8484. esac
  8485. runpath_var='LD_RUN_PATH'
  8486. hardcode_shlibpath_var=no
  8487. ;;
  8488. sysv4.3*)
  8489. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8490. hardcode_shlibpath_var=no
  8491. export_dynamic_flag_spec='-Bexport'
  8492. ;;
  8493. sysv4*MP*)
  8494. if test -d /usr/nec; then
  8495. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8496. hardcode_shlibpath_var=no
  8497. runpath_var=LD_RUN_PATH
  8498. hardcode_runpath_var=yes
  8499. ld_shlibs=yes
  8500. fi
  8501. ;;
  8502. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8503. no_undefined_flag='${wl}-z,text'
  8504. archive_cmds_need_lc=no
  8505. hardcode_shlibpath_var=no
  8506. runpath_var='LD_RUN_PATH'
  8507. if test "$GCC" = yes; then
  8508. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8509. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8510. else
  8511. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8512. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8513. fi
  8514. ;;
  8515. sysv5* | sco3.2v5* | sco5v6*)
  8516. # Note: We can NOT use -z defs as we might desire, because we do not
  8517. # link with -lc, and that would cause any symbols used from libc to
  8518. # always be unresolved, which means just about no library would
  8519. # ever link correctly. If we're not using GNU ld we use -z text
  8520. # though, which does catch some bad symbols but isn't as heavy-handed
  8521. # as -z defs.
  8522. no_undefined_flag='${wl}-z,text'
  8523. allow_undefined_flag='${wl}-z,nodefs'
  8524. archive_cmds_need_lc=no
  8525. hardcode_shlibpath_var=no
  8526. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8527. hardcode_libdir_separator=':'
  8528. link_all_deplibs=yes
  8529. export_dynamic_flag_spec='${wl}-Bexport'
  8530. runpath_var='LD_RUN_PATH'
  8531. if test "$GCC" = yes; then
  8532. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8533. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8534. else
  8535. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8536. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8537. fi
  8538. ;;
  8539. uts4*)
  8540. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8541. hardcode_libdir_flag_spec='-L$libdir'
  8542. hardcode_shlibpath_var=no
  8543. ;;
  8544. *)
  8545. ld_shlibs=no
  8546. ;;
  8547. esac
  8548. if test x$host_vendor = xsni; then
  8549. case $host in
  8550. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8551. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8552. ;;
  8553. esac
  8554. fi
  8555. fi
  8556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8557. $as_echo "$ld_shlibs" >&6; }
  8558. test "$ld_shlibs" = no && can_build_shared=no
  8559. with_gnu_ld=$with_gnu_ld
  8560. #
  8561. # Do we need to explicitly link libc?
  8562. #
  8563. case "x$archive_cmds_need_lc" in
  8564. x|xyes)
  8565. # Assume -lc should be added
  8566. archive_cmds_need_lc=yes
  8567. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8568. case $archive_cmds in
  8569. *'~'*)
  8570. # FIXME: we may have to deal with multi-command sequences.
  8571. ;;
  8572. '$CC '*)
  8573. # Test whether the compiler implicitly links with -lc since on some
  8574. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8575. # to ld, don't add -lc before -lgcc.
  8576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8577. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8578. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8579. $as_echo_n "(cached) " >&6
  8580. else
  8581. $RM conftest*
  8582. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8583. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8584. (eval $ac_compile) 2>&5
  8585. ac_status=$?
  8586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8587. test $ac_status = 0; } 2>conftest.err; then
  8588. soname=conftest
  8589. lib=conftest
  8590. libobjs=conftest.$ac_objext
  8591. deplibs=
  8592. wl=$lt_prog_compiler_wl
  8593. pic_flag=$lt_prog_compiler_pic
  8594. compiler_flags=-v
  8595. linker_flags=-v
  8596. verstring=
  8597. output_objdir=.
  8598. libname=conftest
  8599. lt_save_allow_undefined_flag=$allow_undefined_flag
  8600. allow_undefined_flag=
  8601. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8602. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8603. ac_status=$?
  8604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8605. test $ac_status = 0; }
  8606. then
  8607. lt_cv_archive_cmds_need_lc=no
  8608. else
  8609. lt_cv_archive_cmds_need_lc=yes
  8610. fi
  8611. allow_undefined_flag=$lt_save_allow_undefined_flag
  8612. else
  8613. cat conftest.err 1>&5
  8614. fi
  8615. $RM conftest*
  8616. fi
  8617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8618. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8619. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8620. ;;
  8621. esac
  8622. fi
  8623. ;;
  8624. esac
  8625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8626. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8627. if test "$GCC" = yes; then
  8628. case $host_os in
  8629. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8630. *) lt_awk_arg="/^libraries:/" ;;
  8631. esac
  8632. case $host_os in
  8633. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8634. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8635. esac
  8636. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8637. case $lt_search_path_spec in
  8638. *\;*)
  8639. # if the path contains ";" then we assume it to be the separator
  8640. # otherwise default to the standard path separator (i.e. ":") - it is
  8641. # assumed that no part of a normal pathname contains ";" but that should
  8642. # okay in the real world where ";" in dirpaths is itself problematic.
  8643. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8644. ;;
  8645. *)
  8646. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8647. ;;
  8648. esac
  8649. # Ok, now we have the path, separated by spaces, we can step through it
  8650. # and add multilib dir if necessary.
  8651. lt_tmp_lt_search_path_spec=
  8652. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8653. for lt_sys_path in $lt_search_path_spec; do
  8654. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8655. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8656. else
  8657. test -d "$lt_sys_path" && \
  8658. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8659. fi
  8660. done
  8661. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8662. BEGIN {RS=" "; FS="/|\n";} {
  8663. lt_foo="";
  8664. lt_count=0;
  8665. for (lt_i = NF; lt_i > 0; lt_i--) {
  8666. if ($lt_i != "" && $lt_i != ".") {
  8667. if ($lt_i == "..") {
  8668. lt_count++;
  8669. } else {
  8670. if (lt_count == 0) {
  8671. lt_foo="/" $lt_i lt_foo;
  8672. } else {
  8673. lt_count--;
  8674. }
  8675. }
  8676. }
  8677. }
  8678. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8679. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8680. }'`
  8681. # AWK program above erroneously prepends '/' to C:/dos/paths
  8682. # for these hosts.
  8683. case $host_os in
  8684. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8685. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8686. esac
  8687. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8688. else
  8689. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8690. fi
  8691. library_names_spec=
  8692. libname_spec='lib$name'
  8693. soname_spec=
  8694. shrext_cmds=".so"
  8695. postinstall_cmds=
  8696. postuninstall_cmds=
  8697. finish_cmds=
  8698. finish_eval=
  8699. shlibpath_var=
  8700. shlibpath_overrides_runpath=unknown
  8701. version_type=none
  8702. dynamic_linker="$host_os ld.so"
  8703. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8704. need_lib_prefix=unknown
  8705. hardcode_into_libs=no
  8706. # when you set need_version to no, make sure it does not cause -set_version
  8707. # flags to be left without arguments
  8708. need_version=unknown
  8709. case $host_os in
  8710. aix3*)
  8711. version_type=linux # correct to gnu/linux during the next big refactor
  8712. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8713. shlibpath_var=LIBPATH
  8714. # AIX 3 has no versioning support, so we append a major version to the name.
  8715. soname_spec='${libname}${release}${shared_ext}$major'
  8716. ;;
  8717. aix[4-9]*)
  8718. version_type=linux # correct to gnu/linux during the next big refactor
  8719. need_lib_prefix=no
  8720. need_version=no
  8721. hardcode_into_libs=yes
  8722. if test "$host_cpu" = ia64; then
  8723. # AIX 5 supports IA64
  8724. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8725. shlibpath_var=LD_LIBRARY_PATH
  8726. else
  8727. # With GCC up to 2.95.x, collect2 would create an import file
  8728. # for dependence libraries. The import file would start with
  8729. # the line `#! .'. This would cause the generated library to
  8730. # depend on `.', always an invalid library. This was fixed in
  8731. # development snapshots of GCC prior to 3.0.
  8732. case $host_os in
  8733. aix4 | aix4.[01] | aix4.[01].*)
  8734. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8735. echo ' yes '
  8736. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8737. :
  8738. else
  8739. can_build_shared=no
  8740. fi
  8741. ;;
  8742. esac
  8743. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8744. # soname into executable. Probably we can add versioning support to
  8745. # collect2, so additional links can be useful in future.
  8746. if test "$aix_use_runtimelinking" = yes; then
  8747. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8748. # instead of lib<name>.a to let people know that these are not
  8749. # typical AIX shared libraries.
  8750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8751. else
  8752. # We preserve .a as extension for shared libraries through AIX4.2
  8753. # and later when we are not doing run time linking.
  8754. library_names_spec='${libname}${release}.a $libname.a'
  8755. soname_spec='${libname}${release}${shared_ext}$major'
  8756. fi
  8757. shlibpath_var=LIBPATH
  8758. fi
  8759. ;;
  8760. amigaos*)
  8761. case $host_cpu in
  8762. powerpc)
  8763. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8764. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8766. ;;
  8767. m68k)
  8768. library_names_spec='$libname.ixlibrary $libname.a'
  8769. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8770. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  8771. ;;
  8772. esac
  8773. ;;
  8774. beos*)
  8775. library_names_spec='${libname}${shared_ext}'
  8776. dynamic_linker="$host_os ld.so"
  8777. shlibpath_var=LIBRARY_PATH
  8778. ;;
  8779. bsdi[45]*)
  8780. version_type=linux # correct to gnu/linux during the next big refactor
  8781. need_version=no
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8783. soname_spec='${libname}${release}${shared_ext}$major'
  8784. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8785. shlibpath_var=LD_LIBRARY_PATH
  8786. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8787. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8788. # the default ld.so.conf also contains /usr/contrib/lib and
  8789. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8790. # libtool to hard-code these into programs
  8791. ;;
  8792. cygwin* | mingw* | pw32* | cegcc*)
  8793. version_type=windows
  8794. shrext_cmds=".dll"
  8795. need_version=no
  8796. need_lib_prefix=no
  8797. case $GCC,$cc_basename in
  8798. yes,*)
  8799. # gcc
  8800. library_names_spec='$libname.dll.a'
  8801. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8802. postinstall_cmds='base_file=`basename \${file}`~
  8803. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8804. dldir=$destdir/`dirname \$dlpath`~
  8805. test -d \$dldir || mkdir -p \$dldir~
  8806. $install_prog $dir/$dlname \$dldir/$dlname~
  8807. chmod a+x \$dldir/$dlname~
  8808. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8809. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8810. fi'
  8811. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8812. dlpath=$dir/\$dldll~
  8813. $RM \$dlpath'
  8814. shlibpath_overrides_runpath=yes
  8815. case $host_os in
  8816. cygwin*)
  8817. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8818. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8819. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8820. ;;
  8821. mingw* | cegcc*)
  8822. # MinGW DLLs use traditional 'lib' prefix
  8823. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8824. ;;
  8825. pw32*)
  8826. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8827. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8828. ;;
  8829. esac
  8830. dynamic_linker='Win32 ld.exe'
  8831. ;;
  8832. *,cl*)
  8833. # Native MSVC
  8834. libname_spec='$name'
  8835. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8836. library_names_spec='${libname}.dll.lib'
  8837. case $build_os in
  8838. mingw*)
  8839. sys_lib_search_path_spec=
  8840. lt_save_ifs=$IFS
  8841. IFS=';'
  8842. for lt_path in $LIB
  8843. do
  8844. IFS=$lt_save_ifs
  8845. # Let DOS variable expansion print the short 8.3 style file name.
  8846. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8847. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8848. done
  8849. IFS=$lt_save_ifs
  8850. # Convert to MSYS style.
  8851. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8852. ;;
  8853. cygwin*)
  8854. # Convert to unix form, then to dos form, then back to unix form
  8855. # but this time dos style (no spaces!) so that the unix form looks
  8856. # like /cygdrive/c/PROGRA~1:/cygdr...
  8857. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8858. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8859. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8860. ;;
  8861. *)
  8862. sys_lib_search_path_spec="$LIB"
  8863. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8864. # It is most probably a Windows format PATH.
  8865. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8866. else
  8867. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8868. fi
  8869. # FIXME: find the short name or the path components, as spaces are
  8870. # common. (e.g. "Program Files" -> "PROGRA~1")
  8871. ;;
  8872. esac
  8873. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8874. postinstall_cmds='base_file=`basename \${file}`~
  8875. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8876. dldir=$destdir/`dirname \$dlpath`~
  8877. test -d \$dldir || mkdir -p \$dldir~
  8878. $install_prog $dir/$dlname \$dldir/$dlname'
  8879. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8880. dlpath=$dir/\$dldll~
  8881. $RM \$dlpath'
  8882. shlibpath_overrides_runpath=yes
  8883. dynamic_linker='Win32 link.exe'
  8884. ;;
  8885. *)
  8886. # Assume MSVC wrapper
  8887. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8888. dynamic_linker='Win32 ld.exe'
  8889. ;;
  8890. esac
  8891. # FIXME: first we should search . and the directory the executable is in
  8892. shlibpath_var=PATH
  8893. ;;
  8894. darwin* | rhapsody*)
  8895. dynamic_linker="$host_os dyld"
  8896. version_type=darwin
  8897. need_lib_prefix=no
  8898. need_version=no
  8899. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8900. soname_spec='${libname}${release}${major}$shared_ext'
  8901. shlibpath_overrides_runpath=yes
  8902. shlibpath_var=DYLD_LIBRARY_PATH
  8903. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8904. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8905. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8906. ;;
  8907. dgux*)
  8908. version_type=linux # correct to gnu/linux during the next big refactor
  8909. need_lib_prefix=no
  8910. need_version=no
  8911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8912. soname_spec='${libname}${release}${shared_ext}$major'
  8913. shlibpath_var=LD_LIBRARY_PATH
  8914. ;;
  8915. freebsd* | dragonfly*)
  8916. # DragonFly does not have aout. When/if they implement a new
  8917. # versioning mechanism, adjust this.
  8918. if test -x /usr/bin/objformat; then
  8919. objformat=`/usr/bin/objformat`
  8920. else
  8921. case $host_os in
  8922. freebsd[23].*) objformat=aout ;;
  8923. *) objformat=elf ;;
  8924. esac
  8925. fi
  8926. version_type=freebsd-$objformat
  8927. case $version_type in
  8928. freebsd-elf*)
  8929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8930. need_version=no
  8931. need_lib_prefix=no
  8932. ;;
  8933. freebsd-*)
  8934. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8935. need_version=yes
  8936. ;;
  8937. esac
  8938. shlibpath_var=LD_LIBRARY_PATH
  8939. case $host_os in
  8940. freebsd2.*)
  8941. shlibpath_overrides_runpath=yes
  8942. ;;
  8943. freebsd3.[01]* | freebsdelf3.[01]*)
  8944. shlibpath_overrides_runpath=yes
  8945. hardcode_into_libs=yes
  8946. ;;
  8947. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8948. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8949. shlibpath_overrides_runpath=no
  8950. hardcode_into_libs=yes
  8951. ;;
  8952. *) # from 4.6 on, and DragonFly
  8953. shlibpath_overrides_runpath=yes
  8954. hardcode_into_libs=yes
  8955. ;;
  8956. esac
  8957. ;;
  8958. gnu*)
  8959. version_type=linux # correct to gnu/linux during the next big refactor
  8960. need_lib_prefix=no
  8961. need_version=no
  8962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8963. soname_spec='${libname}${release}${shared_ext}$major'
  8964. shlibpath_var=LD_LIBRARY_PATH
  8965. shlibpath_overrides_runpath=no
  8966. hardcode_into_libs=yes
  8967. ;;
  8968. haiku*)
  8969. version_type=linux # correct to gnu/linux during the next big refactor
  8970. need_lib_prefix=no
  8971. need_version=no
  8972. dynamic_linker="$host_os runtime_loader"
  8973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8974. soname_spec='${libname}${release}${shared_ext}$major'
  8975. shlibpath_var=LIBRARY_PATH
  8976. shlibpath_overrides_runpath=yes
  8977. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8978. hardcode_into_libs=yes
  8979. ;;
  8980. hpux9* | hpux10* | hpux11*)
  8981. # Give a soname corresponding to the major version so that dld.sl refuses to
  8982. # link against other versions.
  8983. version_type=sunos
  8984. need_lib_prefix=no
  8985. need_version=no
  8986. case $host_cpu in
  8987. ia64*)
  8988. shrext_cmds='.so'
  8989. hardcode_into_libs=yes
  8990. dynamic_linker="$host_os dld.so"
  8991. shlibpath_var=LD_LIBRARY_PATH
  8992. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8994. soname_spec='${libname}${release}${shared_ext}$major'
  8995. if test "X$HPUX_IA64_MODE" = X32; then
  8996. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8997. else
  8998. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8999. fi
  9000. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9001. ;;
  9002. hppa*64*)
  9003. shrext_cmds='.sl'
  9004. hardcode_into_libs=yes
  9005. dynamic_linker="$host_os dld.sl"
  9006. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9007. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9009. soname_spec='${libname}${release}${shared_ext}$major'
  9010. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9011. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9012. ;;
  9013. *)
  9014. shrext_cmds='.sl'
  9015. dynamic_linker="$host_os dld.sl"
  9016. shlibpath_var=SHLIB_PATH
  9017. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9019. soname_spec='${libname}${release}${shared_ext}$major'
  9020. ;;
  9021. esac
  9022. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9023. postinstall_cmds='chmod 555 $lib'
  9024. # or fails outright, so override atomically:
  9025. install_override_mode=555
  9026. ;;
  9027. interix[3-9]*)
  9028. version_type=linux # correct to gnu/linux during the next big refactor
  9029. need_lib_prefix=no
  9030. need_version=no
  9031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9032. soname_spec='${libname}${release}${shared_ext}$major'
  9033. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9034. shlibpath_var=LD_LIBRARY_PATH
  9035. shlibpath_overrides_runpath=no
  9036. hardcode_into_libs=yes
  9037. ;;
  9038. irix5* | irix6* | nonstopux*)
  9039. case $host_os in
  9040. nonstopux*) version_type=nonstopux ;;
  9041. *)
  9042. if test "$lt_cv_prog_gnu_ld" = yes; then
  9043. version_type=linux # correct to gnu/linux during the next big refactor
  9044. else
  9045. version_type=irix
  9046. fi ;;
  9047. esac
  9048. need_lib_prefix=no
  9049. need_version=no
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9052. case $host_os in
  9053. irix5* | nonstopux*)
  9054. libsuff= shlibsuff=
  9055. ;;
  9056. *)
  9057. case $LD in # libtool.m4 will add one of these switches to LD
  9058. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9059. libsuff= shlibsuff= libmagic=32-bit;;
  9060. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9061. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9062. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9063. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9064. *) libsuff= shlibsuff= libmagic=never-match;;
  9065. esac
  9066. ;;
  9067. esac
  9068. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9069. shlibpath_overrides_runpath=no
  9070. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9071. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9072. hardcode_into_libs=yes
  9073. ;;
  9074. # No shared lib support for Linux oldld, aout, or coff.
  9075. linux*oldld* | linux*aout* | linux*coff*)
  9076. dynamic_linker=no
  9077. ;;
  9078. # This must be glibc/ELF.
  9079. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9080. version_type=linux # correct to gnu/linux during the next big refactor
  9081. need_lib_prefix=no
  9082. need_version=no
  9083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9084. soname_spec='${libname}${release}${shared_ext}$major'
  9085. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9086. shlibpath_var=LD_LIBRARY_PATH
  9087. shlibpath_overrides_runpath=no
  9088. # Some binutils ld are patched to set DT_RUNPATH
  9089. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9090. $as_echo_n "(cached) " >&6
  9091. else
  9092. lt_cv_shlibpath_overrides_runpath=no
  9093. save_LDFLAGS=$LDFLAGS
  9094. save_libdir=$libdir
  9095. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9096. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9098. /* end confdefs.h. */
  9099. int
  9100. main ()
  9101. {
  9102. ;
  9103. return 0;
  9104. }
  9105. _ACEOF
  9106. if ac_fn_c_try_link "$LINENO"; then :
  9107. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9108. lt_cv_shlibpath_overrides_runpath=yes
  9109. fi
  9110. fi
  9111. rm -f core conftest.err conftest.$ac_objext \
  9112. conftest$ac_exeext conftest.$ac_ext
  9113. LDFLAGS=$save_LDFLAGS
  9114. libdir=$save_libdir
  9115. fi
  9116. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9117. # This implies no fast_install, which is unacceptable.
  9118. # Some rework will be needed to allow for fast_install
  9119. # before this can be enabled.
  9120. hardcode_into_libs=yes
  9121. # Append ld.so.conf contents to the search path
  9122. if test -f /etc/ld.so.conf; then
  9123. 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;s/"//g;/^$/d' | tr '\n' ' '`
  9124. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9125. fi
  9126. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9127. # powerpc, because MkLinux only supported shared libraries with the
  9128. # GNU dynamic linker. Since this was broken with cross compilers,
  9129. # most powerpc-linux boxes support dynamic linking these days and
  9130. # people can always --disable-shared, the test was removed, and we
  9131. # assume the GNU/Linux dynamic linker is in use.
  9132. dynamic_linker='GNU/Linux ld.so'
  9133. ;;
  9134. netbsd*)
  9135. version_type=sunos
  9136. need_lib_prefix=no
  9137. need_version=no
  9138. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9140. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9141. dynamic_linker='NetBSD (a.out) ld.so'
  9142. else
  9143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9144. soname_spec='${libname}${release}${shared_ext}$major'
  9145. dynamic_linker='NetBSD ld.elf_so'
  9146. fi
  9147. shlibpath_var=LD_LIBRARY_PATH
  9148. shlibpath_overrides_runpath=yes
  9149. hardcode_into_libs=yes
  9150. ;;
  9151. newsos6)
  9152. version_type=linux # correct to gnu/linux during the next big refactor
  9153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9154. shlibpath_var=LD_LIBRARY_PATH
  9155. shlibpath_overrides_runpath=yes
  9156. ;;
  9157. *nto* | *qnx*)
  9158. version_type=qnx
  9159. need_lib_prefix=no
  9160. need_version=no
  9161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9162. soname_spec='${libname}${release}${shared_ext}$major'
  9163. shlibpath_var=LD_LIBRARY_PATH
  9164. shlibpath_overrides_runpath=no
  9165. hardcode_into_libs=yes
  9166. dynamic_linker='ldqnx.so'
  9167. ;;
  9168. openbsd*)
  9169. version_type=sunos
  9170. sys_lib_dlsearch_path_spec="/usr/lib"
  9171. need_lib_prefix=no
  9172. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9173. case $host_os in
  9174. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9175. *) need_version=no ;;
  9176. esac
  9177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9178. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9179. shlibpath_var=LD_LIBRARY_PATH
  9180. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9181. case $host_os in
  9182. openbsd2.[89] | openbsd2.[89].*)
  9183. shlibpath_overrides_runpath=no
  9184. ;;
  9185. *)
  9186. shlibpath_overrides_runpath=yes
  9187. ;;
  9188. esac
  9189. else
  9190. shlibpath_overrides_runpath=yes
  9191. fi
  9192. ;;
  9193. os2*)
  9194. libname_spec='$name'
  9195. shrext_cmds=".dll"
  9196. need_lib_prefix=no
  9197. library_names_spec='$libname${shared_ext} $libname.a'
  9198. dynamic_linker='OS/2 ld.exe'
  9199. shlibpath_var=LIBPATH
  9200. ;;
  9201. osf3* | osf4* | osf5*)
  9202. version_type=osf
  9203. need_lib_prefix=no
  9204. need_version=no
  9205. soname_spec='${libname}${release}${shared_ext}$major'
  9206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9207. shlibpath_var=LD_LIBRARY_PATH
  9208. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9209. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9210. ;;
  9211. rdos*)
  9212. dynamic_linker=no
  9213. ;;
  9214. solaris*)
  9215. version_type=linux # correct to gnu/linux during the next big refactor
  9216. need_lib_prefix=no
  9217. need_version=no
  9218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9219. soname_spec='${libname}${release}${shared_ext}$major'
  9220. shlibpath_var=LD_LIBRARY_PATH
  9221. shlibpath_overrides_runpath=yes
  9222. hardcode_into_libs=yes
  9223. # ldd complains unless libraries are executable
  9224. postinstall_cmds='chmod +x $lib'
  9225. ;;
  9226. sunos4*)
  9227. version_type=sunos
  9228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9229. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9230. shlibpath_var=LD_LIBRARY_PATH
  9231. shlibpath_overrides_runpath=yes
  9232. if test "$with_gnu_ld" = yes; then
  9233. need_lib_prefix=no
  9234. fi
  9235. need_version=yes
  9236. ;;
  9237. sysv4 | sysv4.3*)
  9238. version_type=linux # correct to gnu/linux during the next big refactor
  9239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9240. soname_spec='${libname}${release}${shared_ext}$major'
  9241. shlibpath_var=LD_LIBRARY_PATH
  9242. case $host_vendor in
  9243. sni)
  9244. shlibpath_overrides_runpath=no
  9245. need_lib_prefix=no
  9246. runpath_var=LD_RUN_PATH
  9247. ;;
  9248. siemens)
  9249. need_lib_prefix=no
  9250. ;;
  9251. motorola)
  9252. need_lib_prefix=no
  9253. need_version=no
  9254. shlibpath_overrides_runpath=no
  9255. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9256. ;;
  9257. esac
  9258. ;;
  9259. sysv4*MP*)
  9260. if test -d /usr/nec ;then
  9261. version_type=linux # correct to gnu/linux during the next big refactor
  9262. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9263. soname_spec='$libname${shared_ext}.$major'
  9264. shlibpath_var=LD_LIBRARY_PATH
  9265. fi
  9266. ;;
  9267. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9268. version_type=freebsd-elf
  9269. need_lib_prefix=no
  9270. need_version=no
  9271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9272. soname_spec='${libname}${release}${shared_ext}$major'
  9273. shlibpath_var=LD_LIBRARY_PATH
  9274. shlibpath_overrides_runpath=yes
  9275. hardcode_into_libs=yes
  9276. if test "$with_gnu_ld" = yes; then
  9277. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9278. else
  9279. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9280. case $host_os in
  9281. sco3.2v5*)
  9282. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9283. ;;
  9284. esac
  9285. fi
  9286. sys_lib_dlsearch_path_spec='/usr/lib'
  9287. ;;
  9288. tpf*)
  9289. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9290. version_type=linux # correct to gnu/linux during the next big refactor
  9291. need_lib_prefix=no
  9292. need_version=no
  9293. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9294. shlibpath_var=LD_LIBRARY_PATH
  9295. shlibpath_overrides_runpath=no
  9296. hardcode_into_libs=yes
  9297. ;;
  9298. uts4*)
  9299. version_type=linux # correct to gnu/linux during the next big refactor
  9300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9301. soname_spec='${libname}${release}${shared_ext}$major'
  9302. shlibpath_var=LD_LIBRARY_PATH
  9303. ;;
  9304. *)
  9305. dynamic_linker=no
  9306. ;;
  9307. esac
  9308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9309. $as_echo "$dynamic_linker" >&6; }
  9310. test "$dynamic_linker" = no && can_build_shared=no
  9311. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9312. if test "$GCC" = yes; then
  9313. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9314. fi
  9315. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9316. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9317. fi
  9318. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9319. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9320. fi
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9322. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9323. hardcode_action=
  9324. if test -n "$hardcode_libdir_flag_spec" ||
  9325. test -n "$runpath_var" ||
  9326. test "X$hardcode_automatic" = "Xyes" ; then
  9327. # We can hardcode non-existent directories.
  9328. if test "$hardcode_direct" != no &&
  9329. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9330. # have to relink, otherwise we might link with an installed library
  9331. # when we should be linking with a yet-to-be-installed one
  9332. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9333. test "$hardcode_minus_L" != no; then
  9334. # Linking always hardcodes the temporary library directory.
  9335. hardcode_action=relink
  9336. else
  9337. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9338. hardcode_action=immediate
  9339. fi
  9340. else
  9341. # We cannot hardcode anything, or else we can only hardcode existing
  9342. # directories.
  9343. hardcode_action=unsupported
  9344. fi
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9346. $as_echo "$hardcode_action" >&6; }
  9347. if test "$hardcode_action" = relink ||
  9348. test "$inherit_rpath" = yes; then
  9349. # Fast installation is not supported
  9350. enable_fast_install=no
  9351. elif test "$shlibpath_overrides_runpath" = yes ||
  9352. test "$enable_shared" = no; then
  9353. # Fast installation is not necessary
  9354. enable_fast_install=needless
  9355. fi
  9356. if test "x$enable_dlopen" != xyes; then
  9357. enable_dlopen=unknown
  9358. enable_dlopen_self=unknown
  9359. enable_dlopen_self_static=unknown
  9360. else
  9361. lt_cv_dlopen=no
  9362. lt_cv_dlopen_libs=
  9363. case $host_os in
  9364. beos*)
  9365. lt_cv_dlopen="load_add_on"
  9366. lt_cv_dlopen_libs=
  9367. lt_cv_dlopen_self=yes
  9368. ;;
  9369. mingw* | pw32* | cegcc*)
  9370. lt_cv_dlopen="LoadLibrary"
  9371. lt_cv_dlopen_libs=
  9372. ;;
  9373. cygwin*)
  9374. lt_cv_dlopen="dlopen"
  9375. lt_cv_dlopen_libs=
  9376. ;;
  9377. darwin*)
  9378. # if libdl is installed we need to link against it
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9380. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9381. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9382. $as_echo_n "(cached) " >&6
  9383. else
  9384. ac_check_lib_save_LIBS=$LIBS
  9385. LIBS="-ldl $LIBS"
  9386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9387. /* end confdefs.h. */
  9388. /* Override any GCC internal prototype to avoid an error.
  9389. Use char because int might match the return type of a GCC
  9390. builtin and then its argument prototype would still apply. */
  9391. #ifdef __cplusplus
  9392. extern "C"
  9393. #endif
  9394. char dlopen ();
  9395. int
  9396. main ()
  9397. {
  9398. return dlopen ();
  9399. ;
  9400. return 0;
  9401. }
  9402. _ACEOF
  9403. if ac_fn_c_try_link "$LINENO"; then :
  9404. ac_cv_lib_dl_dlopen=yes
  9405. else
  9406. ac_cv_lib_dl_dlopen=no
  9407. fi
  9408. rm -f core conftest.err conftest.$ac_objext \
  9409. conftest$ac_exeext conftest.$ac_ext
  9410. LIBS=$ac_check_lib_save_LIBS
  9411. fi
  9412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9413. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9414. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9415. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9416. else
  9417. lt_cv_dlopen="dyld"
  9418. lt_cv_dlopen_libs=
  9419. lt_cv_dlopen_self=yes
  9420. fi
  9421. ;;
  9422. *)
  9423. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9424. if test "x$ac_cv_func_shl_load" = xyes; then :
  9425. lt_cv_dlopen="shl_load"
  9426. else
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9428. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9429. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9430. $as_echo_n "(cached) " >&6
  9431. else
  9432. ac_check_lib_save_LIBS=$LIBS
  9433. LIBS="-ldld $LIBS"
  9434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9435. /* end confdefs.h. */
  9436. /* Override any GCC internal prototype to avoid an error.
  9437. Use char because int might match the return type of a GCC
  9438. builtin and then its argument prototype would still apply. */
  9439. #ifdef __cplusplus
  9440. extern "C"
  9441. #endif
  9442. char shl_load ();
  9443. int
  9444. main ()
  9445. {
  9446. return shl_load ();
  9447. ;
  9448. return 0;
  9449. }
  9450. _ACEOF
  9451. if ac_fn_c_try_link "$LINENO"; then :
  9452. ac_cv_lib_dld_shl_load=yes
  9453. else
  9454. ac_cv_lib_dld_shl_load=no
  9455. fi
  9456. rm -f core conftest.err conftest.$ac_objext \
  9457. conftest$ac_exeext conftest.$ac_ext
  9458. LIBS=$ac_check_lib_save_LIBS
  9459. fi
  9460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9461. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9462. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9463. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9464. else
  9465. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9466. if test "x$ac_cv_func_dlopen" = xyes; then :
  9467. lt_cv_dlopen="dlopen"
  9468. else
  9469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9470. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9471. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9472. $as_echo_n "(cached) " >&6
  9473. else
  9474. ac_check_lib_save_LIBS=$LIBS
  9475. LIBS="-ldl $LIBS"
  9476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9477. /* end confdefs.h. */
  9478. /* Override any GCC internal prototype to avoid an error.
  9479. Use char because int might match the return type of a GCC
  9480. builtin and then its argument prototype would still apply. */
  9481. #ifdef __cplusplus
  9482. extern "C"
  9483. #endif
  9484. char dlopen ();
  9485. int
  9486. main ()
  9487. {
  9488. return dlopen ();
  9489. ;
  9490. return 0;
  9491. }
  9492. _ACEOF
  9493. if ac_fn_c_try_link "$LINENO"; then :
  9494. ac_cv_lib_dl_dlopen=yes
  9495. else
  9496. ac_cv_lib_dl_dlopen=no
  9497. fi
  9498. rm -f core conftest.err conftest.$ac_objext \
  9499. conftest$ac_exeext conftest.$ac_ext
  9500. LIBS=$ac_check_lib_save_LIBS
  9501. fi
  9502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9503. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9504. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9505. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9506. else
  9507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9508. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9509. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9510. $as_echo_n "(cached) " >&6
  9511. else
  9512. ac_check_lib_save_LIBS=$LIBS
  9513. LIBS="-lsvld $LIBS"
  9514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9515. /* end confdefs.h. */
  9516. /* Override any GCC internal prototype to avoid an error.
  9517. Use char because int might match the return type of a GCC
  9518. builtin and then its argument prototype would still apply. */
  9519. #ifdef __cplusplus
  9520. extern "C"
  9521. #endif
  9522. char dlopen ();
  9523. int
  9524. main ()
  9525. {
  9526. return dlopen ();
  9527. ;
  9528. return 0;
  9529. }
  9530. _ACEOF
  9531. if ac_fn_c_try_link "$LINENO"; then :
  9532. ac_cv_lib_svld_dlopen=yes
  9533. else
  9534. ac_cv_lib_svld_dlopen=no
  9535. fi
  9536. rm -f core conftest.err conftest.$ac_objext \
  9537. conftest$ac_exeext conftest.$ac_ext
  9538. LIBS=$ac_check_lib_save_LIBS
  9539. fi
  9540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9541. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9542. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9543. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9544. else
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9546. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9547. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. ac_check_lib_save_LIBS=$LIBS
  9551. LIBS="-ldld $LIBS"
  9552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9553. /* end confdefs.h. */
  9554. /* Override any GCC internal prototype to avoid an error.
  9555. Use char because int might match the return type of a GCC
  9556. builtin and then its argument prototype would still apply. */
  9557. #ifdef __cplusplus
  9558. extern "C"
  9559. #endif
  9560. char dld_link ();
  9561. int
  9562. main ()
  9563. {
  9564. return dld_link ();
  9565. ;
  9566. return 0;
  9567. }
  9568. _ACEOF
  9569. if ac_fn_c_try_link "$LINENO"; then :
  9570. ac_cv_lib_dld_dld_link=yes
  9571. else
  9572. ac_cv_lib_dld_dld_link=no
  9573. fi
  9574. rm -f core conftest.err conftest.$ac_objext \
  9575. conftest$ac_exeext conftest.$ac_ext
  9576. LIBS=$ac_check_lib_save_LIBS
  9577. fi
  9578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9579. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9580. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9581. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9582. fi
  9583. fi
  9584. fi
  9585. fi
  9586. fi
  9587. fi
  9588. ;;
  9589. esac
  9590. if test "x$lt_cv_dlopen" != xno; then
  9591. enable_dlopen=yes
  9592. else
  9593. enable_dlopen=no
  9594. fi
  9595. case $lt_cv_dlopen in
  9596. dlopen)
  9597. save_CPPFLAGS="$CPPFLAGS"
  9598. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9599. save_LDFLAGS="$LDFLAGS"
  9600. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9601. save_LIBS="$LIBS"
  9602. LIBS="$lt_cv_dlopen_libs $LIBS"
  9603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9604. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9605. if ${lt_cv_dlopen_self+:} false; then :
  9606. $as_echo_n "(cached) " >&6
  9607. else
  9608. if test "$cross_compiling" = yes; then :
  9609. lt_cv_dlopen_self=cross
  9610. else
  9611. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9612. lt_status=$lt_dlunknown
  9613. cat > conftest.$ac_ext <<_LT_EOF
  9614. #line $LINENO "configure"
  9615. #include "confdefs.h"
  9616. #if HAVE_DLFCN_H
  9617. #include <dlfcn.h>
  9618. #endif
  9619. #include <stdio.h>
  9620. #ifdef RTLD_GLOBAL
  9621. # define LT_DLGLOBAL RTLD_GLOBAL
  9622. #else
  9623. # ifdef DL_GLOBAL
  9624. # define LT_DLGLOBAL DL_GLOBAL
  9625. # else
  9626. # define LT_DLGLOBAL 0
  9627. # endif
  9628. #endif
  9629. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9630. find out it does not work in some platform. */
  9631. #ifndef LT_DLLAZY_OR_NOW
  9632. # ifdef RTLD_LAZY
  9633. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9634. # else
  9635. # ifdef DL_LAZY
  9636. # define LT_DLLAZY_OR_NOW DL_LAZY
  9637. # else
  9638. # ifdef RTLD_NOW
  9639. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9640. # else
  9641. # ifdef DL_NOW
  9642. # define LT_DLLAZY_OR_NOW DL_NOW
  9643. # else
  9644. # define LT_DLLAZY_OR_NOW 0
  9645. # endif
  9646. # endif
  9647. # endif
  9648. # endif
  9649. #endif
  9650. /* When -fvisbility=hidden is used, assume the code has been annotated
  9651. correspondingly for the symbols needed. */
  9652. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9653. int fnord () __attribute__((visibility("default")));
  9654. #endif
  9655. int fnord () { return 42; }
  9656. int main ()
  9657. {
  9658. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9659. int status = $lt_dlunknown;
  9660. if (self)
  9661. {
  9662. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9663. else
  9664. {
  9665. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9666. else puts (dlerror ());
  9667. }
  9668. /* dlclose (self); */
  9669. }
  9670. else
  9671. puts (dlerror ());
  9672. return status;
  9673. }
  9674. _LT_EOF
  9675. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9676. (eval $ac_link) 2>&5
  9677. ac_status=$?
  9678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9679. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9680. (./conftest; exit; ) >&5 2>/dev/null
  9681. lt_status=$?
  9682. case x$lt_status in
  9683. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9684. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9685. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9686. esac
  9687. else :
  9688. # compilation failed
  9689. lt_cv_dlopen_self=no
  9690. fi
  9691. fi
  9692. rm -fr conftest*
  9693. fi
  9694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9695. $as_echo "$lt_cv_dlopen_self" >&6; }
  9696. if test "x$lt_cv_dlopen_self" = xyes; then
  9697. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9699. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9700. if ${lt_cv_dlopen_self_static+:} false; then :
  9701. $as_echo_n "(cached) " >&6
  9702. else
  9703. if test "$cross_compiling" = yes; then :
  9704. lt_cv_dlopen_self_static=cross
  9705. else
  9706. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9707. lt_status=$lt_dlunknown
  9708. cat > conftest.$ac_ext <<_LT_EOF
  9709. #line $LINENO "configure"
  9710. #include "confdefs.h"
  9711. #if HAVE_DLFCN_H
  9712. #include <dlfcn.h>
  9713. #endif
  9714. #include <stdio.h>
  9715. #ifdef RTLD_GLOBAL
  9716. # define LT_DLGLOBAL RTLD_GLOBAL
  9717. #else
  9718. # ifdef DL_GLOBAL
  9719. # define LT_DLGLOBAL DL_GLOBAL
  9720. # else
  9721. # define LT_DLGLOBAL 0
  9722. # endif
  9723. #endif
  9724. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9725. find out it does not work in some platform. */
  9726. #ifndef LT_DLLAZY_OR_NOW
  9727. # ifdef RTLD_LAZY
  9728. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9729. # else
  9730. # ifdef DL_LAZY
  9731. # define LT_DLLAZY_OR_NOW DL_LAZY
  9732. # else
  9733. # ifdef RTLD_NOW
  9734. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9735. # else
  9736. # ifdef DL_NOW
  9737. # define LT_DLLAZY_OR_NOW DL_NOW
  9738. # else
  9739. # define LT_DLLAZY_OR_NOW 0
  9740. # endif
  9741. # endif
  9742. # endif
  9743. # endif
  9744. #endif
  9745. /* When -fvisbility=hidden is used, assume the code has been annotated
  9746. correspondingly for the symbols needed. */
  9747. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9748. int fnord () __attribute__((visibility("default")));
  9749. #endif
  9750. int fnord () { return 42; }
  9751. int main ()
  9752. {
  9753. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9754. int status = $lt_dlunknown;
  9755. if (self)
  9756. {
  9757. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9758. else
  9759. {
  9760. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9761. else puts (dlerror ());
  9762. }
  9763. /* dlclose (self); */
  9764. }
  9765. else
  9766. puts (dlerror ());
  9767. return status;
  9768. }
  9769. _LT_EOF
  9770. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9771. (eval $ac_link) 2>&5
  9772. ac_status=$?
  9773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9774. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9775. (./conftest; exit; ) >&5 2>/dev/null
  9776. lt_status=$?
  9777. case x$lt_status in
  9778. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9779. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9780. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9781. esac
  9782. else :
  9783. # compilation failed
  9784. lt_cv_dlopen_self_static=no
  9785. fi
  9786. fi
  9787. rm -fr conftest*
  9788. fi
  9789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9790. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9791. fi
  9792. CPPFLAGS="$save_CPPFLAGS"
  9793. LDFLAGS="$save_LDFLAGS"
  9794. LIBS="$save_LIBS"
  9795. ;;
  9796. esac
  9797. case $lt_cv_dlopen_self in
  9798. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9799. *) enable_dlopen_self=unknown ;;
  9800. esac
  9801. case $lt_cv_dlopen_self_static in
  9802. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9803. *) enable_dlopen_self_static=unknown ;;
  9804. esac
  9805. fi
  9806. striplib=
  9807. old_striplib=
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9809. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9810. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9811. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9812. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9814. $as_echo "yes" >&6; }
  9815. else
  9816. # FIXME - insert some real tests, host_os isn't really good enough
  9817. case $host_os in
  9818. darwin*)
  9819. if test -n "$STRIP" ; then
  9820. striplib="$STRIP -x"
  9821. old_striplib="$STRIP -S"
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9823. $as_echo "yes" >&6; }
  9824. else
  9825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9826. $as_echo "no" >&6; }
  9827. fi
  9828. ;;
  9829. *)
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9831. $as_echo "no" >&6; }
  9832. ;;
  9833. esac
  9834. fi
  9835. # Report which library types will actually be built
  9836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9837. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9839. $as_echo "$can_build_shared" >&6; }
  9840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9841. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9842. test "$can_build_shared" = "no" && enable_shared=no
  9843. # On AIX, shared libraries and static libraries use the same namespace, and
  9844. # are all built from PIC.
  9845. case $host_os in
  9846. aix3*)
  9847. test "$enable_shared" = yes && enable_static=no
  9848. if test -n "$RANLIB"; then
  9849. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9850. postinstall_cmds='$RANLIB $lib'
  9851. fi
  9852. ;;
  9853. aix[4-9]*)
  9854. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9855. test "$enable_shared" = yes && enable_static=no
  9856. fi
  9857. ;;
  9858. esac
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9860. $as_echo "$enable_shared" >&6; }
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9862. $as_echo_n "checking whether to build static libraries... " >&6; }
  9863. # Make sure either enable_shared or enable_static is yes.
  9864. test "$enable_shared" = yes || enable_static=yes
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9866. $as_echo "$enable_static" >&6; }
  9867. fi
  9868. ac_ext=c
  9869. ac_cpp='$CPP $CPPFLAGS'
  9870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9873. CC="$lt_save_CC"
  9874. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9875. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9876. (test "X$CXX" != "Xg++"))) ; then
  9877. ac_ext=cpp
  9878. ac_cpp='$CXXCPP $CPPFLAGS'
  9879. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9880. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9881. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9883. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9884. if test -z "$CXXCPP"; then
  9885. if ${ac_cv_prog_CXXCPP+:} false; then :
  9886. $as_echo_n "(cached) " >&6
  9887. else
  9888. # Double quotes because CXXCPP needs to be expanded
  9889. for CXXCPP in "$CXX -E" "/lib/cpp"
  9890. do
  9891. ac_preproc_ok=false
  9892. for ac_cxx_preproc_warn_flag in '' yes
  9893. do
  9894. # Use a header file that comes with gcc, so configuring glibc
  9895. # with a fresh cross-compiler works.
  9896. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9897. # <limits.h> exists even on freestanding compilers.
  9898. # On the NeXT, cc -E runs the code through the compiler's parser,
  9899. # not just through cpp. "Syntax error" is here to catch this case.
  9900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9901. /* end confdefs.h. */
  9902. #ifdef __STDC__
  9903. # include <limits.h>
  9904. #else
  9905. # include <assert.h>
  9906. #endif
  9907. Syntax error
  9908. _ACEOF
  9909. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9910. else
  9911. # Broken: fails on valid input.
  9912. continue
  9913. fi
  9914. rm -f conftest.err conftest.i conftest.$ac_ext
  9915. # OK, works on sane cases. Now check whether nonexistent headers
  9916. # can be detected and how.
  9917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9918. /* end confdefs.h. */
  9919. #include <ac_nonexistent.h>
  9920. _ACEOF
  9921. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9922. # Broken: success on invalid input.
  9923. continue
  9924. else
  9925. # Passes both tests.
  9926. ac_preproc_ok=:
  9927. break
  9928. fi
  9929. rm -f conftest.err conftest.i conftest.$ac_ext
  9930. done
  9931. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9932. rm -f conftest.i conftest.err conftest.$ac_ext
  9933. if $ac_preproc_ok; then :
  9934. break
  9935. fi
  9936. done
  9937. ac_cv_prog_CXXCPP=$CXXCPP
  9938. fi
  9939. CXXCPP=$ac_cv_prog_CXXCPP
  9940. else
  9941. ac_cv_prog_CXXCPP=$CXXCPP
  9942. fi
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9944. $as_echo "$CXXCPP" >&6; }
  9945. ac_preproc_ok=false
  9946. for ac_cxx_preproc_warn_flag in '' yes
  9947. do
  9948. # Use a header file that comes with gcc, so configuring glibc
  9949. # with a fresh cross-compiler works.
  9950. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9951. # <limits.h> exists even on freestanding compilers.
  9952. # On the NeXT, cc -E runs the code through the compiler's parser,
  9953. # not just through cpp. "Syntax error" is here to catch this case.
  9954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9955. /* end confdefs.h. */
  9956. #ifdef __STDC__
  9957. # include <limits.h>
  9958. #else
  9959. # include <assert.h>
  9960. #endif
  9961. Syntax error
  9962. _ACEOF
  9963. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9964. else
  9965. # Broken: fails on valid input.
  9966. continue
  9967. fi
  9968. rm -f conftest.err conftest.i conftest.$ac_ext
  9969. # OK, works on sane cases. Now check whether nonexistent headers
  9970. # can be detected and how.
  9971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9972. /* end confdefs.h. */
  9973. #include <ac_nonexistent.h>
  9974. _ACEOF
  9975. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9976. # Broken: success on invalid input.
  9977. continue
  9978. else
  9979. # Passes both tests.
  9980. ac_preproc_ok=:
  9981. break
  9982. fi
  9983. rm -f conftest.err conftest.i conftest.$ac_ext
  9984. done
  9985. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9986. rm -f conftest.i conftest.err conftest.$ac_ext
  9987. if $ac_preproc_ok; then :
  9988. else
  9989. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9990. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9991. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  9992. See \`config.log' for more details" "$LINENO" 5; }
  9993. fi
  9994. ac_ext=c
  9995. ac_cpp='$CPP $CPPFLAGS'
  9996. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9997. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9998. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9999. else
  10000. _lt_caught_CXX_error=yes
  10001. fi
  10002. ac_ext=cpp
  10003. ac_cpp='$CXXCPP $CPPFLAGS'
  10004. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10005. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10006. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10007. archive_cmds_need_lc_CXX=no
  10008. allow_undefined_flag_CXX=
  10009. always_export_symbols_CXX=no
  10010. archive_expsym_cmds_CXX=
  10011. compiler_needs_object_CXX=no
  10012. export_dynamic_flag_spec_CXX=
  10013. hardcode_direct_CXX=no
  10014. hardcode_direct_absolute_CXX=no
  10015. hardcode_libdir_flag_spec_CXX=
  10016. hardcode_libdir_separator_CXX=
  10017. hardcode_minus_L_CXX=no
  10018. hardcode_shlibpath_var_CXX=unsupported
  10019. hardcode_automatic_CXX=no
  10020. inherit_rpath_CXX=no
  10021. module_cmds_CXX=
  10022. module_expsym_cmds_CXX=
  10023. link_all_deplibs_CXX=unknown
  10024. old_archive_cmds_CXX=$old_archive_cmds
  10025. reload_flag_CXX=$reload_flag
  10026. reload_cmds_CXX=$reload_cmds
  10027. no_undefined_flag_CXX=
  10028. whole_archive_flag_spec_CXX=
  10029. enable_shared_with_static_runtimes_CXX=no
  10030. # Source file extension for C++ test sources.
  10031. ac_ext=cpp
  10032. # Object file extension for compiled C++ test sources.
  10033. objext=o
  10034. objext_CXX=$objext
  10035. # No sense in running all these tests if we already determined that
  10036. # the CXX compiler isn't working. Some variables (like enable_shared)
  10037. # are currently assumed to apply to all compilers on this platform,
  10038. # and will be corrupted by setting them based on a non-working compiler.
  10039. if test "$_lt_caught_CXX_error" != yes; then
  10040. # Code to be used in simple compile tests
  10041. lt_simple_compile_test_code="int some_variable = 0;"
  10042. # Code to be used in simple link tests
  10043. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10044. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10045. # If no C compiler was specified, use CC.
  10046. LTCC=${LTCC-"$CC"}
  10047. # If no C compiler flags were specified, use CFLAGS.
  10048. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10049. # Allow CC to be a program name with arguments.
  10050. compiler=$CC
  10051. # save warnings/boilerplate of simple test code
  10052. ac_outfile=conftest.$ac_objext
  10053. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10054. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10055. _lt_compiler_boilerplate=`cat conftest.err`
  10056. $RM conftest*
  10057. ac_outfile=conftest.$ac_objext
  10058. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10059. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10060. _lt_linker_boilerplate=`cat conftest.err`
  10061. $RM -r conftest*
  10062. # Allow CC to be a program name with arguments.
  10063. lt_save_CC=$CC
  10064. lt_save_CFLAGS=$CFLAGS
  10065. lt_save_LD=$LD
  10066. lt_save_GCC=$GCC
  10067. GCC=$GXX
  10068. lt_save_with_gnu_ld=$with_gnu_ld
  10069. lt_save_path_LD=$lt_cv_path_LD
  10070. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10071. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10072. else
  10073. $as_unset lt_cv_prog_gnu_ld
  10074. fi
  10075. if test -n "${lt_cv_path_LDCXX+set}"; then
  10076. lt_cv_path_LD=$lt_cv_path_LDCXX
  10077. else
  10078. $as_unset lt_cv_path_LD
  10079. fi
  10080. test -z "${LDCXX+set}" || LD=$LDCXX
  10081. CC=${CXX-"c++"}
  10082. CFLAGS=$CXXFLAGS
  10083. compiler=$CC
  10084. compiler_CXX=$CC
  10085. for cc_temp in $compiler""; do
  10086. case $cc_temp in
  10087. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10088. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10089. \-*) ;;
  10090. *) break;;
  10091. esac
  10092. done
  10093. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10094. if test -n "$compiler"; then
  10095. # We don't want -fno-exception when compiling C++ code, so set the
  10096. # no_builtin_flag separately
  10097. if test "$GXX" = yes; then
  10098. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10099. else
  10100. lt_prog_compiler_no_builtin_flag_CXX=
  10101. fi
  10102. if test "$GXX" = yes; then
  10103. # Set up default GNU C++ configuration
  10104. # Check whether --with-gnu-ld was given.
  10105. if test "${with_gnu_ld+set}" = set; then :
  10106. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10107. else
  10108. with_gnu_ld=no
  10109. fi
  10110. ac_prog=ld
  10111. if test "$GCC" = yes; then
  10112. # Check if gcc -print-prog-name=ld gives a path.
  10113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10114. $as_echo_n "checking for ld used by $CC... " >&6; }
  10115. case $host in
  10116. *-*-mingw*)
  10117. # gcc leaves a trailing carriage return which upsets mingw
  10118. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10119. *)
  10120. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10121. esac
  10122. case $ac_prog in
  10123. # Accept absolute paths.
  10124. [\\/]* | ?:[\\/]*)
  10125. re_direlt='/[^/][^/]*/\.\./'
  10126. # Canonicalize the pathname of ld
  10127. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10128. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10129. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10130. done
  10131. test -z "$LD" && LD="$ac_prog"
  10132. ;;
  10133. "")
  10134. # If it fails, then pretend we aren't using GCC.
  10135. ac_prog=ld
  10136. ;;
  10137. *)
  10138. # If it is relative, then search for the first ld in PATH.
  10139. with_gnu_ld=unknown
  10140. ;;
  10141. esac
  10142. elif test "$with_gnu_ld" = yes; then
  10143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10144. $as_echo_n "checking for GNU ld... " >&6; }
  10145. else
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10147. $as_echo_n "checking for non-GNU ld... " >&6; }
  10148. fi
  10149. if ${lt_cv_path_LD+:} false; then :
  10150. $as_echo_n "(cached) " >&6
  10151. else
  10152. if test -z "$LD"; then
  10153. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10154. for ac_dir in $PATH; do
  10155. IFS="$lt_save_ifs"
  10156. test -z "$ac_dir" && ac_dir=.
  10157. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10158. lt_cv_path_LD="$ac_dir/$ac_prog"
  10159. # Check to see if the program is GNU ld. I'd rather use --version,
  10160. # but apparently some variants of GNU ld only accept -v.
  10161. # Break only if it was the GNU/non-GNU ld that we prefer.
  10162. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10163. *GNU* | *'with BFD'*)
  10164. test "$with_gnu_ld" != no && break
  10165. ;;
  10166. *)
  10167. test "$with_gnu_ld" != yes && break
  10168. ;;
  10169. esac
  10170. fi
  10171. done
  10172. IFS="$lt_save_ifs"
  10173. else
  10174. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10175. fi
  10176. fi
  10177. LD="$lt_cv_path_LD"
  10178. if test -n "$LD"; then
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10180. $as_echo "$LD" >&6; }
  10181. else
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10183. $as_echo "no" >&6; }
  10184. fi
  10185. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10187. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10188. if ${lt_cv_prog_gnu_ld+:} false; then :
  10189. $as_echo_n "(cached) " >&6
  10190. else
  10191. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10192. case `$LD -v 2>&1 </dev/null` in
  10193. *GNU* | *'with BFD'*)
  10194. lt_cv_prog_gnu_ld=yes
  10195. ;;
  10196. *)
  10197. lt_cv_prog_gnu_ld=no
  10198. ;;
  10199. esac
  10200. fi
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10202. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10203. with_gnu_ld=$lt_cv_prog_gnu_ld
  10204. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10205. # archiving commands below assume that GNU ld is being used.
  10206. if test "$with_gnu_ld" = yes; then
  10207. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10208. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10209. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10210. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10211. # If archive_cmds runs LD, not CC, wlarc should be empty
  10212. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10213. # investigate it a little bit more. (MM)
  10214. wlarc='${wl}'
  10215. # ancient GNU ld didn't support --whole-archive et. al.
  10216. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10217. $GREP 'no-whole-archive' > /dev/null; then
  10218. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10219. else
  10220. whole_archive_flag_spec_CXX=
  10221. fi
  10222. else
  10223. with_gnu_ld=no
  10224. wlarc=
  10225. # A generic and very simple default shared library creation
  10226. # command for GNU C++ for the case where it uses the native
  10227. # linker, instead of GNU ld. If possible, this setting should
  10228. # overridden to take advantage of the native linker features on
  10229. # the platform it is being used on.
  10230. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10231. fi
  10232. # Commands to make compiler produce verbose output that lists
  10233. # what "hidden" libraries, object files and flags are used when
  10234. # linking a shared library.
  10235. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10236. else
  10237. GXX=no
  10238. with_gnu_ld=no
  10239. wlarc=
  10240. fi
  10241. # PORTME: fill in a description of your system's C++ link characteristics
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10243. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10244. ld_shlibs_CXX=yes
  10245. case $host_os in
  10246. aix3*)
  10247. # FIXME: insert proper C++ library support
  10248. ld_shlibs_CXX=no
  10249. ;;
  10250. aix[4-9]*)
  10251. if test "$host_cpu" = ia64; then
  10252. # On IA64, the linker does run time linking by default, so we don't
  10253. # have to do anything special.
  10254. aix_use_runtimelinking=no
  10255. exp_sym_flag='-Bexport'
  10256. no_entry_flag=""
  10257. else
  10258. aix_use_runtimelinking=no
  10259. # Test if we are trying to use run time linking or normal
  10260. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10261. # need to do runtime linking.
  10262. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10263. for ld_flag in $LDFLAGS; do
  10264. case $ld_flag in
  10265. *-brtl*)
  10266. aix_use_runtimelinking=yes
  10267. break
  10268. ;;
  10269. esac
  10270. done
  10271. ;;
  10272. esac
  10273. exp_sym_flag='-bexport'
  10274. no_entry_flag='-bnoentry'
  10275. fi
  10276. # When large executables or shared objects are built, AIX ld can
  10277. # have problems creating the table of contents. If linking a library
  10278. # or program results in "error TOC overflow" add -mminimal-toc to
  10279. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10280. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10281. archive_cmds_CXX=''
  10282. hardcode_direct_CXX=yes
  10283. hardcode_direct_absolute_CXX=yes
  10284. hardcode_libdir_separator_CXX=':'
  10285. link_all_deplibs_CXX=yes
  10286. file_list_spec_CXX='${wl}-f,'
  10287. if test "$GXX" = yes; then
  10288. case $host_os in aix4.[012]|aix4.[012].*)
  10289. # We only want to do this on AIX 4.2 and lower, the check
  10290. # below for broken collect2 doesn't work under 4.3+
  10291. collect2name=`${CC} -print-prog-name=collect2`
  10292. if test -f "$collect2name" &&
  10293. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10294. then
  10295. # We have reworked collect2
  10296. :
  10297. else
  10298. # We have old collect2
  10299. hardcode_direct_CXX=unsupported
  10300. # It fails to find uninstalled libraries when the uninstalled
  10301. # path is not listed in the libpath. Setting hardcode_minus_L
  10302. # to unsupported forces relinking
  10303. hardcode_minus_L_CXX=yes
  10304. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10305. hardcode_libdir_separator_CXX=
  10306. fi
  10307. esac
  10308. shared_flag='-shared'
  10309. if test "$aix_use_runtimelinking" = yes; then
  10310. shared_flag="$shared_flag "'${wl}-G'
  10311. fi
  10312. else
  10313. # not using gcc
  10314. if test "$host_cpu" = ia64; then
  10315. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10316. # chokes on -Wl,-G. The following line is correct:
  10317. shared_flag='-G'
  10318. else
  10319. if test "$aix_use_runtimelinking" = yes; then
  10320. shared_flag='${wl}-G'
  10321. else
  10322. shared_flag='${wl}-bM:SRE'
  10323. fi
  10324. fi
  10325. fi
  10326. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10327. # It seems that -bexpall does not export symbols beginning with
  10328. # underscore (_), so it is better to generate a list of symbols to
  10329. # export.
  10330. always_export_symbols_CXX=yes
  10331. if test "$aix_use_runtimelinking" = yes; then
  10332. # Warning - without using the other runtime loading flags (-brtl),
  10333. # -berok will link without error, but may produce a broken library.
  10334. allow_undefined_flag_CXX='-berok'
  10335. # Determine the default libpath from the value encoded in an empty
  10336. # executable.
  10337. if test "${lt_cv_aix_libpath+set}" = set; then
  10338. aix_libpath=$lt_cv_aix_libpath
  10339. else
  10340. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10341. $as_echo_n "(cached) " >&6
  10342. else
  10343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10344. /* end confdefs.h. */
  10345. int
  10346. main ()
  10347. {
  10348. ;
  10349. return 0;
  10350. }
  10351. _ACEOF
  10352. if ac_fn_cxx_try_link "$LINENO"; then :
  10353. lt_aix_libpath_sed='
  10354. /Import File Strings/,/^$/ {
  10355. /^0/ {
  10356. s/^0 *\([^ ]*\) *$/\1/
  10357. p
  10358. }
  10359. }'
  10360. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10361. # Check for a 64-bit object if we didn't find anything.
  10362. if test -z "$lt_cv_aix_libpath__CXX"; then
  10363. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10364. fi
  10365. fi
  10366. rm -f core conftest.err conftest.$ac_objext \
  10367. conftest$ac_exeext conftest.$ac_ext
  10368. if test -z "$lt_cv_aix_libpath__CXX"; then
  10369. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10370. fi
  10371. fi
  10372. aix_libpath=$lt_cv_aix_libpath__CXX
  10373. fi
  10374. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10375. 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10376. else
  10377. if test "$host_cpu" = ia64; then
  10378. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10379. allow_undefined_flag_CXX="-z nodefs"
  10380. 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"
  10381. else
  10382. # Determine the default libpath from the value encoded in an
  10383. # empty executable.
  10384. if test "${lt_cv_aix_libpath+set}" = set; then
  10385. aix_libpath=$lt_cv_aix_libpath
  10386. else
  10387. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10388. $as_echo_n "(cached) " >&6
  10389. else
  10390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10391. /* end confdefs.h. */
  10392. int
  10393. main ()
  10394. {
  10395. ;
  10396. return 0;
  10397. }
  10398. _ACEOF
  10399. if ac_fn_cxx_try_link "$LINENO"; then :
  10400. lt_aix_libpath_sed='
  10401. /Import File Strings/,/^$/ {
  10402. /^0/ {
  10403. s/^0 *\([^ ]*\) *$/\1/
  10404. p
  10405. }
  10406. }'
  10407. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10408. # Check for a 64-bit object if we didn't find anything.
  10409. if test -z "$lt_cv_aix_libpath__CXX"; then
  10410. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10411. fi
  10412. fi
  10413. rm -f core conftest.err conftest.$ac_objext \
  10414. conftest$ac_exeext conftest.$ac_ext
  10415. if test -z "$lt_cv_aix_libpath__CXX"; then
  10416. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10417. fi
  10418. fi
  10419. aix_libpath=$lt_cv_aix_libpath__CXX
  10420. fi
  10421. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10422. # Warning - without using the other run time loading flags,
  10423. # -berok will link without error, but may produce a broken library.
  10424. no_undefined_flag_CXX=' ${wl}-bernotok'
  10425. allow_undefined_flag_CXX=' ${wl}-berok'
  10426. if test "$with_gnu_ld" = yes; then
  10427. # We only use this code for GNU lds that support --whole-archive.
  10428. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10429. else
  10430. # Exported symbols can be pulled into shared objects from archives
  10431. whole_archive_flag_spec_CXX='$convenience'
  10432. fi
  10433. archive_cmds_need_lc_CXX=yes
  10434. # This is similar to how AIX traditionally builds its shared
  10435. # libraries.
  10436. 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'
  10437. fi
  10438. fi
  10439. ;;
  10440. beos*)
  10441. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10442. allow_undefined_flag_CXX=unsupported
  10443. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10444. # support --undefined. This deserves some investigation. FIXME
  10445. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10446. else
  10447. ld_shlibs_CXX=no
  10448. fi
  10449. ;;
  10450. chorus*)
  10451. case $cc_basename in
  10452. *)
  10453. # FIXME: insert proper C++ library support
  10454. ld_shlibs_CXX=no
  10455. ;;
  10456. esac
  10457. ;;
  10458. cygwin* | mingw* | pw32* | cegcc*)
  10459. case $GXX,$cc_basename in
  10460. ,cl* | no,cl*)
  10461. # Native MSVC
  10462. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10463. # no search path for DLLs.
  10464. hardcode_libdir_flag_spec_CXX=' '
  10465. allow_undefined_flag_CXX=unsupported
  10466. always_export_symbols_CXX=yes
  10467. file_list_spec_CXX='@'
  10468. # Tell ltmain to make .lib files, not .a files.
  10469. libext=lib
  10470. # Tell ltmain to make .dll files, not .so files.
  10471. shrext_cmds=".dll"
  10472. # FIXME: Setting linknames here is a bad hack.
  10473. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10474. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10475. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10476. else
  10477. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10478. fi~
  10479. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10480. linknames='
  10481. # The linker will not automatically build a static lib if we build a DLL.
  10482. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10483. enable_shared_with_static_runtimes_CXX=yes
  10484. # Don't use ranlib
  10485. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10486. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10487. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10488. case $lt_outputfile in
  10489. *.exe|*.EXE) ;;
  10490. *)
  10491. lt_outputfile="$lt_outputfile.exe"
  10492. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10493. ;;
  10494. esac~
  10495. func_to_tool_file "$lt_outputfile"~
  10496. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10497. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10498. $RM "$lt_outputfile.manifest";
  10499. fi'
  10500. ;;
  10501. *)
  10502. # g++
  10503. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10504. # as there is no search path for DLLs.
  10505. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10506. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10507. allow_undefined_flag_CXX=unsupported
  10508. always_export_symbols_CXX=no
  10509. enable_shared_with_static_runtimes_CXX=yes
  10510. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10511. 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'
  10512. # If the export-symbols file already is a .def file (1st line
  10513. # is EXPORTS), use it as is; otherwise, prepend...
  10514. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10515. cp $export_symbols $output_objdir/$soname.def;
  10516. else
  10517. echo EXPORTS > $output_objdir/$soname.def;
  10518. cat $export_symbols >> $output_objdir/$soname.def;
  10519. fi~
  10520. $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'
  10521. else
  10522. ld_shlibs_CXX=no
  10523. fi
  10524. ;;
  10525. esac
  10526. ;;
  10527. darwin* | rhapsody*)
  10528. archive_cmds_need_lc_CXX=no
  10529. hardcode_direct_CXX=no
  10530. hardcode_automatic_CXX=yes
  10531. hardcode_shlibpath_var_CXX=unsupported
  10532. if test "$lt_cv_ld_force_load" = "yes"; then
  10533. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10534. else
  10535. whole_archive_flag_spec_CXX=''
  10536. fi
  10537. link_all_deplibs_CXX=yes
  10538. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10539. case $cc_basename in
  10540. ifort*) _lt_dar_can_shared=yes ;;
  10541. *) _lt_dar_can_shared=$GCC ;;
  10542. esac
  10543. if test "$_lt_dar_can_shared" = "yes"; then
  10544. output_verbose_link_cmd=func_echo_all
  10545. 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}"
  10546. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10547. 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}"
  10548. 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}"
  10549. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10550. 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}"
  10551. 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}"
  10552. fi
  10553. else
  10554. ld_shlibs_CXX=no
  10555. fi
  10556. ;;
  10557. dgux*)
  10558. case $cc_basename in
  10559. ec++*)
  10560. # FIXME: insert proper C++ library support
  10561. ld_shlibs_CXX=no
  10562. ;;
  10563. ghcx*)
  10564. # Green Hills C++ Compiler
  10565. # FIXME: insert proper C++ library support
  10566. ld_shlibs_CXX=no
  10567. ;;
  10568. *)
  10569. # FIXME: insert proper C++ library support
  10570. ld_shlibs_CXX=no
  10571. ;;
  10572. esac
  10573. ;;
  10574. freebsd2.*)
  10575. # C++ shared libraries reported to be fairly broken before
  10576. # switch to ELF
  10577. ld_shlibs_CXX=no
  10578. ;;
  10579. freebsd-elf*)
  10580. archive_cmds_need_lc_CXX=no
  10581. ;;
  10582. freebsd* | dragonfly*)
  10583. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10584. # conventions
  10585. ld_shlibs_CXX=yes
  10586. ;;
  10587. gnu*)
  10588. ;;
  10589. haiku*)
  10590. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10591. link_all_deplibs_CXX=yes
  10592. ;;
  10593. hpux9*)
  10594. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10595. hardcode_libdir_separator_CXX=:
  10596. export_dynamic_flag_spec_CXX='${wl}-E'
  10597. hardcode_direct_CXX=yes
  10598. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10599. # but as the default
  10600. # location of the library.
  10601. case $cc_basename in
  10602. CC*)
  10603. # FIXME: insert proper C++ library support
  10604. ld_shlibs_CXX=no
  10605. ;;
  10606. aCC*)
  10607. 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'
  10608. # Commands to make compiler produce verbose output that lists
  10609. # what "hidden" libraries, object files and flags are used when
  10610. # linking a shared library.
  10611. #
  10612. # There doesn't appear to be a way to prevent this compiler from
  10613. # explicitly linking system object files so we need to strip them
  10614. # from the output so that they don't get included in the library
  10615. # dependencies.
  10616. 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; func_echo_all "$list"'
  10617. ;;
  10618. *)
  10619. if test "$GXX" = yes; then
  10620. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
  10621. else
  10622. # FIXME: insert proper C++ library support
  10623. ld_shlibs_CXX=no
  10624. fi
  10625. ;;
  10626. esac
  10627. ;;
  10628. hpux10*|hpux11*)
  10629. if test $with_gnu_ld = no; then
  10630. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10631. hardcode_libdir_separator_CXX=:
  10632. case $host_cpu in
  10633. hppa*64*|ia64*)
  10634. ;;
  10635. *)
  10636. export_dynamic_flag_spec_CXX='${wl}-E'
  10637. ;;
  10638. esac
  10639. fi
  10640. case $host_cpu in
  10641. hppa*64*|ia64*)
  10642. hardcode_direct_CXX=no
  10643. hardcode_shlibpath_var_CXX=no
  10644. ;;
  10645. *)
  10646. hardcode_direct_CXX=yes
  10647. hardcode_direct_absolute_CXX=yes
  10648. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10649. # but as the default
  10650. # location of the library.
  10651. ;;
  10652. esac
  10653. case $cc_basename in
  10654. CC*)
  10655. # FIXME: insert proper C++ library support
  10656. ld_shlibs_CXX=no
  10657. ;;
  10658. aCC*)
  10659. case $host_cpu in
  10660. hppa*64*)
  10661. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10662. ;;
  10663. ia64*)
  10664. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10665. ;;
  10666. *)
  10667. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10668. ;;
  10669. esac
  10670. # Commands to make compiler produce verbose output that lists
  10671. # what "hidden" libraries, object files and flags are used when
  10672. # linking a shared library.
  10673. #
  10674. # There doesn't appear to be a way to prevent this compiler from
  10675. # explicitly linking system object files so we need to strip them
  10676. # from the output so that they don't get included in the library
  10677. # dependencies.
  10678. 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; func_echo_all "$list"'
  10679. ;;
  10680. *)
  10681. if test "$GXX" = yes; then
  10682. if test $with_gnu_ld = no; then
  10683. case $host_cpu in
  10684. hppa*64*)
  10685. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10686. ;;
  10687. ia64*)
  10688. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10689. ;;
  10690. *)
  10691. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10692. ;;
  10693. esac
  10694. fi
  10695. else
  10696. # FIXME: insert proper C++ library support
  10697. ld_shlibs_CXX=no
  10698. fi
  10699. ;;
  10700. esac
  10701. ;;
  10702. interix[3-9]*)
  10703. hardcode_direct_CXX=no
  10704. hardcode_shlibpath_var_CXX=no
  10705. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10706. export_dynamic_flag_spec_CXX='${wl}-E'
  10707. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10708. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10709. # default) and relocated if they conflict, which is a slow very memory
  10710. # consuming and fragmenting process. To avoid this, we pick a random,
  10711. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10712. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10713. 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'
  10714. 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'
  10715. ;;
  10716. irix5* | irix6*)
  10717. case $cc_basename in
  10718. CC*)
  10719. # SGI C++
  10720. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10721. # Archives containing C++ object files must be created using
  10722. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10723. # necessary to make sure instantiated templates are included
  10724. # in the archive.
  10725. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10726. ;;
  10727. *)
  10728. if test "$GXX" = yes; then
  10729. if test "$with_gnu_ld" = no; then
  10730. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10731. else
  10732. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  10733. fi
  10734. fi
  10735. link_all_deplibs_CXX=yes
  10736. ;;
  10737. esac
  10738. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10739. hardcode_libdir_separator_CXX=:
  10740. inherit_rpath_CXX=yes
  10741. ;;
  10742. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10743. case $cc_basename in
  10744. KCC*)
  10745. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10746. # KCC will only create a shared library if the output file
  10747. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10748. # to its proper name (with version) after linking.
  10749. 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'
  10750. 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'
  10751. # Commands to make compiler produce verbose output that lists
  10752. # what "hidden" libraries, object files and flags are used when
  10753. # linking a shared library.
  10754. #
  10755. # There doesn't appear to be a way to prevent this compiler from
  10756. # explicitly linking system object files so we need to strip them
  10757. # from the output so that they don't get included in the library
  10758. # dependencies.
  10759. 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; func_echo_all "$list"'
  10760. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10761. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10762. # Archives containing C++ object files must be created using
  10763. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10764. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10765. ;;
  10766. icpc* | ecpc* )
  10767. # Intel C++
  10768. with_gnu_ld=yes
  10769. # version 8.0 and above of icpc choke on multiply defined symbols
  10770. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10771. # earlier do not add the objects themselves.
  10772. case `$CC -V 2>&1` in
  10773. *"Version 7."*)
  10774. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10775. 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'
  10776. ;;
  10777. *) # Version 8.0 or newer
  10778. tmp_idyn=
  10779. case $host_cpu in
  10780. ia64*) tmp_idyn=' -i_dynamic';;
  10781. esac
  10782. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10783. 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'
  10784. ;;
  10785. esac
  10786. archive_cmds_need_lc_CXX=no
  10787. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10788. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10789. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10790. ;;
  10791. pgCC* | pgcpp*)
  10792. # Portland Group C++ compiler
  10793. case `$CC -V` in
  10794. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10795. prelink_cmds_CXX='tpldir=Template.dir~
  10796. rm -rf $tpldir~
  10797. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10798. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  10799. old_archive_cmds_CXX='tpldir=Template.dir~
  10800. rm -rf $tpldir~
  10801. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10802. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  10803. $RANLIB $oldlib'
  10804. archive_cmds_CXX='tpldir=Template.dir~
  10805. rm -rf $tpldir~
  10806. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10807. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10808. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10809. rm -rf $tpldir~
  10810. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10811. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10812. ;;
  10813. *) # Version 6 and above use weak symbols
  10814. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10815. 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'
  10816. ;;
  10817. esac
  10818. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10819. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10820. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10821. ;;
  10822. cxx*)
  10823. # Compaq C++
  10824. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10825. 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'
  10826. runpath_var=LD_RUN_PATH
  10827. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10828. hardcode_libdir_separator_CXX=:
  10829. # Commands to make compiler produce verbose output that lists
  10830. # what "hidden" libraries, object files and flags are used when
  10831. # linking a shared library.
  10832. #
  10833. # There doesn't appear to be a way to prevent this compiler from
  10834. # explicitly linking system object files so we need to strip them
  10835. # from the output so that they don't get included in the library
  10836. # dependencies.
  10837. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  10838. ;;
  10839. xl* | mpixl* | bgxl*)
  10840. # IBM XL 8.0 on PPC, with GNU ld
  10841. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10842. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10843. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10844. if test "x$supports_anon_versioning" = xyes; then
  10845. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10846. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10847. echo "local: *; };" >> $output_objdir/$libname.ver~
  10848. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10849. fi
  10850. ;;
  10851. *)
  10852. case `$CC -V 2>&1 | sed 5q` in
  10853. *Sun\ C*)
  10854. # Sun C++ 5.9
  10855. no_undefined_flag_CXX=' -zdefs'
  10856. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10857. 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'
  10858. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10859. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10860. compiler_needs_object_CXX=yes
  10861. # Not sure whether something based on
  10862. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10863. # would be better.
  10864. output_verbose_link_cmd='func_echo_all'
  10865. # Archives containing C++ object files must be created using
  10866. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10867. # necessary to make sure instantiated templates are included
  10868. # in the archive.
  10869. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10870. ;;
  10871. esac
  10872. ;;
  10873. esac
  10874. ;;
  10875. lynxos*)
  10876. # FIXME: insert proper C++ library support
  10877. ld_shlibs_CXX=no
  10878. ;;
  10879. m88k*)
  10880. # FIXME: insert proper C++ library support
  10881. ld_shlibs_CXX=no
  10882. ;;
  10883. mvs*)
  10884. case $cc_basename in
  10885. cxx*)
  10886. # FIXME: insert proper C++ library support
  10887. ld_shlibs_CXX=no
  10888. ;;
  10889. *)
  10890. # FIXME: insert proper C++ library support
  10891. ld_shlibs_CXX=no
  10892. ;;
  10893. esac
  10894. ;;
  10895. netbsd*)
  10896. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10897. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10898. wlarc=
  10899. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10900. hardcode_direct_CXX=yes
  10901. hardcode_shlibpath_var_CXX=no
  10902. fi
  10903. # Workaround some broken pre-1.5 toolchains
  10904. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10905. ;;
  10906. *nto* | *qnx*)
  10907. ld_shlibs_CXX=yes
  10908. ;;
  10909. openbsd2*)
  10910. # C++ shared libraries are fairly broken
  10911. ld_shlibs_CXX=no
  10912. ;;
  10913. openbsd*)
  10914. if test -f /usr/libexec/ld.so; then
  10915. hardcode_direct_CXX=yes
  10916. hardcode_shlibpath_var_CXX=no
  10917. hardcode_direct_absolute_CXX=yes
  10918. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10919. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10920. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10921. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10922. export_dynamic_flag_spec_CXX='${wl}-E'
  10923. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10924. fi
  10925. output_verbose_link_cmd=func_echo_all
  10926. else
  10927. ld_shlibs_CXX=no
  10928. fi
  10929. ;;
  10930. osf3* | osf4* | osf5*)
  10931. case $cc_basename in
  10932. KCC*)
  10933. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10934. # KCC will only create a shared library if the output file
  10935. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10936. # to its proper name (with version) after linking.
  10937. 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'
  10938. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10939. hardcode_libdir_separator_CXX=:
  10940. # Archives containing C++ object files must be created using
  10941. # the KAI C++ compiler.
  10942. case $host in
  10943. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10944. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10945. esac
  10946. ;;
  10947. RCC*)
  10948. # Rational C++ 2.4.1
  10949. # FIXME: insert proper C++ library support
  10950. ld_shlibs_CXX=no
  10951. ;;
  10952. cxx*)
  10953. case $host in
  10954. osf3*)
  10955. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10956. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10957. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10958. ;;
  10959. *)
  10960. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10961. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10962. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10963. echo "-hidden">> $lib.exp~
  10964. $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  10965. $RM $lib.exp'
  10966. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10967. ;;
  10968. esac
  10969. hardcode_libdir_separator_CXX=:
  10970. # Commands to make compiler produce verbose output that lists
  10971. # what "hidden" libraries, object files and flags are used when
  10972. # linking a shared library.
  10973. #
  10974. # There doesn't appear to be a way to prevent this compiler from
  10975. # explicitly linking system object files so we need to strip them
  10976. # from the output so that they don't get included in the library
  10977. # dependencies.
  10978. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10979. ;;
  10980. *)
  10981. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10982. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10983. case $host in
  10984. osf3*)
  10985. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10986. ;;
  10987. *)
  10988. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10989. ;;
  10990. esac
  10991. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10992. hardcode_libdir_separator_CXX=:
  10993. # Commands to make compiler produce verbose output that lists
  10994. # what "hidden" libraries, object files and flags are used when
  10995. # linking a shared library.
  10996. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10997. else
  10998. # FIXME: insert proper C++ library support
  10999. ld_shlibs_CXX=no
  11000. fi
  11001. ;;
  11002. esac
  11003. ;;
  11004. psos*)
  11005. # FIXME: insert proper C++ library support
  11006. ld_shlibs_CXX=no
  11007. ;;
  11008. sunos4*)
  11009. case $cc_basename in
  11010. CC*)
  11011. # Sun C++ 4.x
  11012. # FIXME: insert proper C++ library support
  11013. ld_shlibs_CXX=no
  11014. ;;
  11015. lcc*)
  11016. # Lucid
  11017. # FIXME: insert proper C++ library support
  11018. ld_shlibs_CXX=no
  11019. ;;
  11020. *)
  11021. # FIXME: insert proper C++ library support
  11022. ld_shlibs_CXX=no
  11023. ;;
  11024. esac
  11025. ;;
  11026. solaris*)
  11027. case $cc_basename in
  11028. CC* | sunCC*)
  11029. # Sun C++ 4.2, 5.x and Centerline C++
  11030. archive_cmds_need_lc_CXX=yes
  11031. no_undefined_flag_CXX=' -zdefs'
  11032. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11033. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11034. $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'
  11035. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11036. hardcode_shlibpath_var_CXX=no
  11037. case $host_os in
  11038. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11039. *)
  11040. # The compiler driver will combine and reorder linker options,
  11041. # but understands `-z linker_flag'.
  11042. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11043. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11044. ;;
  11045. esac
  11046. link_all_deplibs_CXX=yes
  11047. output_verbose_link_cmd='func_echo_all'
  11048. # Archives containing C++ object files must be created using
  11049. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11050. # necessary to make sure instantiated templates are included
  11051. # in the archive.
  11052. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11053. ;;
  11054. gcx*)
  11055. # Green Hills C++ Compiler
  11056. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11057. # The C++ compiler must be used to create the archive.
  11058. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11059. ;;
  11060. *)
  11061. # GNU C++ compiler with Solaris linker
  11062. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11063. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11064. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11065. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11066. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11067. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11068. # Commands to make compiler produce verbose output that lists
  11069. # what "hidden" libraries, object files and flags are used when
  11070. # linking a shared library.
  11071. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11072. else
  11073. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11074. # platform.
  11075. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11076. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11077. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11078. # Commands to make compiler produce verbose output that lists
  11079. # what "hidden" libraries, object files and flags are used when
  11080. # linking a shared library.
  11081. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11082. fi
  11083. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11084. case $host_os in
  11085. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11086. *)
  11087. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11088. ;;
  11089. esac
  11090. fi
  11091. ;;
  11092. esac
  11093. ;;
  11094. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11095. no_undefined_flag_CXX='${wl}-z,text'
  11096. archive_cmds_need_lc_CXX=no
  11097. hardcode_shlibpath_var_CXX=no
  11098. runpath_var='LD_RUN_PATH'
  11099. case $cc_basename in
  11100. CC*)
  11101. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11102. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11103. ;;
  11104. *)
  11105. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11106. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11107. ;;
  11108. esac
  11109. ;;
  11110. sysv5* | sco3.2v5* | sco5v6*)
  11111. # Note: We can NOT use -z defs as we might desire, because we do not
  11112. # link with -lc, and that would cause any symbols used from libc to
  11113. # always be unresolved, which means just about no library would
  11114. # ever link correctly. If we're not using GNU ld we use -z text
  11115. # though, which does catch some bad symbols but isn't as heavy-handed
  11116. # as -z defs.
  11117. no_undefined_flag_CXX='${wl}-z,text'
  11118. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11119. archive_cmds_need_lc_CXX=no
  11120. hardcode_shlibpath_var_CXX=no
  11121. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11122. hardcode_libdir_separator_CXX=':'
  11123. link_all_deplibs_CXX=yes
  11124. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11125. runpath_var='LD_RUN_PATH'
  11126. case $cc_basename in
  11127. CC*)
  11128. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11129. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11130. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11131. '"$old_archive_cmds_CXX"
  11132. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11133. '"$reload_cmds_CXX"
  11134. ;;
  11135. *)
  11136. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11137. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11138. ;;
  11139. esac
  11140. ;;
  11141. tandem*)
  11142. case $cc_basename in
  11143. NCC*)
  11144. # NonStop-UX NCC 3.20
  11145. # FIXME: insert proper C++ library support
  11146. ld_shlibs_CXX=no
  11147. ;;
  11148. *)
  11149. # FIXME: insert proper C++ library support
  11150. ld_shlibs_CXX=no
  11151. ;;
  11152. esac
  11153. ;;
  11154. vxworks*)
  11155. # FIXME: insert proper C++ library support
  11156. ld_shlibs_CXX=no
  11157. ;;
  11158. *)
  11159. # FIXME: insert proper C++ library support
  11160. ld_shlibs_CXX=no
  11161. ;;
  11162. esac
  11163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11164. $as_echo "$ld_shlibs_CXX" >&6; }
  11165. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11166. GCC_CXX="$GXX"
  11167. LD_CXX="$LD"
  11168. ## CAVEAT EMPTOR:
  11169. ## There is no encapsulation within the following macros, do not change
  11170. ## the running order or otherwise move them around unless you know exactly
  11171. ## what you are doing...
  11172. # Dependencies to place before and after the object being linked:
  11173. predep_objects_CXX=
  11174. postdep_objects_CXX=
  11175. predeps_CXX=
  11176. postdeps_CXX=
  11177. compiler_lib_search_path_CXX=
  11178. cat > conftest.$ac_ext <<_LT_EOF
  11179. class Foo
  11180. {
  11181. public:
  11182. Foo (void) { a = 0; }
  11183. private:
  11184. int a;
  11185. };
  11186. _LT_EOF
  11187. _lt_libdeps_save_CFLAGS=$CFLAGS
  11188. case "$CC $CFLAGS " in #(
  11189. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11190. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11191. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11192. esac
  11193. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11194. (eval $ac_compile) 2>&5
  11195. ac_status=$?
  11196. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11197. test $ac_status = 0; }; then
  11198. # Parse the compiler output and extract the necessary
  11199. # objects, libraries and library flags.
  11200. # Sentinel used to keep track of whether or not we are before
  11201. # the conftest object file.
  11202. pre_test_object_deps_done=no
  11203. for p in `eval "$output_verbose_link_cmd"`; do
  11204. case ${prev}${p} in
  11205. -L* | -R* | -l*)
  11206. # Some compilers place space between "-{L,R}" and the path.
  11207. # Remove the space.
  11208. if test $p = "-L" ||
  11209. test $p = "-R"; then
  11210. prev=$p
  11211. continue
  11212. fi
  11213. # Expand the sysroot to ease extracting the directories later.
  11214. if test -z "$prev"; then
  11215. case $p in
  11216. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11217. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11218. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11219. esac
  11220. fi
  11221. case $p in
  11222. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11223. esac
  11224. if test "$pre_test_object_deps_done" = no; then
  11225. case ${prev} in
  11226. -L | -R)
  11227. # Internal compiler library paths should come after those
  11228. # provided the user. The postdeps already come after the
  11229. # user supplied libs so there is no need to process them.
  11230. if test -z "$compiler_lib_search_path_CXX"; then
  11231. compiler_lib_search_path_CXX="${prev}${p}"
  11232. else
  11233. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11234. fi
  11235. ;;
  11236. # The "-l" case would never come before the object being
  11237. # linked, so don't bother handling this case.
  11238. esac
  11239. else
  11240. if test -z "$postdeps_CXX"; then
  11241. postdeps_CXX="${prev}${p}"
  11242. else
  11243. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11244. fi
  11245. fi
  11246. prev=
  11247. ;;
  11248. *.lto.$objext) ;; # Ignore GCC LTO objects
  11249. *.$objext)
  11250. # This assumes that the test object file only shows up
  11251. # once in the compiler output.
  11252. if test "$p" = "conftest.$objext"; then
  11253. pre_test_object_deps_done=yes
  11254. continue
  11255. fi
  11256. if test "$pre_test_object_deps_done" = no; then
  11257. if test -z "$predep_objects_CXX"; then
  11258. predep_objects_CXX="$p"
  11259. else
  11260. predep_objects_CXX="$predep_objects_CXX $p"
  11261. fi
  11262. else
  11263. if test -z "$postdep_objects_CXX"; then
  11264. postdep_objects_CXX="$p"
  11265. else
  11266. postdep_objects_CXX="$postdep_objects_CXX $p"
  11267. fi
  11268. fi
  11269. ;;
  11270. *) ;; # Ignore the rest.
  11271. esac
  11272. done
  11273. # Clean up.
  11274. rm -f a.out a.exe
  11275. else
  11276. echo "libtool.m4: error: problem compiling CXX test program"
  11277. fi
  11278. $RM -f confest.$objext
  11279. CFLAGS=$_lt_libdeps_save_CFLAGS
  11280. # PORTME: override above test on systems where it is broken
  11281. case $host_os in
  11282. interix[3-9]*)
  11283. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11284. # hack all around it, let's just trust "g++" to DTRT.
  11285. predep_objects_CXX=
  11286. postdep_objects_CXX=
  11287. postdeps_CXX=
  11288. ;;
  11289. linux*)
  11290. case `$CC -V 2>&1 | sed 5q` in
  11291. *Sun\ C*)
  11292. # Sun C++ 5.9
  11293. # The more standards-conforming stlport4 library is
  11294. # incompatible with the Cstd library. Avoid specifying
  11295. # it if it's in CXXFLAGS. Ignore libCrun as
  11296. # -library=stlport4 depends on it.
  11297. case " $CXX $CXXFLAGS " in
  11298. *" -library=stlport4 "*)
  11299. solaris_use_stlport4=yes
  11300. ;;
  11301. esac
  11302. if test "$solaris_use_stlport4" != yes; then
  11303. postdeps_CXX='-library=Cstd -library=Crun'
  11304. fi
  11305. ;;
  11306. esac
  11307. ;;
  11308. solaris*)
  11309. case $cc_basename in
  11310. CC* | sunCC*)
  11311. # The more standards-conforming stlport4 library is
  11312. # incompatible with the Cstd library. Avoid specifying
  11313. # it if it's in CXXFLAGS. Ignore libCrun as
  11314. # -library=stlport4 depends on it.
  11315. case " $CXX $CXXFLAGS " in
  11316. *" -library=stlport4 "*)
  11317. solaris_use_stlport4=yes
  11318. ;;
  11319. esac
  11320. # Adding this requires a known-good setup of shared libraries for
  11321. # Sun compiler versions before 5.6, else PIC objects from an old
  11322. # archive will be linked into the output, leading to subtle bugs.
  11323. if test "$solaris_use_stlport4" != yes; then
  11324. postdeps_CXX='-library=Cstd -library=Crun'
  11325. fi
  11326. ;;
  11327. esac
  11328. ;;
  11329. esac
  11330. case " $postdeps_CXX " in
  11331. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11332. esac
  11333. compiler_lib_search_dirs_CXX=
  11334. if test -n "${compiler_lib_search_path_CXX}"; then
  11335. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11336. fi
  11337. lt_prog_compiler_wl_CXX=
  11338. lt_prog_compiler_pic_CXX=
  11339. lt_prog_compiler_static_CXX=
  11340. # C++ specific cases for pic, static, wl, etc.
  11341. if test "$GXX" = yes; then
  11342. lt_prog_compiler_wl_CXX='-Wl,'
  11343. lt_prog_compiler_static_CXX='-static'
  11344. case $host_os in
  11345. aix*)
  11346. # All AIX code is PIC.
  11347. if test "$host_cpu" = ia64; then
  11348. # AIX 5 now supports IA64 processor
  11349. lt_prog_compiler_static_CXX='-Bstatic'
  11350. fi
  11351. ;;
  11352. amigaos*)
  11353. case $host_cpu in
  11354. powerpc)
  11355. # see comment about AmigaOS4 .so support
  11356. lt_prog_compiler_pic_CXX='-fPIC'
  11357. ;;
  11358. m68k)
  11359. # FIXME: we need at least 68020 code to build shared libraries, but
  11360. # adding the `-m68020' flag to GCC prevents building anything better,
  11361. # like `-m68040'.
  11362. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11363. ;;
  11364. esac
  11365. ;;
  11366. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11367. # PIC is the default for these OSes.
  11368. ;;
  11369. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11370. # This hack is so that the source file can tell whether it is being
  11371. # built for inclusion in a dll (and should export symbols for example).
  11372. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11373. # (--disable-auto-import) libraries
  11374. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11375. ;;
  11376. darwin* | rhapsody*)
  11377. # PIC is the default on this platform
  11378. # Common symbols not allowed in MH_DYLIB files
  11379. lt_prog_compiler_pic_CXX='-fno-common'
  11380. ;;
  11381. *djgpp*)
  11382. # DJGPP does not support shared libraries at all
  11383. lt_prog_compiler_pic_CXX=
  11384. ;;
  11385. haiku*)
  11386. # PIC is the default for Haiku.
  11387. # The "-static" flag exists, but is broken.
  11388. lt_prog_compiler_static_CXX=
  11389. ;;
  11390. interix[3-9]*)
  11391. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11392. # Instead, we relocate shared libraries at runtime.
  11393. ;;
  11394. sysv4*MP*)
  11395. if test -d /usr/nec; then
  11396. lt_prog_compiler_pic_CXX=-Kconform_pic
  11397. fi
  11398. ;;
  11399. hpux*)
  11400. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11401. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11402. # sets the default TLS model and affects inlining.
  11403. case $host_cpu in
  11404. hppa*64*)
  11405. ;;
  11406. *)
  11407. lt_prog_compiler_pic_CXX='-fPIC'
  11408. ;;
  11409. esac
  11410. ;;
  11411. *qnx* | *nto*)
  11412. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11413. # it will coredump.
  11414. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11415. ;;
  11416. *)
  11417. lt_prog_compiler_pic_CXX='-fPIC'
  11418. ;;
  11419. esac
  11420. else
  11421. case $host_os in
  11422. aix[4-9]*)
  11423. # All AIX code is PIC.
  11424. if test "$host_cpu" = ia64; then
  11425. # AIX 5 now supports IA64 processor
  11426. lt_prog_compiler_static_CXX='-Bstatic'
  11427. else
  11428. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11429. fi
  11430. ;;
  11431. chorus*)
  11432. case $cc_basename in
  11433. cxch68*)
  11434. # Green Hills C++ Compiler
  11435. # _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"
  11436. ;;
  11437. esac
  11438. ;;
  11439. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11440. # This hack is so that the source file can tell whether it is being
  11441. # built for inclusion in a dll (and should export symbols for example).
  11442. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11443. ;;
  11444. dgux*)
  11445. case $cc_basename in
  11446. ec++*)
  11447. lt_prog_compiler_pic_CXX='-KPIC'
  11448. ;;
  11449. ghcx*)
  11450. # Green Hills C++ Compiler
  11451. lt_prog_compiler_pic_CXX='-pic'
  11452. ;;
  11453. *)
  11454. ;;
  11455. esac
  11456. ;;
  11457. freebsd* | dragonfly*)
  11458. # FreeBSD uses GNU C++
  11459. ;;
  11460. hpux9* | hpux10* | hpux11*)
  11461. case $cc_basename in
  11462. CC*)
  11463. lt_prog_compiler_wl_CXX='-Wl,'
  11464. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11465. if test "$host_cpu" != ia64; then
  11466. lt_prog_compiler_pic_CXX='+Z'
  11467. fi
  11468. ;;
  11469. aCC*)
  11470. lt_prog_compiler_wl_CXX='-Wl,'
  11471. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11472. case $host_cpu in
  11473. hppa*64*|ia64*)
  11474. # +Z the default
  11475. ;;
  11476. *)
  11477. lt_prog_compiler_pic_CXX='+Z'
  11478. ;;
  11479. esac
  11480. ;;
  11481. *)
  11482. ;;
  11483. esac
  11484. ;;
  11485. interix*)
  11486. # This is c89, which is MS Visual C++ (no shared libs)
  11487. # Anyone wants to do a port?
  11488. ;;
  11489. irix5* | irix6* | nonstopux*)
  11490. case $cc_basename in
  11491. CC*)
  11492. lt_prog_compiler_wl_CXX='-Wl,'
  11493. lt_prog_compiler_static_CXX='-non_shared'
  11494. # CC pic flag -KPIC is the default.
  11495. ;;
  11496. *)
  11497. ;;
  11498. esac
  11499. ;;
  11500. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11501. case $cc_basename in
  11502. KCC*)
  11503. # KAI C++ Compiler
  11504. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11505. lt_prog_compiler_pic_CXX='-fPIC'
  11506. ;;
  11507. ecpc* )
  11508. # old Intel C++ for x86_64 which still supported -KPIC.
  11509. lt_prog_compiler_wl_CXX='-Wl,'
  11510. lt_prog_compiler_pic_CXX='-KPIC'
  11511. lt_prog_compiler_static_CXX='-static'
  11512. ;;
  11513. icpc* )
  11514. # Intel C++, used to be incompatible with GCC.
  11515. # ICC 10 doesn't accept -KPIC any more.
  11516. lt_prog_compiler_wl_CXX='-Wl,'
  11517. lt_prog_compiler_pic_CXX='-fPIC'
  11518. lt_prog_compiler_static_CXX='-static'
  11519. ;;
  11520. pgCC* | pgcpp*)
  11521. # Portland Group C++ compiler
  11522. lt_prog_compiler_wl_CXX='-Wl,'
  11523. lt_prog_compiler_pic_CXX='-fpic'
  11524. lt_prog_compiler_static_CXX='-Bstatic'
  11525. ;;
  11526. cxx*)
  11527. # Compaq C++
  11528. # Make sure the PIC flag is empty. It appears that all Alpha
  11529. # Linux and Compaq Tru64 Unix objects are PIC.
  11530. lt_prog_compiler_pic_CXX=
  11531. lt_prog_compiler_static_CXX='-non_shared'
  11532. ;;
  11533. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11534. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11535. lt_prog_compiler_wl_CXX='-Wl,'
  11536. lt_prog_compiler_pic_CXX='-qpic'
  11537. lt_prog_compiler_static_CXX='-qstaticlink'
  11538. ;;
  11539. *)
  11540. case `$CC -V 2>&1 | sed 5q` in
  11541. *Sun\ C*)
  11542. # Sun C++ 5.9
  11543. lt_prog_compiler_pic_CXX='-KPIC'
  11544. lt_prog_compiler_static_CXX='-Bstatic'
  11545. lt_prog_compiler_wl_CXX='-Qoption ld '
  11546. ;;
  11547. esac
  11548. ;;
  11549. esac
  11550. ;;
  11551. lynxos*)
  11552. ;;
  11553. m88k*)
  11554. ;;
  11555. mvs*)
  11556. case $cc_basename in
  11557. cxx*)
  11558. lt_prog_compiler_pic_CXX='-W c,exportall'
  11559. ;;
  11560. *)
  11561. ;;
  11562. esac
  11563. ;;
  11564. netbsd*)
  11565. ;;
  11566. *qnx* | *nto*)
  11567. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11568. # it will coredump.
  11569. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11570. ;;
  11571. osf3* | osf4* | osf5*)
  11572. case $cc_basename in
  11573. KCC*)
  11574. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11575. ;;
  11576. RCC*)
  11577. # Rational C++ 2.4.1
  11578. lt_prog_compiler_pic_CXX='-pic'
  11579. ;;
  11580. cxx*)
  11581. # Digital/Compaq C++
  11582. lt_prog_compiler_wl_CXX='-Wl,'
  11583. # Make sure the PIC flag is empty. It appears that all Alpha
  11584. # Linux and Compaq Tru64 Unix objects are PIC.
  11585. lt_prog_compiler_pic_CXX=
  11586. lt_prog_compiler_static_CXX='-non_shared'
  11587. ;;
  11588. *)
  11589. ;;
  11590. esac
  11591. ;;
  11592. psos*)
  11593. ;;
  11594. solaris*)
  11595. case $cc_basename in
  11596. CC* | sunCC*)
  11597. # Sun C++ 4.2, 5.x and Centerline C++
  11598. lt_prog_compiler_pic_CXX='-KPIC'
  11599. lt_prog_compiler_static_CXX='-Bstatic'
  11600. lt_prog_compiler_wl_CXX='-Qoption ld '
  11601. ;;
  11602. gcx*)
  11603. # Green Hills C++ Compiler
  11604. lt_prog_compiler_pic_CXX='-PIC'
  11605. ;;
  11606. *)
  11607. ;;
  11608. esac
  11609. ;;
  11610. sunos4*)
  11611. case $cc_basename in
  11612. CC*)
  11613. # Sun C++ 4.x
  11614. lt_prog_compiler_pic_CXX='-pic'
  11615. lt_prog_compiler_static_CXX='-Bstatic'
  11616. ;;
  11617. lcc*)
  11618. # Lucid
  11619. lt_prog_compiler_pic_CXX='-pic'
  11620. ;;
  11621. *)
  11622. ;;
  11623. esac
  11624. ;;
  11625. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11626. case $cc_basename in
  11627. CC*)
  11628. lt_prog_compiler_wl_CXX='-Wl,'
  11629. lt_prog_compiler_pic_CXX='-KPIC'
  11630. lt_prog_compiler_static_CXX='-Bstatic'
  11631. ;;
  11632. esac
  11633. ;;
  11634. tandem*)
  11635. case $cc_basename in
  11636. NCC*)
  11637. # NonStop-UX NCC 3.20
  11638. lt_prog_compiler_pic_CXX='-KPIC'
  11639. ;;
  11640. *)
  11641. ;;
  11642. esac
  11643. ;;
  11644. vxworks*)
  11645. ;;
  11646. *)
  11647. lt_prog_compiler_can_build_shared_CXX=no
  11648. ;;
  11649. esac
  11650. fi
  11651. case $host_os in
  11652. # For platforms which do not support PIC, -DPIC is meaningless:
  11653. *djgpp*)
  11654. lt_prog_compiler_pic_CXX=
  11655. ;;
  11656. *)
  11657. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11658. ;;
  11659. esac
  11660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11661. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11662. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  11663. $as_echo_n "(cached) " >&6
  11664. else
  11665. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  11666. fi
  11667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  11668. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  11669. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  11670. #
  11671. # Check to make sure the PIC flag actually works.
  11672. #
  11673. if test -n "$lt_prog_compiler_pic_CXX"; then
  11674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11675. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11676. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  11677. $as_echo_n "(cached) " >&6
  11678. else
  11679. lt_cv_prog_compiler_pic_works_CXX=no
  11680. ac_outfile=conftest.$ac_objext
  11681. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11682. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11683. # Insert the option either (1) after the last *FLAGS variable, or
  11684. # (2) before a word containing "conftest.", or (3) at the end.
  11685. # Note that $ac_compile itself does not contain backslashes and begins
  11686. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11687. # The option is referenced via a variable to avoid confusing sed.
  11688. lt_compile=`echo "$ac_compile" | $SED \
  11689. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11690. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11691. -e 's:$: $lt_compiler_flag:'`
  11692. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11693. (eval "$lt_compile" 2>conftest.err)
  11694. ac_status=$?
  11695. cat conftest.err >&5
  11696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11697. if (exit $ac_status) && test -s "$ac_outfile"; then
  11698. # The compiler can only warn and ignore the option if not recognized
  11699. # So say no if there are warnings other than the usual output.
  11700. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11701. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11702. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11703. lt_cv_prog_compiler_pic_works_CXX=yes
  11704. fi
  11705. fi
  11706. $RM conftest*
  11707. fi
  11708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11709. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11710. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11711. case $lt_prog_compiler_pic_CXX in
  11712. "" | " "*) ;;
  11713. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11714. esac
  11715. else
  11716. lt_prog_compiler_pic_CXX=
  11717. lt_prog_compiler_can_build_shared_CXX=no
  11718. fi
  11719. fi
  11720. #
  11721. # Check to make sure the static flag actually works.
  11722. #
  11723. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11725. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11726. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  11727. $as_echo_n "(cached) " >&6
  11728. else
  11729. lt_cv_prog_compiler_static_works_CXX=no
  11730. save_LDFLAGS="$LDFLAGS"
  11731. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11732. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11733. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11734. # The linker can only warn and ignore the option if not recognized
  11735. # So say no if there are warnings
  11736. if test -s conftest.err; then
  11737. # Append any errors to the config.log.
  11738. cat conftest.err 1>&5
  11739. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11740. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11741. if diff conftest.exp conftest.er2 >/dev/null; then
  11742. lt_cv_prog_compiler_static_works_CXX=yes
  11743. fi
  11744. else
  11745. lt_cv_prog_compiler_static_works_CXX=yes
  11746. fi
  11747. fi
  11748. $RM -r conftest*
  11749. LDFLAGS="$save_LDFLAGS"
  11750. fi
  11751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11752. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11753. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11754. :
  11755. else
  11756. lt_prog_compiler_static_CXX=
  11757. fi
  11758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11759. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11760. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11761. $as_echo_n "(cached) " >&6
  11762. else
  11763. lt_cv_prog_compiler_c_o_CXX=no
  11764. $RM -r conftest 2>/dev/null
  11765. mkdir conftest
  11766. cd conftest
  11767. mkdir out
  11768. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11769. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11770. # Insert the option either (1) after the last *FLAGS variable, or
  11771. # (2) before a word containing "conftest.", or (3) at the end.
  11772. # Note that $ac_compile itself does not contain backslashes and begins
  11773. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11774. lt_compile=`echo "$ac_compile" | $SED \
  11775. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11776. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11777. -e 's:$: $lt_compiler_flag:'`
  11778. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11779. (eval "$lt_compile" 2>out/conftest.err)
  11780. ac_status=$?
  11781. cat out/conftest.err >&5
  11782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11783. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11784. then
  11785. # The compiler can only warn and ignore the option if not recognized
  11786. # So say no if there are warnings
  11787. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11788. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11789. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11790. lt_cv_prog_compiler_c_o_CXX=yes
  11791. fi
  11792. fi
  11793. chmod u+w . 2>&5
  11794. $RM conftest*
  11795. # SGI C++ compiler will create directory out/ii_files/ for
  11796. # template instantiation
  11797. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11798. $RM out/* && rmdir out
  11799. cd ..
  11800. $RM -r conftest
  11801. $RM conftest*
  11802. fi
  11803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11804. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11806. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11807. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11808. $as_echo_n "(cached) " >&6
  11809. else
  11810. lt_cv_prog_compiler_c_o_CXX=no
  11811. $RM -r conftest 2>/dev/null
  11812. mkdir conftest
  11813. cd conftest
  11814. mkdir out
  11815. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11816. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11817. # Insert the option either (1) after the last *FLAGS variable, or
  11818. # (2) before a word containing "conftest.", or (3) at the end.
  11819. # Note that $ac_compile itself does not contain backslashes and begins
  11820. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11821. lt_compile=`echo "$ac_compile" | $SED \
  11822. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11823. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11824. -e 's:$: $lt_compiler_flag:'`
  11825. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11826. (eval "$lt_compile" 2>out/conftest.err)
  11827. ac_status=$?
  11828. cat out/conftest.err >&5
  11829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11830. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11831. then
  11832. # The compiler can only warn and ignore the option if not recognized
  11833. # So say no if there are warnings
  11834. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11835. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11836. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11837. lt_cv_prog_compiler_c_o_CXX=yes
  11838. fi
  11839. fi
  11840. chmod u+w . 2>&5
  11841. $RM conftest*
  11842. # SGI C++ compiler will create directory out/ii_files/ for
  11843. # template instantiation
  11844. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11845. $RM out/* && rmdir out
  11846. cd ..
  11847. $RM -r conftest
  11848. $RM conftest*
  11849. fi
  11850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11851. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11852. hard_links="nottested"
  11853. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11854. # do not overwrite the value of need_locks provided by the user
  11855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11856. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11857. hard_links=yes
  11858. $RM conftest*
  11859. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11860. touch conftest.a
  11861. ln conftest.a conftest.b 2>&5 || hard_links=no
  11862. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11864. $as_echo "$hard_links" >&6; }
  11865. if test "$hard_links" = no; then
  11866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11867. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11868. need_locks=warn
  11869. fi
  11870. else
  11871. need_locks=no
  11872. fi
  11873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11874. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11875. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11876. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11877. case $host_os in
  11878. aix[4-9]*)
  11879. # If we're using GNU nm, then we don't want the "-C" option.
  11880. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11881. # Also, AIX nm treats weak defined symbols like other global defined
  11882. # symbols, whereas GNU nm marks them as "W".
  11883. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11884. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11885. else
  11886. 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'
  11887. fi
  11888. ;;
  11889. pw32*)
  11890. export_symbols_cmds_CXX="$ltdll_cmds"
  11891. ;;
  11892. cygwin* | mingw* | cegcc*)
  11893. case $cc_basename in
  11894. cl*)
  11895. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  11896. ;;
  11897. *)
  11898. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11899. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  11900. ;;
  11901. esac
  11902. ;;
  11903. *)
  11904. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11905. ;;
  11906. esac
  11907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11908. $as_echo "$ld_shlibs_CXX" >&6; }
  11909. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11910. with_gnu_ld_CXX=$with_gnu_ld
  11911. #
  11912. # Do we need to explicitly link libc?
  11913. #
  11914. case "x$archive_cmds_need_lc_CXX" in
  11915. x|xyes)
  11916. # Assume -lc should be added
  11917. archive_cmds_need_lc_CXX=yes
  11918. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11919. case $archive_cmds_CXX in
  11920. *'~'*)
  11921. # FIXME: we may have to deal with multi-command sequences.
  11922. ;;
  11923. '$CC '*)
  11924. # Test whether the compiler implicitly links with -lc since on some
  11925. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11926. # to ld, don't add -lc before -lgcc.
  11927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11928. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11929. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  11930. $as_echo_n "(cached) " >&6
  11931. else
  11932. $RM conftest*
  11933. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11934. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11935. (eval $ac_compile) 2>&5
  11936. ac_status=$?
  11937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11938. test $ac_status = 0; } 2>conftest.err; then
  11939. soname=conftest
  11940. lib=conftest
  11941. libobjs=conftest.$ac_objext
  11942. deplibs=
  11943. wl=$lt_prog_compiler_wl_CXX
  11944. pic_flag=$lt_prog_compiler_pic_CXX
  11945. compiler_flags=-v
  11946. linker_flags=-v
  11947. verstring=
  11948. output_objdir=.
  11949. libname=conftest
  11950. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11951. allow_undefined_flag_CXX=
  11952. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11953. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11954. ac_status=$?
  11955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11956. test $ac_status = 0; }
  11957. then
  11958. lt_cv_archive_cmds_need_lc_CXX=no
  11959. else
  11960. lt_cv_archive_cmds_need_lc_CXX=yes
  11961. fi
  11962. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11963. else
  11964. cat conftest.err 1>&5
  11965. fi
  11966. $RM conftest*
  11967. fi
  11968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11969. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11970. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11971. ;;
  11972. esac
  11973. fi
  11974. ;;
  11975. esac
  11976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11977. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11978. library_names_spec=
  11979. libname_spec='lib$name'
  11980. soname_spec=
  11981. shrext_cmds=".so"
  11982. postinstall_cmds=
  11983. postuninstall_cmds=
  11984. finish_cmds=
  11985. finish_eval=
  11986. shlibpath_var=
  11987. shlibpath_overrides_runpath=unknown
  11988. version_type=none
  11989. dynamic_linker="$host_os ld.so"
  11990. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11991. need_lib_prefix=unknown
  11992. hardcode_into_libs=no
  11993. # when you set need_version to no, make sure it does not cause -set_version
  11994. # flags to be left without arguments
  11995. need_version=unknown
  11996. case $host_os in
  11997. aix3*)
  11998. version_type=linux # correct to gnu/linux during the next big refactor
  11999. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12000. shlibpath_var=LIBPATH
  12001. # AIX 3 has no versioning support, so we append a major version to the name.
  12002. soname_spec='${libname}${release}${shared_ext}$major'
  12003. ;;
  12004. aix[4-9]*)
  12005. version_type=linux # correct to gnu/linux during the next big refactor
  12006. need_lib_prefix=no
  12007. need_version=no
  12008. hardcode_into_libs=yes
  12009. if test "$host_cpu" = ia64; then
  12010. # AIX 5 supports IA64
  12011. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12012. shlibpath_var=LD_LIBRARY_PATH
  12013. else
  12014. # With GCC up to 2.95.x, collect2 would create an import file
  12015. # for dependence libraries. The import file would start with
  12016. # the line `#! .'. This would cause the generated library to
  12017. # depend on `.', always an invalid library. This was fixed in
  12018. # development snapshots of GCC prior to 3.0.
  12019. case $host_os in
  12020. aix4 | aix4.[01] | aix4.[01].*)
  12021. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12022. echo ' yes '
  12023. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12024. :
  12025. else
  12026. can_build_shared=no
  12027. fi
  12028. ;;
  12029. esac
  12030. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12031. # soname into executable. Probably we can add versioning support to
  12032. # collect2, so additional links can be useful in future.
  12033. if test "$aix_use_runtimelinking" = yes; then
  12034. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12035. # instead of lib<name>.a to let people know that these are not
  12036. # typical AIX shared libraries.
  12037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12038. else
  12039. # We preserve .a as extension for shared libraries through AIX4.2
  12040. # and later when we are not doing run time linking.
  12041. library_names_spec='${libname}${release}.a $libname.a'
  12042. soname_spec='${libname}${release}${shared_ext}$major'
  12043. fi
  12044. shlibpath_var=LIBPATH
  12045. fi
  12046. ;;
  12047. amigaos*)
  12048. case $host_cpu in
  12049. powerpc)
  12050. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12051. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12053. ;;
  12054. m68k)
  12055. library_names_spec='$libname.ixlibrary $libname.a'
  12056. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12057. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  12058. ;;
  12059. esac
  12060. ;;
  12061. beos*)
  12062. library_names_spec='${libname}${shared_ext}'
  12063. dynamic_linker="$host_os ld.so"
  12064. shlibpath_var=LIBRARY_PATH
  12065. ;;
  12066. bsdi[45]*)
  12067. version_type=linux # correct to gnu/linux during the next big refactor
  12068. need_version=no
  12069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12070. soname_spec='${libname}${release}${shared_ext}$major'
  12071. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12072. shlibpath_var=LD_LIBRARY_PATH
  12073. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12074. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12075. # the default ld.so.conf also contains /usr/contrib/lib and
  12076. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12077. # libtool to hard-code these into programs
  12078. ;;
  12079. cygwin* | mingw* | pw32* | cegcc*)
  12080. version_type=windows
  12081. shrext_cmds=".dll"
  12082. need_version=no
  12083. need_lib_prefix=no
  12084. case $GCC,$cc_basename in
  12085. yes,*)
  12086. # gcc
  12087. library_names_spec='$libname.dll.a'
  12088. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12089. postinstall_cmds='base_file=`basename \${file}`~
  12090. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12091. dldir=$destdir/`dirname \$dlpath`~
  12092. test -d \$dldir || mkdir -p \$dldir~
  12093. $install_prog $dir/$dlname \$dldir/$dlname~
  12094. chmod a+x \$dldir/$dlname~
  12095. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12096. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12097. fi'
  12098. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12099. dlpath=$dir/\$dldll~
  12100. $RM \$dlpath'
  12101. shlibpath_overrides_runpath=yes
  12102. case $host_os in
  12103. cygwin*)
  12104. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12105. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12106. ;;
  12107. mingw* | cegcc*)
  12108. # MinGW DLLs use traditional 'lib' prefix
  12109. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12110. ;;
  12111. pw32*)
  12112. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12113. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12114. ;;
  12115. esac
  12116. dynamic_linker='Win32 ld.exe'
  12117. ;;
  12118. *,cl*)
  12119. # Native MSVC
  12120. libname_spec='$name'
  12121. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12122. library_names_spec='${libname}.dll.lib'
  12123. case $build_os in
  12124. mingw*)
  12125. sys_lib_search_path_spec=
  12126. lt_save_ifs=$IFS
  12127. IFS=';'
  12128. for lt_path in $LIB
  12129. do
  12130. IFS=$lt_save_ifs
  12131. # Let DOS variable expansion print the short 8.3 style file name.
  12132. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12133. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12134. done
  12135. IFS=$lt_save_ifs
  12136. # Convert to MSYS style.
  12137. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12138. ;;
  12139. cygwin*)
  12140. # Convert to unix form, then to dos form, then back to unix form
  12141. # but this time dos style (no spaces!) so that the unix form looks
  12142. # like /cygdrive/c/PROGRA~1:/cygdr...
  12143. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12144. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12145. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12146. ;;
  12147. *)
  12148. sys_lib_search_path_spec="$LIB"
  12149. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12150. # It is most probably a Windows format PATH.
  12151. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12152. else
  12153. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12154. fi
  12155. # FIXME: find the short name or the path components, as spaces are
  12156. # common. (e.g. "Program Files" -> "PROGRA~1")
  12157. ;;
  12158. esac
  12159. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12160. postinstall_cmds='base_file=`basename \${file}`~
  12161. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12162. dldir=$destdir/`dirname \$dlpath`~
  12163. test -d \$dldir || mkdir -p \$dldir~
  12164. $install_prog $dir/$dlname \$dldir/$dlname'
  12165. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12166. dlpath=$dir/\$dldll~
  12167. $RM \$dlpath'
  12168. shlibpath_overrides_runpath=yes
  12169. dynamic_linker='Win32 link.exe'
  12170. ;;
  12171. *)
  12172. # Assume MSVC wrapper
  12173. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12174. dynamic_linker='Win32 ld.exe'
  12175. ;;
  12176. esac
  12177. # FIXME: first we should search . and the directory the executable is in
  12178. shlibpath_var=PATH
  12179. ;;
  12180. darwin* | rhapsody*)
  12181. dynamic_linker="$host_os dyld"
  12182. version_type=darwin
  12183. need_lib_prefix=no
  12184. need_version=no
  12185. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12186. soname_spec='${libname}${release}${major}$shared_ext'
  12187. shlibpath_overrides_runpath=yes
  12188. shlibpath_var=DYLD_LIBRARY_PATH
  12189. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12190. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12191. ;;
  12192. dgux*)
  12193. version_type=linux # correct to gnu/linux during the next big refactor
  12194. need_lib_prefix=no
  12195. need_version=no
  12196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12197. soname_spec='${libname}${release}${shared_ext}$major'
  12198. shlibpath_var=LD_LIBRARY_PATH
  12199. ;;
  12200. freebsd* | dragonfly*)
  12201. # DragonFly does not have aout. When/if they implement a new
  12202. # versioning mechanism, adjust this.
  12203. if test -x /usr/bin/objformat; then
  12204. objformat=`/usr/bin/objformat`
  12205. else
  12206. case $host_os in
  12207. freebsd[23].*) objformat=aout ;;
  12208. *) objformat=elf ;;
  12209. esac
  12210. fi
  12211. version_type=freebsd-$objformat
  12212. case $version_type in
  12213. freebsd-elf*)
  12214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12215. need_version=no
  12216. need_lib_prefix=no
  12217. ;;
  12218. freebsd-*)
  12219. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12220. need_version=yes
  12221. ;;
  12222. esac
  12223. shlibpath_var=LD_LIBRARY_PATH
  12224. case $host_os in
  12225. freebsd2.*)
  12226. shlibpath_overrides_runpath=yes
  12227. ;;
  12228. freebsd3.[01]* | freebsdelf3.[01]*)
  12229. shlibpath_overrides_runpath=yes
  12230. hardcode_into_libs=yes
  12231. ;;
  12232. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12233. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12234. shlibpath_overrides_runpath=no
  12235. hardcode_into_libs=yes
  12236. ;;
  12237. *) # from 4.6 on, and DragonFly
  12238. shlibpath_overrides_runpath=yes
  12239. hardcode_into_libs=yes
  12240. ;;
  12241. esac
  12242. ;;
  12243. gnu*)
  12244. version_type=linux # correct to gnu/linux during the next big refactor
  12245. need_lib_prefix=no
  12246. need_version=no
  12247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12248. soname_spec='${libname}${release}${shared_ext}$major'
  12249. shlibpath_var=LD_LIBRARY_PATH
  12250. shlibpath_overrides_runpath=no
  12251. hardcode_into_libs=yes
  12252. ;;
  12253. haiku*)
  12254. version_type=linux # correct to gnu/linux during the next big refactor
  12255. need_lib_prefix=no
  12256. need_version=no
  12257. dynamic_linker="$host_os runtime_loader"
  12258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12259. soname_spec='${libname}${release}${shared_ext}$major'
  12260. shlibpath_var=LIBRARY_PATH
  12261. shlibpath_overrides_runpath=yes
  12262. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12263. hardcode_into_libs=yes
  12264. ;;
  12265. hpux9* | hpux10* | hpux11*)
  12266. # Give a soname corresponding to the major version so that dld.sl refuses to
  12267. # link against other versions.
  12268. version_type=sunos
  12269. need_lib_prefix=no
  12270. need_version=no
  12271. case $host_cpu in
  12272. ia64*)
  12273. shrext_cmds='.so'
  12274. hardcode_into_libs=yes
  12275. dynamic_linker="$host_os dld.so"
  12276. shlibpath_var=LD_LIBRARY_PATH
  12277. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12279. soname_spec='${libname}${release}${shared_ext}$major'
  12280. if test "X$HPUX_IA64_MODE" = X32; then
  12281. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12282. else
  12283. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12284. fi
  12285. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12286. ;;
  12287. hppa*64*)
  12288. shrext_cmds='.sl'
  12289. hardcode_into_libs=yes
  12290. dynamic_linker="$host_os dld.sl"
  12291. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12292. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12293. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12294. soname_spec='${libname}${release}${shared_ext}$major'
  12295. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12296. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12297. ;;
  12298. *)
  12299. shrext_cmds='.sl'
  12300. dynamic_linker="$host_os dld.sl"
  12301. shlibpath_var=SHLIB_PATH
  12302. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12304. soname_spec='${libname}${release}${shared_ext}$major'
  12305. ;;
  12306. esac
  12307. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12308. postinstall_cmds='chmod 555 $lib'
  12309. # or fails outright, so override atomically:
  12310. install_override_mode=555
  12311. ;;
  12312. interix[3-9]*)
  12313. version_type=linux # correct to gnu/linux during the next big refactor
  12314. need_lib_prefix=no
  12315. need_version=no
  12316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12317. soname_spec='${libname}${release}${shared_ext}$major'
  12318. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12319. shlibpath_var=LD_LIBRARY_PATH
  12320. shlibpath_overrides_runpath=no
  12321. hardcode_into_libs=yes
  12322. ;;
  12323. irix5* | irix6* | nonstopux*)
  12324. case $host_os in
  12325. nonstopux*) version_type=nonstopux ;;
  12326. *)
  12327. if test "$lt_cv_prog_gnu_ld" = yes; then
  12328. version_type=linux # correct to gnu/linux during the next big refactor
  12329. else
  12330. version_type=irix
  12331. fi ;;
  12332. esac
  12333. need_lib_prefix=no
  12334. need_version=no
  12335. soname_spec='${libname}${release}${shared_ext}$major'
  12336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12337. case $host_os in
  12338. irix5* | nonstopux*)
  12339. libsuff= shlibsuff=
  12340. ;;
  12341. *)
  12342. case $LD in # libtool.m4 will add one of these switches to LD
  12343. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12344. libsuff= shlibsuff= libmagic=32-bit;;
  12345. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12346. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12347. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12348. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12349. *) libsuff= shlibsuff= libmagic=never-match;;
  12350. esac
  12351. ;;
  12352. esac
  12353. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12354. shlibpath_overrides_runpath=no
  12355. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12356. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12357. hardcode_into_libs=yes
  12358. ;;
  12359. # No shared lib support for Linux oldld, aout, or coff.
  12360. linux*oldld* | linux*aout* | linux*coff*)
  12361. dynamic_linker=no
  12362. ;;
  12363. # This must be glibc/ELF.
  12364. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12365. version_type=linux # correct to gnu/linux during the next big refactor
  12366. need_lib_prefix=no
  12367. need_version=no
  12368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12369. soname_spec='${libname}${release}${shared_ext}$major'
  12370. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12371. shlibpath_var=LD_LIBRARY_PATH
  12372. shlibpath_overrides_runpath=no
  12373. # Some binutils ld are patched to set DT_RUNPATH
  12374. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12375. $as_echo_n "(cached) " >&6
  12376. else
  12377. lt_cv_shlibpath_overrides_runpath=no
  12378. save_LDFLAGS=$LDFLAGS
  12379. save_libdir=$libdir
  12380. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12381. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12383. /* end confdefs.h. */
  12384. int
  12385. main ()
  12386. {
  12387. ;
  12388. return 0;
  12389. }
  12390. _ACEOF
  12391. if ac_fn_cxx_try_link "$LINENO"; then :
  12392. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12393. lt_cv_shlibpath_overrides_runpath=yes
  12394. fi
  12395. fi
  12396. rm -f core conftest.err conftest.$ac_objext \
  12397. conftest$ac_exeext conftest.$ac_ext
  12398. LDFLAGS=$save_LDFLAGS
  12399. libdir=$save_libdir
  12400. fi
  12401. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12402. # This implies no fast_install, which is unacceptable.
  12403. # Some rework will be needed to allow for fast_install
  12404. # before this can be enabled.
  12405. hardcode_into_libs=yes
  12406. # Append ld.so.conf contents to the search path
  12407. if test -f /etc/ld.so.conf; then
  12408. 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;s/"//g;/^$/d' | tr '\n' ' '`
  12409. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12410. fi
  12411. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12412. # powerpc, because MkLinux only supported shared libraries with the
  12413. # GNU dynamic linker. Since this was broken with cross compilers,
  12414. # most powerpc-linux boxes support dynamic linking these days and
  12415. # people can always --disable-shared, the test was removed, and we
  12416. # assume the GNU/Linux dynamic linker is in use.
  12417. dynamic_linker='GNU/Linux ld.so'
  12418. ;;
  12419. netbsd*)
  12420. version_type=sunos
  12421. need_lib_prefix=no
  12422. need_version=no
  12423. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12425. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12426. dynamic_linker='NetBSD (a.out) ld.so'
  12427. else
  12428. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12429. soname_spec='${libname}${release}${shared_ext}$major'
  12430. dynamic_linker='NetBSD ld.elf_so'
  12431. fi
  12432. shlibpath_var=LD_LIBRARY_PATH
  12433. shlibpath_overrides_runpath=yes
  12434. hardcode_into_libs=yes
  12435. ;;
  12436. newsos6)
  12437. version_type=linux # correct to gnu/linux during the next big refactor
  12438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12439. shlibpath_var=LD_LIBRARY_PATH
  12440. shlibpath_overrides_runpath=yes
  12441. ;;
  12442. *nto* | *qnx*)
  12443. version_type=qnx
  12444. need_lib_prefix=no
  12445. need_version=no
  12446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12447. soname_spec='${libname}${release}${shared_ext}$major'
  12448. shlibpath_var=LD_LIBRARY_PATH
  12449. shlibpath_overrides_runpath=no
  12450. hardcode_into_libs=yes
  12451. dynamic_linker='ldqnx.so'
  12452. ;;
  12453. openbsd*)
  12454. version_type=sunos
  12455. sys_lib_dlsearch_path_spec="/usr/lib"
  12456. need_lib_prefix=no
  12457. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12458. case $host_os in
  12459. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12460. *) need_version=no ;;
  12461. esac
  12462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12463. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12464. shlibpath_var=LD_LIBRARY_PATH
  12465. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12466. case $host_os in
  12467. openbsd2.[89] | openbsd2.[89].*)
  12468. shlibpath_overrides_runpath=no
  12469. ;;
  12470. *)
  12471. shlibpath_overrides_runpath=yes
  12472. ;;
  12473. esac
  12474. else
  12475. shlibpath_overrides_runpath=yes
  12476. fi
  12477. ;;
  12478. os2*)
  12479. libname_spec='$name'
  12480. shrext_cmds=".dll"
  12481. need_lib_prefix=no
  12482. library_names_spec='$libname${shared_ext} $libname.a'
  12483. dynamic_linker='OS/2 ld.exe'
  12484. shlibpath_var=LIBPATH
  12485. ;;
  12486. osf3* | osf4* | osf5*)
  12487. version_type=osf
  12488. need_lib_prefix=no
  12489. need_version=no
  12490. soname_spec='${libname}${release}${shared_ext}$major'
  12491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12492. shlibpath_var=LD_LIBRARY_PATH
  12493. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12494. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12495. ;;
  12496. rdos*)
  12497. dynamic_linker=no
  12498. ;;
  12499. solaris*)
  12500. version_type=linux # correct to gnu/linux during the next big refactor
  12501. need_lib_prefix=no
  12502. need_version=no
  12503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12504. soname_spec='${libname}${release}${shared_ext}$major'
  12505. shlibpath_var=LD_LIBRARY_PATH
  12506. shlibpath_overrides_runpath=yes
  12507. hardcode_into_libs=yes
  12508. # ldd complains unless libraries are executable
  12509. postinstall_cmds='chmod +x $lib'
  12510. ;;
  12511. sunos4*)
  12512. version_type=sunos
  12513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12514. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12515. shlibpath_var=LD_LIBRARY_PATH
  12516. shlibpath_overrides_runpath=yes
  12517. if test "$with_gnu_ld" = yes; then
  12518. need_lib_prefix=no
  12519. fi
  12520. need_version=yes
  12521. ;;
  12522. sysv4 | sysv4.3*)
  12523. version_type=linux # correct to gnu/linux during the next big refactor
  12524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12525. soname_spec='${libname}${release}${shared_ext}$major'
  12526. shlibpath_var=LD_LIBRARY_PATH
  12527. case $host_vendor in
  12528. sni)
  12529. shlibpath_overrides_runpath=no
  12530. need_lib_prefix=no
  12531. runpath_var=LD_RUN_PATH
  12532. ;;
  12533. siemens)
  12534. need_lib_prefix=no
  12535. ;;
  12536. motorola)
  12537. need_lib_prefix=no
  12538. need_version=no
  12539. shlibpath_overrides_runpath=no
  12540. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12541. ;;
  12542. esac
  12543. ;;
  12544. sysv4*MP*)
  12545. if test -d /usr/nec ;then
  12546. version_type=linux # correct to gnu/linux during the next big refactor
  12547. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12548. soname_spec='$libname${shared_ext}.$major'
  12549. shlibpath_var=LD_LIBRARY_PATH
  12550. fi
  12551. ;;
  12552. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12553. version_type=freebsd-elf
  12554. need_lib_prefix=no
  12555. need_version=no
  12556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12557. soname_spec='${libname}${release}${shared_ext}$major'
  12558. shlibpath_var=LD_LIBRARY_PATH
  12559. shlibpath_overrides_runpath=yes
  12560. hardcode_into_libs=yes
  12561. if test "$with_gnu_ld" = yes; then
  12562. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12563. else
  12564. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12565. case $host_os in
  12566. sco3.2v5*)
  12567. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12568. ;;
  12569. esac
  12570. fi
  12571. sys_lib_dlsearch_path_spec='/usr/lib'
  12572. ;;
  12573. tpf*)
  12574. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12575. version_type=linux # correct to gnu/linux during the next big refactor
  12576. need_lib_prefix=no
  12577. need_version=no
  12578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12579. shlibpath_var=LD_LIBRARY_PATH
  12580. shlibpath_overrides_runpath=no
  12581. hardcode_into_libs=yes
  12582. ;;
  12583. uts4*)
  12584. version_type=linux # correct to gnu/linux during the next big refactor
  12585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12586. soname_spec='${libname}${release}${shared_ext}$major'
  12587. shlibpath_var=LD_LIBRARY_PATH
  12588. ;;
  12589. *)
  12590. dynamic_linker=no
  12591. ;;
  12592. esac
  12593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12594. $as_echo "$dynamic_linker" >&6; }
  12595. test "$dynamic_linker" = no && can_build_shared=no
  12596. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12597. if test "$GCC" = yes; then
  12598. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12599. fi
  12600. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12601. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12602. fi
  12603. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12604. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12605. fi
  12606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12607. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12608. hardcode_action_CXX=
  12609. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12610. test -n "$runpath_var_CXX" ||
  12611. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12612. # We can hardcode non-existent directories.
  12613. if test "$hardcode_direct_CXX" != no &&
  12614. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12615. # have to relink, otherwise we might link with an installed library
  12616. # when we should be linking with a yet-to-be-installed one
  12617. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12618. test "$hardcode_minus_L_CXX" != no; then
  12619. # Linking always hardcodes the temporary library directory.
  12620. hardcode_action_CXX=relink
  12621. else
  12622. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12623. hardcode_action_CXX=immediate
  12624. fi
  12625. else
  12626. # We cannot hardcode anything, or else we can only hardcode existing
  12627. # directories.
  12628. hardcode_action_CXX=unsupported
  12629. fi
  12630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12631. $as_echo "$hardcode_action_CXX" >&6; }
  12632. if test "$hardcode_action_CXX" = relink ||
  12633. test "$inherit_rpath_CXX" = yes; then
  12634. # Fast installation is not supported
  12635. enable_fast_install=no
  12636. elif test "$shlibpath_overrides_runpath" = yes ||
  12637. test "$enable_shared" = no; then
  12638. # Fast installation is not necessary
  12639. enable_fast_install=needless
  12640. fi
  12641. fi # test -n "$compiler"
  12642. CC=$lt_save_CC
  12643. CFLAGS=$lt_save_CFLAGS
  12644. LDCXX=$LD
  12645. LD=$lt_save_LD
  12646. GCC=$lt_save_GCC
  12647. with_gnu_ld=$lt_save_with_gnu_ld
  12648. lt_cv_path_LDCXX=$lt_cv_path_LD
  12649. lt_cv_path_LD=$lt_save_path_LD
  12650. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12651. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12652. fi # test "$_lt_caught_CXX_error" != yes
  12653. ac_ext=c
  12654. ac_cpp='$CPP $CPPFLAGS'
  12655. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12656. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12657. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12658. ac_config_commands="$ac_config_commands libtool"
  12659. # Only expand once:
  12660. ac_config_headers="$ac_config_headers config.h"
  12661. am__api_version='1.11'
  12662. # Find a good install program. We prefer a C program (faster),
  12663. # so one script is as good as another. But avoid the broken or
  12664. # incompatible versions:
  12665. # SysV /etc/install, /usr/sbin/install
  12666. # SunOS /usr/etc/install
  12667. # IRIX /sbin/install
  12668. # AIX /bin/install
  12669. # AmigaOS /C/install, which installs bootblocks on floppy discs
  12670. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  12671. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  12672. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  12673. # OS/2's system install, which has a completely different semantic
  12674. # ./install, which can be erroneously created by make from ./install.sh.
  12675. # Reject install programs that cannot install multiple files.
  12676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  12677. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  12678. if test -z "$INSTALL"; then
  12679. if ${ac_cv_path_install+:} false; then :
  12680. $as_echo_n "(cached) " >&6
  12681. else
  12682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12683. for as_dir in $PATH
  12684. do
  12685. IFS=$as_save_IFS
  12686. test -z "$as_dir" && as_dir=.
  12687. # Account for people who put trailing slashes in PATH elements.
  12688. case $as_dir/ in #((
  12689. ./ | .// | /[cC]/* | \
  12690. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  12691. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  12692. /usr/ucb/* ) ;;
  12693. *)
  12694. # OSF1 and SCO ODT 3.0 have their own names for install.
  12695. # Don't use installbsd from OSF since it installs stuff as root
  12696. # by default.
  12697. for ac_prog in ginstall scoinst install; do
  12698. for ac_exec_ext in '' $ac_executable_extensions; do
  12699. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  12700. if test $ac_prog = install &&
  12701. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12702. # AIX install. It has an incompatible calling convention.
  12703. :
  12704. elif test $ac_prog = install &&
  12705. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12706. # program-specific install script used by HP pwplus--don't use.
  12707. :
  12708. else
  12709. rm -rf conftest.one conftest.two conftest.dir
  12710. echo one > conftest.one
  12711. echo two > conftest.two
  12712. mkdir conftest.dir
  12713. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  12714. test -s conftest.one && test -s conftest.two &&
  12715. test -s conftest.dir/conftest.one &&
  12716. test -s conftest.dir/conftest.two
  12717. then
  12718. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  12719. break 3
  12720. fi
  12721. fi
  12722. fi
  12723. done
  12724. done
  12725. ;;
  12726. esac
  12727. done
  12728. IFS=$as_save_IFS
  12729. rm -rf conftest.one conftest.two conftest.dir
  12730. fi
  12731. if test "${ac_cv_path_install+set}" = set; then
  12732. INSTALL=$ac_cv_path_install
  12733. else
  12734. # As a last resort, use the slow shell script. Don't cache a
  12735. # value for INSTALL within a source directory, because that will
  12736. # break other packages using the cache if that directory is
  12737. # removed, or if the value is a relative name.
  12738. INSTALL=$ac_install_sh
  12739. fi
  12740. fi
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  12742. $as_echo "$INSTALL" >&6; }
  12743. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  12744. # It thinks the first close brace ends the variable substitution.
  12745. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  12746. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  12747. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  12748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  12749. $as_echo_n "checking whether build environment is sane... " >&6; }
  12750. # Just in case
  12751. sleep 1
  12752. echo timestamp > conftest.file
  12753. # Reject unsafe characters in $srcdir or the absolute working directory
  12754. # name. Accept space and tab only in the latter.
  12755. am_lf='
  12756. '
  12757. case `pwd` in
  12758. *[\\\"\#\$\&\'\`$am_lf]*)
  12759. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  12760. esac
  12761. case $srcdir in
  12762. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  12763. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  12764. esac
  12765. # Do `set' in a subshell so we don't clobber the current shell's
  12766. # arguments. Must try -L first in case configure is actually a
  12767. # symlink; some systems play weird games with the mod time of symlinks
  12768. # (eg FreeBSD returns the mod time of the symlink's containing
  12769. # directory).
  12770. if (
  12771. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  12772. if test "$*" = "X"; then
  12773. # -L didn't work.
  12774. set X `ls -t "$srcdir/configure" conftest.file`
  12775. fi
  12776. rm -f conftest.file
  12777. if test "$*" != "X $srcdir/configure conftest.file" \
  12778. && test "$*" != "X conftest.file $srcdir/configure"; then
  12779. # If neither matched, then we have a broken ls. This can happen
  12780. # if, for instance, CONFIG_SHELL is bash and it inherits a
  12781. # broken ls alias from the environment. This has actually
  12782. # happened. Such a system could not be considered "sane".
  12783. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  12784. alias in your environment" "$LINENO" 5
  12785. fi
  12786. test "$2" = conftest.file
  12787. )
  12788. then
  12789. # Ok.
  12790. :
  12791. else
  12792. as_fn_error $? "newly created file is older than distributed files!
  12793. Check your system clock" "$LINENO" 5
  12794. fi
  12795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12796. $as_echo "yes" >&6; }
  12797. test "$program_prefix" != NONE &&
  12798. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  12799. # Use a double $ so make ignores it.
  12800. test "$program_suffix" != NONE &&
  12801. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  12802. # Double any \ or $.
  12803. # By default was `s,x,x', remove it if useless.
  12804. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  12805. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  12806. # expand $ac_aux_dir to an absolute path
  12807. am_aux_dir=`cd $ac_aux_dir && pwd`
  12808. if test x"${MISSING+set}" != xset; then
  12809. case $am_aux_dir in
  12810. *\ * | *\ *)
  12811. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  12812. *)
  12813. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  12814. esac
  12815. fi
  12816. # Use eval to expand $SHELL
  12817. if eval "$MISSING --run true"; then
  12818. am_missing_run="$MISSING --run "
  12819. else
  12820. am_missing_run=
  12821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  12822. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  12823. fi
  12824. if test x"${install_sh}" != xset; then
  12825. case $am_aux_dir in
  12826. *\ * | *\ *)
  12827. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  12828. *)
  12829. install_sh="\${SHELL} $am_aux_dir/install-sh"
  12830. esac
  12831. fi
  12832. # Installed binaries are usually stripped using `strip' when the user
  12833. # run `make install-strip'. However `strip' might not be the right
  12834. # tool to use in cross-compilation environments, therefore Automake
  12835. # will honor the `STRIP' environment variable to overrule this program.
  12836. if test "$cross_compiling" != no; then
  12837. if test -n "$ac_tool_prefix"; then
  12838. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  12839. set dummy ${ac_tool_prefix}strip; ac_word=$2
  12840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12841. $as_echo_n "checking for $ac_word... " >&6; }
  12842. if ${ac_cv_prog_STRIP+:} false; then :
  12843. $as_echo_n "(cached) " >&6
  12844. else
  12845. if test -n "$STRIP"; then
  12846. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  12847. else
  12848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12849. for as_dir in $PATH
  12850. do
  12851. IFS=$as_save_IFS
  12852. test -z "$as_dir" && as_dir=.
  12853. for ac_exec_ext in '' $ac_executable_extensions; do
  12854. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12855. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  12856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12857. break 2
  12858. fi
  12859. done
  12860. done
  12861. IFS=$as_save_IFS
  12862. fi
  12863. fi
  12864. STRIP=$ac_cv_prog_STRIP
  12865. if test -n "$STRIP"; then
  12866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  12867. $as_echo "$STRIP" >&6; }
  12868. else
  12869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12870. $as_echo "no" >&6; }
  12871. fi
  12872. fi
  12873. if test -z "$ac_cv_prog_STRIP"; then
  12874. ac_ct_STRIP=$STRIP
  12875. # Extract the first word of "strip", so it can be a program name with args.
  12876. set dummy strip; ac_word=$2
  12877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12878. $as_echo_n "checking for $ac_word... " >&6; }
  12879. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  12880. $as_echo_n "(cached) " >&6
  12881. else
  12882. if test -n "$ac_ct_STRIP"; then
  12883. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  12884. else
  12885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12886. for as_dir in $PATH
  12887. do
  12888. IFS=$as_save_IFS
  12889. test -z "$as_dir" && as_dir=.
  12890. for ac_exec_ext in '' $ac_executable_extensions; do
  12891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12892. ac_cv_prog_ac_ct_STRIP="strip"
  12893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12894. break 2
  12895. fi
  12896. done
  12897. done
  12898. IFS=$as_save_IFS
  12899. fi
  12900. fi
  12901. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  12902. if test -n "$ac_ct_STRIP"; then
  12903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  12904. $as_echo "$ac_ct_STRIP" >&6; }
  12905. else
  12906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12907. $as_echo "no" >&6; }
  12908. fi
  12909. if test "x$ac_ct_STRIP" = x; then
  12910. STRIP=":"
  12911. else
  12912. case $cross_compiling:$ac_tool_warned in
  12913. yes:)
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12915. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12916. ac_tool_warned=yes ;;
  12917. esac
  12918. STRIP=$ac_ct_STRIP
  12919. fi
  12920. else
  12921. STRIP="$ac_cv_prog_STRIP"
  12922. fi
  12923. fi
  12924. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  12925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  12926. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  12927. if test -z "$MKDIR_P"; then
  12928. if ${ac_cv_path_mkdir+:} false; then :
  12929. $as_echo_n "(cached) " >&6
  12930. else
  12931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12932. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  12933. do
  12934. IFS=$as_save_IFS
  12935. test -z "$as_dir" && as_dir=.
  12936. for ac_prog in mkdir gmkdir; do
  12937. for ac_exec_ext in '' $ac_executable_extensions; do
  12938. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  12939. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  12940. 'mkdir (GNU coreutils) '* | \
  12941. 'mkdir (coreutils) '* | \
  12942. 'mkdir (fileutils) '4.1*)
  12943. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  12944. break 3;;
  12945. esac
  12946. done
  12947. done
  12948. done
  12949. IFS=$as_save_IFS
  12950. fi
  12951. test -d ./--version && rmdir ./--version
  12952. if test "${ac_cv_path_mkdir+set}" = set; then
  12953. MKDIR_P="$ac_cv_path_mkdir -p"
  12954. else
  12955. # As a last resort, use the slow shell script. Don't cache a
  12956. # value for MKDIR_P within a source directory, because that will
  12957. # break other packages using the cache if that directory is
  12958. # removed, or if the value is a relative name.
  12959. MKDIR_P="$ac_install_sh -d"
  12960. fi
  12961. fi
  12962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  12963. $as_echo "$MKDIR_P" >&6; }
  12964. mkdir_p="$MKDIR_P"
  12965. case $mkdir_p in
  12966. [\\/$]* | ?:[\\/]*) ;;
  12967. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  12968. esac
  12969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  12970. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  12971. set x ${MAKE-make}
  12972. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  12973. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  12974. $as_echo_n "(cached) " >&6
  12975. else
  12976. cat >conftest.make <<\_ACEOF
  12977. SHELL = /bin/sh
  12978. all:
  12979. @echo '@@@%%%=$(MAKE)=@@@%%%'
  12980. _ACEOF
  12981. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  12982. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  12983. *@@@%%%=?*=@@@%%%*)
  12984. eval ac_cv_prog_make_${ac_make}_set=yes;;
  12985. *)
  12986. eval ac_cv_prog_make_${ac_make}_set=no;;
  12987. esac
  12988. rm -f conftest.make
  12989. fi
  12990. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  12991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12992. $as_echo "yes" >&6; }
  12993. SET_MAKE=
  12994. else
  12995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12996. $as_echo "no" >&6; }
  12997. SET_MAKE="MAKE=${MAKE-make}"
  12998. fi
  12999. rm -rf .tst 2>/dev/null
  13000. mkdir .tst 2>/dev/null
  13001. if test -d .tst; then
  13002. am__leading_dot=.
  13003. else
  13004. am__leading_dot=_
  13005. fi
  13006. rmdir .tst 2>/dev/null
  13007. DEPDIR="${am__leading_dot}deps"
  13008. ac_config_commands="$ac_config_commands depfiles"
  13009. am_make=${MAKE-make}
  13010. cat > confinc << 'END'
  13011. am__doit:
  13012. @echo this is the am__doit target
  13013. .PHONY: am__doit
  13014. END
  13015. # If we don't find an include directive, just comment out the code.
  13016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  13017. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  13018. am__include="#"
  13019. am__quote=
  13020. _am_result=none
  13021. # First try GNU make style include.
  13022. echo "include confinc" > confmf
  13023. # Ignore all kinds of additional output from `make'.
  13024. case `$am_make -s -f confmf 2> /dev/null` in #(
  13025. *the\ am__doit\ target*)
  13026. am__include=include
  13027. am__quote=
  13028. _am_result=GNU
  13029. ;;
  13030. esac
  13031. # Now try BSD make style include.
  13032. if test "$am__include" = "#"; then
  13033. echo '.include "confinc"' > confmf
  13034. case `$am_make -s -f confmf 2> /dev/null` in #(
  13035. *the\ am__doit\ target*)
  13036. am__include=.include
  13037. am__quote="\""
  13038. _am_result=BSD
  13039. ;;
  13040. esac
  13041. fi
  13042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  13043. $as_echo "$_am_result" >&6; }
  13044. rm -f confinc confmf
  13045. # Check whether --enable-dependency-tracking was given.
  13046. if test "${enable_dependency_tracking+set}" = set; then :
  13047. enableval=$enable_dependency_tracking;
  13048. fi
  13049. if test "x$enable_dependency_tracking" != xno; then
  13050. am_depcomp="$ac_aux_dir/depcomp"
  13051. AMDEPBACKSLASH='\'
  13052. fi
  13053. if test "x$enable_dependency_tracking" != xno; then
  13054. AMDEP_TRUE=
  13055. AMDEP_FALSE='#'
  13056. else
  13057. AMDEP_TRUE='#'
  13058. AMDEP_FALSE=
  13059. fi
  13060. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13061. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13062. # is not polluted with repeated "-I."
  13063. am__isrc=' -I$(srcdir)'
  13064. # test to see if srcdir already configured
  13065. if test -f $srcdir/config.status; then
  13066. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  13067. fi
  13068. fi
  13069. # test whether we have cygpath
  13070. if test -z "$CYGPATH_W"; then
  13071. if (cygpath --version) >/dev/null 2>/dev/null; then
  13072. CYGPATH_W='cygpath -w'
  13073. else
  13074. CYGPATH_W=echo
  13075. fi
  13076. fi
  13077. # Define the identity of the package.
  13078. PACKAGE='klish'
  13079. VERSION='1.5.2'
  13080. cat >>confdefs.h <<_ACEOF
  13081. #define PACKAGE "$PACKAGE"
  13082. _ACEOF
  13083. cat >>confdefs.h <<_ACEOF
  13084. #define VERSION "$VERSION"
  13085. _ACEOF
  13086. # Some tools Automake needs.
  13087. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  13088. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  13089. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  13090. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  13091. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13092. # We need awk for the "check" target. The system "awk" is bad on
  13093. # some platforms.
  13094. # Always define AMTAR for backward compatibility.
  13095. AMTAR=${AMTAR-"${am_missing_run}tar"}
  13096. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  13097. depcc="$CC" am_compiler_list=
  13098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13099. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13100. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  13101. $as_echo_n "(cached) " >&6
  13102. else
  13103. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13104. # We make a subdir and do the tests there. Otherwise we can end up
  13105. # making bogus files that we don't know about and never remove. For
  13106. # instance it was reported that on HP-UX the gcc test will end up
  13107. # making a dummy file named `D' -- because `-MD' means `put the output
  13108. # in D'.
  13109. mkdir conftest.dir
  13110. # Copy depcomp to subdir because otherwise we won't find it if we're
  13111. # using a relative directory.
  13112. cp "$am_depcomp" conftest.dir
  13113. cd conftest.dir
  13114. # We will build objects and dependencies in a subdirectory because
  13115. # it helps to detect inapplicable dependency modes. For instance
  13116. # both Tru64's cc and ICC support -MD to output dependencies as a
  13117. # side effect of compilation, but ICC will put the dependencies in
  13118. # the current directory while Tru64 will put them in the object
  13119. # directory.
  13120. mkdir sub
  13121. am_cv_CC_dependencies_compiler_type=none
  13122. if test "$am_compiler_list" = ""; then
  13123. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13124. fi
  13125. am__universal=false
  13126. case " $depcc " in #(
  13127. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13128. esac
  13129. for depmode in $am_compiler_list; do
  13130. # Setup a source with many dependencies, because some compilers
  13131. # like to wrap large dependency lists on column 80 (with \), and
  13132. # we should not choose a depcomp mode which is confused by this.
  13133. #
  13134. # We need to recreate these files for each test, as the compiler may
  13135. # overwrite some of them when testing with obscure command lines.
  13136. # This happens at least with the AIX C compiler.
  13137. : > sub/conftest.c
  13138. for i in 1 2 3 4 5 6; do
  13139. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13140. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13141. # Solaris 8's {/usr,}/bin/sh.
  13142. touch sub/conftst$i.h
  13143. done
  13144. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13145. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13146. # mode. It turns out that the SunPro C++ compiler does not properly
  13147. # handle `-M -o', and we need to detect this. Also, some Intel
  13148. # versions had trouble with output in subdirs
  13149. am__obj=sub/conftest.${OBJEXT-o}
  13150. am__minus_obj="-o $am__obj"
  13151. case $depmode in
  13152. gcc)
  13153. # This depmode causes a compiler race in universal mode.
  13154. test "$am__universal" = false || continue
  13155. ;;
  13156. nosideeffect)
  13157. # after this tag, mechanisms are not by side-effect, so they'll
  13158. # only be used when explicitly requested
  13159. if test "x$enable_dependency_tracking" = xyes; then
  13160. continue
  13161. else
  13162. break
  13163. fi
  13164. ;;
  13165. msvisualcpp | msvcmsys)
  13166. # This compiler won't grok `-c -o', but also, the minuso test has
  13167. # not run yet. These depmodes are late enough in the game, and
  13168. # so weak that their functioning should not be impacted.
  13169. am__obj=conftest.${OBJEXT-o}
  13170. am__minus_obj=
  13171. ;;
  13172. none) break ;;
  13173. esac
  13174. if depmode=$depmode \
  13175. source=sub/conftest.c object=$am__obj \
  13176. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13177. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13178. >/dev/null 2>conftest.err &&
  13179. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13180. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13181. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13182. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13183. # icc doesn't choke on unknown options, it will just issue warnings
  13184. # or remarks (even with -Werror). So we grep stderr for any message
  13185. # that says an option was ignored or not supported.
  13186. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13187. # icc: Command line warning: ignoring option '-M'; no argument required
  13188. # The diagnosis changed in icc 8.0:
  13189. # icc: Command line remark: option '-MP' not supported
  13190. if (grep 'ignoring option' conftest.err ||
  13191. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13192. am_cv_CC_dependencies_compiler_type=$depmode
  13193. break
  13194. fi
  13195. fi
  13196. done
  13197. cd ..
  13198. rm -rf conftest.dir
  13199. else
  13200. am_cv_CC_dependencies_compiler_type=none
  13201. fi
  13202. fi
  13203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13204. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13205. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13206. if
  13207. test "x$enable_dependency_tracking" != xno \
  13208. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13209. am__fastdepCC_TRUE=
  13210. am__fastdepCC_FALSE='#'
  13211. else
  13212. am__fastdepCC_TRUE='#'
  13213. am__fastdepCC_FALSE=
  13214. fi
  13215. depcc="$CXX" am_compiler_list=
  13216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13217. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13218. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13219. $as_echo_n "(cached) " >&6
  13220. else
  13221. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13222. # We make a subdir and do the tests there. Otherwise we can end up
  13223. # making bogus files that we don't know about and never remove. For
  13224. # instance it was reported that on HP-UX the gcc test will end up
  13225. # making a dummy file named `D' -- because `-MD' means `put the output
  13226. # in D'.
  13227. mkdir conftest.dir
  13228. # Copy depcomp to subdir because otherwise we won't find it if we're
  13229. # using a relative directory.
  13230. cp "$am_depcomp" conftest.dir
  13231. cd conftest.dir
  13232. # We will build objects and dependencies in a subdirectory because
  13233. # it helps to detect inapplicable dependency modes. For instance
  13234. # both Tru64's cc and ICC support -MD to output dependencies as a
  13235. # side effect of compilation, but ICC will put the dependencies in
  13236. # the current directory while Tru64 will put them in the object
  13237. # directory.
  13238. mkdir sub
  13239. am_cv_CXX_dependencies_compiler_type=none
  13240. if test "$am_compiler_list" = ""; then
  13241. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13242. fi
  13243. am__universal=false
  13244. case " $depcc " in #(
  13245. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13246. esac
  13247. for depmode in $am_compiler_list; do
  13248. # Setup a source with many dependencies, because some compilers
  13249. # like to wrap large dependency lists on column 80 (with \), and
  13250. # we should not choose a depcomp mode which is confused by this.
  13251. #
  13252. # We need to recreate these files for each test, as the compiler may
  13253. # overwrite some of them when testing with obscure command lines.
  13254. # This happens at least with the AIX C compiler.
  13255. : > sub/conftest.c
  13256. for i in 1 2 3 4 5 6; do
  13257. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13258. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13259. # Solaris 8's {/usr,}/bin/sh.
  13260. touch sub/conftst$i.h
  13261. done
  13262. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13263. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13264. # mode. It turns out that the SunPro C++ compiler does not properly
  13265. # handle `-M -o', and we need to detect this. Also, some Intel
  13266. # versions had trouble with output in subdirs
  13267. am__obj=sub/conftest.${OBJEXT-o}
  13268. am__minus_obj="-o $am__obj"
  13269. case $depmode in
  13270. gcc)
  13271. # This depmode causes a compiler race in universal mode.
  13272. test "$am__universal" = false || continue
  13273. ;;
  13274. nosideeffect)
  13275. # after this tag, mechanisms are not by side-effect, so they'll
  13276. # only be used when explicitly requested
  13277. if test "x$enable_dependency_tracking" = xyes; then
  13278. continue
  13279. else
  13280. break
  13281. fi
  13282. ;;
  13283. msvisualcpp | msvcmsys)
  13284. # This compiler won't grok `-c -o', but also, the minuso test has
  13285. # not run yet. These depmodes are late enough in the game, and
  13286. # so weak that their functioning should not be impacted.
  13287. am__obj=conftest.${OBJEXT-o}
  13288. am__minus_obj=
  13289. ;;
  13290. none) break ;;
  13291. esac
  13292. if depmode=$depmode \
  13293. source=sub/conftest.c object=$am__obj \
  13294. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13295. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13296. >/dev/null 2>conftest.err &&
  13297. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13298. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13299. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13300. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13301. # icc doesn't choke on unknown options, it will just issue warnings
  13302. # or remarks (even with -Werror). So we grep stderr for any message
  13303. # that says an option was ignored or not supported.
  13304. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13305. # icc: Command line warning: ignoring option '-M'; no argument required
  13306. # The diagnosis changed in icc 8.0:
  13307. # icc: Command line remark: option '-MP' not supported
  13308. if (grep 'ignoring option' conftest.err ||
  13309. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13310. am_cv_CXX_dependencies_compiler_type=$depmode
  13311. break
  13312. fi
  13313. fi
  13314. done
  13315. cd ..
  13316. rm -rf conftest.dir
  13317. else
  13318. am_cv_CXX_dependencies_compiler_type=none
  13319. fi
  13320. fi
  13321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13322. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13323. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13324. if
  13325. test "x$enable_dependency_tracking" != xno \
  13326. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13327. am__fastdepCXX_TRUE=
  13328. am__fastdepCXX_FALSE='#'
  13329. else
  13330. am__fastdepCXX_TRUE='#'
  13331. am__fastdepCXX_FALSE=
  13332. fi
  13333. if test "x$CC" != xcc; then
  13334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  13335. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  13336. else
  13337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  13338. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  13339. fi
  13340. set dummy $CC; ac_cc=`$as_echo "$2" |
  13341. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13342. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  13343. $as_echo_n "(cached) " >&6
  13344. else
  13345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13346. /* end confdefs.h. */
  13347. int
  13348. main ()
  13349. {
  13350. ;
  13351. return 0;
  13352. }
  13353. _ACEOF
  13354. # Make sure it works both with $CC and with simple cc.
  13355. # We do the test twice because some compilers refuse to overwrite an
  13356. # existing .o file with -o, though they will create one.
  13357. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13358. rm -f conftest2.*
  13359. if { { case "(($ac_try" in
  13360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13361. *) ac_try_echo=$ac_try;;
  13362. esac
  13363. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13364. $as_echo "$ac_try_echo"; } >&5
  13365. (eval "$ac_try") 2>&5
  13366. ac_status=$?
  13367. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13368. test $ac_status = 0; } &&
  13369. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13371. *) ac_try_echo=$ac_try;;
  13372. esac
  13373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13374. $as_echo "$ac_try_echo"; } >&5
  13375. (eval "$ac_try") 2>&5
  13376. ac_status=$?
  13377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13378. test $ac_status = 0; };
  13379. then
  13380. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  13381. if test "x$CC" != xcc; then
  13382. # Test first that cc exists at all.
  13383. if { ac_try='cc -c conftest.$ac_ext >&5'
  13384. { { case "(($ac_try" in
  13385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13386. *) ac_try_echo=$ac_try;;
  13387. esac
  13388. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13389. $as_echo "$ac_try_echo"; } >&5
  13390. (eval "$ac_try") 2>&5
  13391. ac_status=$?
  13392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13393. test $ac_status = 0; }; }; then
  13394. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13395. rm -f conftest2.*
  13396. if { { case "(($ac_try" in
  13397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13398. *) ac_try_echo=$ac_try;;
  13399. esac
  13400. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13401. $as_echo "$ac_try_echo"; } >&5
  13402. (eval "$ac_try") 2>&5
  13403. ac_status=$?
  13404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13405. test $ac_status = 0; } &&
  13406. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13408. *) ac_try_echo=$ac_try;;
  13409. esac
  13410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13411. $as_echo "$ac_try_echo"; } >&5
  13412. (eval "$ac_try") 2>&5
  13413. ac_status=$?
  13414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13415. test $ac_status = 0; };
  13416. then
  13417. # cc works too.
  13418. :
  13419. else
  13420. # cc exists but doesn't like -o.
  13421. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13422. fi
  13423. fi
  13424. fi
  13425. else
  13426. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13427. fi
  13428. rm -f core conftest*
  13429. fi
  13430. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  13431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13432. $as_echo "yes" >&6; }
  13433. else
  13434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13435. $as_echo "no" >&6; }
  13436. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  13437. fi
  13438. # FIXME: we rely on the cache variable name because
  13439. # there is no other way.
  13440. set dummy $CC
  13441. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13442. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13443. if test "$am_t" != yes; then
  13444. # Losing compiler, so override with the script.
  13445. # FIXME: It is wrong to rewrite CC.
  13446. # But if we don't then we get into trouble of one sort or another.
  13447. # A longer-term fix would be to have automake use am__CC in this case,
  13448. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13449. CC="$am_aux_dir/compile $CC"
  13450. fi
  13451. # needed to handle 64-bit architecture
  13452. # The cast to long int works around a bug in the HP C Compiler
  13453. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13454. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13455. # This bug is HP SR number 8606223364.
  13456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13457. $as_echo_n "checking size of int... " >&6; }
  13458. if ${ac_cv_sizeof_int+:} false; then :
  13459. $as_echo_n "(cached) " >&6
  13460. else
  13461. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13462. else
  13463. if test "$ac_cv_type_int" = yes; then
  13464. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13465. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13466. as_fn_error 77 "cannot compute sizeof (int)
  13467. See \`config.log' for more details" "$LINENO" 5; }
  13468. else
  13469. ac_cv_sizeof_int=0
  13470. fi
  13471. fi
  13472. fi
  13473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  13474. $as_echo "$ac_cv_sizeof_int" >&6; }
  13475. cat >>confdefs.h <<_ACEOF
  13476. #define SIZEOF_INT $ac_cv_sizeof_int
  13477. _ACEOF
  13478. # The cast to long int works around a bug in the HP C Compiler
  13479. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13480. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13481. # This bug is HP SR number 8606223364.
  13482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13483. $as_echo_n "checking size of long... " >&6; }
  13484. if ${ac_cv_sizeof_long+:} false; then :
  13485. $as_echo_n "(cached) " >&6
  13486. else
  13487. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13488. else
  13489. if test "$ac_cv_type_long" = yes; then
  13490. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13491. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13492. as_fn_error 77 "cannot compute sizeof (long)
  13493. See \`config.log' for more details" "$LINENO" 5; }
  13494. else
  13495. ac_cv_sizeof_long=0
  13496. fi
  13497. fi
  13498. fi
  13499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13500. $as_echo "$ac_cv_sizeof_long" >&6; }
  13501. cat >>confdefs.h <<_ACEOF
  13502. #define SIZEOF_LONG $ac_cv_sizeof_long
  13503. _ACEOF
  13504. # The cast to long int works around a bug in the HP C Compiler
  13505. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13506. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13507. # This bug is HP SR number 8606223364.
  13508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  13509. $as_echo_n "checking size of size_t... " >&6; }
  13510. if ${ac_cv_sizeof_size_t+:} false; then :
  13511. $as_echo_n "(cached) " >&6
  13512. else
  13513. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  13514. else
  13515. if test "$ac_cv_type_size_t" = yes; then
  13516. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13517. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13518. as_fn_error 77 "cannot compute sizeof (size_t)
  13519. See \`config.log' for more details" "$LINENO" 5; }
  13520. else
  13521. ac_cv_sizeof_size_t=0
  13522. fi
  13523. fi
  13524. fi
  13525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  13526. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  13527. cat >>confdefs.h <<_ACEOF
  13528. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  13529. _ACEOF
  13530. #------------------------------------------------------------------------
  13531. # Handle the --prefix=... option
  13532. #------------------------------------------------------------------------
  13533. if test "${prefix}" = "NONE"; then
  13534. prefix=/usr/local
  13535. fi
  13536. if test "${exec_prefix}" = "NONE"; then
  13537. exec_prefix=$prefix
  13538. fi
  13539. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  13540. eval libdir="$libdir"
  13541. ################################
  13542. # Deal with debugging options
  13543. ################################
  13544. # Check whether --enable-debug was given.
  13545. if test "${enable_debug+set}" = set; then :
  13546. enableval=$enable_debug;
  13547. else
  13548. enable_debug=no
  13549. fi
  13550. if test x$enable_debug = xyes; then
  13551. DEBUG_TRUE=
  13552. DEBUG_FALSE='#'
  13553. else
  13554. DEBUG_TRUE='#'
  13555. DEBUG_FALSE=
  13556. fi
  13557. ################################
  13558. # Check for the LUB library
  13559. ################################
  13560. LUB_LIBS="-llub"
  13561. LUB_CFLAGS=""
  13562. if test "x$LUB_LIBS" = "x"; then
  13563. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  13564. fi
  13565. ################################
  13566. # Check for the KONF library
  13567. ################################
  13568. KONF_LIBS="-lkonf"
  13569. KONF_CFLAGS=""
  13570. if test "x$KONF_LIBS" = "x"; then
  13571. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  13572. fi
  13573. ################################
  13574. # Check for the TINYRL library
  13575. ################################
  13576. TINYRL_LIBS="-ltinyrl"
  13577. TINYRL_CFLAGS=""
  13578. if test "x$TINYRL_LIBS" = "x"; then
  13579. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  13580. fi
  13581. ################################
  13582. # Check for the TINYXML library
  13583. ################################
  13584. TINYXML_LIBS="-ltinyxml"
  13585. TINYXML_CXXFLAGS="-std=gnu++98"
  13586. if test "x$TINYXML_LIBS" = "x"; then
  13587. as_fn_error $? "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  13588. fi
  13589. ################################
  13590. # Check for the PTHREAD library
  13591. ################################
  13592. # Check whether --with-pthread was given.
  13593. if test "${with_pthread+set}" = set; then :
  13594. withval=$with_pthread;
  13595. fi
  13596. for ac_header in pthread.h
  13597. do :
  13598. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  13599. if test "x$ac_cv_header_pthread_h" = xyes; then :
  13600. cat >>confdefs.h <<_ACEOF
  13601. #define HAVE_PTHREAD_H 1
  13602. _ACEOF
  13603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  13604. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  13605. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  13606. $as_echo_n "(cached) " >&6
  13607. else
  13608. ac_check_lib_save_LIBS=$LIBS
  13609. LIBS="-lpthread $LIBS"
  13610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13611. /* end confdefs.h. */
  13612. /* Override any GCC internal prototype to avoid an error.
  13613. Use char because int might match the return type of a GCC
  13614. builtin and then its argument prototype would still apply. */
  13615. #ifdef __cplusplus
  13616. extern "C"
  13617. #endif
  13618. char pthread_create ();
  13619. int
  13620. main ()
  13621. {
  13622. return pthread_create ();
  13623. ;
  13624. return 0;
  13625. }
  13626. _ACEOF
  13627. if ac_fn_c_try_link "$LINENO"; then :
  13628. ac_cv_lib_pthread_pthread_create=yes
  13629. else
  13630. ac_cv_lib_pthread_pthread_create=no
  13631. fi
  13632. rm -f core conftest.err conftest.$ac_objext \
  13633. conftest$ac_exeext conftest.$ac_ext
  13634. LIBS=$ac_check_lib_save_LIBS
  13635. fi
  13636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  13637. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  13638. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  13639. $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
  13640. if test "x$with_pthread" = "x"; then
  13641. PTHREAD_LIBS="-lpthread"
  13642. else
  13643. PTHREAD_CFLAGS="-I$with_pthread/include"
  13644. PTHREAD_LIBS="-L$with_pthread/lib -lpthread"
  13645. fi
  13646. fi
  13647. fi
  13648. done
  13649. if test "x$PTHREAD_LIBS" = "x"; then
  13650. as_fn_error $? "Cannot find the POSIX threads library" "$LINENO" 5
  13651. fi
  13652. ################################
  13653. # Check for the RT library
  13654. ################################
  13655. # Check whether --with-rt was given.
  13656. if test "${with_rt+set}" = set; then :
  13657. withval=$with_rt;
  13658. fi
  13659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  13660. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  13661. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  13662. $as_echo_n "(cached) " >&6
  13663. else
  13664. ac_check_lib_save_LIBS=$LIBS
  13665. LIBS="-lrt $LIBS"
  13666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13667. /* end confdefs.h. */
  13668. /* Override any GCC internal prototype to avoid an error.
  13669. Use char because int might match the return type of a GCC
  13670. builtin and then its argument prototype would still apply. */
  13671. #ifdef __cplusplus
  13672. extern "C"
  13673. #endif
  13674. char clock_gettime ();
  13675. int
  13676. main ()
  13677. {
  13678. return clock_gettime ();
  13679. ;
  13680. return 0;
  13681. }
  13682. _ACEOF
  13683. if ac_fn_c_try_link "$LINENO"; then :
  13684. ac_cv_lib_rt_clock_gettime=yes
  13685. else
  13686. ac_cv_lib_rt_clock_gettime=no
  13687. fi
  13688. rm -f core conftest.err conftest.$ac_objext \
  13689. conftest$ac_exeext conftest.$ac_ext
  13690. LIBS=$ac_check_lib_save_LIBS
  13691. fi
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13693. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13694. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  13695. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  13696. if test "x$with_rt" = "x"; then
  13697. RT_LIBS="-lrt"
  13698. else
  13699. RT_CFLAGS="-I$with_rt/include"
  13700. RT_LIBS="-L$with_rt/lib -lrt"
  13701. fi
  13702. fi
  13703. ################################
  13704. # Check for the TCL library
  13705. ################################
  13706. TCL_CONFIG=${libdir}/tclConfig.sh
  13707. # Check whether --with-tcl was given.
  13708. if test "${with_tcl+set}" = set; then :
  13709. withval=$with_tcl; if test -e $TCL_CONFIG; then
  13710. source ${TCL_CONFIG} # get TCL_VERSION
  13711. if test "${with_tcl}" = "yes"; then
  13712. TCL_CFLAGS="${TCL_INCLUDE_SPEC}"
  13713. TCL_LIBS="${TCL_LIB_SPEC}"
  13714. else
  13715. TCL_CFLAGS="-I${with_tcl}/include"
  13716. TCL_LIBS="-L${with_tcl}/lib -ltcl"
  13717. fi
  13718. CPPFLAGS="$CPPFLAGS $TCL_CFLAGS"
  13719. for ac_header in tcl.h
  13720. do :
  13721. ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
  13722. if test "x$ac_cv_header_tcl_h" = xyes; then :
  13723. cat >>confdefs.h <<_ACEOF
  13724. #define HAVE_TCL_H 1
  13725. _ACEOF
  13726. as_ac_Lib=`$as_echo "ac_cv_lib_tcl${TCL_VERSION}''_Tcl_CreateInterp" | $as_tr_sh`
  13727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}" >&5
  13728. $as_echo_n "checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}... " >&6; }
  13729. if eval \${$as_ac_Lib+:} false; then :
  13730. $as_echo_n "(cached) " >&6
  13731. else
  13732. ac_check_lib_save_LIBS=$LIBS
  13733. LIBS="-ltcl${TCL_VERSION} $LIBS"
  13734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13735. /* end confdefs.h. */
  13736. /* Override any GCC internal prototype to avoid an error.
  13737. Use char because int might match the return type of a GCC
  13738. builtin and then its argument prototype would still apply. */
  13739. #ifdef __cplusplus
  13740. extern "C"
  13741. #endif
  13742. char Tcl_CreateInterp ();
  13743. int
  13744. main ()
  13745. {
  13746. return Tcl_CreateInterp ();
  13747. ;
  13748. return 0;
  13749. }
  13750. _ACEOF
  13751. if ac_fn_c_try_link "$LINENO"; then :
  13752. eval "$as_ac_Lib=yes"
  13753. else
  13754. eval "$as_ac_Lib=no"
  13755. fi
  13756. rm -f core conftest.err conftest.$ac_objext \
  13757. conftest$ac_exeext conftest.$ac_ext
  13758. LIBS=$ac_check_lib_save_LIBS
  13759. fi
  13760. eval ac_res=\$$as_ac_Lib
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13762. $as_echo "$ac_res" >&6; }
  13763. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13764. $as_echo "#define HAVE_LIBTCL /**/" >>confdefs.h
  13765. have_tcl="yes"
  13766. fi
  13767. fi
  13768. done
  13769. fi
  13770. fi
  13771. if test "x${have_tcl}" = "xyes"; then
  13772. TCL_TRUE=
  13773. TCL_FALSE='#'
  13774. else
  13775. TCL_TRUE='#'
  13776. TCL_FALSE=
  13777. fi
  13778. ################################
  13779. # Check for inclusion of lub_heap
  13780. ################################
  13781. # Check whether --enable-lubheap was given.
  13782. if test "${enable_lubheap+set}" = set; then :
  13783. enableval=$enable_lubheap;
  13784. else
  13785. enable_lubheap=no
  13786. fi
  13787. if test "x$enable_lubheap" = "xyes"; then
  13788. LUBHEAP_TRUE=
  13789. LUBHEAP_FALSE='#'
  13790. else
  13791. LUBHEAP_TRUE='#'
  13792. LUBHEAP_FALSE=
  13793. fi
  13794. if test "x$enable_lubheap" = "xyes"; then
  13795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing standard memory libraries with lubheap" >&5
  13796. $as_echo "$as_me: WARNING: Replacing standard memory libraries with lubheap" >&2;}
  13797. LUBHEAP_LIBS="-llubheap"
  13798. LUBHEAP_CFLAGS=""
  13799. if test "x$LUBHEAP_LIBS" = "x"; then
  13800. as_fn_error $? "Cannot find the \"Little Useful Bits Heap\" library" "$LINENO" 5
  13801. fi
  13802. fi
  13803. ################################
  13804. # Check for linkage with GPL libraries
  13805. ################################
  13806. # Check whether --enable-gpl was given.
  13807. if test "${enable_gpl+set}" = set; then :
  13808. enableval=$enable_gpl;
  13809. else
  13810. enable_gpl=yes
  13811. fi
  13812. if test "x$enable_gpl" = "xyes"; then
  13813. ################################
  13814. # Check for BFD library
  13815. ################################
  13816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking with GPL licence libraries" >&5
  13817. $as_echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  13818. for ac_header in bfd.h
  13819. do :
  13820. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  13821. if test "x$ac_cv_header_bfd_h" = xyes; then :
  13822. cat >>confdefs.h <<_ACEOF
  13823. #define HAVE_BFD_H 1
  13824. _ACEOF
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
  13826. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  13827. if ${ac_cv_lib_bfd_bfd_init+:} false; then :
  13828. $as_echo_n "(cached) " >&6
  13829. else
  13830. ac_check_lib_save_LIBS=$LIBS
  13831. LIBS="-lbfd $LIBS"
  13832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13833. /* end confdefs.h. */
  13834. /* Override any GCC internal prototype to avoid an error.
  13835. Use char because int might match the return type of a GCC
  13836. builtin and then its argument prototype would still apply. */
  13837. #ifdef __cplusplus
  13838. extern "C"
  13839. #endif
  13840. char bfd_init ();
  13841. int
  13842. main ()
  13843. {
  13844. return bfd_init ();
  13845. ;
  13846. return 0;
  13847. }
  13848. _ACEOF
  13849. if ac_fn_c_try_link "$LINENO"; then :
  13850. ac_cv_lib_bfd_bfd_init=yes
  13851. else
  13852. ac_cv_lib_bfd_bfd_init=no
  13853. fi
  13854. rm -f core conftest.err conftest.$ac_objext \
  13855. conftest$ac_exeext conftest.$ac_ext
  13856. LIBS=$ac_check_lib_save_LIBS
  13857. fi
  13858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
  13859. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  13860. if test "x$ac_cv_lib_bfd_bfd_init" = xyes; then :
  13861. $as_echo "#define HAVE_LIBBFD /**/" >>confdefs.h
  13862. BFD_LIBS="-lbfd -liberty"
  13863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_dgettext in -lintl" >&5
  13864. $as_echo_n "checking for libintl_dgettext in -lintl... " >&6; }
  13865. if ${ac_cv_lib_intl_libintl_dgettext+:} false; then :
  13866. $as_echo_n "(cached) " >&6
  13867. else
  13868. ac_check_lib_save_LIBS=$LIBS
  13869. LIBS="-lintl $LIBS"
  13870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13871. /* end confdefs.h. */
  13872. /* Override any GCC internal prototype to avoid an error.
  13873. Use char because int might match the return type of a GCC
  13874. builtin and then its argument prototype would still apply. */
  13875. #ifdef __cplusplus
  13876. extern "C"
  13877. #endif
  13878. char libintl_dgettext ();
  13879. int
  13880. main ()
  13881. {
  13882. return libintl_dgettext ();
  13883. ;
  13884. return 0;
  13885. }
  13886. _ACEOF
  13887. if ac_fn_c_try_link "$LINENO"; then :
  13888. ac_cv_lib_intl_libintl_dgettext=yes
  13889. else
  13890. ac_cv_lib_intl_libintl_dgettext=no
  13891. fi
  13892. rm -f core conftest.err conftest.$ac_objext \
  13893. conftest$ac_exeext conftest.$ac_ext
  13894. LIBS=$ac_check_lib_save_LIBS
  13895. fi
  13896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  13897. $as_echo "$ac_cv_lib_intl_libintl_dgettext" >&6; }
  13898. if test "x$ac_cv_lib_intl_libintl_dgettext" = xyes; then :
  13899. $as_echo "#define HAVE_LIBINTL /**/" >>confdefs.h
  13900. BFD_LIBS="$BFD_LIBS -lintl"
  13901. fi
  13902. fi
  13903. fi
  13904. done
  13905. else
  13906. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  13907. $as_echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  13908. fi
  13909. ################################
  13910. # Check for regex.h
  13911. ################################
  13912. for ac_header in regex.h
  13913. do :
  13914. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  13915. if test "x$ac_cv_header_regex_h" = xyes; then :
  13916. cat >>confdefs.h <<_ACEOF
  13917. #define HAVE_REGEX_H 1
  13918. _ACEOF
  13919. else
  13920. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  13921. fi
  13922. done
  13923. ################################
  13924. # Check for getopt_long()
  13925. ################################
  13926. for ac_header in getopt.h
  13927. do :
  13928. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  13929. if test "x$ac_cv_header_getopt_h" = xyes; then :
  13930. cat >>confdefs.h <<_ACEOF
  13931. #define HAVE_GETOPT_H 1
  13932. _ACEOF
  13933. else
  13934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  13935. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  13936. fi
  13937. done
  13938. ################################
  13939. # Check for locale.h
  13940. ################################
  13941. for ac_header in locale.h
  13942. do :
  13943. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  13944. if test "x$ac_cv_header_locale_h" = xyes; then :
  13945. cat >>confdefs.h <<_ACEOF
  13946. #define HAVE_LOCALE_H 1
  13947. _ACEOF
  13948. else
  13949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  13950. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  13951. fi
  13952. done
  13953. ################################
  13954. # Check for CODESET within nl_langinfo
  13955. ################################
  13956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  13957. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  13958. if ${am_cv_langinfo_codeset+:} false; then :
  13959. $as_echo_n "(cached) " >&6
  13960. else
  13961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13962. /* end confdefs.h. */
  13963. #include <langinfo.h>
  13964. int
  13965. main ()
  13966. {
  13967. char* cs = nl_langinfo(CODESET); return !cs;
  13968. ;
  13969. return 0;
  13970. }
  13971. _ACEOF
  13972. if ac_fn_c_try_link "$LINENO"; then :
  13973. am_cv_langinfo_codeset=yes
  13974. else
  13975. am_cv_langinfo_codeset=no
  13976. fi
  13977. rm -f core conftest.err conftest.$ac_objext \
  13978. conftest$ac_exeext conftest.$ac_ext
  13979. fi
  13980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  13981. $as_echo "$am_cv_langinfo_codeset" >&6; }
  13982. if test $am_cv_langinfo_codeset = yes; then
  13983. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  13984. fi
  13985. ################################
  13986. # Check for pwd.h and grp.h
  13987. ################################
  13988. for ac_header in pwd.h
  13989. do :
  13990. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  13991. if test "x$ac_cv_header_pwd_h" = xyes; then :
  13992. cat >>confdefs.h <<_ACEOF
  13993. #define HAVE_PWD_H 1
  13994. _ACEOF
  13995. else
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  13997. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  13998. fi
  13999. done
  14000. for ac_header in grp.h
  14001. do :
  14002. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  14003. if test "x$ac_cv_header_grp_h" = xyes; then :
  14004. cat >>confdefs.h <<_ACEOF
  14005. #define HAVE_GRP_H 1
  14006. _ACEOF
  14007. else
  14008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  14009. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  14010. fi
  14011. done
  14012. ################################
  14013. # Check for chroot
  14014. ################################
  14015. for ac_func in chroot
  14016. do :
  14017. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  14018. if test "x$ac_cv_func_chroot" = xyes; then :
  14019. cat >>confdefs.h <<_ACEOF
  14020. #define HAVE_CHROOT 1
  14021. _ACEOF
  14022. else
  14023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  14024. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  14025. fi
  14026. done
  14027. ac_config_files="$ac_config_files Makefile"
  14028. cat >confcache <<\_ACEOF
  14029. # This file is a shell script that caches the results of configure
  14030. # tests run on this system so they can be shared between configure
  14031. # scripts and configure runs, see configure's option --config-cache.
  14032. # It is not useful on other systems. If it contains results you don't
  14033. # want to keep, you may remove or edit it.
  14034. #
  14035. # config.status only pays attention to the cache file if you give it
  14036. # the --recheck option to rerun configure.
  14037. #
  14038. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14039. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14040. # following values.
  14041. _ACEOF
  14042. # The following way of writing the cache mishandles newlines in values,
  14043. # but we know of no workaround that is simple, portable, and efficient.
  14044. # So, we kill variables containing newlines.
  14045. # Ultrix sh set writes to stderr and can't be redirected directly,
  14046. # and sets the high bit in the cache file unless we assign to the vars.
  14047. (
  14048. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14049. eval ac_val=\$$ac_var
  14050. case $ac_val in #(
  14051. *${as_nl}*)
  14052. case $ac_var in #(
  14053. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14054. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14055. esac
  14056. case $ac_var in #(
  14057. _ | IFS | as_nl) ;; #(
  14058. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14059. *) { eval $ac_var=; unset $ac_var;} ;;
  14060. esac ;;
  14061. esac
  14062. done
  14063. (set) 2>&1 |
  14064. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14065. *${as_nl}ac_space=\ *)
  14066. # `set' does not quote correctly, so add quotes: double-quote
  14067. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14068. sed -n \
  14069. "s/'/'\\\\''/g;
  14070. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14071. ;; #(
  14072. *)
  14073. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14074. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14075. ;;
  14076. esac |
  14077. sort
  14078. ) |
  14079. sed '
  14080. /^ac_cv_env_/b end
  14081. t clear
  14082. :clear
  14083. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14084. t end
  14085. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14086. :end' >>confcache
  14087. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14088. if test -w "$cache_file"; then
  14089. if test "x$cache_file" != "x/dev/null"; then
  14090. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14091. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14092. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14093. cat confcache >"$cache_file"
  14094. else
  14095. case $cache_file in #(
  14096. */* | ?:*)
  14097. mv -f confcache "$cache_file"$$ &&
  14098. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14099. *)
  14100. mv -f confcache "$cache_file" ;;
  14101. esac
  14102. fi
  14103. fi
  14104. else
  14105. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14106. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14107. fi
  14108. fi
  14109. rm -f confcache
  14110. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14111. # Let make expand exec_prefix.
  14112. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14113. DEFS=-DHAVE_CONFIG_H
  14114. ac_libobjs=
  14115. ac_ltlibobjs=
  14116. U=
  14117. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14118. # 1. Remove the extension, and $U if already installed.
  14119. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14120. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14121. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14122. # will be set to the directory where LIBOBJS objects are built.
  14123. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14124. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14125. done
  14126. LIBOBJS=$ac_libobjs
  14127. LTLIBOBJS=$ac_ltlibobjs
  14128. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14129. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14130. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14131. fi
  14132. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14133. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14134. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14135. fi
  14136. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14137. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14138. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14139. fi
  14140. if test -n "$EXEEXT"; then
  14141. am__EXEEXT_TRUE=
  14142. am__EXEEXT_FALSE='#'
  14143. else
  14144. am__EXEEXT_TRUE='#'
  14145. am__EXEEXT_FALSE=
  14146. fi
  14147. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  14148. as_fn_error $? "conditional \"DEBUG\" was never defined.
  14149. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14150. fi
  14151. if test -z "${TCL_TRUE}" && test -z "${TCL_FALSE}"; then
  14152. as_fn_error $? "conditional \"TCL\" was never defined.
  14153. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14154. fi
  14155. if test -z "${LUBHEAP_TRUE}" && test -z "${LUBHEAP_FALSE}"; then
  14156. as_fn_error $? "conditional \"LUBHEAP\" was never defined.
  14157. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14158. fi
  14159. : "${CONFIG_STATUS=./config.status}"
  14160. ac_write_fail=0
  14161. ac_clean_files_save=$ac_clean_files
  14162. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14163. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14164. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14165. as_write_fail=0
  14166. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14167. #! $SHELL
  14168. # Generated by $as_me.
  14169. # Run this file to recreate the current configuration.
  14170. # Compiler output produced by configure, useful for debugging
  14171. # configure, is in config.log if it exists.
  14172. debug=false
  14173. ac_cs_recheck=false
  14174. ac_cs_silent=false
  14175. SHELL=\${CONFIG_SHELL-$SHELL}
  14176. export SHELL
  14177. _ASEOF
  14178. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14179. ## -------------------- ##
  14180. ## M4sh Initialization. ##
  14181. ## -------------------- ##
  14182. # Be more Bourne compatible
  14183. DUALCASE=1; export DUALCASE # for MKS sh
  14184. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14185. emulate sh
  14186. NULLCMD=:
  14187. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14188. # is contrary to our usage. Disable this feature.
  14189. alias -g '${1+"$@"}'='"$@"'
  14190. setopt NO_GLOB_SUBST
  14191. else
  14192. case `(set -o) 2>/dev/null` in #(
  14193. *posix*) :
  14194. set -o posix ;; #(
  14195. *) :
  14196. ;;
  14197. esac
  14198. fi
  14199. as_nl='
  14200. '
  14201. export as_nl
  14202. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14203. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14204. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14205. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14206. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14207. # but without wasting forks for bash or zsh.
  14208. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14209. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14210. as_echo='print -r --'
  14211. as_echo_n='print -rn --'
  14212. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14213. as_echo='printf %s\n'
  14214. as_echo_n='printf %s'
  14215. else
  14216. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14217. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14218. as_echo_n='/usr/ucb/echo -n'
  14219. else
  14220. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14221. as_echo_n_body='eval
  14222. arg=$1;
  14223. case $arg in #(
  14224. *"$as_nl"*)
  14225. expr "X$arg" : "X\\(.*\\)$as_nl";
  14226. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14227. esac;
  14228. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14229. '
  14230. export as_echo_n_body
  14231. as_echo_n='sh -c $as_echo_n_body as_echo'
  14232. fi
  14233. export as_echo_body
  14234. as_echo='sh -c $as_echo_body as_echo'
  14235. fi
  14236. # The user is always right.
  14237. if test "${PATH_SEPARATOR+set}" != set; then
  14238. PATH_SEPARATOR=:
  14239. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14240. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14241. PATH_SEPARATOR=';'
  14242. }
  14243. fi
  14244. # IFS
  14245. # We need space, tab and new line, in precisely that order. Quoting is
  14246. # there to prevent editors from complaining about space-tab.
  14247. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14248. # splitting by setting IFS to empty value.)
  14249. IFS=" "" $as_nl"
  14250. # Find who we are. Look in the path if we contain no directory separator.
  14251. as_myself=
  14252. case $0 in #((
  14253. *[\\/]* ) as_myself=$0 ;;
  14254. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14255. for as_dir in $PATH
  14256. do
  14257. IFS=$as_save_IFS
  14258. test -z "$as_dir" && as_dir=.
  14259. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14260. done
  14261. IFS=$as_save_IFS
  14262. ;;
  14263. esac
  14264. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14265. # in which case we are not to be found in the path.
  14266. if test "x$as_myself" = x; then
  14267. as_myself=$0
  14268. fi
  14269. if test ! -f "$as_myself"; then
  14270. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14271. exit 1
  14272. fi
  14273. # Unset variables that we do not need and which cause bugs (e.g. in
  14274. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14275. # suppresses any "Segmentation fault" message there. '((' could
  14276. # trigger a bug in pdksh 5.2.14.
  14277. for as_var in BASH_ENV ENV MAIL MAILPATH
  14278. do eval test x\${$as_var+set} = xset \
  14279. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14280. done
  14281. PS1='$ '
  14282. PS2='> '
  14283. PS4='+ '
  14284. # NLS nuisances.
  14285. LC_ALL=C
  14286. export LC_ALL
  14287. LANGUAGE=C
  14288. export LANGUAGE
  14289. # CDPATH.
  14290. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14291. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14292. # ----------------------------------------
  14293. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14294. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14295. # script with STATUS, using 1 if that was 0.
  14296. as_fn_error ()
  14297. {
  14298. as_status=$1; test $as_status -eq 0 && as_status=1
  14299. if test "$4"; then
  14300. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14301. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14302. fi
  14303. $as_echo "$as_me: error: $2" >&2
  14304. as_fn_exit $as_status
  14305. } # as_fn_error
  14306. # as_fn_set_status STATUS
  14307. # -----------------------
  14308. # Set $? to STATUS, without forking.
  14309. as_fn_set_status ()
  14310. {
  14311. return $1
  14312. } # as_fn_set_status
  14313. # as_fn_exit STATUS
  14314. # -----------------
  14315. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14316. as_fn_exit ()
  14317. {
  14318. set +e
  14319. as_fn_set_status $1
  14320. exit $1
  14321. } # as_fn_exit
  14322. # as_fn_unset VAR
  14323. # ---------------
  14324. # Portably unset VAR.
  14325. as_fn_unset ()
  14326. {
  14327. { eval $1=; unset $1;}
  14328. }
  14329. as_unset=as_fn_unset
  14330. # as_fn_append VAR VALUE
  14331. # ----------------------
  14332. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14333. # advantage of any shell optimizations that allow amortized linear growth over
  14334. # repeated appends, instead of the typical quadratic growth present in naive
  14335. # implementations.
  14336. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14337. eval 'as_fn_append ()
  14338. {
  14339. eval $1+=\$2
  14340. }'
  14341. else
  14342. as_fn_append ()
  14343. {
  14344. eval $1=\$$1\$2
  14345. }
  14346. fi # as_fn_append
  14347. # as_fn_arith ARG...
  14348. # ------------------
  14349. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14350. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14351. # must be portable across $(()) and expr.
  14352. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14353. eval 'as_fn_arith ()
  14354. {
  14355. as_val=$(( $* ))
  14356. }'
  14357. else
  14358. as_fn_arith ()
  14359. {
  14360. as_val=`expr "$@" || test $? -eq 1`
  14361. }
  14362. fi # as_fn_arith
  14363. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14364. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14365. as_expr=expr
  14366. else
  14367. as_expr=false
  14368. fi
  14369. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14370. as_basename=basename
  14371. else
  14372. as_basename=false
  14373. fi
  14374. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14375. as_dirname=dirname
  14376. else
  14377. as_dirname=false
  14378. fi
  14379. as_me=`$as_basename -- "$0" ||
  14380. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14381. X"$0" : 'X\(//\)$' \| \
  14382. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14383. $as_echo X/"$0" |
  14384. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14385. s//\1/
  14386. q
  14387. }
  14388. /^X\/\(\/\/\)$/{
  14389. s//\1/
  14390. q
  14391. }
  14392. /^X\/\(\/\).*/{
  14393. s//\1/
  14394. q
  14395. }
  14396. s/.*/./; q'`
  14397. # Avoid depending upon Character Ranges.
  14398. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14399. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14400. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14401. as_cr_digits='0123456789'
  14402. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14403. ECHO_C= ECHO_N= ECHO_T=
  14404. case `echo -n x` in #(((((
  14405. -n*)
  14406. case `echo 'xy\c'` in
  14407. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14408. xy) ECHO_C='\c';;
  14409. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14410. ECHO_T=' ';;
  14411. esac;;
  14412. *)
  14413. ECHO_N='-n';;
  14414. esac
  14415. rm -f conf$$ conf$$.exe conf$$.file
  14416. if test -d conf$$.dir; then
  14417. rm -f conf$$.dir/conf$$.file
  14418. else
  14419. rm -f conf$$.dir
  14420. mkdir conf$$.dir 2>/dev/null
  14421. fi
  14422. if (echo >conf$$.file) 2>/dev/null; then
  14423. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14424. as_ln_s='ln -s'
  14425. # ... but there are two gotchas:
  14426. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14427. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14428. # In both cases, we have to default to `cp -p'.
  14429. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14430. as_ln_s='cp -p'
  14431. elif ln conf$$.file conf$$ 2>/dev/null; then
  14432. as_ln_s=ln
  14433. else
  14434. as_ln_s='cp -p'
  14435. fi
  14436. else
  14437. as_ln_s='cp -p'
  14438. fi
  14439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14440. rmdir conf$$.dir 2>/dev/null
  14441. # as_fn_mkdir_p
  14442. # -------------
  14443. # Create "$as_dir" as a directory, including parents if necessary.
  14444. as_fn_mkdir_p ()
  14445. {
  14446. case $as_dir in #(
  14447. -*) as_dir=./$as_dir;;
  14448. esac
  14449. test -d "$as_dir" || eval $as_mkdir_p || {
  14450. as_dirs=
  14451. while :; do
  14452. case $as_dir in #(
  14453. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14454. *) as_qdir=$as_dir;;
  14455. esac
  14456. as_dirs="'$as_qdir' $as_dirs"
  14457. as_dir=`$as_dirname -- "$as_dir" ||
  14458. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14459. X"$as_dir" : 'X\(//\)[^/]' \| \
  14460. X"$as_dir" : 'X\(//\)$' \| \
  14461. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14462. $as_echo X"$as_dir" |
  14463. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14464. s//\1/
  14465. q
  14466. }
  14467. /^X\(\/\/\)[^/].*/{
  14468. s//\1/
  14469. q
  14470. }
  14471. /^X\(\/\/\)$/{
  14472. s//\1/
  14473. q
  14474. }
  14475. /^X\(\/\).*/{
  14476. s//\1/
  14477. q
  14478. }
  14479. s/.*/./; q'`
  14480. test -d "$as_dir" && break
  14481. done
  14482. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14483. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14484. } # as_fn_mkdir_p
  14485. if mkdir -p . 2>/dev/null; then
  14486. as_mkdir_p='mkdir -p "$as_dir"'
  14487. else
  14488. test -d ./-p && rmdir ./-p
  14489. as_mkdir_p=false
  14490. fi
  14491. if test -x / >/dev/null 2>&1; then
  14492. as_test_x='test -x'
  14493. else
  14494. if ls -dL / >/dev/null 2>&1; then
  14495. as_ls_L_option=L
  14496. else
  14497. as_ls_L_option=
  14498. fi
  14499. as_test_x='
  14500. eval sh -c '\''
  14501. if test -d "$1"; then
  14502. test -d "$1/.";
  14503. else
  14504. case $1 in #(
  14505. -*)set "./$1";;
  14506. esac;
  14507. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14508. ???[sx]*):;;*)false;;esac;fi
  14509. '\'' sh
  14510. '
  14511. fi
  14512. as_executable_p=$as_test_x
  14513. # Sed expression to map a string onto a valid CPP name.
  14514. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14515. # Sed expression to map a string onto a valid variable name.
  14516. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14517. exec 6>&1
  14518. ## ----------------------------------- ##
  14519. ## Main body of $CONFIG_STATUS script. ##
  14520. ## ----------------------------------- ##
  14521. _ASEOF
  14522. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14523. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14524. # Save the log message, to keep $0 and so on meaningful, and to
  14525. # report actual input values of CONFIG_FILES etc. instead of their
  14526. # values after options handling.
  14527. ac_log="
  14528. This file was extended by klish $as_me 1.5.2, which was
  14529. generated by GNU Autoconf 2.68. Invocation command line was
  14530. CONFIG_FILES = $CONFIG_FILES
  14531. CONFIG_HEADERS = $CONFIG_HEADERS
  14532. CONFIG_LINKS = $CONFIG_LINKS
  14533. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14534. $ $0 $@
  14535. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14536. "
  14537. _ACEOF
  14538. case $ac_config_files in *"
  14539. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14540. esac
  14541. case $ac_config_headers in *"
  14542. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14543. esac
  14544. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14545. # Files that config.status was made for.
  14546. config_files="$ac_config_files"
  14547. config_headers="$ac_config_headers"
  14548. config_commands="$ac_config_commands"
  14549. _ACEOF
  14550. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14551. ac_cs_usage="\
  14552. \`$as_me' instantiates files and other configuration actions
  14553. from templates according to the current configuration. Unless the files
  14554. and actions are specified as TAGs, all are instantiated by default.
  14555. Usage: $0 [OPTION]... [TAG]...
  14556. -h, --help print this help, then exit
  14557. -V, --version print version number and configuration settings, then exit
  14558. --config print configuration, then exit
  14559. -q, --quiet, --silent
  14560. do not print progress messages
  14561. -d, --debug don't remove temporary files
  14562. --recheck update $as_me by reconfiguring in the same conditions
  14563. --file=FILE[:TEMPLATE]
  14564. instantiate the configuration file FILE
  14565. --header=FILE[:TEMPLATE]
  14566. instantiate the configuration header FILE
  14567. Configuration files:
  14568. $config_files
  14569. Configuration headers:
  14570. $config_headers
  14571. Configuration commands:
  14572. $config_commands
  14573. Report bugs to <serj.kalichev at gmail dot com>."
  14574. _ACEOF
  14575. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14576. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14577. ac_cs_version="\\
  14578. klish config.status 1.5.2
  14579. configured by $0, generated by GNU Autoconf 2.68,
  14580. with options \\"\$ac_cs_config\\"
  14581. Copyright (C) 2010 Free Software Foundation, Inc.
  14582. This config.status script is free software; the Free Software Foundation
  14583. gives unlimited permission to copy, distribute and modify it."
  14584. ac_pwd='$ac_pwd'
  14585. srcdir='$srcdir'
  14586. INSTALL='$INSTALL'
  14587. MKDIR_P='$MKDIR_P'
  14588. AWK='$AWK'
  14589. test -n "\$AWK" || AWK=awk
  14590. _ACEOF
  14591. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14592. # The default lists apply if the user does not specify any file.
  14593. ac_need_defaults=:
  14594. while test $# != 0
  14595. do
  14596. case $1 in
  14597. --*=?*)
  14598. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14599. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14600. ac_shift=:
  14601. ;;
  14602. --*=)
  14603. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14604. ac_optarg=
  14605. ac_shift=:
  14606. ;;
  14607. *)
  14608. ac_option=$1
  14609. ac_optarg=$2
  14610. ac_shift=shift
  14611. ;;
  14612. esac
  14613. case $ac_option in
  14614. # Handling of the options.
  14615. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14616. ac_cs_recheck=: ;;
  14617. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14618. $as_echo "$ac_cs_version"; exit ;;
  14619. --config | --confi | --conf | --con | --co | --c )
  14620. $as_echo "$ac_cs_config"; exit ;;
  14621. --debug | --debu | --deb | --de | --d | -d )
  14622. debug=: ;;
  14623. --file | --fil | --fi | --f )
  14624. $ac_shift
  14625. case $ac_optarg in
  14626. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14627. '') as_fn_error $? "missing file argument" ;;
  14628. esac
  14629. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14630. ac_need_defaults=false;;
  14631. --header | --heade | --head | --hea )
  14632. $ac_shift
  14633. case $ac_optarg in
  14634. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14635. esac
  14636. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14637. ac_need_defaults=false;;
  14638. --he | --h)
  14639. # Conflict between --help and --header
  14640. as_fn_error $? "ambiguous option: \`$1'
  14641. Try \`$0 --help' for more information.";;
  14642. --help | --hel | -h )
  14643. $as_echo "$ac_cs_usage"; exit ;;
  14644. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14645. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14646. ac_cs_silent=: ;;
  14647. # This is an error.
  14648. -*) as_fn_error $? "unrecognized option: \`$1'
  14649. Try \`$0 --help' for more information." ;;
  14650. *) as_fn_append ac_config_targets " $1"
  14651. ac_need_defaults=false ;;
  14652. esac
  14653. shift
  14654. done
  14655. ac_configure_extra_args=
  14656. if $ac_cs_silent; then
  14657. exec 6>/dev/null
  14658. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14659. fi
  14660. _ACEOF
  14661. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14662. if \$ac_cs_recheck; then
  14663. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14664. shift
  14665. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14666. CONFIG_SHELL='$SHELL'
  14667. export CONFIG_SHELL
  14668. exec "\$@"
  14669. fi
  14670. _ACEOF
  14671. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14672. exec 5>>config.log
  14673. {
  14674. echo
  14675. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14676. ## Running $as_me. ##
  14677. _ASBOX
  14678. $as_echo "$ac_log"
  14679. } >&5
  14680. _ACEOF
  14681. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14682. #
  14683. # INIT-COMMANDS
  14684. #
  14685. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14686. # if CDPATH is set.
  14687. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14688. sed_quote_subst='$sed_quote_subst'
  14689. double_quote_subst='$double_quote_subst'
  14690. delay_variable_subst='$delay_variable_subst'
  14691. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  14692. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14693. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14694. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14695. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14696. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14697. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14698. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14699. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14700. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14701. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14702. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14703. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14704. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14705. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14706. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14707. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14708. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14709. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14710. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14711. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14712. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14713. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14714. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14715. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14716. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14717. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14718. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14719. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14720. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14721. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14722. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14723. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14724. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14725. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14726. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14727. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14728. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14729. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14730. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14731. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14732. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14733. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14734. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14735. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14736. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14737. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14738. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14739. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14740. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14741. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14742. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14743. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14744. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14745. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14746. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14747. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14748. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14749. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14750. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14751. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14752. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14753. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14754. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14755. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14756. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14757. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14758. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14759. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14760. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14761. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14762. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14763. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14764. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14765. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14766. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14767. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14768. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14769. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14770. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14771. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14772. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14773. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14774. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14775. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14776. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14777. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14778. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14779. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14780. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14781. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14782. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14783. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14784. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14785. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14786. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14787. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14788. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14789. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14790. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14791. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14792. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14793. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14794. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14795. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14796. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14797. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14798. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14799. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14800. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14801. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14802. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14803. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14804. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14805. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14806. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14807. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14808. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14809. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14810. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14811. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14812. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14813. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14814. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14815. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14816. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14817. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14818. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14819. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14820. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14821. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14822. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14823. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14824. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14825. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14826. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14827. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14828. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14829. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14830. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14831. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14832. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14833. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14834. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14835. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14836. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14837. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14838. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14839. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14840. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14841. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14842. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14843. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14844. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14845. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14846. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14847. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14848. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14849. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14850. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14851. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14852. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14853. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14854. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14855. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14856. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14857. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14858. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14859. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14860. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14861. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14862. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14863. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14864. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14865. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14866. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14867. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14868. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14869. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14870. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14871. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14872. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14873. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14874. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14875. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14876. LTCC='$LTCC'
  14877. LTCFLAGS='$LTCFLAGS'
  14878. compiler='$compiler_DEFAULT'
  14879. # A function that is used when there is no print builtin or printf.
  14880. func_fallback_echo ()
  14881. {
  14882. eval 'cat <<_LTECHO_EOF
  14883. \$1
  14884. _LTECHO_EOF'
  14885. }
  14886. # Quote evaled strings.
  14887. for var in AS \
  14888. DLLTOOL \
  14889. OBJDUMP \
  14890. SHELL \
  14891. ECHO \
  14892. PATH_SEPARATOR \
  14893. SED \
  14894. GREP \
  14895. EGREP \
  14896. FGREP \
  14897. LD \
  14898. NM \
  14899. LN_S \
  14900. lt_SP2NL \
  14901. lt_NL2SP \
  14902. reload_flag \
  14903. deplibs_check_method \
  14904. file_magic_cmd \
  14905. file_magic_glob \
  14906. want_nocaseglob \
  14907. sharedlib_from_linklib_cmd \
  14908. AR \
  14909. AR_FLAGS \
  14910. archiver_list_spec \
  14911. STRIP \
  14912. RANLIB \
  14913. CC \
  14914. CFLAGS \
  14915. compiler \
  14916. lt_cv_sys_global_symbol_pipe \
  14917. lt_cv_sys_global_symbol_to_cdecl \
  14918. lt_cv_sys_global_symbol_to_c_name_address \
  14919. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14920. nm_file_list_spec \
  14921. lt_prog_compiler_no_builtin_flag \
  14922. lt_prog_compiler_pic \
  14923. lt_prog_compiler_wl \
  14924. lt_prog_compiler_static \
  14925. lt_cv_prog_compiler_c_o \
  14926. need_locks \
  14927. MANIFEST_TOOL \
  14928. DSYMUTIL \
  14929. NMEDIT \
  14930. LIPO \
  14931. OTOOL \
  14932. OTOOL64 \
  14933. shrext_cmds \
  14934. export_dynamic_flag_spec \
  14935. whole_archive_flag_spec \
  14936. compiler_needs_object \
  14937. with_gnu_ld \
  14938. allow_undefined_flag \
  14939. no_undefined_flag \
  14940. hardcode_libdir_flag_spec \
  14941. hardcode_libdir_separator \
  14942. exclude_expsyms \
  14943. include_expsyms \
  14944. file_list_spec \
  14945. variables_saved_for_relink \
  14946. libname_spec \
  14947. library_names_spec \
  14948. soname_spec \
  14949. install_override_mode \
  14950. finish_eval \
  14951. old_striplib \
  14952. striplib \
  14953. compiler_lib_search_dirs \
  14954. predep_objects \
  14955. postdep_objects \
  14956. predeps \
  14957. postdeps \
  14958. compiler_lib_search_path \
  14959. LD_CXX \
  14960. reload_flag_CXX \
  14961. compiler_CXX \
  14962. lt_prog_compiler_no_builtin_flag_CXX \
  14963. lt_prog_compiler_pic_CXX \
  14964. lt_prog_compiler_wl_CXX \
  14965. lt_prog_compiler_static_CXX \
  14966. lt_cv_prog_compiler_c_o_CXX \
  14967. export_dynamic_flag_spec_CXX \
  14968. whole_archive_flag_spec_CXX \
  14969. compiler_needs_object_CXX \
  14970. with_gnu_ld_CXX \
  14971. allow_undefined_flag_CXX \
  14972. no_undefined_flag_CXX \
  14973. hardcode_libdir_flag_spec_CXX \
  14974. hardcode_libdir_separator_CXX \
  14975. exclude_expsyms_CXX \
  14976. include_expsyms_CXX \
  14977. file_list_spec_CXX \
  14978. compiler_lib_search_dirs_CXX \
  14979. predep_objects_CXX \
  14980. postdep_objects_CXX \
  14981. predeps_CXX \
  14982. postdeps_CXX \
  14983. compiler_lib_search_path_CXX; do
  14984. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14985. *[\\\\\\\`\\"\\\$]*)
  14986. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14987. ;;
  14988. *)
  14989. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14990. ;;
  14991. esac
  14992. done
  14993. # Double-quote double-evaled strings.
  14994. for var in reload_cmds \
  14995. old_postinstall_cmds \
  14996. old_postuninstall_cmds \
  14997. old_archive_cmds \
  14998. extract_expsyms_cmds \
  14999. old_archive_from_new_cmds \
  15000. old_archive_from_expsyms_cmds \
  15001. archive_cmds \
  15002. archive_expsym_cmds \
  15003. module_cmds \
  15004. module_expsym_cmds \
  15005. export_symbols_cmds \
  15006. prelink_cmds \
  15007. postlink_cmds \
  15008. postinstall_cmds \
  15009. postuninstall_cmds \
  15010. finish_cmds \
  15011. sys_lib_search_path_spec \
  15012. sys_lib_dlsearch_path_spec \
  15013. reload_cmds_CXX \
  15014. old_archive_cmds_CXX \
  15015. old_archive_from_new_cmds_CXX \
  15016. old_archive_from_expsyms_cmds_CXX \
  15017. archive_cmds_CXX \
  15018. archive_expsym_cmds_CXX \
  15019. module_cmds_CXX \
  15020. module_expsym_cmds_CXX \
  15021. export_symbols_cmds_CXX \
  15022. prelink_cmds_CXX \
  15023. postlink_cmds_CXX; do
  15024. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15025. *[\\\\\\\`\\"\\\$]*)
  15026. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15027. ;;
  15028. *)
  15029. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15030. ;;
  15031. esac
  15032. done
  15033. ac_aux_dir='$ac_aux_dir'
  15034. xsi_shell='$xsi_shell'
  15035. lt_shell_append='$lt_shell_append'
  15036. # See if we are running on zsh, and set the options which allow our
  15037. # commands through without removal of \ escapes INIT.
  15038. if test -n "\${ZSH_VERSION+set}" ; then
  15039. setopt NO_GLOB_SUBST
  15040. fi
  15041. PACKAGE='$PACKAGE'
  15042. VERSION='$VERSION'
  15043. TIMESTAMP='$TIMESTAMP'
  15044. RM='$RM'
  15045. ofile='$ofile'
  15046. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15047. _ACEOF
  15048. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15049. # Handling of arguments.
  15050. for ac_config_target in $ac_config_targets
  15051. do
  15052. case $ac_config_target in
  15053. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15054. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15055. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15056. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15057. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15058. esac
  15059. done
  15060. # If the user did not use the arguments to specify the items to instantiate,
  15061. # then the envvar interface is used. Set only those that are not.
  15062. # We use the long form for the default assignment because of an extremely
  15063. # bizarre bug on SunOS 4.1.3.
  15064. if $ac_need_defaults; then
  15065. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15066. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15067. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15068. fi
  15069. # Have a temporary directory for convenience. Make it in the build tree
  15070. # simply because there is no reason against having it here, and in addition,
  15071. # creating and moving files from /tmp can sometimes cause problems.
  15072. # Hook for its removal unless debugging.
  15073. # Note that there is a small window in which the directory will not be cleaned:
  15074. # after its creation but before its name has been assigned to `$tmp'.
  15075. $debug ||
  15076. {
  15077. tmp= ac_tmp=
  15078. trap 'exit_status=$?
  15079. : "${ac_tmp:=$tmp}"
  15080. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15081. ' 0
  15082. trap 'as_fn_exit 1' 1 2 13 15
  15083. }
  15084. # Create a (secure) tmp directory for tmp files.
  15085. {
  15086. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15087. test -d "$tmp"
  15088. } ||
  15089. {
  15090. tmp=./conf$$-$RANDOM
  15091. (umask 077 && mkdir "$tmp")
  15092. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15093. ac_tmp=$tmp
  15094. # Set up the scripts for CONFIG_FILES section.
  15095. # No need to generate them if there are no CONFIG_FILES.
  15096. # This happens for instance with `./config.status config.h'.
  15097. if test -n "$CONFIG_FILES"; then
  15098. ac_cr=`echo X | tr X '\015'`
  15099. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15100. # But we know of no other shell where ac_cr would be empty at this
  15101. # point, so we can use a bashism as a fallback.
  15102. if test "x$ac_cr" = x; then
  15103. eval ac_cr=\$\'\\r\'
  15104. fi
  15105. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15106. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15107. ac_cs_awk_cr='\\r'
  15108. else
  15109. ac_cs_awk_cr=$ac_cr
  15110. fi
  15111. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15112. _ACEOF
  15113. {
  15114. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15115. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15116. echo "_ACEOF"
  15117. } >conf$$subs.sh ||
  15118. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15119. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15120. ac_delim='%!_!# '
  15121. for ac_last_try in false false false false false :; do
  15122. . ./conf$$subs.sh ||
  15123. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15124. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15125. if test $ac_delim_n = $ac_delim_num; then
  15126. break
  15127. elif $ac_last_try; then
  15128. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15129. else
  15130. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15131. fi
  15132. done
  15133. rm -f conf$$subs.sh
  15134. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15135. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15136. _ACEOF
  15137. sed -n '
  15138. h
  15139. s/^/S["/; s/!.*/"]=/
  15140. p
  15141. g
  15142. s/^[^!]*!//
  15143. :repl
  15144. t repl
  15145. s/'"$ac_delim"'$//
  15146. t delim
  15147. :nl
  15148. h
  15149. s/\(.\{148\}\)..*/\1/
  15150. t more1
  15151. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15152. p
  15153. n
  15154. b repl
  15155. :more1
  15156. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15157. p
  15158. g
  15159. s/.\{148\}//
  15160. t nl
  15161. :delim
  15162. h
  15163. s/\(.\{148\}\)..*/\1/
  15164. t more2
  15165. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15166. p
  15167. b
  15168. :more2
  15169. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15170. p
  15171. g
  15172. s/.\{148\}//
  15173. t delim
  15174. ' <conf$$subs.awk | sed '
  15175. /^[^""]/{
  15176. N
  15177. s/\n//
  15178. }
  15179. ' >>$CONFIG_STATUS || ac_write_fail=1
  15180. rm -f conf$$subs.awk
  15181. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15182. _ACAWK
  15183. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15184. for (key in S) S_is_set[key] = 1
  15185. FS = ""
  15186. }
  15187. {
  15188. line = $ 0
  15189. nfields = split(line, field, "@")
  15190. substed = 0
  15191. len = length(field[1])
  15192. for (i = 2; i < nfields; i++) {
  15193. key = field[i]
  15194. keylen = length(key)
  15195. if (S_is_set[key]) {
  15196. value = S[key]
  15197. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15198. len += length(value) + length(field[++i])
  15199. substed = 1
  15200. } else
  15201. len += 1 + keylen
  15202. }
  15203. print line
  15204. }
  15205. _ACAWK
  15206. _ACEOF
  15207. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15208. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15209. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15210. else
  15211. cat
  15212. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15213. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15214. _ACEOF
  15215. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15216. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15217. # trailing colons and then remove the whole line if VPATH becomes empty
  15218. # (actually we leave an empty line to preserve line numbers).
  15219. if test "x$srcdir" = x.; then
  15220. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15221. h
  15222. s///
  15223. s/^/:/
  15224. s/[ ]*$/:/
  15225. s/:\$(srcdir):/:/g
  15226. s/:\${srcdir}:/:/g
  15227. s/:@srcdir@:/:/g
  15228. s/^:*//
  15229. s/:*$//
  15230. x
  15231. s/\(=[ ]*\).*/\1/
  15232. G
  15233. s/\n//
  15234. s/^[^=]*=[ ]*$//
  15235. }'
  15236. fi
  15237. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15238. fi # test -n "$CONFIG_FILES"
  15239. # Set up the scripts for CONFIG_HEADERS section.
  15240. # No need to generate them if there are no CONFIG_HEADERS.
  15241. # This happens for instance with `./config.status Makefile'.
  15242. if test -n "$CONFIG_HEADERS"; then
  15243. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15244. BEGIN {
  15245. _ACEOF
  15246. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15247. # here-document in config.status, that substitutes the proper values into
  15248. # config.h.in to produce config.h.
  15249. # Create a delimiter string that does not exist in confdefs.h, to ease
  15250. # handling of long lines.
  15251. ac_delim='%!_!# '
  15252. for ac_last_try in false false :; do
  15253. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15254. if test -z "$ac_tt"; then
  15255. break
  15256. elif $ac_last_try; then
  15257. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15258. else
  15259. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15260. fi
  15261. done
  15262. # For the awk script, D is an array of macro values keyed by name,
  15263. # likewise P contains macro parameters if any. Preserve backslash
  15264. # newline sequences.
  15265. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15266. sed -n '
  15267. s/.\{148\}/&'"$ac_delim"'/g
  15268. t rset
  15269. :rset
  15270. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15271. t def
  15272. d
  15273. :def
  15274. s/\\$//
  15275. t bsnl
  15276. s/["\\]/\\&/g
  15277. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15278. D["\1"]=" \3"/p
  15279. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15280. d
  15281. :bsnl
  15282. s/["\\]/\\&/g
  15283. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15284. D["\1"]=" \3\\\\\\n"\\/p
  15285. t cont
  15286. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15287. t cont
  15288. d
  15289. :cont
  15290. n
  15291. s/.\{148\}/&'"$ac_delim"'/g
  15292. t clear
  15293. :clear
  15294. s/\\$//
  15295. t bsnlc
  15296. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15297. d
  15298. :bsnlc
  15299. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15300. b cont
  15301. ' <confdefs.h | sed '
  15302. s/'"$ac_delim"'/"\\\
  15303. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15304. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15305. for (key in D) D_is_set[key] = 1
  15306. FS = ""
  15307. }
  15308. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15309. line = \$ 0
  15310. split(line, arg, " ")
  15311. if (arg[1] == "#") {
  15312. defundef = arg[2]
  15313. mac1 = arg[3]
  15314. } else {
  15315. defundef = substr(arg[1], 2)
  15316. mac1 = arg[2]
  15317. }
  15318. split(mac1, mac2, "(") #)
  15319. macro = mac2[1]
  15320. prefix = substr(line, 1, index(line, defundef) - 1)
  15321. if (D_is_set[macro]) {
  15322. # Preserve the white space surrounding the "#".
  15323. print prefix "define", macro P[macro] D[macro]
  15324. next
  15325. } else {
  15326. # Replace #undef with comments. This is necessary, for example,
  15327. # in the case of _POSIX_SOURCE, which is predefined and required
  15328. # on some systems where configure will not decide to define it.
  15329. if (defundef == "undef") {
  15330. print "/*", prefix defundef, macro, "*/"
  15331. next
  15332. }
  15333. }
  15334. }
  15335. { print }
  15336. _ACAWK
  15337. _ACEOF
  15338. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15339. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15340. fi # test -n "$CONFIG_HEADERS"
  15341. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15342. shift
  15343. for ac_tag
  15344. do
  15345. case $ac_tag in
  15346. :[FHLC]) ac_mode=$ac_tag; continue;;
  15347. esac
  15348. case $ac_mode$ac_tag in
  15349. :[FHL]*:*);;
  15350. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15351. :[FH]-) ac_tag=-:-;;
  15352. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15353. esac
  15354. ac_save_IFS=$IFS
  15355. IFS=:
  15356. set x $ac_tag
  15357. IFS=$ac_save_IFS
  15358. shift
  15359. ac_file=$1
  15360. shift
  15361. case $ac_mode in
  15362. :L) ac_source=$1;;
  15363. :[FH])
  15364. ac_file_inputs=
  15365. for ac_f
  15366. do
  15367. case $ac_f in
  15368. -) ac_f="$ac_tmp/stdin";;
  15369. *) # Look for the file first in the build tree, then in the source tree
  15370. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15371. # because $ac_f cannot contain `:'.
  15372. test -f "$ac_f" ||
  15373. case $ac_f in
  15374. [\\/$]*) false;;
  15375. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15376. esac ||
  15377. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15378. esac
  15379. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15380. as_fn_append ac_file_inputs " '$ac_f'"
  15381. done
  15382. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15383. # use $as_me), people would be surprised to read:
  15384. # /* config.h. Generated by config.status. */
  15385. configure_input='Generated from '`
  15386. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15387. `' by configure.'
  15388. if test x"$ac_file" != x-; then
  15389. configure_input="$ac_file. $configure_input"
  15390. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15391. $as_echo "$as_me: creating $ac_file" >&6;}
  15392. fi
  15393. # Neutralize special characters interpreted by sed in replacement strings.
  15394. case $configure_input in #(
  15395. *\&* | *\|* | *\\* )
  15396. ac_sed_conf_input=`$as_echo "$configure_input" |
  15397. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15398. *) ac_sed_conf_input=$configure_input;;
  15399. esac
  15400. case $ac_tag in
  15401. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15402. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15403. esac
  15404. ;;
  15405. esac
  15406. ac_dir=`$as_dirname -- "$ac_file" ||
  15407. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15408. X"$ac_file" : 'X\(//\)[^/]' \| \
  15409. X"$ac_file" : 'X\(//\)$' \| \
  15410. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15411. $as_echo X"$ac_file" |
  15412. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15413. s//\1/
  15414. q
  15415. }
  15416. /^X\(\/\/\)[^/].*/{
  15417. s//\1/
  15418. q
  15419. }
  15420. /^X\(\/\/\)$/{
  15421. s//\1/
  15422. q
  15423. }
  15424. /^X\(\/\).*/{
  15425. s//\1/
  15426. q
  15427. }
  15428. s/.*/./; q'`
  15429. as_dir="$ac_dir"; as_fn_mkdir_p
  15430. ac_builddir=.
  15431. case "$ac_dir" in
  15432. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15433. *)
  15434. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15435. # A ".." for each directory in $ac_dir_suffix.
  15436. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15437. case $ac_top_builddir_sub in
  15438. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15439. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15440. esac ;;
  15441. esac
  15442. ac_abs_top_builddir=$ac_pwd
  15443. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15444. # for backward compatibility:
  15445. ac_top_builddir=$ac_top_build_prefix
  15446. case $srcdir in
  15447. .) # We are building in place.
  15448. ac_srcdir=.
  15449. ac_top_srcdir=$ac_top_builddir_sub
  15450. ac_abs_top_srcdir=$ac_pwd ;;
  15451. [\\/]* | ?:[\\/]* ) # Absolute name.
  15452. ac_srcdir=$srcdir$ac_dir_suffix;
  15453. ac_top_srcdir=$srcdir
  15454. ac_abs_top_srcdir=$srcdir ;;
  15455. *) # Relative name.
  15456. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15457. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15458. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15459. esac
  15460. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15461. case $ac_mode in
  15462. :F)
  15463. #
  15464. # CONFIG_FILE
  15465. #
  15466. case $INSTALL in
  15467. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15468. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15469. esac
  15470. ac_MKDIR_P=$MKDIR_P
  15471. case $MKDIR_P in
  15472. [\\/$]* | ?:[\\/]* ) ;;
  15473. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15474. esac
  15475. _ACEOF
  15476. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15477. # If the template does not know about datarootdir, expand it.
  15478. # FIXME: This hack should be removed a few years after 2.60.
  15479. ac_datarootdir_hack=; ac_datarootdir_seen=
  15480. ac_sed_dataroot='
  15481. /datarootdir/ {
  15482. p
  15483. q
  15484. }
  15485. /@datadir@/p
  15486. /@docdir@/p
  15487. /@infodir@/p
  15488. /@localedir@/p
  15489. /@mandir@/p'
  15490. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15491. *datarootdir*) ac_datarootdir_seen=yes;;
  15492. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15494. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15495. _ACEOF
  15496. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15497. ac_datarootdir_hack='
  15498. s&@datadir@&$datadir&g
  15499. s&@docdir@&$docdir&g
  15500. s&@infodir@&$infodir&g
  15501. s&@localedir@&$localedir&g
  15502. s&@mandir@&$mandir&g
  15503. s&\\\${datarootdir}&$datarootdir&g' ;;
  15504. esac
  15505. _ACEOF
  15506. # Neutralize VPATH when `$srcdir' = `.'.
  15507. # Shell code in configure.ac might set extrasub.
  15508. # FIXME: do we really want to maintain this feature?
  15509. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15510. ac_sed_extra="$ac_vpsub
  15511. $extrasub
  15512. _ACEOF
  15513. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15514. :t
  15515. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15516. s|@configure_input@|$ac_sed_conf_input|;t t
  15517. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15518. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15519. s&@srcdir@&$ac_srcdir&;t t
  15520. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15521. s&@top_srcdir@&$ac_top_srcdir&;t t
  15522. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15523. s&@builddir@&$ac_builddir&;t t
  15524. s&@abs_builddir@&$ac_abs_builddir&;t t
  15525. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15526. s&@INSTALL@&$ac_INSTALL&;t t
  15527. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15528. $ac_datarootdir_hack
  15529. "
  15530. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15531. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15532. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15533. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15534. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15535. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15537. which seems to be undefined. Please make sure it is defined" >&5
  15538. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15539. which seems to be undefined. Please make sure it is defined" >&2;}
  15540. rm -f "$ac_tmp/stdin"
  15541. case $ac_file in
  15542. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15543. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15544. esac \
  15545. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15546. ;;
  15547. :H)
  15548. #
  15549. # CONFIG_HEADER
  15550. #
  15551. if test x"$ac_file" != x-; then
  15552. {
  15553. $as_echo "/* $configure_input */" \
  15554. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15555. } >"$ac_tmp/config.h" \
  15556. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15557. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15558. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15559. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15560. else
  15561. rm -f "$ac_file"
  15562. mv "$ac_tmp/config.h" "$ac_file" \
  15563. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15564. fi
  15565. else
  15566. $as_echo "/* $configure_input */" \
  15567. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15568. || as_fn_error $? "could not create -" "$LINENO" 5
  15569. fi
  15570. # Compute "$ac_file"'s index in $config_headers.
  15571. _am_arg="$ac_file"
  15572. _am_stamp_count=1
  15573. for _am_header in $config_headers :; do
  15574. case $_am_header in
  15575. $_am_arg | $_am_arg:* )
  15576. break ;;
  15577. * )
  15578. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15579. esac
  15580. done
  15581. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15582. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15583. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15584. X"$_am_arg" : 'X\(//\)$' \| \
  15585. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15586. $as_echo X"$_am_arg" |
  15587. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15588. s//\1/
  15589. q
  15590. }
  15591. /^X\(\/\/\)[^/].*/{
  15592. s//\1/
  15593. q
  15594. }
  15595. /^X\(\/\/\)$/{
  15596. s//\1/
  15597. q
  15598. }
  15599. /^X\(\/\).*/{
  15600. s//\1/
  15601. q
  15602. }
  15603. s/.*/./; q'`/stamp-h$_am_stamp_count
  15604. ;;
  15605. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15606. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15607. ;;
  15608. esac
  15609. case $ac_file$ac_mode in
  15610. "libtool":C)
  15611. # See if we are running on zsh, and set the options which allow our
  15612. # commands through without removal of \ escapes.
  15613. if test -n "${ZSH_VERSION+set}" ; then
  15614. setopt NO_GLOB_SUBST
  15615. fi
  15616. cfgfile="${ofile}T"
  15617. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15618. $RM "$cfgfile"
  15619. cat <<_LT_EOF >> "$cfgfile"
  15620. #! $SHELL
  15621. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15622. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15623. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15624. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15625. #
  15626. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15627. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15628. # Foundation, Inc.
  15629. # Written by Gordon Matzigkeit, 1996
  15630. #
  15631. # This file is part of GNU Libtool.
  15632. #
  15633. # GNU Libtool is free software; you can redistribute it and/or
  15634. # modify it under the terms of the GNU General Public License as
  15635. # published by the Free Software Foundation; either version 2 of
  15636. # the License, or (at your option) any later version.
  15637. #
  15638. # As a special exception to the GNU General Public License,
  15639. # if you distribute this file as part of a program or library that
  15640. # is built using GNU Libtool, you may include this file under the
  15641. # same distribution terms that you use for the rest of that program.
  15642. #
  15643. # GNU Libtool is distributed in the hope that it will be useful,
  15644. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15645. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15646. # GNU General Public License for more details.
  15647. #
  15648. # You should have received a copy of the GNU General Public License
  15649. # along with GNU Libtool; see the file COPYING. If not, a copy
  15650. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15651. # obtained by writing to the Free Software Foundation, Inc.,
  15652. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15653. # The names of the tagged configurations supported by this script.
  15654. available_tags="CXX "
  15655. # ### BEGIN LIBTOOL CONFIG
  15656. # Assembler program.
  15657. AS=$lt_AS
  15658. # DLL creation program.
  15659. DLLTOOL=$lt_DLLTOOL
  15660. # Object dumper program.
  15661. OBJDUMP=$lt_OBJDUMP
  15662. # Which release of libtool.m4 was used?
  15663. macro_version=$macro_version
  15664. macro_revision=$macro_revision
  15665. # Whether or not to build shared libraries.
  15666. build_libtool_libs=$enable_shared
  15667. # Whether or not to build static libraries.
  15668. build_old_libs=$enable_static
  15669. # What type of objects to build.
  15670. pic_mode=$pic_mode
  15671. # Whether or not to optimize for fast installation.
  15672. fast_install=$enable_fast_install
  15673. # Shell to use when invoking shell scripts.
  15674. SHELL=$lt_SHELL
  15675. # An echo program that protects backslashes.
  15676. ECHO=$lt_ECHO
  15677. # The PATH separator for the build system.
  15678. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15679. # The host system.
  15680. host_alias=$host_alias
  15681. host=$host
  15682. host_os=$host_os
  15683. # The build system.
  15684. build_alias=$build_alias
  15685. build=$build
  15686. build_os=$build_os
  15687. # A sed program that does not truncate output.
  15688. SED=$lt_SED
  15689. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15690. Xsed="\$SED -e 1s/^X//"
  15691. # A grep program that handles long lines.
  15692. GREP=$lt_GREP
  15693. # An ERE matcher.
  15694. EGREP=$lt_EGREP
  15695. # A literal string matcher.
  15696. FGREP=$lt_FGREP
  15697. # A BSD- or MS-compatible name lister.
  15698. NM=$lt_NM
  15699. # Whether we need soft or hard links.
  15700. LN_S=$lt_LN_S
  15701. # What is the maximum length of a command?
  15702. max_cmd_len=$max_cmd_len
  15703. # Object file suffix (normally "o").
  15704. objext=$ac_objext
  15705. # Executable file suffix (normally "").
  15706. exeext=$exeext
  15707. # whether the shell understands "unset".
  15708. lt_unset=$lt_unset
  15709. # turn spaces into newlines.
  15710. SP2NL=$lt_lt_SP2NL
  15711. # turn newlines into spaces.
  15712. NL2SP=$lt_lt_NL2SP
  15713. # convert \$build file names to \$host format.
  15714. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15715. # convert \$build files to toolchain format.
  15716. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15717. # Method to check whether dependent libraries are shared objects.
  15718. deplibs_check_method=$lt_deplibs_check_method
  15719. # Command to use when deplibs_check_method = "file_magic".
  15720. file_magic_cmd=$lt_file_magic_cmd
  15721. # How to find potential files when deplibs_check_method = "file_magic".
  15722. file_magic_glob=$lt_file_magic_glob
  15723. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15724. want_nocaseglob=$lt_want_nocaseglob
  15725. # Command to associate shared and link libraries.
  15726. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15727. # The archiver.
  15728. AR=$lt_AR
  15729. # Flags to create an archive.
  15730. AR_FLAGS=$lt_AR_FLAGS
  15731. # How to feed a file listing to the archiver.
  15732. archiver_list_spec=$lt_archiver_list_spec
  15733. # A symbol stripping program.
  15734. STRIP=$lt_STRIP
  15735. # Commands used to install an old-style archive.
  15736. RANLIB=$lt_RANLIB
  15737. old_postinstall_cmds=$lt_old_postinstall_cmds
  15738. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15739. # Whether to use a lock for old archive extraction.
  15740. lock_old_archive_extraction=$lock_old_archive_extraction
  15741. # A C compiler.
  15742. LTCC=$lt_CC
  15743. # LTCC compiler flags.
  15744. LTCFLAGS=$lt_CFLAGS
  15745. # Take the output of nm and produce a listing of raw symbols and C names.
  15746. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15747. # Transform the output of nm in a proper C declaration.
  15748. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15749. # Transform the output of nm in a C name address pair.
  15750. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15751. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15752. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15753. # Specify filename containing input files for \$NM.
  15754. nm_file_list_spec=$lt_nm_file_list_spec
  15755. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15756. lt_sysroot=$lt_sysroot
  15757. # The name of the directory that contains temporary libtool files.
  15758. objdir=$objdir
  15759. # Used to examine libraries when file_magic_cmd begins with "file".
  15760. MAGIC_CMD=$MAGIC_CMD
  15761. # Must we lock files when doing compilation?
  15762. need_locks=$lt_need_locks
  15763. # Manifest tool.
  15764. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15765. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15766. DSYMUTIL=$lt_DSYMUTIL
  15767. # Tool to change global to local symbols on Mac OS X.
  15768. NMEDIT=$lt_NMEDIT
  15769. # Tool to manipulate fat objects and archives on Mac OS X.
  15770. LIPO=$lt_LIPO
  15771. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15772. OTOOL=$lt_OTOOL
  15773. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15774. OTOOL64=$lt_OTOOL64
  15775. # Old archive suffix (normally "a").
  15776. libext=$libext
  15777. # Shared library suffix (normally ".so").
  15778. shrext_cmds=$lt_shrext_cmds
  15779. # The commands to extract the exported symbol list from a shared archive.
  15780. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15781. # Variables whose values should be saved in libtool wrapper scripts and
  15782. # restored at link time.
  15783. variables_saved_for_relink=$lt_variables_saved_for_relink
  15784. # Do we need the "lib" prefix for modules?
  15785. need_lib_prefix=$need_lib_prefix
  15786. # Do we need a version for libraries?
  15787. need_version=$need_version
  15788. # Library versioning type.
  15789. version_type=$version_type
  15790. # Shared library runtime path variable.
  15791. runpath_var=$runpath_var
  15792. # Shared library path variable.
  15793. shlibpath_var=$shlibpath_var
  15794. # Is shlibpath searched before the hard-coded library search path?
  15795. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15796. # Format of library name prefix.
  15797. libname_spec=$lt_libname_spec
  15798. # List of archive names. First name is the real one, the rest are links.
  15799. # The last name is the one that the linker finds with -lNAME
  15800. library_names_spec=$lt_library_names_spec
  15801. # The coded name of the library, if different from the real name.
  15802. soname_spec=$lt_soname_spec
  15803. # Permission mode override for installation of shared libraries.
  15804. install_override_mode=$lt_install_override_mode
  15805. # Command to use after installation of a shared archive.
  15806. postinstall_cmds=$lt_postinstall_cmds
  15807. # Command to use after uninstallation of a shared archive.
  15808. postuninstall_cmds=$lt_postuninstall_cmds
  15809. # Commands used to finish a libtool library installation in a directory.
  15810. finish_cmds=$lt_finish_cmds
  15811. # As "finish_cmds", except a single script fragment to be evaled but
  15812. # not shown.
  15813. finish_eval=$lt_finish_eval
  15814. # Whether we should hardcode library paths into libraries.
  15815. hardcode_into_libs=$hardcode_into_libs
  15816. # Compile-time system search path for libraries.
  15817. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15818. # Run-time system search path for libraries.
  15819. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15820. # Whether dlopen is supported.
  15821. dlopen_support=$enable_dlopen
  15822. # Whether dlopen of programs is supported.
  15823. dlopen_self=$enable_dlopen_self
  15824. # Whether dlopen of statically linked programs is supported.
  15825. dlopen_self_static=$enable_dlopen_self_static
  15826. # Commands to strip libraries.
  15827. old_striplib=$lt_old_striplib
  15828. striplib=$lt_striplib
  15829. # The linker used to build libraries.
  15830. LD=$lt_LD
  15831. # How to create reloadable object files.
  15832. reload_flag=$lt_reload_flag
  15833. reload_cmds=$lt_reload_cmds
  15834. # Commands used to build an old-style archive.
  15835. old_archive_cmds=$lt_old_archive_cmds
  15836. # A language specific compiler.
  15837. CC=$lt_compiler
  15838. # Is the compiler the GNU compiler?
  15839. with_gcc=$GCC
  15840. # Compiler flag to turn off builtin functions.
  15841. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15842. # Additional compiler flags for building library objects.
  15843. pic_flag=$lt_lt_prog_compiler_pic
  15844. # How to pass a linker flag through the compiler.
  15845. wl=$lt_lt_prog_compiler_wl
  15846. # Compiler flag to prevent dynamic linking.
  15847. link_static_flag=$lt_lt_prog_compiler_static
  15848. # Does compiler simultaneously support -c and -o options?
  15849. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15850. # Whether or not to add -lc for building shared libraries.
  15851. build_libtool_need_lc=$archive_cmds_need_lc
  15852. # Whether or not to disallow shared libs when runtime libs are static.
  15853. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15854. # Compiler flag to allow reflexive dlopens.
  15855. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15856. # Compiler flag to generate shared objects directly from archives.
  15857. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15858. # Whether the compiler copes with passing no objects directly.
  15859. compiler_needs_object=$lt_compiler_needs_object
  15860. # Create an old-style archive from a shared archive.
  15861. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15862. # Create a temporary old-style archive to link instead of a shared archive.
  15863. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15864. # Commands used to build a shared archive.
  15865. archive_cmds=$lt_archive_cmds
  15866. archive_expsym_cmds=$lt_archive_expsym_cmds
  15867. # Commands used to build a loadable module if different from building
  15868. # a shared archive.
  15869. module_cmds=$lt_module_cmds
  15870. module_expsym_cmds=$lt_module_expsym_cmds
  15871. # Whether we are building with GNU ld or not.
  15872. with_gnu_ld=$lt_with_gnu_ld
  15873. # Flag that allows shared libraries with undefined symbols to be built.
  15874. allow_undefined_flag=$lt_allow_undefined_flag
  15875. # Flag that enforces no undefined symbols.
  15876. no_undefined_flag=$lt_no_undefined_flag
  15877. # Flag to hardcode \$libdir into a binary during linking.
  15878. # This must work even if \$libdir does not exist
  15879. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15880. # Whether we need a single "-rpath" flag with a separated argument.
  15881. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15882. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15883. # DIR into the resulting binary.
  15884. hardcode_direct=$hardcode_direct
  15885. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15886. # DIR into the resulting binary and the resulting library dependency is
  15887. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15888. # library is relocated.
  15889. hardcode_direct_absolute=$hardcode_direct_absolute
  15890. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15891. # into the resulting binary.
  15892. hardcode_minus_L=$hardcode_minus_L
  15893. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15894. # into the resulting binary.
  15895. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15896. # Set to "yes" if building a shared library automatically hardcodes DIR
  15897. # into the library and all subsequent libraries and executables linked
  15898. # against it.
  15899. hardcode_automatic=$hardcode_automatic
  15900. # Set to yes if linker adds runtime paths of dependent libraries
  15901. # to runtime path list.
  15902. inherit_rpath=$inherit_rpath
  15903. # Whether libtool must link a program against all its dependency libraries.
  15904. link_all_deplibs=$link_all_deplibs
  15905. # Set to "yes" if exported symbols are required.
  15906. always_export_symbols=$always_export_symbols
  15907. # The commands to list exported symbols.
  15908. export_symbols_cmds=$lt_export_symbols_cmds
  15909. # Symbols that should not be listed in the preloaded symbols.
  15910. exclude_expsyms=$lt_exclude_expsyms
  15911. # Symbols that must always be exported.
  15912. include_expsyms=$lt_include_expsyms
  15913. # Commands necessary for linking programs (against libraries) with templates.
  15914. prelink_cmds=$lt_prelink_cmds
  15915. # Commands necessary for finishing linking programs.
  15916. postlink_cmds=$lt_postlink_cmds
  15917. # Specify filename containing input files.
  15918. file_list_spec=$lt_file_list_spec
  15919. # How to hardcode a shared library path into an executable.
  15920. hardcode_action=$hardcode_action
  15921. # The directories searched by this compiler when creating a shared library.
  15922. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15923. # Dependencies to place before and after the objects being linked to
  15924. # create a shared library.
  15925. predep_objects=$lt_predep_objects
  15926. postdep_objects=$lt_postdep_objects
  15927. predeps=$lt_predeps
  15928. postdeps=$lt_postdeps
  15929. # The library search path used internally by the compiler when linking
  15930. # a shared library.
  15931. compiler_lib_search_path=$lt_compiler_lib_search_path
  15932. # ### END LIBTOOL CONFIG
  15933. _LT_EOF
  15934. case $host_os in
  15935. aix3*)
  15936. cat <<\_LT_EOF >> "$cfgfile"
  15937. # AIX sometimes has problems with the GCC collect2 program. For some
  15938. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15939. # vanish in a puff of smoke.
  15940. if test "X${COLLECT_NAMES+set}" != Xset; then
  15941. COLLECT_NAMES=
  15942. export COLLECT_NAMES
  15943. fi
  15944. _LT_EOF
  15945. ;;
  15946. esac
  15947. ltmain="$ac_aux_dir/ltmain.sh"
  15948. # We use sed instead of cat because bash on DJGPP gets confused if
  15949. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15950. # text mode, it properly converts lines to CR/LF. This bash problem
  15951. # is reportedly fixed, but why not run on old versions too?
  15952. sed '$q' "$ltmain" >> "$cfgfile" \
  15953. || (rm -f "$cfgfile"; exit 1)
  15954. if test x"$xsi_shell" = xyes; then
  15955. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15956. func_dirname ()\
  15957. {\
  15958. \ case ${1} in\
  15959. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15960. \ * ) func_dirname_result="${3}" ;;\
  15961. \ esac\
  15962. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15963. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15964. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15965. test 0 -eq $? || _lt_function_replace_fail=:
  15966. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15967. func_basename ()\
  15968. {\
  15969. \ func_basename_result="${1##*/}"\
  15970. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15971. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15972. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15973. test 0 -eq $? || _lt_function_replace_fail=:
  15974. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15975. func_dirname_and_basename ()\
  15976. {\
  15977. \ case ${1} in\
  15978. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15979. \ * ) func_dirname_result="${3}" ;;\
  15980. \ esac\
  15981. \ func_basename_result="${1##*/}"\
  15982. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15983. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15984. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15985. test 0 -eq $? || _lt_function_replace_fail=:
  15986. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15987. func_stripname ()\
  15988. {\
  15989. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15990. \ # positional parameters, so assign one to ordinary parameter first.\
  15991. \ func_stripname_result=${3}\
  15992. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15993. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15994. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15995. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15996. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15997. test 0 -eq $? || _lt_function_replace_fail=:
  15998. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15999. func_split_long_opt ()\
  16000. {\
  16001. \ func_split_long_opt_name=${1%%=*}\
  16002. \ func_split_long_opt_arg=${1#*=}\
  16003. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16004. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16005. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16006. test 0 -eq $? || _lt_function_replace_fail=:
  16007. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16008. func_split_short_opt ()\
  16009. {\
  16010. \ func_split_short_opt_arg=${1#??}\
  16011. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16012. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16013. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16014. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16015. test 0 -eq $? || _lt_function_replace_fail=:
  16016. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16017. func_lo2o ()\
  16018. {\
  16019. \ case ${1} in\
  16020. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16021. \ *) func_lo2o_result=${1} ;;\
  16022. \ esac\
  16023. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16024. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16025. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16026. test 0 -eq $? || _lt_function_replace_fail=:
  16027. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16028. func_xform ()\
  16029. {\
  16030. func_xform_result=${1%.*}.lo\
  16031. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16032. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16033. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16034. test 0 -eq $? || _lt_function_replace_fail=:
  16035. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16036. func_arith ()\
  16037. {\
  16038. func_arith_result=$(( $* ))\
  16039. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16040. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16041. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16042. test 0 -eq $? || _lt_function_replace_fail=:
  16043. sed -e '/^func_len ()$/,/^} # func_len /c\
  16044. func_len ()\
  16045. {\
  16046. func_len_result=${#1}\
  16047. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16048. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16049. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16050. test 0 -eq $? || _lt_function_replace_fail=:
  16051. fi
  16052. if test x"$lt_shell_append" = xyes; then
  16053. sed -e '/^func_append ()$/,/^} # func_append /c\
  16054. func_append ()\
  16055. {\
  16056. eval "${1}+=\\${2}"\
  16057. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16058. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16059. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16060. test 0 -eq $? || _lt_function_replace_fail=:
  16061. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16062. func_append_quoted ()\
  16063. {\
  16064. \ func_quote_for_eval "${2}"\
  16065. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16066. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16067. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16068. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16069. test 0 -eq $? || _lt_function_replace_fail=:
  16070. # Save a `func_append' function call where possible by direct use of '+='
  16071. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16072. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16073. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16074. test 0 -eq $? || _lt_function_replace_fail=:
  16075. else
  16076. # Save a `func_append' function call even when '+=' is not available
  16077. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16078. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16079. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16080. test 0 -eq $? || _lt_function_replace_fail=:
  16081. fi
  16082. if test x"$_lt_function_replace_fail" = x":"; then
  16083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16084. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16085. fi
  16086. mv -f "$cfgfile" "$ofile" ||
  16087. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16088. chmod +x "$ofile"
  16089. cat <<_LT_EOF >> "$ofile"
  16090. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16091. # The linker used to build libraries.
  16092. LD=$lt_LD_CXX
  16093. # How to create reloadable object files.
  16094. reload_flag=$lt_reload_flag_CXX
  16095. reload_cmds=$lt_reload_cmds_CXX
  16096. # Commands used to build an old-style archive.
  16097. old_archive_cmds=$lt_old_archive_cmds_CXX
  16098. # A language specific compiler.
  16099. CC=$lt_compiler_CXX
  16100. # Is the compiler the GNU compiler?
  16101. with_gcc=$GCC_CXX
  16102. # Compiler flag to turn off builtin functions.
  16103. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16104. # Additional compiler flags for building library objects.
  16105. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16106. # How to pass a linker flag through the compiler.
  16107. wl=$lt_lt_prog_compiler_wl_CXX
  16108. # Compiler flag to prevent dynamic linking.
  16109. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16110. # Does compiler simultaneously support -c and -o options?
  16111. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16112. # Whether or not to add -lc for building shared libraries.
  16113. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16114. # Whether or not to disallow shared libs when runtime libs are static.
  16115. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16116. # Compiler flag to allow reflexive dlopens.
  16117. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16118. # Compiler flag to generate shared objects directly from archives.
  16119. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16120. # Whether the compiler copes with passing no objects directly.
  16121. compiler_needs_object=$lt_compiler_needs_object_CXX
  16122. # Create an old-style archive from a shared archive.
  16123. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16124. # Create a temporary old-style archive to link instead of a shared archive.
  16125. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16126. # Commands used to build a shared archive.
  16127. archive_cmds=$lt_archive_cmds_CXX
  16128. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16129. # Commands used to build a loadable module if different from building
  16130. # a shared archive.
  16131. module_cmds=$lt_module_cmds_CXX
  16132. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16133. # Whether we are building with GNU ld or not.
  16134. with_gnu_ld=$lt_with_gnu_ld_CXX
  16135. # Flag that allows shared libraries with undefined symbols to be built.
  16136. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16137. # Flag that enforces no undefined symbols.
  16138. no_undefined_flag=$lt_no_undefined_flag_CXX
  16139. # Flag to hardcode \$libdir into a binary during linking.
  16140. # This must work even if \$libdir does not exist
  16141. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16142. # Whether we need a single "-rpath" flag with a separated argument.
  16143. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16144. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16145. # DIR into the resulting binary.
  16146. hardcode_direct=$hardcode_direct_CXX
  16147. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16148. # DIR into the resulting binary and the resulting library dependency is
  16149. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16150. # library is relocated.
  16151. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16152. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16153. # into the resulting binary.
  16154. hardcode_minus_L=$hardcode_minus_L_CXX
  16155. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16156. # into the resulting binary.
  16157. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16158. # Set to "yes" if building a shared library automatically hardcodes DIR
  16159. # into the library and all subsequent libraries and executables linked
  16160. # against it.
  16161. hardcode_automatic=$hardcode_automatic_CXX
  16162. # Set to yes if linker adds runtime paths of dependent libraries
  16163. # to runtime path list.
  16164. inherit_rpath=$inherit_rpath_CXX
  16165. # Whether libtool must link a program against all its dependency libraries.
  16166. link_all_deplibs=$link_all_deplibs_CXX
  16167. # Set to "yes" if exported symbols are required.
  16168. always_export_symbols=$always_export_symbols_CXX
  16169. # The commands to list exported symbols.
  16170. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16171. # Symbols that should not be listed in the preloaded symbols.
  16172. exclude_expsyms=$lt_exclude_expsyms_CXX
  16173. # Symbols that must always be exported.
  16174. include_expsyms=$lt_include_expsyms_CXX
  16175. # Commands necessary for linking programs (against libraries) with templates.
  16176. prelink_cmds=$lt_prelink_cmds_CXX
  16177. # Commands necessary for finishing linking programs.
  16178. postlink_cmds=$lt_postlink_cmds_CXX
  16179. # Specify filename containing input files.
  16180. file_list_spec=$lt_file_list_spec_CXX
  16181. # How to hardcode a shared library path into an executable.
  16182. hardcode_action=$hardcode_action_CXX
  16183. # The directories searched by this compiler when creating a shared library.
  16184. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16185. # Dependencies to place before and after the objects being linked to
  16186. # create a shared library.
  16187. predep_objects=$lt_predep_objects_CXX
  16188. postdep_objects=$lt_postdep_objects_CXX
  16189. predeps=$lt_predeps_CXX
  16190. postdeps=$lt_postdeps_CXX
  16191. # The library search path used internally by the compiler when linking
  16192. # a shared library.
  16193. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16194. # ### END LIBTOOL TAG CONFIG: CXX
  16195. _LT_EOF
  16196. ;;
  16197. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16198. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16199. # are listed without --file. Let's play safe and only enable the eval
  16200. # if we detect the quoting.
  16201. case $CONFIG_FILES in
  16202. *\'*) eval set x "$CONFIG_FILES" ;;
  16203. *) set x $CONFIG_FILES ;;
  16204. esac
  16205. shift
  16206. for mf
  16207. do
  16208. # Strip MF so we end up with the name of the file.
  16209. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16210. # Check whether this is an Automake generated Makefile or not.
  16211. # We used to match only the files named `Makefile.in', but
  16212. # some people rename them; so instead we look at the file content.
  16213. # Grep'ing the first line is not enough: some people post-process
  16214. # each Makefile.in and add a new line on top of each file to say so.
  16215. # Grep'ing the whole file is not good either: AIX grep has a line
  16216. # limit of 2048, but all sed's we know have understand at least 4000.
  16217. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16218. dirpart=`$as_dirname -- "$mf" ||
  16219. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16220. X"$mf" : 'X\(//\)[^/]' \| \
  16221. X"$mf" : 'X\(//\)$' \| \
  16222. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16223. $as_echo X"$mf" |
  16224. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16225. s//\1/
  16226. q
  16227. }
  16228. /^X\(\/\/\)[^/].*/{
  16229. s//\1/
  16230. q
  16231. }
  16232. /^X\(\/\/\)$/{
  16233. s//\1/
  16234. q
  16235. }
  16236. /^X\(\/\).*/{
  16237. s//\1/
  16238. q
  16239. }
  16240. s/.*/./; q'`
  16241. else
  16242. continue
  16243. fi
  16244. # Extract the definition of DEPDIR, am__include, and am__quote
  16245. # from the Makefile without running `make'.
  16246. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16247. test -z "$DEPDIR" && continue
  16248. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16249. test -z "am__include" && continue
  16250. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16251. # When using ansi2knr, U may be empty or an underscore; expand it
  16252. U=`sed -n 's/^U = //p' < "$mf"`
  16253. # Find all dependency output files, they are included files with
  16254. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16255. # simplest approach to changing $(DEPDIR) to its actual value in the
  16256. # expansion.
  16257. for file in `sed -n "
  16258. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16259. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16260. # Make sure the directory exists.
  16261. test -f "$dirpart/$file" && continue
  16262. fdir=`$as_dirname -- "$file" ||
  16263. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16264. X"$file" : 'X\(//\)[^/]' \| \
  16265. X"$file" : 'X\(//\)$' \| \
  16266. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16267. $as_echo X"$file" |
  16268. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16269. s//\1/
  16270. q
  16271. }
  16272. /^X\(\/\/\)[^/].*/{
  16273. s//\1/
  16274. q
  16275. }
  16276. /^X\(\/\/\)$/{
  16277. s//\1/
  16278. q
  16279. }
  16280. /^X\(\/\).*/{
  16281. s//\1/
  16282. q
  16283. }
  16284. s/.*/./; q'`
  16285. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16286. # echo "creating $dirpart/$file"
  16287. echo '# dummy' > "$dirpart/$file"
  16288. done
  16289. done
  16290. }
  16291. ;;
  16292. esac
  16293. done # for ac_tag
  16294. as_fn_exit 0
  16295. _ACEOF
  16296. ac_clean_files=$ac_clean_files_save
  16297. test $ac_write_fail = 0 ||
  16298. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16299. # configure is writing to config.log, and then calls config.status.
  16300. # config.status does its own redirection, appending to config.log.
  16301. # Unfortunately, on DOS this fails, as config.log is still kept open
  16302. # by configure, so config.status won't be able to write to it; its
  16303. # output is simply discarded. So we exec the FD to /dev/null,
  16304. # effectively closing config.log, so it can be properly (re)opened and
  16305. # appended to by config.status. When coming back to configure, we
  16306. # need to make the FD available again.
  16307. if test "$no_create" != yes; then
  16308. ac_cs_success=:
  16309. ac_config_status_args=
  16310. test "$silent" = yes &&
  16311. ac_config_status_args="$ac_config_status_args --quiet"
  16312. exec 5>/dev/null
  16313. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16314. exec 5>>config.log
  16315. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16316. # would make configure fail if this is the last instruction.
  16317. $ac_cs_success || as_fn_exit 1
  16318. fi
  16319. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16321. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16322. fi