configure 568 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977
  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