configure 564 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for klish 1.5.0.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  161. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. PATH=/empty FPATH=/empty; export PATH FPATH
  165. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  166. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  167. test \$(( 1 + 1 )) = 2 || exit 1"
  168. if (eval "$as_required") 2>/dev/null; then :
  169. as_have_required=yes
  170. else
  171. as_have_required=no
  172. fi
  173. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  174. else
  175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  176. as_found=false
  177. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  178. do
  179. IFS=$as_save_IFS
  180. test -z "$as_dir" && as_dir=.
  181. as_found=:
  182. case $as_dir in #(
  183. /*)
  184. for as_base in sh bash ksh sh5; do
  185. # Try only shells that exist, to save several forks.
  186. as_shell=$as_dir/$as_base
  187. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  188. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. CONFIG_SHELL=$as_shell as_have_required=yes
  190. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  191. break 2
  192. fi
  193. fi
  194. done;;
  195. esac
  196. as_found=false
  197. done
  198. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  199. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  200. CONFIG_SHELL=$SHELL as_have_required=yes
  201. fi; }
  202. IFS=$as_save_IFS
  203. if test "x$CONFIG_SHELL" != x; then :
  204. # We cannot yet assume a decent shell, so we have to provide a
  205. # neutralization value for shells without unset; and this also
  206. # works around shells that cannot unset nonexistent variables.
  207. BASH_ENV=/dev/null
  208. ENV=/dev/null
  209. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  210. export CONFIG_SHELL
  211. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  212. fi
  213. if test x$as_have_required = xno; then :
  214. $as_echo "$0: This script requires a shell more modern than all"
  215. $as_echo "$0: the shells that I found on your system."
  216. if test x${ZSH_VERSION+set} = xset ; then
  217. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  218. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  219. else
  220. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  221. $0: gmail dot com about your system, including any error
  222. $0: possibly output before this message. Then install a
  223. $0: modern shell, or manually run the script under such a
  224. $0: shell if you do have one."
  225. fi
  226. exit 1
  227. fi
  228. fi
  229. fi
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. export SHELL
  232. # Unset more variables known to interfere with behavior of common tools.
  233. CLICOLOR_FORCE= GREP_OPTIONS=
  234. unset CLICOLOR_FORCE GREP_OPTIONS
  235. ## --------------------- ##
  236. ## M4sh Shell Functions. ##
  237. ## --------------------- ##
  238. # as_fn_unset VAR
  239. # ---------------
  240. # Portably unset VAR.
  241. as_fn_unset ()
  242. {
  243. { eval $1=; unset $1;}
  244. }
  245. as_unset=as_fn_unset
  246. # as_fn_set_status STATUS
  247. # -----------------------
  248. # Set $? to STATUS, without forking.
  249. as_fn_set_status ()
  250. {
  251. return $1
  252. } # as_fn_set_status
  253. # as_fn_exit STATUS
  254. # -----------------
  255. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  256. as_fn_exit ()
  257. {
  258. set +e
  259. as_fn_set_status $1
  260. exit $1
  261. } # as_fn_exit
  262. # as_fn_mkdir_p
  263. # -------------
  264. # Create "$as_dir" as a directory, including parents if necessary.
  265. as_fn_mkdir_p ()
  266. {
  267. case $as_dir in #(
  268. -*) as_dir=./$as_dir;;
  269. esac
  270. test -d "$as_dir" || eval $as_mkdir_p || {
  271. as_dirs=
  272. while :; do
  273. case $as_dir in #(
  274. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  275. *) as_qdir=$as_dir;;
  276. esac
  277. as_dirs="'$as_qdir' $as_dirs"
  278. as_dir=`$as_dirname -- "$as_dir" ||
  279. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  280. X"$as_dir" : 'X\(//\)[^/]' \| \
  281. X"$as_dir" : 'X\(//\)$' \| \
  282. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  283. $as_echo X"$as_dir" |
  284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\/\)[^/].*/{
  289. s//\1/
  290. q
  291. }
  292. /^X\(\/\/\)$/{
  293. s//\1/
  294. q
  295. }
  296. /^X\(\/\).*/{
  297. s//\1/
  298. q
  299. }
  300. s/.*/./; q'`
  301. test -d "$as_dir" && break
  302. done
  303. test -z "$as_dirs" || eval "mkdir $as_dirs"
  304. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  305. } # as_fn_mkdir_p
  306. # as_fn_append VAR VALUE
  307. # ----------------------
  308. # Append the text in VALUE to the end of the definition contained in VAR. Take
  309. # advantage of any shell optimizations that allow amortized linear growth over
  310. # repeated appends, instead of the typical quadratic growth present in naive
  311. # implementations.
  312. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  313. eval 'as_fn_append ()
  314. {
  315. eval $1+=\$2
  316. }'
  317. else
  318. as_fn_append ()
  319. {
  320. eval $1=\$$1\$2
  321. }
  322. fi # as_fn_append
  323. # as_fn_arith ARG...
  324. # ------------------
  325. # Perform arithmetic evaluation on the ARGs, and store the result in the
  326. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  327. # must be portable across $(()) and expr.
  328. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  329. eval 'as_fn_arith ()
  330. {
  331. as_val=$(( $* ))
  332. }'
  333. else
  334. as_fn_arith ()
  335. {
  336. as_val=`expr "$@" || test $? -eq 1`
  337. }
  338. fi # as_fn_arith
  339. # as_fn_error ERROR [LINENO LOG_FD]
  340. # ---------------------------------
  341. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  342. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  343. # script with status $?, using 1 if that was 0.
  344. as_fn_error ()
  345. {
  346. as_status=$?; test $as_status -eq 0 && as_status=1
  347. if test "$3"; then
  348. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  349. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  350. fi
  351. $as_echo "$as_me: error: $1" >&2
  352. as_fn_exit $as_status
  353. } # as_fn_error
  354. if expr a : '\(a\)' >/dev/null 2>&1 &&
  355. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  356. as_expr=expr
  357. else
  358. as_expr=false
  359. fi
  360. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  361. as_basename=basename
  362. else
  363. as_basename=false
  364. fi
  365. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  366. as_dirname=dirname
  367. else
  368. as_dirname=false
  369. fi
  370. as_me=`$as_basename -- "$0" ||
  371. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  372. X"$0" : 'X\(//\)$' \| \
  373. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  374. $as_echo X/"$0" |
  375. sed '/^.*\/\([^/][^/]*\)\/*$/{
  376. s//\1/
  377. q
  378. }
  379. /^X\/\(\/\/\)$/{
  380. s//\1/
  381. q
  382. }
  383. /^X\/\(\/\).*/{
  384. s//\1/
  385. q
  386. }
  387. s/.*/./; q'`
  388. # Avoid depending upon Character Ranges.
  389. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  390. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  391. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  392. as_cr_digits='0123456789'
  393. as_cr_alnum=$as_cr_Letters$as_cr_digits
  394. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  395. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  396. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  397. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  398. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  399. sed -n '
  400. p
  401. /[$]LINENO/=
  402. ' <$as_myself |
  403. sed '
  404. s/[$]LINENO.*/&-/
  405. t lineno
  406. b
  407. :lineno
  408. N
  409. :loop
  410. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  411. t loop
  412. s/-\n.*//
  413. ' >$as_me.lineno &&
  414. chmod +x "$as_me.lineno" ||
  415. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  416. # Don't try to exec as it changes $[0], causing all sort of problems
  417. # (the dirname of $[0] is not the place where we might find the
  418. # original and so on. Autoconf is especially sensitive to this).
  419. . "./$as_me.lineno"
  420. # Exit status is that of the last command.
  421. exit
  422. }
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in #(((((
  425. -n*)
  426. case `echo 'xy\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. xy) ECHO_C='\c';;
  429. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  430. ECHO_T=' ';;
  431. esac;;
  432. *)
  433. ECHO_N='-n';;
  434. esac
  435. rm -f conf$$ conf$$.exe conf$$.file
  436. if test -d conf$$.dir; then
  437. rm -f conf$$.dir/conf$$.file
  438. else
  439. rm -f conf$$.dir
  440. mkdir conf$$.dir 2>/dev/null
  441. fi
  442. if (echo >conf$$.file) 2>/dev/null; then
  443. if ln -s conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s='ln -s'
  445. # ... but there are two gotchas:
  446. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  447. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  448. # In both cases, we have to default to `cp -p'.
  449. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  450. as_ln_s='cp -p'
  451. elif ln conf$$.file conf$$ 2>/dev/null; then
  452. as_ln_s=ln
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  460. rmdir conf$$.dir 2>/dev/null
  461. if mkdir -p . 2>/dev/null; then
  462. as_mkdir_p='mkdir -p "$as_dir"'
  463. else
  464. test -d ./-p && rmdir ./-p
  465. as_mkdir_p=false
  466. fi
  467. if test -x / >/dev/null 2>&1; then
  468. as_test_x='test -x'
  469. else
  470. if ls -dL / >/dev/null 2>&1; then
  471. as_ls_L_option=L
  472. else
  473. as_ls_L_option=
  474. fi
  475. as_test_x='
  476. eval sh -c '\''
  477. if test -d "$1"; then
  478. test -d "$1/.";
  479. else
  480. case $1 in #(
  481. -*)set "./$1";;
  482. esac;
  483. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  484. ???[sx]*):;;*)false;;esac;fi
  485. '\'' sh
  486. '
  487. fi
  488. as_executable_p=$as_test_x
  489. # Sed expression to map a string onto a valid CPP name.
  490. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  491. # Sed expression to map a string onto a valid variable name.
  492. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  493. SHELL=${CONFIG_SHELL-/bin/sh}
  494. exec 7<&0 </dev/null 6>&1
  495. # Name of the host.
  496. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  497. # so uname gets run too.
  498. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  499. #
  500. # Initializations.
  501. #
  502. ac_default_prefix=/usr/local
  503. ac_clean_files=
  504. ac_config_libobj_dir=.
  505. LIBOBJS=
  506. cross_compiling=no
  507. subdirs=
  508. MFLAGS=
  509. MAKEFLAGS=
  510. # Identity of this package.
  511. PACKAGE_NAME='klish'
  512. PACKAGE_TARNAME='klish'
  513. PACKAGE_VERSION='1.5.0'
  514. PACKAGE_STRING='klish 1.5.0'
  515. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  516. PACKAGE_URL=''
  517. # Factoring default headers for most tests.
  518. ac_includes_default="\
  519. #include <stdio.h>
  520. #ifdef HAVE_SYS_TYPES_H
  521. # include <sys/types.h>
  522. #endif
  523. #ifdef HAVE_SYS_STAT_H
  524. # include <sys/stat.h>
  525. #endif
  526. #ifdef STDC_HEADERS
  527. # include <stdlib.h>
  528. # include <stddef.h>
  529. #else
  530. # ifdef HAVE_STDLIB_H
  531. # include <stdlib.h>
  532. # endif
  533. #endif
  534. #ifdef HAVE_STRING_H
  535. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  536. # include <memory.h>
  537. # endif
  538. # include <string.h>
  539. #endif
  540. #ifdef HAVE_STRINGS_H
  541. # include <strings.h>
  542. #endif
  543. #ifdef HAVE_INTTYPES_H
  544. # include <inttypes.h>
  545. #endif
  546. #ifdef HAVE_STDINT_H
  547. # include <stdint.h>
  548. #endif
  549. #ifdef HAVE_UNISTD_H
  550. # include <unistd.h>
  551. #endif"
  552. ac_subst_vars='am__EXEEXT_FALSE
  553. am__EXEEXT_TRUE
  554. LTLIBOBJS
  555. LIBOBJS
  556. BFD_LIBS
  557. LUBHEAP_CFLAGS
  558. LUBHEAP_LIBS
  559. LUBHEAP_FALSE
  560. LUBHEAP_TRUE
  561. TCL_FALSE
  562. TCL_TRUE
  563. TCL_VERSION
  564. TCL_LIBS
  565. TCL_CFLAGS
  566. RT_CFLAGS
  567. RT_LIBS
  568. PTHREAD_CFLAGS
  569. PTHREAD_LIBS
  570. TINYXML_CXXFLAGS
  571. TINYXML_LIBS
  572. TINYRL_CFLAGS
  573. TINYRL_LIBS
  574. KONF_CFLAGS
  575. KONF_LIBS
  576. LUB_CFLAGS
  577. LUB_LIBS
  578. DEBUG_FALSE
  579. DEBUG_TRUE
  580. am__fastdepCXX_FALSE
  581. am__fastdepCXX_TRUE
  582. CXXDEPMODE
  583. am__fastdepCC_FALSE
  584. am__fastdepCC_TRUE
  585. CCDEPMODE
  586. AMDEPBACKSLASH
  587. AMDEP_FALSE
  588. AMDEP_TRUE
  589. am__quote
  590. am__include
  591. DEPDIR
  592. am__untar
  593. am__tar
  594. AMTAR
  595. am__leading_dot
  596. SET_MAKE
  597. mkdir_p
  598. MKDIR_P
  599. INSTALL_STRIP_PROGRAM
  600. install_sh
  601. MAKEINFO
  602. AUTOHEADER
  603. AUTOMAKE
  604. AUTOCONF
  605. ACLOCAL
  606. VERSION
  607. PACKAGE
  608. CYGPATH_W
  609. am__isrc
  610. INSTALL_DATA
  611. INSTALL_SCRIPT
  612. INSTALL_PROGRAM
  613. CXXCPP
  614. CPP
  615. OTOOL64
  616. OTOOL
  617. LIPO
  618. NMEDIT
  619. DSYMUTIL
  620. MANIFEST_TOOL
  621. AWK
  622. RANLIB
  623. STRIP
  624. ac_ct_AR
  625. AR
  626. LN_S
  627. NM
  628. ac_ct_DUMPBIN
  629. DUMPBIN
  630. LD
  631. FGREP
  632. EGREP
  633. GREP
  634. SED
  635. LIBTOOL
  636. OBJDUMP
  637. DLLTOOL
  638. AS
  639. host_os
  640. host_vendor
  641. host_cpu
  642. host
  643. build_os
  644. build_vendor
  645. build_cpu
  646. build
  647. ac_ct_CXX
  648. CXXFLAGS
  649. CXX
  650. OBJEXT
  651. EXEEXT
  652. ac_ct_CC
  653. CPPFLAGS
  654. LDFLAGS
  655. CFLAGS
  656. CC
  657. target_alias
  658. host_alias
  659. build_alias
  660. LIBS
  661. ECHO_T
  662. ECHO_N
  663. ECHO_C
  664. DEFS
  665. mandir
  666. localedir
  667. libdir
  668. psdir
  669. pdfdir
  670. dvidir
  671. htmldir
  672. infodir
  673. docdir
  674. oldincludedir
  675. includedir
  676. localstatedir
  677. sharedstatedir
  678. sysconfdir
  679. datadir
  680. datarootdir
  681. libexecdir
  682. sbindir
  683. bindir
  684. program_transform_name
  685. prefix
  686. exec_prefix
  687. PACKAGE_URL
  688. PACKAGE_BUGREPORT
  689. PACKAGE_STRING
  690. PACKAGE_VERSION
  691. PACKAGE_TARNAME
  692. PACKAGE_NAME
  693. PATH_SEPARATOR
  694. SHELL'
  695. ac_subst_files=''
  696. ac_user_opts='
  697. enable_option_checking
  698. enable_shared
  699. enable_static
  700. with_pic
  701. enable_fast_install
  702. with_gnu_ld
  703. with_sysroot
  704. enable_libtool_lock
  705. enable_dependency_tracking
  706. enable_debug
  707. with_pthread
  708. with_rt
  709. with_tcl
  710. enable_lubheap
  711. enable_gpl
  712. '
  713. ac_precious_vars='build_alias
  714. host_alias
  715. target_alias
  716. CC
  717. CFLAGS
  718. LDFLAGS
  719. LIBS
  720. CPPFLAGS
  721. CXX
  722. CXXFLAGS
  723. CCC
  724. CPP
  725. CXXCPP'
  726. # Initialize some variables set by options.
  727. ac_init_help=
  728. ac_init_version=false
  729. ac_unrecognized_opts=
  730. ac_unrecognized_sep=
  731. # The variables have the same names as the options, with
  732. # dashes changed to underlines.
  733. cache_file=/dev/null
  734. exec_prefix=NONE
  735. no_create=
  736. no_recursion=
  737. prefix=NONE
  738. program_prefix=NONE
  739. program_suffix=NONE
  740. program_transform_name=s,x,x,
  741. silent=
  742. site=
  743. srcdir=
  744. verbose=
  745. x_includes=NONE
  746. x_libraries=NONE
  747. # Installation directory options.
  748. # These are left unexpanded so users can "make install exec_prefix=/foo"
  749. # and all the variables that are supposed to be based on exec_prefix
  750. # by default will actually change.
  751. # Use braces instead of parens because sh, perl, etc. also accept them.
  752. # (The list follows the same order as the GNU Coding Standards.)
  753. bindir='${exec_prefix}/bin'
  754. sbindir='${exec_prefix}/sbin'
  755. libexecdir='${exec_prefix}/libexec'
  756. datarootdir='${prefix}/share'
  757. datadir='${datarootdir}'
  758. sysconfdir='${prefix}/etc'
  759. sharedstatedir='${prefix}/com'
  760. localstatedir='${prefix}/var'
  761. includedir='${prefix}/include'
  762. oldincludedir='/usr/include'
  763. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  764. infodir='${datarootdir}/info'
  765. htmldir='${docdir}'
  766. dvidir='${docdir}'
  767. pdfdir='${docdir}'
  768. psdir='${docdir}'
  769. libdir='${exec_prefix}/lib'
  770. localedir='${datarootdir}/locale'
  771. mandir='${datarootdir}/man'
  772. ac_prev=
  773. ac_dashdash=
  774. for ac_option
  775. do
  776. # If the previous option needs an argument, assign it.
  777. if test -n "$ac_prev"; then
  778. eval $ac_prev=\$ac_option
  779. ac_prev=
  780. continue
  781. fi
  782. case $ac_option in
  783. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  784. *) ac_optarg=yes ;;
  785. esac
  786. # Accept the important Cygnus configure options, so we can diagnose typos.
  787. case $ac_dashdash$ac_option in
  788. --)
  789. ac_dashdash=yes ;;
  790. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  791. ac_prev=bindir ;;
  792. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  793. bindir=$ac_optarg ;;
  794. -build | --build | --buil | --bui | --bu)
  795. ac_prev=build_alias ;;
  796. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  797. build_alias=$ac_optarg ;;
  798. -cache-file | --cache-file | --cache-fil | --cache-fi \
  799. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  800. ac_prev=cache_file ;;
  801. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  802. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  803. cache_file=$ac_optarg ;;
  804. --config-cache | -C)
  805. cache_file=config.cache ;;
  806. -datadir | --datadir | --datadi | --datad)
  807. ac_prev=datadir ;;
  808. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  809. datadir=$ac_optarg ;;
  810. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  811. | --dataroo | --dataro | --datar)
  812. ac_prev=datarootdir ;;
  813. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  814. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  815. datarootdir=$ac_optarg ;;
  816. -disable-* | --disable-*)
  817. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  818. # Reject names that are not valid shell variable names.
  819. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  820. as_fn_error "invalid feature name: $ac_useropt"
  821. ac_useropt_orig=$ac_useropt
  822. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  823. case $ac_user_opts in
  824. *"
  825. "enable_$ac_useropt"
  826. "*) ;;
  827. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  828. ac_unrecognized_sep=', ';;
  829. esac
  830. eval enable_$ac_useropt=no ;;
  831. -docdir | --docdir | --docdi | --doc | --do)
  832. ac_prev=docdir ;;
  833. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  834. docdir=$ac_optarg ;;
  835. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  836. ac_prev=dvidir ;;
  837. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  838. dvidir=$ac_optarg ;;
  839. -enable-* | --enable-*)
  840. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  841. # Reject names that are not valid shell variable names.
  842. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  843. as_fn_error "invalid feature name: $ac_useropt"
  844. ac_useropt_orig=$ac_useropt
  845. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  846. case $ac_user_opts in
  847. *"
  848. "enable_$ac_useropt"
  849. "*) ;;
  850. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  851. ac_unrecognized_sep=', ';;
  852. esac
  853. eval enable_$ac_useropt=\$ac_optarg ;;
  854. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  855. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  856. | --exec | --exe | --ex)
  857. ac_prev=exec_prefix ;;
  858. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  859. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  860. | --exec=* | --exe=* | --ex=*)
  861. exec_prefix=$ac_optarg ;;
  862. -gas | --gas | --ga | --g)
  863. # Obsolete; use --with-gas.
  864. with_gas=yes ;;
  865. -help | --help | --hel | --he | -h)
  866. ac_init_help=long ;;
  867. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  868. ac_init_help=recursive ;;
  869. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  870. ac_init_help=short ;;
  871. -host | --host | --hos | --ho)
  872. ac_prev=host_alias ;;
  873. -host=* | --host=* | --hos=* | --ho=*)
  874. host_alias=$ac_optarg ;;
  875. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  876. ac_prev=htmldir ;;
  877. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  878. | --ht=*)
  879. htmldir=$ac_optarg ;;
  880. -includedir | --includedir | --includedi | --included | --include \
  881. | --includ | --inclu | --incl | --inc)
  882. ac_prev=includedir ;;
  883. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  884. | --includ=* | --inclu=* | --incl=* | --inc=*)
  885. includedir=$ac_optarg ;;
  886. -infodir | --infodir | --infodi | --infod | --info | --inf)
  887. ac_prev=infodir ;;
  888. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  889. infodir=$ac_optarg ;;
  890. -libdir | --libdir | --libdi | --libd)
  891. ac_prev=libdir ;;
  892. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  893. libdir=$ac_optarg ;;
  894. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  895. | --libexe | --libex | --libe)
  896. ac_prev=libexecdir ;;
  897. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  898. | --libexe=* | --libex=* | --libe=*)
  899. libexecdir=$ac_optarg ;;
  900. -localedir | --localedir | --localedi | --localed | --locale)
  901. ac_prev=localedir ;;
  902. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  903. localedir=$ac_optarg ;;
  904. -localstatedir | --localstatedir | --localstatedi | --localstated \
  905. | --localstate | --localstat | --localsta | --localst | --locals)
  906. ac_prev=localstatedir ;;
  907. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  908. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  909. localstatedir=$ac_optarg ;;
  910. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  911. ac_prev=mandir ;;
  912. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  913. mandir=$ac_optarg ;;
  914. -nfp | --nfp | --nf)
  915. # Obsolete; use --without-fp.
  916. with_fp=no ;;
  917. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  918. | --no-cr | --no-c | -n)
  919. no_create=yes ;;
  920. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  921. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  922. no_recursion=yes ;;
  923. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  924. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  925. | --oldin | --oldi | --old | --ol | --o)
  926. ac_prev=oldincludedir ;;
  927. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  928. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  929. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  930. oldincludedir=$ac_optarg ;;
  931. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  932. ac_prev=prefix ;;
  933. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  934. prefix=$ac_optarg ;;
  935. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  936. | --program-pre | --program-pr | --program-p)
  937. ac_prev=program_prefix ;;
  938. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  939. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  940. program_prefix=$ac_optarg ;;
  941. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  942. | --program-suf | --program-su | --program-s)
  943. ac_prev=program_suffix ;;
  944. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  945. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  946. program_suffix=$ac_optarg ;;
  947. -program-transform-name | --program-transform-name \
  948. | --program-transform-nam | --program-transform-na \
  949. | --program-transform-n | --program-transform- \
  950. | --program-transform | --program-transfor \
  951. | --program-transfo | --program-transf \
  952. | --program-trans | --program-tran \
  953. | --progr-tra | --program-tr | --program-t)
  954. ac_prev=program_transform_name ;;
  955. -program-transform-name=* | --program-transform-name=* \
  956. | --program-transform-nam=* | --program-transform-na=* \
  957. | --program-transform-n=* | --program-transform-=* \
  958. | --program-transform=* | --program-transfor=* \
  959. | --program-transfo=* | --program-transf=* \
  960. | --program-trans=* | --program-tran=* \
  961. | --progr-tra=* | --program-tr=* | --program-t=*)
  962. program_transform_name=$ac_optarg ;;
  963. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  964. ac_prev=pdfdir ;;
  965. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  966. pdfdir=$ac_optarg ;;
  967. -psdir | --psdir | --psdi | --psd | --ps)
  968. ac_prev=psdir ;;
  969. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  970. psdir=$ac_optarg ;;
  971. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  972. | -silent | --silent | --silen | --sile | --sil)
  973. silent=yes ;;
  974. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  975. ac_prev=sbindir ;;
  976. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  977. | --sbi=* | --sb=*)
  978. sbindir=$ac_optarg ;;
  979. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  980. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  981. | --sharedst | --shareds | --shared | --share | --shar \
  982. | --sha | --sh)
  983. ac_prev=sharedstatedir ;;
  984. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  985. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  986. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  987. | --sha=* | --sh=*)
  988. sharedstatedir=$ac_optarg ;;
  989. -site | --site | --sit)
  990. ac_prev=site ;;
  991. -site=* | --site=* | --sit=*)
  992. site=$ac_optarg ;;
  993. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  994. ac_prev=srcdir ;;
  995. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  996. srcdir=$ac_optarg ;;
  997. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  998. | --syscon | --sysco | --sysc | --sys | --sy)
  999. ac_prev=sysconfdir ;;
  1000. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1001. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1002. sysconfdir=$ac_optarg ;;
  1003. -target | --target | --targe | --targ | --tar | --ta | --t)
  1004. ac_prev=target_alias ;;
  1005. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1006. target_alias=$ac_optarg ;;
  1007. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1008. verbose=yes ;;
  1009. -version | --version | --versio | --versi | --vers | -V)
  1010. ac_init_version=: ;;
  1011. -with-* | --with-*)
  1012. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1013. # Reject names that are not valid shell variable names.
  1014. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1015. as_fn_error "invalid package name: $ac_useropt"
  1016. ac_useropt_orig=$ac_useropt
  1017. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1018. case $ac_user_opts in
  1019. *"
  1020. "with_$ac_useropt"
  1021. "*) ;;
  1022. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1023. ac_unrecognized_sep=', ';;
  1024. esac
  1025. eval with_$ac_useropt=\$ac_optarg ;;
  1026. -without-* | --without-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error "invalid package name: $ac_useropt"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "with_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval with_$ac_useropt=no ;;
  1041. --x)
  1042. # Obsolete; use --with-x.
  1043. with_x=yes ;;
  1044. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1045. | --x-incl | --x-inc | --x-in | --x-i)
  1046. ac_prev=x_includes ;;
  1047. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1048. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1049. x_includes=$ac_optarg ;;
  1050. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1051. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1052. ac_prev=x_libraries ;;
  1053. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1054. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1055. x_libraries=$ac_optarg ;;
  1056. -*) as_fn_error "unrecognized option: \`$ac_option'
  1057. Try \`$0 --help' for more information."
  1058. ;;
  1059. *=*)
  1060. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1061. # Reject names that are not valid shell variable names.
  1062. case $ac_envvar in #(
  1063. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1064. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1065. esac
  1066. eval $ac_envvar=\$ac_optarg
  1067. export $ac_envvar ;;
  1068. *)
  1069. # FIXME: should be removed in autoconf 3.0.
  1070. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1071. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1072. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1073. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1074. ;;
  1075. esac
  1076. done
  1077. if test -n "$ac_prev"; then
  1078. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1079. as_fn_error "missing argument to $ac_option"
  1080. fi
  1081. if test -n "$ac_unrecognized_opts"; then
  1082. case $enable_option_checking in
  1083. no) ;;
  1084. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1085. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1086. esac
  1087. fi
  1088. # Check all directory arguments for consistency.
  1089. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1090. datadir sysconfdir sharedstatedir localstatedir includedir \
  1091. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1092. libdir localedir mandir
  1093. do
  1094. eval ac_val=\$$ac_var
  1095. # Remove trailing slashes.
  1096. case $ac_val in
  1097. */ )
  1098. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1099. eval $ac_var=\$ac_val;;
  1100. esac
  1101. # Be sure to have absolute directory names.
  1102. case $ac_val in
  1103. [\\/$]* | ?:[\\/]* ) continue;;
  1104. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1105. esac
  1106. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1107. done
  1108. # There might be people who depend on the old broken behavior: `$host'
  1109. # used to hold the argument of --host etc.
  1110. # FIXME: To remove some day.
  1111. build=$build_alias
  1112. host=$host_alias
  1113. target=$target_alias
  1114. # FIXME: To remove some day.
  1115. if test "x$host_alias" != x; then
  1116. if test "x$build_alias" = x; then
  1117. cross_compiling=maybe
  1118. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1119. If a cross compiler is detected then cross compile mode will be used." >&2
  1120. elif test "x$build_alias" != "x$host_alias"; then
  1121. cross_compiling=yes
  1122. fi
  1123. fi
  1124. ac_tool_prefix=
  1125. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1126. test "$silent" = yes && exec 6>/dev/null
  1127. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1128. ac_ls_di=`ls -di .` &&
  1129. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1130. as_fn_error "working directory cannot be determined"
  1131. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1132. as_fn_error "pwd does not report name of working directory"
  1133. # Find the source files, if location was not specified.
  1134. if test -z "$srcdir"; then
  1135. ac_srcdir_defaulted=yes
  1136. # Try the directory containing this script, then the parent directory.
  1137. ac_confdir=`$as_dirname -- "$as_myself" ||
  1138. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1139. X"$as_myself" : 'X\(//\)[^/]' \| \
  1140. X"$as_myself" : 'X\(//\)$' \| \
  1141. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1142. $as_echo X"$as_myself" |
  1143. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1144. s//\1/
  1145. q
  1146. }
  1147. /^X\(\/\/\)[^/].*/{
  1148. s//\1/
  1149. q
  1150. }
  1151. /^X\(\/\/\)$/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\).*/{
  1156. s//\1/
  1157. q
  1158. }
  1159. s/.*/./; q'`
  1160. srcdir=$ac_confdir
  1161. if test ! -r "$srcdir/$ac_unique_file"; then
  1162. srcdir=..
  1163. fi
  1164. else
  1165. ac_srcdir_defaulted=no
  1166. fi
  1167. if test ! -r "$srcdir/$ac_unique_file"; then
  1168. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1169. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1170. fi
  1171. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1172. ac_abs_confdir=`(
  1173. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1174. pwd)`
  1175. # When building in place, set srcdir=.
  1176. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1177. srcdir=.
  1178. fi
  1179. # Remove unnecessary trailing slashes from srcdir.
  1180. # Double slashes in file names in object file debugging info
  1181. # mess up M-x gdb in Emacs.
  1182. case $srcdir in
  1183. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1184. esac
  1185. for ac_var in $ac_precious_vars; do
  1186. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1187. eval ac_env_${ac_var}_value=\$${ac_var}
  1188. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1189. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1190. done
  1191. #
  1192. # Report the --help message.
  1193. #
  1194. if test "$ac_init_help" = "long"; then
  1195. # Omit some internal or obsolete options to make the list less imposing.
  1196. # This message is too long to be a string in the A/UX 3.1 sh.
  1197. cat <<_ACEOF
  1198. \`configure' configures klish 1.5.0 to adapt to many kinds of systems.
  1199. Usage: $0 [OPTION]... [VAR=VALUE]...
  1200. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1201. VAR=VALUE. See below for descriptions of some of the useful variables.
  1202. Defaults for the options are specified in brackets.
  1203. Configuration:
  1204. -h, --help display this help and exit
  1205. --help=short display options specific to this package
  1206. --help=recursive display the short help of all the included packages
  1207. -V, --version display version information and exit
  1208. -q, --quiet, --silent do not print \`checking...' messages
  1209. --cache-file=FILE cache test results in FILE [disabled]
  1210. -C, --config-cache alias for \`--cache-file=config.cache'
  1211. -n, --no-create do not create output files
  1212. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1213. Installation directories:
  1214. --prefix=PREFIX install architecture-independent files in PREFIX
  1215. [$ac_default_prefix]
  1216. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1217. [PREFIX]
  1218. By default, \`make install' will install all the files in
  1219. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1220. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1221. for instance \`--prefix=\$HOME'.
  1222. For better control, use the options below.
  1223. Fine tuning of the installation directories:
  1224. --bindir=DIR user executables [EPREFIX/bin]
  1225. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1226. --libexecdir=DIR program executables [EPREFIX/libexec]
  1227. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1228. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1229. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1230. --libdir=DIR object code libraries [EPREFIX/lib]
  1231. --includedir=DIR C header files [PREFIX/include]
  1232. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1233. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1234. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1235. --infodir=DIR info documentation [DATAROOTDIR/info]
  1236. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1237. --mandir=DIR man documentation [DATAROOTDIR/man]
  1238. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1239. --htmldir=DIR html documentation [DOCDIR]
  1240. --dvidir=DIR dvi documentation [DOCDIR]
  1241. --pdfdir=DIR pdf documentation [DOCDIR]
  1242. --psdir=DIR ps documentation [DOCDIR]
  1243. _ACEOF
  1244. cat <<\_ACEOF
  1245. Program names:
  1246. --program-prefix=PREFIX prepend PREFIX to installed program names
  1247. --program-suffix=SUFFIX append SUFFIX to installed program names
  1248. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1249. System types:
  1250. --build=BUILD configure for building on BUILD [guessed]
  1251. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1252. _ACEOF
  1253. fi
  1254. if test -n "$ac_init_help"; then
  1255. case $ac_init_help in
  1256. short | recursive ) echo "Configuration of klish 1.5.0:";;
  1257. esac
  1258. cat <<\_ACEOF
  1259. Optional Features:
  1260. --disable-option-checking ignore unrecognized --enable/--with options
  1261. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1262. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1263. --enable-shared[=PKGS] build shared libraries [default=yes]
  1264. --enable-static[=PKGS] build static libraries [default=yes]
  1265. --enable-fast-install[=PKGS]
  1266. optimize for fast installation [default=yes]
  1267. --disable-libtool-lock avoid locking (might break parallel builds)
  1268. --disable-dependency-tracking speeds up one-time build
  1269. --enable-dependency-tracking do not reject slow dependency extractors
  1270. --enable-debug Turn on debugging including asserts [default=no]
  1271. --enable-lubheap Replace standard memory libaries with lubheap
  1272. (EXPERIMENTAL) [default=no]
  1273. --enable-gpl Link with GPL licenced libraries [default=yes]
  1274. Optional Packages:
  1275. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1276. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1277. --with-pic try to use only PIC/non-PIC objects [default=use
  1278. both]
  1279. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1280. --with-sysroot=DIR Search for dependent libraries within DIR
  1281. (or the compiler's sysroot if not specified).
  1282. --with-pthread=DIR Use POSIX threads library distribution in DIR
  1283. --with-rt=DIR Use POSIX real time library distribution in DIR
  1284. --with-tcl=DIR Use TCL library distribution in DIR
  1285. Some influential environment variables:
  1286. CC C compiler command
  1287. CFLAGS C compiler flags
  1288. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1289. nonstandard directory <lib dir>
  1290. LIBS libraries to pass to the linker, e.g. -l<library>
  1291. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1292. you have headers in a nonstandard directory <include dir>
  1293. CXX C++ compiler command
  1294. CXXFLAGS C++ compiler flags
  1295. CPP C preprocessor
  1296. CXXCPP C++ preprocessor
  1297. Use these variables to override the choices made by `configure' or to help
  1298. it to find libraries and programs with nonstandard names/locations.
  1299. Report bugs to <serj.kalichev at gmail dot com>.
  1300. _ACEOF
  1301. ac_status=$?
  1302. fi
  1303. if test "$ac_init_help" = "recursive"; then
  1304. # If there are subdirs, report their specific --help.
  1305. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1306. test -d "$ac_dir" ||
  1307. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1308. continue
  1309. ac_builddir=.
  1310. case "$ac_dir" in
  1311. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1312. *)
  1313. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1314. # A ".." for each directory in $ac_dir_suffix.
  1315. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1316. case $ac_top_builddir_sub in
  1317. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1318. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1319. esac ;;
  1320. esac
  1321. ac_abs_top_builddir=$ac_pwd
  1322. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1323. # for backward compatibility:
  1324. ac_top_builddir=$ac_top_build_prefix
  1325. case $srcdir in
  1326. .) # We are building in place.
  1327. ac_srcdir=.
  1328. ac_top_srcdir=$ac_top_builddir_sub
  1329. ac_abs_top_srcdir=$ac_pwd ;;
  1330. [\\/]* | ?:[\\/]* ) # Absolute name.
  1331. ac_srcdir=$srcdir$ac_dir_suffix;
  1332. ac_top_srcdir=$srcdir
  1333. ac_abs_top_srcdir=$srcdir ;;
  1334. *) # Relative name.
  1335. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1336. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1337. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1338. esac
  1339. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1340. cd "$ac_dir" || { ac_status=$?; continue; }
  1341. # Check for guested configure.
  1342. if test -f "$ac_srcdir/configure.gnu"; then
  1343. echo &&
  1344. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1345. elif test -f "$ac_srcdir/configure"; then
  1346. echo &&
  1347. $SHELL "$ac_srcdir/configure" --help=recursive
  1348. else
  1349. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1350. fi || ac_status=$?
  1351. cd "$ac_pwd" || { ac_status=$?; break; }
  1352. done
  1353. fi
  1354. test -n "$ac_init_help" && exit $ac_status
  1355. if $ac_init_version; then
  1356. cat <<\_ACEOF
  1357. klish configure 1.5.0
  1358. generated by GNU Autoconf 2.64
  1359. Copyright (C) 2009 Free Software Foundation, Inc.
  1360. This configure script is free software; the Free Software Foundation
  1361. gives unlimited permission to copy, distribute and modify it.
  1362. _ACEOF
  1363. exit
  1364. fi
  1365. ## ------------------------ ##
  1366. ## Autoconf initialization. ##
  1367. ## ------------------------ ##
  1368. # ac_fn_c_try_compile LINENO
  1369. # --------------------------
  1370. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1371. ac_fn_c_try_compile ()
  1372. {
  1373. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1374. rm -f conftest.$ac_objext
  1375. if { { ac_try="$ac_compile"
  1376. case "(($ac_try" in
  1377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1378. *) ac_try_echo=$ac_try;;
  1379. esac
  1380. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1381. $as_echo "$ac_try_echo"; } >&5
  1382. (eval "$ac_compile") 2>conftest.err
  1383. ac_status=$?
  1384. if test -s conftest.err; then
  1385. grep -v '^ *+' conftest.err >conftest.er1
  1386. cat conftest.er1 >&5
  1387. mv -f conftest.er1 conftest.err
  1388. fi
  1389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1390. test $ac_status = 0; } && {
  1391. test -z "$ac_c_werror_flag" ||
  1392. test ! -s conftest.err
  1393. } && test -s conftest.$ac_objext; then :
  1394. ac_retval=0
  1395. else
  1396. $as_echo "$as_me: failed program was:" >&5
  1397. sed 's/^/| /' conftest.$ac_ext >&5
  1398. ac_retval=1
  1399. fi
  1400. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1401. return $ac_retval
  1402. } # ac_fn_c_try_compile
  1403. # ac_fn_cxx_try_compile LINENO
  1404. # ----------------------------
  1405. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1406. ac_fn_cxx_try_compile ()
  1407. {
  1408. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1409. rm -f conftest.$ac_objext
  1410. if { { ac_try="$ac_compile"
  1411. case "(($ac_try" in
  1412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1413. *) ac_try_echo=$ac_try;;
  1414. esac
  1415. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1416. $as_echo "$ac_try_echo"; } >&5
  1417. (eval "$ac_compile") 2>conftest.err
  1418. ac_status=$?
  1419. if test -s conftest.err; then
  1420. grep -v '^ *+' conftest.err >conftest.er1
  1421. cat conftest.er1 >&5
  1422. mv -f conftest.er1 conftest.err
  1423. fi
  1424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1425. test $ac_status = 0; } && {
  1426. test -z "$ac_cxx_werror_flag" ||
  1427. test ! -s conftest.err
  1428. } && test -s conftest.$ac_objext; then :
  1429. ac_retval=0
  1430. else
  1431. $as_echo "$as_me: failed program was:" >&5
  1432. sed 's/^/| /' conftest.$ac_ext >&5
  1433. ac_retval=1
  1434. fi
  1435. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1436. return $ac_retval
  1437. } # ac_fn_cxx_try_compile
  1438. # ac_fn_c_try_link LINENO
  1439. # -----------------------
  1440. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1441. ac_fn_c_try_link ()
  1442. {
  1443. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1444. rm -f conftest.$ac_objext conftest$ac_exeext
  1445. if { { ac_try="$ac_link"
  1446. case "(($ac_try" in
  1447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1448. *) ac_try_echo=$ac_try;;
  1449. esac
  1450. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1451. $as_echo "$ac_try_echo"; } >&5
  1452. (eval "$ac_link") 2>conftest.err
  1453. ac_status=$?
  1454. if test -s conftest.err; then
  1455. grep -v '^ *+' conftest.err >conftest.er1
  1456. cat conftest.er1 >&5
  1457. mv -f conftest.er1 conftest.err
  1458. fi
  1459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1460. test $ac_status = 0; } && {
  1461. test -z "$ac_c_werror_flag" ||
  1462. test ! -s conftest.err
  1463. } && test -s conftest$ac_exeext && {
  1464. test "$cross_compiling" = yes ||
  1465. $as_test_x conftest$ac_exeext
  1466. }; then :
  1467. ac_retval=0
  1468. else
  1469. $as_echo "$as_me: failed program was:" >&5
  1470. sed 's/^/| /' conftest.$ac_ext >&5
  1471. ac_retval=1
  1472. fi
  1473. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1474. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1475. # interfere with the next link command; also delete a directory that is
  1476. # left behind by Apple's compiler. We do this before executing the actions.
  1477. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1478. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1479. return $ac_retval
  1480. } # ac_fn_c_try_link
  1481. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1482. # -------------------------------------------------------
  1483. # Tests whether HEADER exists and can be compiled using the include files in
  1484. # INCLUDES, setting the cache variable VAR accordingly.
  1485. ac_fn_c_check_header_compile ()
  1486. {
  1487. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1489. $as_echo_n "checking for $2... " >&6; }
  1490. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1491. $as_echo_n "(cached) " >&6
  1492. else
  1493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1494. /* end confdefs.h. */
  1495. $4
  1496. #include <$2>
  1497. _ACEOF
  1498. if ac_fn_c_try_compile "$LINENO"; then :
  1499. eval "$3=yes"
  1500. else
  1501. eval "$3=no"
  1502. fi
  1503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1504. fi
  1505. eval ac_res=\$$3
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1507. $as_echo "$ac_res" >&6; }
  1508. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1509. } # ac_fn_c_check_header_compile
  1510. # ac_fn_c_try_cpp LINENO
  1511. # ----------------------
  1512. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1513. ac_fn_c_try_cpp ()
  1514. {
  1515. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1516. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1517. case "(($ac_try" in
  1518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1519. *) ac_try_echo=$ac_try;;
  1520. esac
  1521. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1522. $as_echo "$ac_try_echo"; } >&5
  1523. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1524. ac_status=$?
  1525. if test -s conftest.err; then
  1526. grep -v '^ *+' conftest.err >conftest.er1
  1527. cat conftest.er1 >&5
  1528. mv -f conftest.er1 conftest.err
  1529. fi
  1530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1531. test $ac_status = 0; } >/dev/null && {
  1532. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1533. test ! -s conftest.err
  1534. }; then :
  1535. ac_retval=0
  1536. else
  1537. $as_echo "$as_me: failed program was:" >&5
  1538. sed 's/^/| /' conftest.$ac_ext >&5
  1539. ac_retval=1
  1540. fi
  1541. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1542. return $ac_retval
  1543. } # ac_fn_c_try_cpp
  1544. # ac_fn_c_try_run LINENO
  1545. # ----------------------
  1546. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1547. # that executables *can* be run.
  1548. ac_fn_c_try_run ()
  1549. {
  1550. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1551. if { { ac_try="$ac_link"
  1552. case "(($ac_try" in
  1553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1554. *) ac_try_echo=$ac_try;;
  1555. esac
  1556. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1557. $as_echo "$ac_try_echo"; } >&5
  1558. (eval "$ac_link") 2>&5
  1559. ac_status=$?
  1560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1561. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1562. { { case "(($ac_try" in
  1563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1564. *) ac_try_echo=$ac_try;;
  1565. esac
  1566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1567. $as_echo "$ac_try_echo"; } >&5
  1568. (eval "$ac_try") 2>&5
  1569. ac_status=$?
  1570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1571. test $ac_status = 0; }; }; then :
  1572. ac_retval=0
  1573. else
  1574. $as_echo "$as_me: program exited with status $ac_status" >&5
  1575. $as_echo "$as_me: failed program was:" >&5
  1576. sed 's/^/| /' conftest.$ac_ext >&5
  1577. ac_retval=$ac_status
  1578. fi
  1579. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1580. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1581. return $ac_retval
  1582. } # ac_fn_c_try_run
  1583. # ac_fn_c_check_func LINENO FUNC VAR
  1584. # ----------------------------------
  1585. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1586. ac_fn_c_check_func ()
  1587. {
  1588. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1590. $as_echo_n "checking for $2... " >&6; }
  1591. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1592. $as_echo_n "(cached) " >&6
  1593. else
  1594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1595. /* end confdefs.h. */
  1596. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1597. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1598. #define $2 innocuous_$2
  1599. /* System header to define __stub macros and hopefully few prototypes,
  1600. which can conflict with char $2 (); below.
  1601. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1602. <limits.h> exists even on freestanding compilers. */
  1603. #ifdef __STDC__
  1604. # include <limits.h>
  1605. #else
  1606. # include <assert.h>
  1607. #endif
  1608. #undef $2
  1609. /* Override any GCC internal prototype to avoid an error.
  1610. Use char because int might match the return type of a GCC
  1611. builtin and then its argument prototype would still apply. */
  1612. #ifdef __cplusplus
  1613. extern "C"
  1614. #endif
  1615. char $2 ();
  1616. /* The GNU C library defines this for functions which it implements
  1617. to always fail with ENOSYS. Some functions are actually named
  1618. something starting with __ and the normal name is an alias. */
  1619. #if defined __stub_$2 || defined __stub___$2
  1620. choke me
  1621. #endif
  1622. int
  1623. main ()
  1624. {
  1625. return $2 ();
  1626. ;
  1627. return 0;
  1628. }
  1629. _ACEOF
  1630. if ac_fn_c_try_link "$LINENO"; then :
  1631. eval "$3=yes"
  1632. else
  1633. eval "$3=no"
  1634. fi
  1635. rm -f core conftest.err conftest.$ac_objext \
  1636. conftest$ac_exeext conftest.$ac_ext
  1637. fi
  1638. eval ac_res=\$$3
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1640. $as_echo "$ac_res" >&6; }
  1641. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1642. } # ac_fn_c_check_func
  1643. # ac_fn_cxx_try_cpp LINENO
  1644. # ------------------------
  1645. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1646. ac_fn_cxx_try_cpp ()
  1647. {
  1648. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1649. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1650. case "(($ac_try" in
  1651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1652. *) ac_try_echo=$ac_try;;
  1653. esac
  1654. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1655. $as_echo "$ac_try_echo"; } >&5
  1656. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1657. ac_status=$?
  1658. if test -s conftest.err; then
  1659. grep -v '^ *+' conftest.err >conftest.er1
  1660. cat conftest.er1 >&5
  1661. mv -f conftest.er1 conftest.err
  1662. fi
  1663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1664. test $ac_status = 0; } >/dev/null && {
  1665. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1666. test ! -s conftest.err
  1667. }; then :
  1668. ac_retval=0
  1669. else
  1670. $as_echo "$as_me: failed program was:" >&5
  1671. sed 's/^/| /' conftest.$ac_ext >&5
  1672. ac_retval=1
  1673. fi
  1674. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1675. return $ac_retval
  1676. } # ac_fn_cxx_try_cpp
  1677. # ac_fn_cxx_try_link LINENO
  1678. # -------------------------
  1679. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1680. ac_fn_cxx_try_link ()
  1681. {
  1682. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1683. rm -f conftest.$ac_objext conftest$ac_exeext
  1684. if { { ac_try="$ac_link"
  1685. case "(($ac_try" in
  1686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1687. *) ac_try_echo=$ac_try;;
  1688. esac
  1689. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1690. $as_echo "$ac_try_echo"; } >&5
  1691. (eval "$ac_link") 2>conftest.err
  1692. ac_status=$?
  1693. if test -s conftest.err; then
  1694. grep -v '^ *+' conftest.err >conftest.er1
  1695. cat conftest.er1 >&5
  1696. mv -f conftest.er1 conftest.err
  1697. fi
  1698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1699. test $ac_status = 0; } && {
  1700. test -z "$ac_cxx_werror_flag" ||
  1701. test ! -s conftest.err
  1702. } && test -s conftest$ac_exeext && {
  1703. test "$cross_compiling" = yes ||
  1704. $as_test_x conftest$ac_exeext
  1705. }; then :
  1706. ac_retval=0
  1707. else
  1708. $as_echo "$as_me: failed program was:" >&5
  1709. sed 's/^/| /' conftest.$ac_ext >&5
  1710. ac_retval=1
  1711. fi
  1712. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1713. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1714. # interfere with the next link command; also delete a directory that is
  1715. # left behind by Apple's compiler. We do this before executing the actions.
  1716. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1717. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1718. return $ac_retval
  1719. } # ac_fn_cxx_try_link
  1720. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1721. # --------------------------------------------
  1722. # Tries to find the compile-time value of EXPR in a program that includes
  1723. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1724. # computed
  1725. ac_fn_c_compute_int ()
  1726. {
  1727. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728. if test "$cross_compiling" = yes; then
  1729. # Depending upon the size, compute the lo and hi bounds.
  1730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1731. /* end confdefs.h. */
  1732. $4
  1733. int
  1734. main ()
  1735. {
  1736. static int test_array [1 - 2 * !(($2) >= 0)];
  1737. test_array [0] = 0
  1738. ;
  1739. return 0;
  1740. }
  1741. _ACEOF
  1742. if ac_fn_c_try_compile "$LINENO"; then :
  1743. ac_lo=0 ac_mid=0
  1744. while :; do
  1745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1746. /* end confdefs.h. */
  1747. $4
  1748. int
  1749. main ()
  1750. {
  1751. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1752. test_array [0] = 0
  1753. ;
  1754. return 0;
  1755. }
  1756. _ACEOF
  1757. if ac_fn_c_try_compile "$LINENO"; then :
  1758. ac_hi=$ac_mid; break
  1759. else
  1760. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1761. if test $ac_lo -le $ac_mid; then
  1762. ac_lo= ac_hi=
  1763. break
  1764. fi
  1765. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1766. fi
  1767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1768. done
  1769. else
  1770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1771. /* end confdefs.h. */
  1772. $4
  1773. int
  1774. main ()
  1775. {
  1776. static int test_array [1 - 2 * !(($2) < 0)];
  1777. test_array [0] = 0
  1778. ;
  1779. return 0;
  1780. }
  1781. _ACEOF
  1782. if ac_fn_c_try_compile "$LINENO"; then :
  1783. ac_hi=-1 ac_mid=-1
  1784. while :; do
  1785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1786. /* end confdefs.h. */
  1787. $4
  1788. int
  1789. main ()
  1790. {
  1791. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1792. test_array [0] = 0
  1793. ;
  1794. return 0;
  1795. }
  1796. _ACEOF
  1797. if ac_fn_c_try_compile "$LINENO"; then :
  1798. ac_lo=$ac_mid; break
  1799. else
  1800. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1801. if test $ac_mid -le $ac_hi; then
  1802. ac_lo= ac_hi=
  1803. break
  1804. fi
  1805. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1806. fi
  1807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1808. done
  1809. else
  1810. ac_lo= ac_hi=
  1811. fi
  1812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1813. fi
  1814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1815. # Binary search between lo and hi bounds.
  1816. while test "x$ac_lo" != "x$ac_hi"; do
  1817. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1819. /* end confdefs.h. */
  1820. $4
  1821. int
  1822. main ()
  1823. {
  1824. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1825. test_array [0] = 0
  1826. ;
  1827. return 0;
  1828. }
  1829. _ACEOF
  1830. if ac_fn_c_try_compile "$LINENO"; then :
  1831. ac_hi=$ac_mid
  1832. else
  1833. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1834. fi
  1835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1836. done
  1837. case $ac_lo in #((
  1838. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1839. '') ac_retval=1 ;;
  1840. esac
  1841. else
  1842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1843. /* end confdefs.h. */
  1844. $4
  1845. static long int longval () { return $2; }
  1846. static unsigned long int ulongval () { return $2; }
  1847. #include <stdio.h>
  1848. #include <stdlib.h>
  1849. int
  1850. main ()
  1851. {
  1852. FILE *f = fopen ("conftest.val", "w");
  1853. if (! f)
  1854. return 1;
  1855. if (($2) < 0)
  1856. {
  1857. long int i = longval ();
  1858. if (i != ($2))
  1859. return 1;
  1860. fprintf (f, "%ld", i);
  1861. }
  1862. else
  1863. {
  1864. unsigned long int i = ulongval ();
  1865. if (i != ($2))
  1866. return 1;
  1867. fprintf (f, "%lu", i);
  1868. }
  1869. /* Do not output a trailing newline, as this causes \r\n confusion
  1870. on some platforms. */
  1871. return ferror (f) || fclose (f) != 0;
  1872. ;
  1873. return 0;
  1874. }
  1875. _ACEOF
  1876. if ac_fn_c_try_run "$LINENO"; then :
  1877. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1878. else
  1879. ac_retval=1
  1880. fi
  1881. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1882. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1883. rm -f conftest.val
  1884. fi
  1885. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1886. return $ac_retval
  1887. } # ac_fn_c_compute_int
  1888. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1889. # -------------------------------------------------------
  1890. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1891. # the include files in INCLUDES and setting the cache variable VAR
  1892. # accordingly.
  1893. ac_fn_c_check_header_mongrel ()
  1894. {
  1895. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1898. $as_echo_n "checking for $2... " >&6; }
  1899. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1900. $as_echo_n "(cached) " >&6
  1901. fi
  1902. eval ac_res=\$$3
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1904. $as_echo "$ac_res" >&6; }
  1905. else
  1906. # Is the header compilable?
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1908. $as_echo_n "checking $2 usability... " >&6; }
  1909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1910. /* end confdefs.h. */
  1911. $4
  1912. #include <$2>
  1913. _ACEOF
  1914. if ac_fn_c_try_compile "$LINENO"; then :
  1915. ac_header_compiler=yes
  1916. else
  1917. ac_header_compiler=no
  1918. fi
  1919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1921. $as_echo "$ac_header_compiler" >&6; }
  1922. # Is the header present?
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1924. $as_echo_n "checking $2 presence... " >&6; }
  1925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1926. /* end confdefs.h. */
  1927. #include <$2>
  1928. _ACEOF
  1929. if ac_fn_c_try_cpp "$LINENO"; then :
  1930. ac_header_preproc=yes
  1931. else
  1932. ac_header_preproc=no
  1933. fi
  1934. rm -f conftest.err conftest.$ac_ext
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1936. $as_echo "$ac_header_preproc" >&6; }
  1937. # So? What about this header?
  1938. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1939. yes:no: )
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1941. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1943. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1944. ;;
  1945. no:yes:* )
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1947. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1949. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1951. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1953. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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. ( cat <<\_ASBOX
  1957. ## --------------------------------------------- ##
  1958. ## Report this to serj.kalichev at gmail dot com ##
  1959. ## --------------------------------------------- ##
  1960. _ASBOX
  1961. ) | sed "s/^/$as_me: WARNING: /" >&2
  1962. ;;
  1963. esac
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1965. $as_echo_n "checking for $2... " >&6; }
  1966. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1967. $as_echo_n "(cached) " >&6
  1968. else
  1969. eval "$3=\$ac_header_compiler"
  1970. fi
  1971. eval ac_res=\$$3
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1973. $as_echo "$ac_res" >&6; }
  1974. fi
  1975. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1976. } # ac_fn_c_check_header_mongrel
  1977. cat >config.log <<_ACEOF
  1978. This file contains any messages produced by compilers while
  1979. running configure, to aid debugging if configure makes a mistake.
  1980. It was created by klish $as_me 1.5.0, which was
  1981. generated by GNU Autoconf 2.64. Invocation command line was
  1982. $ $0 $@
  1983. _ACEOF
  1984. exec 5>>config.log
  1985. {
  1986. cat <<_ASUNAME
  1987. ## --------- ##
  1988. ## Platform. ##
  1989. ## --------- ##
  1990. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1991. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1992. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1993. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1994. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1995. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1996. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1997. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1998. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1999. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2000. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2001. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2002. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2003. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2004. _ASUNAME
  2005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2006. for as_dir in $PATH
  2007. do
  2008. IFS=$as_save_IFS
  2009. test -z "$as_dir" && as_dir=.
  2010. $as_echo "PATH: $as_dir"
  2011. done
  2012. IFS=$as_save_IFS
  2013. } >&5
  2014. cat >&5 <<_ACEOF
  2015. ## ----------- ##
  2016. ## Core tests. ##
  2017. ## ----------- ##
  2018. _ACEOF
  2019. # Keep a trace of the command line.
  2020. # Strip out --no-create and --no-recursion so they do not pile up.
  2021. # Strip out --silent because we don't want to record it for future runs.
  2022. # Also quote any args containing shell meta-characters.
  2023. # Make two passes to allow for proper duplicate-argument suppression.
  2024. ac_configure_args=
  2025. ac_configure_args0=
  2026. ac_configure_args1=
  2027. ac_must_keep_next=false
  2028. for ac_pass in 1 2
  2029. do
  2030. for ac_arg
  2031. do
  2032. case $ac_arg in
  2033. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2034. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2035. | -silent | --silent | --silen | --sile | --sil)
  2036. continue ;;
  2037. *\'*)
  2038. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2039. esac
  2040. case $ac_pass in
  2041. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2042. 2)
  2043. as_fn_append ac_configure_args1 " '$ac_arg'"
  2044. if test $ac_must_keep_next = true; then
  2045. ac_must_keep_next=false # Got value, back to normal.
  2046. else
  2047. case $ac_arg in
  2048. *=* | --config-cache | -C | -disable-* | --disable-* \
  2049. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2050. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2051. | -with-* | --with-* | -without-* | --without-* | --x)
  2052. case "$ac_configure_args0 " in
  2053. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2054. esac
  2055. ;;
  2056. -* ) ac_must_keep_next=true ;;
  2057. esac
  2058. fi
  2059. as_fn_append ac_configure_args " '$ac_arg'"
  2060. ;;
  2061. esac
  2062. done
  2063. done
  2064. { ac_configure_args0=; unset ac_configure_args0;}
  2065. { ac_configure_args1=; unset ac_configure_args1;}
  2066. # When interrupted or exit'd, cleanup temporary files, and complete
  2067. # config.log. We remove comments because anyway the quotes in there
  2068. # would cause problems or look ugly.
  2069. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2070. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2071. trap 'exit_status=$?
  2072. # Save into config.log some information that might help in debugging.
  2073. {
  2074. echo
  2075. cat <<\_ASBOX
  2076. ## ---------------- ##
  2077. ## Cache variables. ##
  2078. ## ---------------- ##
  2079. _ASBOX
  2080. echo
  2081. # The following way of writing the cache mishandles newlines in values,
  2082. (
  2083. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2084. eval ac_val=\$$ac_var
  2085. case $ac_val in #(
  2086. *${as_nl}*)
  2087. case $ac_var in #(
  2088. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2089. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2090. esac
  2091. case $ac_var in #(
  2092. _ | IFS | as_nl) ;; #(
  2093. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2094. *) { eval $ac_var=; unset $ac_var;} ;;
  2095. esac ;;
  2096. esac
  2097. done
  2098. (set) 2>&1 |
  2099. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2100. *${as_nl}ac_space=\ *)
  2101. sed -n \
  2102. "s/'\''/'\''\\\\'\'''\''/g;
  2103. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2104. ;; #(
  2105. *)
  2106. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2107. ;;
  2108. esac |
  2109. sort
  2110. )
  2111. echo
  2112. cat <<\_ASBOX
  2113. ## ----------------- ##
  2114. ## Output variables. ##
  2115. ## ----------------- ##
  2116. _ASBOX
  2117. echo
  2118. for ac_var in $ac_subst_vars
  2119. do
  2120. eval ac_val=\$$ac_var
  2121. case $ac_val in
  2122. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2123. esac
  2124. $as_echo "$ac_var='\''$ac_val'\''"
  2125. done | sort
  2126. echo
  2127. if test -n "$ac_subst_files"; then
  2128. cat <<\_ASBOX
  2129. ## ------------------- ##
  2130. ## File substitutions. ##
  2131. ## ------------------- ##
  2132. _ASBOX
  2133. echo
  2134. for ac_var in $ac_subst_files
  2135. do
  2136. eval ac_val=\$$ac_var
  2137. case $ac_val in
  2138. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2139. esac
  2140. $as_echo "$ac_var='\''$ac_val'\''"
  2141. done | sort
  2142. echo
  2143. fi
  2144. if test -s confdefs.h; then
  2145. cat <<\_ASBOX
  2146. ## ----------- ##
  2147. ## confdefs.h. ##
  2148. ## ----------- ##
  2149. _ASBOX
  2150. echo
  2151. cat confdefs.h
  2152. echo
  2153. fi
  2154. test "$ac_signal" != 0 &&
  2155. $as_echo "$as_me: caught signal $ac_signal"
  2156. $as_echo "$as_me: exit $exit_status"
  2157. } >&5
  2158. rm -f core *.core core.conftest.* &&
  2159. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2160. exit $exit_status
  2161. ' 0
  2162. for ac_signal in 1 2 13 15; do
  2163. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2164. done
  2165. ac_signal=0
  2166. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2167. rm -f -r conftest* confdefs.h
  2168. $as_echo "/* confdefs.h */" > confdefs.h
  2169. # Predefined preprocessor variables.
  2170. cat >>confdefs.h <<_ACEOF
  2171. #define PACKAGE_NAME "$PACKAGE_NAME"
  2172. _ACEOF
  2173. cat >>confdefs.h <<_ACEOF
  2174. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2175. _ACEOF
  2176. cat >>confdefs.h <<_ACEOF
  2177. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2178. _ACEOF
  2179. cat >>confdefs.h <<_ACEOF
  2180. #define PACKAGE_STRING "$PACKAGE_STRING"
  2181. _ACEOF
  2182. cat >>confdefs.h <<_ACEOF
  2183. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2184. _ACEOF
  2185. cat >>confdefs.h <<_ACEOF
  2186. #define PACKAGE_URL "$PACKAGE_URL"
  2187. _ACEOF
  2188. # Let the site file select an alternate cache file if it wants to.
  2189. # Prefer an explicitly selected file to automatically selected ones.
  2190. ac_site_file1=NONE
  2191. ac_site_file2=NONE
  2192. if test -n "$CONFIG_SITE"; then
  2193. ac_site_file1=$CONFIG_SITE
  2194. elif test "x$prefix" != xNONE; then
  2195. ac_site_file1=$prefix/share/config.site
  2196. ac_site_file2=$prefix/etc/config.site
  2197. else
  2198. ac_site_file1=$ac_default_prefix/share/config.site
  2199. ac_site_file2=$ac_default_prefix/etc/config.site
  2200. fi
  2201. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2202. do
  2203. test "x$ac_site_file" = xNONE && continue
  2204. if test -r "$ac_site_file"; then
  2205. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2206. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2207. sed 's/^/| /' "$ac_site_file" >&5
  2208. . "$ac_site_file"
  2209. fi
  2210. done
  2211. if test -r "$cache_file"; then
  2212. # Some versions of bash will fail to source /dev/null (special
  2213. # files actually), so we avoid doing that.
  2214. if test -f "$cache_file"; then
  2215. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2216. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2217. case $cache_file in
  2218. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2219. *) . "./$cache_file";;
  2220. esac
  2221. fi
  2222. else
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2224. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2225. >$cache_file
  2226. fi
  2227. # Check that the precious variables saved in the cache have kept the same
  2228. # value.
  2229. ac_cache_corrupted=false
  2230. for ac_var in $ac_precious_vars; do
  2231. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2232. eval ac_new_set=\$ac_env_${ac_var}_set
  2233. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2234. eval ac_new_val=\$ac_env_${ac_var}_value
  2235. case $ac_old_set,$ac_new_set in
  2236. set,)
  2237. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2238. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2239. ac_cache_corrupted=: ;;
  2240. ,set)
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2242. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2243. ac_cache_corrupted=: ;;
  2244. ,);;
  2245. *)
  2246. if test "x$ac_old_val" != "x$ac_new_val"; then
  2247. # differences in whitespace do not lead to failure.
  2248. ac_old_val_w=`echo x $ac_old_val`
  2249. ac_new_val_w=`echo x $ac_new_val`
  2250. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2252. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2253. ac_cache_corrupted=:
  2254. else
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2256. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2257. eval $ac_var=\$ac_old_val
  2258. fi
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2260. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2262. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2263. fi;;
  2264. esac
  2265. # Pass precious variables to config.status.
  2266. if test "$ac_new_set" = set; then
  2267. case $ac_new_val in
  2268. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2269. *) ac_arg=$ac_var=$ac_new_val ;;
  2270. esac
  2271. case " $ac_configure_args " in
  2272. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2273. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2274. esac
  2275. fi
  2276. done
  2277. if $ac_cache_corrupted; then
  2278. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2279. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2281. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2282. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2283. fi
  2284. ## -------------------- ##
  2285. ## Main body of script. ##
  2286. ## -------------------- ##
  2287. ac_ext=c
  2288. ac_cpp='$CPP $CPPFLAGS'
  2289. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2290. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2291. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2292. ac_aux_dir=
  2293. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2294. for ac_t in install-sh install.sh shtool; do
  2295. if test -f "$ac_dir/$ac_t"; then
  2296. ac_aux_dir=$ac_dir
  2297. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2298. break 2
  2299. fi
  2300. done
  2301. done
  2302. if test -z "$ac_aux_dir"; then
  2303. as_fn_error "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2304. fi
  2305. # These three variables are undocumented and unsupported,
  2306. # and are intended to be withdrawn in a future Autoconf release.
  2307. # They can cause serious problems if a builder's source tree is in a directory
  2308. # whose full name contains unusual characters.
  2309. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2310. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2311. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2312. # Checks for programs.
  2313. ac_ext=c
  2314. ac_cpp='$CPP $CPPFLAGS'
  2315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2318. if test -n "$ac_tool_prefix"; then
  2319. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2320. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2322. $as_echo_n "checking for $ac_word... " >&6; }
  2323. if test "${ac_cv_prog_CC+set}" = set; then :
  2324. $as_echo_n "(cached) " >&6
  2325. else
  2326. if test -n "$CC"; then
  2327. ac_cv_prog_CC="$CC" # Let the user override the test.
  2328. else
  2329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2330. for as_dir in $PATH
  2331. do
  2332. IFS=$as_save_IFS
  2333. test -z "$as_dir" && as_dir=.
  2334. for ac_exec_ext in '' $ac_executable_extensions; do
  2335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2336. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2338. break 2
  2339. fi
  2340. done
  2341. done
  2342. IFS=$as_save_IFS
  2343. fi
  2344. fi
  2345. CC=$ac_cv_prog_CC
  2346. if test -n "$CC"; then
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2348. $as_echo "$CC" >&6; }
  2349. else
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2351. $as_echo "no" >&6; }
  2352. fi
  2353. fi
  2354. if test -z "$ac_cv_prog_CC"; then
  2355. ac_ct_CC=$CC
  2356. # Extract the first word of "gcc", so it can be a program name with args.
  2357. set dummy gcc; ac_word=$2
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2359. $as_echo_n "checking for $ac_word... " >&6; }
  2360. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2361. $as_echo_n "(cached) " >&6
  2362. else
  2363. if test -n "$ac_ct_CC"; then
  2364. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2365. else
  2366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2367. for as_dir in $PATH
  2368. do
  2369. IFS=$as_save_IFS
  2370. test -z "$as_dir" && as_dir=.
  2371. for ac_exec_ext in '' $ac_executable_extensions; do
  2372. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2373. ac_cv_prog_ac_ct_CC="gcc"
  2374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2375. break 2
  2376. fi
  2377. done
  2378. done
  2379. IFS=$as_save_IFS
  2380. fi
  2381. fi
  2382. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2383. if test -n "$ac_ct_CC"; then
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2385. $as_echo "$ac_ct_CC" >&6; }
  2386. else
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2388. $as_echo "no" >&6; }
  2389. fi
  2390. if test "x$ac_ct_CC" = x; then
  2391. CC=""
  2392. else
  2393. case $cross_compiling:$ac_tool_warned in
  2394. yes:)
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2396. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2397. ac_tool_warned=yes ;;
  2398. esac
  2399. CC=$ac_ct_CC
  2400. fi
  2401. else
  2402. CC="$ac_cv_prog_CC"
  2403. fi
  2404. if test -z "$CC"; then
  2405. if test -n "$ac_tool_prefix"; then
  2406. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2407. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2409. $as_echo_n "checking for $ac_word... " >&6; }
  2410. if test "${ac_cv_prog_CC+set}" = set; then :
  2411. $as_echo_n "(cached) " >&6
  2412. else
  2413. if test -n "$CC"; then
  2414. ac_cv_prog_CC="$CC" # Let the user override the test.
  2415. else
  2416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2417. for as_dir in $PATH
  2418. do
  2419. IFS=$as_save_IFS
  2420. test -z "$as_dir" && as_dir=.
  2421. for ac_exec_ext in '' $ac_executable_extensions; do
  2422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2423. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2425. break 2
  2426. fi
  2427. done
  2428. done
  2429. IFS=$as_save_IFS
  2430. fi
  2431. fi
  2432. CC=$ac_cv_prog_CC
  2433. if test -n "$CC"; then
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2435. $as_echo "$CC" >&6; }
  2436. else
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2438. $as_echo "no" >&6; }
  2439. fi
  2440. fi
  2441. fi
  2442. if test -z "$CC"; then
  2443. # Extract the first word of "cc", so it can be a program name with args.
  2444. set dummy cc; ac_word=$2
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2446. $as_echo_n "checking for $ac_word... " >&6; }
  2447. if test "${ac_cv_prog_CC+set}" = set; then :
  2448. $as_echo_n "(cached) " >&6
  2449. else
  2450. if test -n "$CC"; then
  2451. ac_cv_prog_CC="$CC" # Let the user override the test.
  2452. else
  2453. ac_prog_rejected=no
  2454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2455. for as_dir in $PATH
  2456. do
  2457. IFS=$as_save_IFS
  2458. test -z "$as_dir" && as_dir=.
  2459. for ac_exec_ext in '' $ac_executable_extensions; do
  2460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2461. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2462. ac_prog_rejected=yes
  2463. continue
  2464. fi
  2465. ac_cv_prog_CC="cc"
  2466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2467. break 2
  2468. fi
  2469. done
  2470. done
  2471. IFS=$as_save_IFS
  2472. if test $ac_prog_rejected = yes; then
  2473. # We found a bogon in the path, so make sure we never use it.
  2474. set dummy $ac_cv_prog_CC
  2475. shift
  2476. if test $# != 0; then
  2477. # We chose a different compiler from the bogus one.
  2478. # However, it has the same basename, so the bogon will be chosen
  2479. # first if we set CC to just the basename; use the full file name.
  2480. shift
  2481. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2482. fi
  2483. fi
  2484. fi
  2485. fi
  2486. CC=$ac_cv_prog_CC
  2487. if test -n "$CC"; then
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2489. $as_echo "$CC" >&6; }
  2490. else
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2492. $as_echo "no" >&6; }
  2493. fi
  2494. fi
  2495. if test -z "$CC"; then
  2496. if test -n "$ac_tool_prefix"; then
  2497. for ac_prog in cl.exe
  2498. do
  2499. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2500. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2502. $as_echo_n "checking for $ac_word... " >&6; }
  2503. if test "${ac_cv_prog_CC+set}" = set; then :
  2504. $as_echo_n "(cached) " >&6
  2505. else
  2506. if test -n "$CC"; then
  2507. ac_cv_prog_CC="$CC" # Let the user override the test.
  2508. else
  2509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2510. for as_dir in $PATH
  2511. do
  2512. IFS=$as_save_IFS
  2513. test -z "$as_dir" && as_dir=.
  2514. for ac_exec_ext in '' $ac_executable_extensions; do
  2515. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2516. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2518. break 2
  2519. fi
  2520. done
  2521. done
  2522. IFS=$as_save_IFS
  2523. fi
  2524. fi
  2525. CC=$ac_cv_prog_CC
  2526. if test -n "$CC"; then
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2528. $as_echo "$CC" >&6; }
  2529. else
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2531. $as_echo "no" >&6; }
  2532. fi
  2533. test -n "$CC" && break
  2534. done
  2535. fi
  2536. if test -z "$CC"; then
  2537. ac_ct_CC=$CC
  2538. for ac_prog in cl.exe
  2539. do
  2540. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2541. set dummy $ac_prog; ac_word=$2
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2543. $as_echo_n "checking for $ac_word... " >&6; }
  2544. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2545. $as_echo_n "(cached) " >&6
  2546. else
  2547. if test -n "$ac_ct_CC"; then
  2548. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2549. else
  2550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2551. for as_dir in $PATH
  2552. do
  2553. IFS=$as_save_IFS
  2554. test -z "$as_dir" && as_dir=.
  2555. for ac_exec_ext in '' $ac_executable_extensions; do
  2556. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2557. ac_cv_prog_ac_ct_CC="$ac_prog"
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2559. break 2
  2560. fi
  2561. done
  2562. done
  2563. IFS=$as_save_IFS
  2564. fi
  2565. fi
  2566. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2567. if test -n "$ac_ct_CC"; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2569. $as_echo "$ac_ct_CC" >&6; }
  2570. else
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2572. $as_echo "no" >&6; }
  2573. fi
  2574. test -n "$ac_ct_CC" && break
  2575. done
  2576. if test "x$ac_ct_CC" = x; then
  2577. CC=""
  2578. else
  2579. case $cross_compiling:$ac_tool_warned in
  2580. yes:)
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2583. ac_tool_warned=yes ;;
  2584. esac
  2585. CC=$ac_ct_CC
  2586. fi
  2587. fi
  2588. fi
  2589. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2590. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2591. as_fn_error "no acceptable C compiler found in \$PATH
  2592. See \`config.log' for more details." "$LINENO" 5; }
  2593. # Provide some information about the compiler.
  2594. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2595. set X $ac_compile
  2596. ac_compiler=$2
  2597. for ac_option in --version -v -V -qversion; do
  2598. { { ac_try="$ac_compiler $ac_option >&5"
  2599. case "(($ac_try" in
  2600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2601. *) ac_try_echo=$ac_try;;
  2602. esac
  2603. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2604. $as_echo "$ac_try_echo"; } >&5
  2605. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2606. ac_status=$?
  2607. if test -s conftest.err; then
  2608. sed '10a\
  2609. ... rest of stderr output deleted ...
  2610. 10q' conftest.err >conftest.er1
  2611. cat conftest.er1 >&5
  2612. rm -f conftest.er1 conftest.err
  2613. fi
  2614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2615. test $ac_status = 0; }
  2616. done
  2617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2618. /* end confdefs.h. */
  2619. #include <stdio.h>
  2620. int
  2621. main ()
  2622. {
  2623. FILE *f = fopen ("conftest.out", "w");
  2624. return ferror (f) || fclose (f) != 0;
  2625. ;
  2626. return 0;
  2627. }
  2628. _ACEOF
  2629. ac_clean_files_save=$ac_clean_files
  2630. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2631. # Try to create an executable without -o first, disregard a.out.
  2632. # It will help us diagnose broken compilers, and finding out an intuition
  2633. # of exeext.
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2635. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2636. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2637. # The possible output files:
  2638. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2639. ac_rmfiles=
  2640. for ac_file in $ac_files
  2641. do
  2642. case $ac_file in
  2643. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2644. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2645. esac
  2646. done
  2647. rm -f $ac_rmfiles
  2648. if { { ac_try="$ac_link_default"
  2649. case "(($ac_try" in
  2650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2651. *) ac_try_echo=$ac_try;;
  2652. esac
  2653. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2654. $as_echo "$ac_try_echo"; } >&5
  2655. (eval "$ac_link_default") 2>&5
  2656. ac_status=$?
  2657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2658. test $ac_status = 0; }; then :
  2659. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2660. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2661. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2662. # so that the user can short-circuit this test for compilers unknown to
  2663. # Autoconf.
  2664. for ac_file in $ac_files ''
  2665. do
  2666. test -f "$ac_file" || continue
  2667. case $ac_file in
  2668. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2669. ;;
  2670. [ab].out )
  2671. # We found the default executable, but exeext='' is most
  2672. # certainly right.
  2673. break;;
  2674. *.* )
  2675. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2676. then :; else
  2677. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2678. fi
  2679. # We set ac_cv_exeext here because the later test for it is not
  2680. # safe: cross compilers may not add the suffix if given an `-o'
  2681. # argument, so we may need to know it at that point already.
  2682. # Even if this section looks crufty: it has the advantage of
  2683. # actually working.
  2684. break;;
  2685. * )
  2686. break;;
  2687. esac
  2688. done
  2689. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2690. else
  2691. ac_file=''
  2692. fi
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2694. $as_echo "$ac_file" >&6; }
  2695. if test -z "$ac_file"; then :
  2696. $as_echo "$as_me: failed program was:" >&5
  2697. sed 's/^/| /' conftest.$ac_ext >&5
  2698. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2699. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2700. { as_fn_set_status 77
  2701. as_fn_error "C compiler cannot create executables
  2702. See \`config.log' for more details." "$LINENO" 5; }; }
  2703. fi
  2704. ac_exeext=$ac_cv_exeext
  2705. # Check that the compiler produces executables we can run. If not, either
  2706. # the compiler is broken, or we cross compile.
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2708. $as_echo_n "checking whether the C compiler works... " >&6; }
  2709. # If not cross compiling, check that we can run a simple program.
  2710. if test "$cross_compiling" != yes; then
  2711. if { ac_try='./$ac_file'
  2712. { { case "(($ac_try" in
  2713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2714. *) ac_try_echo=$ac_try;;
  2715. esac
  2716. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2717. $as_echo "$ac_try_echo"; } >&5
  2718. (eval "$ac_try") 2>&5
  2719. ac_status=$?
  2720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2721. test $ac_status = 0; }; }; then
  2722. cross_compiling=no
  2723. else
  2724. if test "$cross_compiling" = maybe; then
  2725. cross_compiling=yes
  2726. else
  2727. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2728. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2729. as_fn_error "cannot run C compiled programs.
  2730. If you meant to cross compile, use \`--host'.
  2731. See \`config.log' for more details." "$LINENO" 5; }
  2732. fi
  2733. fi
  2734. fi
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2736. $as_echo "yes" >&6; }
  2737. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2738. ac_clean_files=$ac_clean_files_save
  2739. # Check that the compiler produces executables we can run. If not, either
  2740. # the compiler is broken, or we cross compile.
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2742. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2744. $as_echo "$cross_compiling" >&6; }
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2746. $as_echo_n "checking for suffix of executables... " >&6; }
  2747. if { { ac_try="$ac_link"
  2748. case "(($ac_try" in
  2749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2750. *) ac_try_echo=$ac_try;;
  2751. esac
  2752. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2753. $as_echo "$ac_try_echo"; } >&5
  2754. (eval "$ac_link") 2>&5
  2755. ac_status=$?
  2756. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2757. test $ac_status = 0; }; then :
  2758. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2759. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2760. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2761. # `rm'.
  2762. for ac_file in conftest.exe conftest conftest.*; do
  2763. test -f "$ac_file" || continue
  2764. case $ac_file in
  2765. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2766. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2767. break;;
  2768. * ) break;;
  2769. esac
  2770. done
  2771. else
  2772. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2773. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2774. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2775. See \`config.log' for more details." "$LINENO" 5; }
  2776. fi
  2777. rm -f conftest$ac_cv_exeext
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2779. $as_echo "$ac_cv_exeext" >&6; }
  2780. rm -f conftest.$ac_ext
  2781. EXEEXT=$ac_cv_exeext
  2782. ac_exeext=$EXEEXT
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2784. $as_echo_n "checking for suffix of object files... " >&6; }
  2785. if test "${ac_cv_objext+set}" = set; then :
  2786. $as_echo_n "(cached) " >&6
  2787. else
  2788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2789. /* end confdefs.h. */
  2790. int
  2791. main ()
  2792. {
  2793. ;
  2794. return 0;
  2795. }
  2796. _ACEOF
  2797. rm -f conftest.o conftest.obj
  2798. if { { ac_try="$ac_compile"
  2799. case "(($ac_try" in
  2800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2801. *) ac_try_echo=$ac_try;;
  2802. esac
  2803. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2804. $as_echo "$ac_try_echo"; } >&5
  2805. (eval "$ac_compile") 2>&5
  2806. ac_status=$?
  2807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2808. test $ac_status = 0; }; then :
  2809. for ac_file in conftest.o conftest.obj conftest.*; do
  2810. test -f "$ac_file" || continue;
  2811. case $ac_file in
  2812. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2813. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2814. break;;
  2815. esac
  2816. done
  2817. else
  2818. $as_echo "$as_me: failed program was:" >&5
  2819. sed 's/^/| /' conftest.$ac_ext >&5
  2820. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2821. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2822. as_fn_error "cannot compute suffix of object files: cannot compile
  2823. See \`config.log' for more details." "$LINENO" 5; }
  2824. fi
  2825. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2826. fi
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2828. $as_echo "$ac_cv_objext" >&6; }
  2829. OBJEXT=$ac_cv_objext
  2830. ac_objext=$OBJEXT
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2832. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2833. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2834. $as_echo_n "(cached) " >&6
  2835. else
  2836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2837. /* end confdefs.h. */
  2838. int
  2839. main ()
  2840. {
  2841. #ifndef __GNUC__
  2842. choke me
  2843. #endif
  2844. ;
  2845. return 0;
  2846. }
  2847. _ACEOF
  2848. if ac_fn_c_try_compile "$LINENO"; then :
  2849. ac_compiler_gnu=yes
  2850. else
  2851. ac_compiler_gnu=no
  2852. fi
  2853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2854. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2855. fi
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2857. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2858. if test $ac_compiler_gnu = yes; then
  2859. GCC=yes
  2860. else
  2861. GCC=
  2862. fi
  2863. ac_test_CFLAGS=${CFLAGS+set}
  2864. ac_save_CFLAGS=$CFLAGS
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2866. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2867. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2868. $as_echo_n "(cached) " >&6
  2869. else
  2870. ac_save_c_werror_flag=$ac_c_werror_flag
  2871. ac_c_werror_flag=yes
  2872. ac_cv_prog_cc_g=no
  2873. CFLAGS="-g"
  2874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2875. /* end confdefs.h. */
  2876. int
  2877. main ()
  2878. {
  2879. ;
  2880. return 0;
  2881. }
  2882. _ACEOF
  2883. if ac_fn_c_try_compile "$LINENO"; then :
  2884. ac_cv_prog_cc_g=yes
  2885. else
  2886. CFLAGS=""
  2887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2888. /* end confdefs.h. */
  2889. int
  2890. main ()
  2891. {
  2892. ;
  2893. return 0;
  2894. }
  2895. _ACEOF
  2896. if ac_fn_c_try_compile "$LINENO"; then :
  2897. else
  2898. ac_c_werror_flag=$ac_save_c_werror_flag
  2899. CFLAGS="-g"
  2900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2901. /* end confdefs.h. */
  2902. int
  2903. main ()
  2904. {
  2905. ;
  2906. return 0;
  2907. }
  2908. _ACEOF
  2909. if ac_fn_c_try_compile "$LINENO"; then :
  2910. ac_cv_prog_cc_g=yes
  2911. fi
  2912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2913. fi
  2914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2915. fi
  2916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2917. ac_c_werror_flag=$ac_save_c_werror_flag
  2918. fi
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2920. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2921. if test "$ac_test_CFLAGS" = set; then
  2922. CFLAGS=$ac_save_CFLAGS
  2923. elif test $ac_cv_prog_cc_g = yes; then
  2924. if test "$GCC" = yes; then
  2925. CFLAGS="-g -O2"
  2926. else
  2927. CFLAGS="-g"
  2928. fi
  2929. else
  2930. if test "$GCC" = yes; then
  2931. CFLAGS="-O2"
  2932. else
  2933. CFLAGS=
  2934. fi
  2935. fi
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2937. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2938. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2939. $as_echo_n "(cached) " >&6
  2940. else
  2941. ac_cv_prog_cc_c89=no
  2942. ac_save_CC=$CC
  2943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2944. /* end confdefs.h. */
  2945. #include <stdarg.h>
  2946. #include <stdio.h>
  2947. #include <sys/types.h>
  2948. #include <sys/stat.h>
  2949. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2950. struct buf { int x; };
  2951. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2952. static char *e (p, i)
  2953. char **p;
  2954. int i;
  2955. {
  2956. return p[i];
  2957. }
  2958. static char *f (char * (*g) (char **, int), char **p, ...)
  2959. {
  2960. char *s;
  2961. va_list v;
  2962. va_start (v,p);
  2963. s = g (p, va_arg (v,int));
  2964. va_end (v);
  2965. return s;
  2966. }
  2967. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2968. function prototypes and stuff, but not '\xHH' hex character constants.
  2969. These don't provoke an error unfortunately, instead are silently treated
  2970. as 'x'. The following induces an error, until -std is added to get
  2971. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2972. array size at least. It's necessary to write '\x00'==0 to get something
  2973. that's true only with -std. */
  2974. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2975. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2976. inside strings and character constants. */
  2977. #define FOO(x) 'x'
  2978. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2979. int test (int i, double x);
  2980. struct s1 {int (*f) (int a);};
  2981. struct s2 {int (*f) (double a);};
  2982. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2983. int argc;
  2984. char **argv;
  2985. int
  2986. main ()
  2987. {
  2988. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2989. ;
  2990. return 0;
  2991. }
  2992. _ACEOF
  2993. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2994. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2995. do
  2996. CC="$ac_save_CC $ac_arg"
  2997. if ac_fn_c_try_compile "$LINENO"; then :
  2998. ac_cv_prog_cc_c89=$ac_arg
  2999. fi
  3000. rm -f core conftest.err conftest.$ac_objext
  3001. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3002. done
  3003. rm -f conftest.$ac_ext
  3004. CC=$ac_save_CC
  3005. fi
  3006. # AC_CACHE_VAL
  3007. case "x$ac_cv_prog_cc_c89" in
  3008. x)
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3010. $as_echo "none needed" >&6; } ;;
  3011. xno)
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3013. $as_echo "unsupported" >&6; } ;;
  3014. *)
  3015. CC="$CC $ac_cv_prog_cc_c89"
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3017. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3018. esac
  3019. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3020. fi
  3021. ac_ext=c
  3022. ac_cpp='$CPP $CPPFLAGS'
  3023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3026. ac_ext=cpp
  3027. ac_cpp='$CXXCPP $CPPFLAGS'
  3028. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3029. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3030. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3031. if test -z "$CXX"; then
  3032. if test -n "$CCC"; then
  3033. CXX=$CCC
  3034. else
  3035. if test -n "$ac_tool_prefix"; then
  3036. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3037. do
  3038. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3039. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3041. $as_echo_n "checking for $ac_word... " >&6; }
  3042. if test "${ac_cv_prog_CXX+set}" = set; then :
  3043. $as_echo_n "(cached) " >&6
  3044. else
  3045. if test -n "$CXX"; then
  3046. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3047. else
  3048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3049. for as_dir in $PATH
  3050. do
  3051. IFS=$as_save_IFS
  3052. test -z "$as_dir" && as_dir=.
  3053. for ac_exec_ext in '' $ac_executable_extensions; do
  3054. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3055. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3057. break 2
  3058. fi
  3059. done
  3060. done
  3061. IFS=$as_save_IFS
  3062. fi
  3063. fi
  3064. CXX=$ac_cv_prog_CXX
  3065. if test -n "$CXX"; then
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3067. $as_echo "$CXX" >&6; }
  3068. else
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3070. $as_echo "no" >&6; }
  3071. fi
  3072. test -n "$CXX" && break
  3073. done
  3074. fi
  3075. if test -z "$CXX"; then
  3076. ac_ct_CXX=$CXX
  3077. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3078. do
  3079. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3080. set dummy $ac_prog; ac_word=$2
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3082. $as_echo_n "checking for $ac_word... " >&6; }
  3083. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. if test -n "$ac_ct_CXX"; then
  3087. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3088. else
  3089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3090. for as_dir in $PATH
  3091. do
  3092. IFS=$as_save_IFS
  3093. test -z "$as_dir" && as_dir=.
  3094. for ac_exec_ext in '' $ac_executable_extensions; do
  3095. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3096. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3098. break 2
  3099. fi
  3100. done
  3101. done
  3102. IFS=$as_save_IFS
  3103. fi
  3104. fi
  3105. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3106. if test -n "$ac_ct_CXX"; then
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3108. $as_echo "$ac_ct_CXX" >&6; }
  3109. else
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3111. $as_echo "no" >&6; }
  3112. fi
  3113. test -n "$ac_ct_CXX" && break
  3114. done
  3115. if test "x$ac_ct_CXX" = x; then
  3116. CXX="g++"
  3117. else
  3118. case $cross_compiling:$ac_tool_warned in
  3119. yes:)
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3121. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3122. ac_tool_warned=yes ;;
  3123. esac
  3124. CXX=$ac_ct_CXX
  3125. fi
  3126. fi
  3127. fi
  3128. fi
  3129. # Provide some information about the compiler.
  3130. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3131. set X $ac_compile
  3132. ac_compiler=$2
  3133. for ac_option in --version -v -V -qversion; do
  3134. { { ac_try="$ac_compiler $ac_option >&5"
  3135. case "(($ac_try" in
  3136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3137. *) ac_try_echo=$ac_try;;
  3138. esac
  3139. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3140. $as_echo "$ac_try_echo"; } >&5
  3141. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3142. ac_status=$?
  3143. if test -s conftest.err; then
  3144. sed '10a\
  3145. ... rest of stderr output deleted ...
  3146. 10q' conftest.err >conftest.er1
  3147. cat conftest.er1 >&5
  3148. rm -f conftest.er1 conftest.err
  3149. fi
  3150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3151. test $ac_status = 0; }
  3152. done
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3154. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3155. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3156. $as_echo_n "(cached) " >&6
  3157. else
  3158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3159. /* end confdefs.h. */
  3160. int
  3161. main ()
  3162. {
  3163. #ifndef __GNUC__
  3164. choke me
  3165. #endif
  3166. ;
  3167. return 0;
  3168. }
  3169. _ACEOF
  3170. if ac_fn_cxx_try_compile "$LINENO"; then :
  3171. ac_compiler_gnu=yes
  3172. else
  3173. ac_compiler_gnu=no
  3174. fi
  3175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3176. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3177. fi
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3179. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3180. if test $ac_compiler_gnu = yes; then
  3181. GXX=yes
  3182. else
  3183. GXX=
  3184. fi
  3185. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3186. ac_save_CXXFLAGS=$CXXFLAGS
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3188. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3189. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3190. $as_echo_n "(cached) " >&6
  3191. else
  3192. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3193. ac_cxx_werror_flag=yes
  3194. ac_cv_prog_cxx_g=no
  3195. CXXFLAGS="-g"
  3196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3197. /* end confdefs.h. */
  3198. int
  3199. main ()
  3200. {
  3201. ;
  3202. return 0;
  3203. }
  3204. _ACEOF
  3205. if ac_fn_cxx_try_compile "$LINENO"; then :
  3206. ac_cv_prog_cxx_g=yes
  3207. else
  3208. CXXFLAGS=""
  3209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3210. /* end confdefs.h. */
  3211. int
  3212. main ()
  3213. {
  3214. ;
  3215. return 0;
  3216. }
  3217. _ACEOF
  3218. if ac_fn_cxx_try_compile "$LINENO"; then :
  3219. else
  3220. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3221. CXXFLAGS="-g"
  3222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3223. /* end confdefs.h. */
  3224. int
  3225. main ()
  3226. {
  3227. ;
  3228. return 0;
  3229. }
  3230. _ACEOF
  3231. if ac_fn_cxx_try_compile "$LINENO"; then :
  3232. ac_cv_prog_cxx_g=yes
  3233. fi
  3234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3235. fi
  3236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3237. fi
  3238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3239. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3240. fi
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3242. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3243. if test "$ac_test_CXXFLAGS" = set; then
  3244. CXXFLAGS=$ac_save_CXXFLAGS
  3245. elif test $ac_cv_prog_cxx_g = yes; then
  3246. if test "$GXX" = yes; then
  3247. CXXFLAGS="-g -O2"
  3248. else
  3249. CXXFLAGS="-g"
  3250. fi
  3251. else
  3252. if test "$GXX" = yes; then
  3253. CXXFLAGS="-O2"
  3254. else
  3255. CXXFLAGS=
  3256. fi
  3257. fi
  3258. ac_ext=c
  3259. ac_cpp='$CPP $CPPFLAGS'
  3260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3263. # Make sure we can run config.sub.
  3264. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3265. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3267. $as_echo_n "checking build system type... " >&6; }
  3268. if test "${ac_cv_build+set}" = set; then :
  3269. $as_echo_n "(cached) " >&6
  3270. else
  3271. ac_build_alias=$build_alias
  3272. test "x$ac_build_alias" = x &&
  3273. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3274. test "x$ac_build_alias" = x &&
  3275. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3276. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3277. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3278. fi
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3280. $as_echo "$ac_cv_build" >&6; }
  3281. case $ac_cv_build in
  3282. *-*-*) ;;
  3283. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3284. esac
  3285. build=$ac_cv_build
  3286. ac_save_IFS=$IFS; IFS='-'
  3287. set x $ac_cv_build
  3288. shift
  3289. build_cpu=$1
  3290. build_vendor=$2
  3291. shift; shift
  3292. # Remember, the first character of IFS is used to create $*,
  3293. # except with old shells:
  3294. build_os=$*
  3295. IFS=$ac_save_IFS
  3296. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3298. $as_echo_n "checking host system type... " >&6; }
  3299. if test "${ac_cv_host+set}" = set; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. if test "x$host_alias" = x; then
  3303. ac_cv_host=$ac_cv_build
  3304. else
  3305. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3306. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3307. fi
  3308. fi
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3310. $as_echo "$ac_cv_host" >&6; }
  3311. case $ac_cv_host in
  3312. *-*-*) ;;
  3313. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3314. esac
  3315. host=$ac_cv_host
  3316. ac_save_IFS=$IFS; IFS='-'
  3317. set x $ac_cv_host
  3318. shift
  3319. host_cpu=$1
  3320. host_vendor=$2
  3321. shift; shift
  3322. # Remember, the first character of IFS is used to create $*,
  3323. # except with old shells:
  3324. host_os=$*
  3325. IFS=$ac_save_IFS
  3326. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3327. enable_win32_dll=yes
  3328. case $host in
  3329. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3330. if test -n "$ac_tool_prefix"; then
  3331. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3332. set dummy ${ac_tool_prefix}as; ac_word=$2
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3334. $as_echo_n "checking for $ac_word... " >&6; }
  3335. if test "${ac_cv_prog_AS+set}" = set; then :
  3336. $as_echo_n "(cached) " >&6
  3337. else
  3338. if test -n "$AS"; then
  3339. ac_cv_prog_AS="$AS" # Let the user override the test.
  3340. else
  3341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3342. for as_dir in $PATH
  3343. do
  3344. IFS=$as_save_IFS
  3345. test -z "$as_dir" && as_dir=.
  3346. for ac_exec_ext in '' $ac_executable_extensions; do
  3347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3348. ac_cv_prog_AS="${ac_tool_prefix}as"
  3349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3350. break 2
  3351. fi
  3352. done
  3353. done
  3354. IFS=$as_save_IFS
  3355. fi
  3356. fi
  3357. AS=$ac_cv_prog_AS
  3358. if test -n "$AS"; then
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3360. $as_echo "$AS" >&6; }
  3361. else
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3363. $as_echo "no" >&6; }
  3364. fi
  3365. fi
  3366. if test -z "$ac_cv_prog_AS"; then
  3367. ac_ct_AS=$AS
  3368. # Extract the first word of "as", so it can be a program name with args.
  3369. set dummy as; ac_word=$2
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3371. $as_echo_n "checking for $ac_word... " >&6; }
  3372. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  3373. $as_echo_n "(cached) " >&6
  3374. else
  3375. if test -n "$ac_ct_AS"; then
  3376. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3377. else
  3378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3379. for as_dir in $PATH
  3380. do
  3381. IFS=$as_save_IFS
  3382. test -z "$as_dir" && as_dir=.
  3383. for ac_exec_ext in '' $ac_executable_extensions; do
  3384. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3385. ac_cv_prog_ac_ct_AS="as"
  3386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3387. break 2
  3388. fi
  3389. done
  3390. done
  3391. IFS=$as_save_IFS
  3392. fi
  3393. fi
  3394. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3395. if test -n "$ac_ct_AS"; then
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3397. $as_echo "$ac_ct_AS" >&6; }
  3398. else
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3400. $as_echo "no" >&6; }
  3401. fi
  3402. if test "x$ac_ct_AS" = x; then
  3403. AS="false"
  3404. else
  3405. case $cross_compiling:$ac_tool_warned in
  3406. yes:)
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3408. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3409. ac_tool_warned=yes ;;
  3410. esac
  3411. AS=$ac_ct_AS
  3412. fi
  3413. else
  3414. AS="$ac_cv_prog_AS"
  3415. fi
  3416. if test -n "$ac_tool_prefix"; then
  3417. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3418. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3420. $as_echo_n "checking for $ac_word... " >&6; }
  3421. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  3422. $as_echo_n "(cached) " >&6
  3423. else
  3424. if test -n "$DLLTOOL"; then
  3425. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3426. else
  3427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3428. for as_dir in $PATH
  3429. do
  3430. IFS=$as_save_IFS
  3431. test -z "$as_dir" && as_dir=.
  3432. for ac_exec_ext in '' $ac_executable_extensions; do
  3433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3434. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3436. break 2
  3437. fi
  3438. done
  3439. done
  3440. IFS=$as_save_IFS
  3441. fi
  3442. fi
  3443. DLLTOOL=$ac_cv_prog_DLLTOOL
  3444. if test -n "$DLLTOOL"; then
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3446. $as_echo "$DLLTOOL" >&6; }
  3447. else
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3449. $as_echo "no" >&6; }
  3450. fi
  3451. fi
  3452. if test -z "$ac_cv_prog_DLLTOOL"; then
  3453. ac_ct_DLLTOOL=$DLLTOOL
  3454. # Extract the first word of "dlltool", so it can be a program name with args.
  3455. set dummy dlltool; ac_word=$2
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3457. $as_echo_n "checking for $ac_word... " >&6; }
  3458. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  3459. $as_echo_n "(cached) " >&6
  3460. else
  3461. if test -n "$ac_ct_DLLTOOL"; then
  3462. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3463. else
  3464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3465. for as_dir in $PATH
  3466. do
  3467. IFS=$as_save_IFS
  3468. test -z "$as_dir" && as_dir=.
  3469. for ac_exec_ext in '' $ac_executable_extensions; do
  3470. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3471. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3473. break 2
  3474. fi
  3475. done
  3476. done
  3477. IFS=$as_save_IFS
  3478. fi
  3479. fi
  3480. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3481. if test -n "$ac_ct_DLLTOOL"; then
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3483. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3484. else
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3486. $as_echo "no" >&6; }
  3487. fi
  3488. if test "x$ac_ct_DLLTOOL" = x; then
  3489. DLLTOOL="false"
  3490. else
  3491. case $cross_compiling:$ac_tool_warned in
  3492. yes:)
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3494. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3495. ac_tool_warned=yes ;;
  3496. esac
  3497. DLLTOOL=$ac_ct_DLLTOOL
  3498. fi
  3499. else
  3500. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3501. fi
  3502. if test -n "$ac_tool_prefix"; then
  3503. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3504. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3506. $as_echo_n "checking for $ac_word... " >&6; }
  3507. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  3508. $as_echo_n "(cached) " >&6
  3509. else
  3510. if test -n "$OBJDUMP"; then
  3511. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3512. else
  3513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3514. for as_dir in $PATH
  3515. do
  3516. IFS=$as_save_IFS
  3517. test -z "$as_dir" && as_dir=.
  3518. for ac_exec_ext in '' $ac_executable_extensions; do
  3519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3520. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3522. break 2
  3523. fi
  3524. done
  3525. done
  3526. IFS=$as_save_IFS
  3527. fi
  3528. fi
  3529. OBJDUMP=$ac_cv_prog_OBJDUMP
  3530. if test -n "$OBJDUMP"; then
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3532. $as_echo "$OBJDUMP" >&6; }
  3533. else
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3535. $as_echo "no" >&6; }
  3536. fi
  3537. fi
  3538. if test -z "$ac_cv_prog_OBJDUMP"; then
  3539. ac_ct_OBJDUMP=$OBJDUMP
  3540. # Extract the first word of "objdump", so it can be a program name with args.
  3541. set dummy objdump; ac_word=$2
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3543. $as_echo_n "checking for $ac_word... " >&6; }
  3544. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  3545. $as_echo_n "(cached) " >&6
  3546. else
  3547. if test -n "$ac_ct_OBJDUMP"; then
  3548. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3549. else
  3550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3551. for as_dir in $PATH
  3552. do
  3553. IFS=$as_save_IFS
  3554. test -z "$as_dir" && as_dir=.
  3555. for ac_exec_ext in '' $ac_executable_extensions; do
  3556. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3557. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3559. break 2
  3560. fi
  3561. done
  3562. done
  3563. IFS=$as_save_IFS
  3564. fi
  3565. fi
  3566. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3567. if test -n "$ac_ct_OBJDUMP"; then
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3569. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3570. else
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3572. $as_echo "no" >&6; }
  3573. fi
  3574. if test "x$ac_ct_OBJDUMP" = x; then
  3575. OBJDUMP="false"
  3576. else
  3577. case $cross_compiling:$ac_tool_warned in
  3578. yes:)
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3580. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3581. ac_tool_warned=yes ;;
  3582. esac
  3583. OBJDUMP=$ac_ct_OBJDUMP
  3584. fi
  3585. else
  3586. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3587. fi
  3588. ;;
  3589. esac
  3590. test -z "$AS" && AS=as
  3591. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3592. test -z "$OBJDUMP" && OBJDUMP=objdump
  3593. case `pwd` in
  3594. *\ * | *\ *)
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3596. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3597. esac
  3598. macro_version='2.4'
  3599. macro_revision='1.3293'
  3600. ltmain="$ac_aux_dir/ltmain.sh"
  3601. # Backslashify metacharacters that are still active within
  3602. # double-quoted strings.
  3603. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3604. # Same as above, but do not quote variable references.
  3605. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3606. # Sed substitution to delay expansion of an escaped shell variable in a
  3607. # double_quote_subst'ed string.
  3608. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3609. # Sed substitution to delay expansion of an escaped single quote.
  3610. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3611. # Sed substitution to avoid accidental globbing in evaled expressions
  3612. no_glob_subst='s/\*/\\\*/g'
  3613. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3614. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3615. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3617. $as_echo_n "checking how to print strings... " >&6; }
  3618. # Test print first, because it will be a builtin if present.
  3619. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3620. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3621. ECHO='print -r --'
  3622. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3623. ECHO='printf %s\n'
  3624. else
  3625. # Use this function as a fallback that always works.
  3626. func_fallback_echo ()
  3627. {
  3628. eval 'cat <<_LTECHO_EOF
  3629. $1
  3630. _LTECHO_EOF'
  3631. }
  3632. ECHO='func_fallback_echo'
  3633. fi
  3634. # func_echo_all arg...
  3635. # Invoke $ECHO with all args, space-separated.
  3636. func_echo_all ()
  3637. {
  3638. $ECHO ""
  3639. }
  3640. case "$ECHO" in
  3641. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3642. $as_echo "printf" >&6; } ;;
  3643. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3644. $as_echo "print -r" >&6; } ;;
  3645. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3646. $as_echo "cat" >&6; } ;;
  3647. esac
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3649. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3650. if test "${ac_cv_path_SED+set}" = set; then :
  3651. $as_echo_n "(cached) " >&6
  3652. else
  3653. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3654. for ac_i in 1 2 3 4 5 6 7; do
  3655. ac_script="$ac_script$as_nl$ac_script"
  3656. done
  3657. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3658. { ac_script=; unset ac_script;}
  3659. if test -z "$SED"; then
  3660. ac_path_SED_found=false
  3661. # Loop through the user's path and test for each of PROGNAME-LIST
  3662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3663. for as_dir in $PATH
  3664. do
  3665. IFS=$as_save_IFS
  3666. test -z "$as_dir" && as_dir=.
  3667. for ac_prog in sed gsed; do
  3668. for ac_exec_ext in '' $ac_executable_extensions; do
  3669. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3670. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3671. # Check for GNU ac_path_SED and select it if it is found.
  3672. # Check for GNU $ac_path_SED
  3673. case `"$ac_path_SED" --version 2>&1` in
  3674. *GNU*)
  3675. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3676. *)
  3677. ac_count=0
  3678. $as_echo_n 0123456789 >"conftest.in"
  3679. while :
  3680. do
  3681. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3682. mv "conftest.tmp" "conftest.in"
  3683. cp "conftest.in" "conftest.nl"
  3684. $as_echo '' >> "conftest.nl"
  3685. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3686. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3687. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3688. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3689. # Best one so far, save it but keep looking for a better one
  3690. ac_cv_path_SED="$ac_path_SED"
  3691. ac_path_SED_max=$ac_count
  3692. fi
  3693. # 10*(2^10) chars as input seems more than enough
  3694. test $ac_count -gt 10 && break
  3695. done
  3696. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3697. esac
  3698. $ac_path_SED_found && break 3
  3699. done
  3700. done
  3701. done
  3702. IFS=$as_save_IFS
  3703. if test -z "$ac_cv_path_SED"; then
  3704. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3705. fi
  3706. else
  3707. ac_cv_path_SED=$SED
  3708. fi
  3709. fi
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3711. $as_echo "$ac_cv_path_SED" >&6; }
  3712. SED="$ac_cv_path_SED"
  3713. rm -f conftest.sed
  3714. test -z "$SED" && SED=sed
  3715. Xsed="$SED -e 1s/^X//"
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3717. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3718. if test "${ac_cv_path_GREP+set}" = set; then :
  3719. $as_echo_n "(cached) " >&6
  3720. else
  3721. if test -z "$GREP"; then
  3722. ac_path_GREP_found=false
  3723. # Loop through the user's path and test for each of PROGNAME-LIST
  3724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3725. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3726. do
  3727. IFS=$as_save_IFS
  3728. test -z "$as_dir" && as_dir=.
  3729. for ac_prog in grep ggrep; do
  3730. for ac_exec_ext in '' $ac_executable_extensions; do
  3731. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3732. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3733. # Check for GNU ac_path_GREP and select it if it is found.
  3734. # Check for GNU $ac_path_GREP
  3735. case `"$ac_path_GREP" --version 2>&1` in
  3736. *GNU*)
  3737. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3738. *)
  3739. ac_count=0
  3740. $as_echo_n 0123456789 >"conftest.in"
  3741. while :
  3742. do
  3743. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3744. mv "conftest.tmp" "conftest.in"
  3745. cp "conftest.in" "conftest.nl"
  3746. $as_echo 'GREP' >> "conftest.nl"
  3747. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3748. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3749. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3750. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3751. # Best one so far, save it but keep looking for a better one
  3752. ac_cv_path_GREP="$ac_path_GREP"
  3753. ac_path_GREP_max=$ac_count
  3754. fi
  3755. # 10*(2^10) chars as input seems more than enough
  3756. test $ac_count -gt 10 && break
  3757. done
  3758. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3759. esac
  3760. $ac_path_GREP_found && break 3
  3761. done
  3762. done
  3763. done
  3764. IFS=$as_save_IFS
  3765. if test -z "$ac_cv_path_GREP"; then
  3766. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3767. fi
  3768. else
  3769. ac_cv_path_GREP=$GREP
  3770. fi
  3771. fi
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3773. $as_echo "$ac_cv_path_GREP" >&6; }
  3774. GREP="$ac_cv_path_GREP"
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3776. $as_echo_n "checking for egrep... " >&6; }
  3777. if test "${ac_cv_path_EGREP+set}" = set; then :
  3778. $as_echo_n "(cached) " >&6
  3779. else
  3780. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3781. then ac_cv_path_EGREP="$GREP -E"
  3782. else
  3783. if test -z "$EGREP"; then
  3784. ac_path_EGREP_found=false
  3785. # Loop through the user's path and test for each of PROGNAME-LIST
  3786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3787. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3788. do
  3789. IFS=$as_save_IFS
  3790. test -z "$as_dir" && as_dir=.
  3791. for ac_prog in egrep; do
  3792. for ac_exec_ext in '' $ac_executable_extensions; do
  3793. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3794. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3795. # Check for GNU ac_path_EGREP and select it if it is found.
  3796. # Check for GNU $ac_path_EGREP
  3797. case `"$ac_path_EGREP" --version 2>&1` in
  3798. *GNU*)
  3799. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3800. *)
  3801. ac_count=0
  3802. $as_echo_n 0123456789 >"conftest.in"
  3803. while :
  3804. do
  3805. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3806. mv "conftest.tmp" "conftest.in"
  3807. cp "conftest.in" "conftest.nl"
  3808. $as_echo 'EGREP' >> "conftest.nl"
  3809. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3810. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3811. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3812. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3813. # Best one so far, save it but keep looking for a better one
  3814. ac_cv_path_EGREP="$ac_path_EGREP"
  3815. ac_path_EGREP_max=$ac_count
  3816. fi
  3817. # 10*(2^10) chars as input seems more than enough
  3818. test $ac_count -gt 10 && break
  3819. done
  3820. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3821. esac
  3822. $ac_path_EGREP_found && break 3
  3823. done
  3824. done
  3825. done
  3826. IFS=$as_save_IFS
  3827. if test -z "$ac_cv_path_EGREP"; then
  3828. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3829. fi
  3830. else
  3831. ac_cv_path_EGREP=$EGREP
  3832. fi
  3833. fi
  3834. fi
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3836. $as_echo "$ac_cv_path_EGREP" >&6; }
  3837. EGREP="$ac_cv_path_EGREP"
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3839. $as_echo_n "checking for fgrep... " >&6; }
  3840. if test "${ac_cv_path_FGREP+set}" = set; then :
  3841. $as_echo_n "(cached) " >&6
  3842. else
  3843. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3844. then ac_cv_path_FGREP="$GREP -F"
  3845. else
  3846. if test -z "$FGREP"; then
  3847. ac_path_FGREP_found=false
  3848. # Loop through the user's path and test for each of PROGNAME-LIST
  3849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3850. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3851. do
  3852. IFS=$as_save_IFS
  3853. test -z "$as_dir" && as_dir=.
  3854. for ac_prog in fgrep; do
  3855. for ac_exec_ext in '' $ac_executable_extensions; do
  3856. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3857. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3858. # Check for GNU ac_path_FGREP and select it if it is found.
  3859. # Check for GNU $ac_path_FGREP
  3860. case `"$ac_path_FGREP" --version 2>&1` in
  3861. *GNU*)
  3862. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3863. *)
  3864. ac_count=0
  3865. $as_echo_n 0123456789 >"conftest.in"
  3866. while :
  3867. do
  3868. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3869. mv "conftest.tmp" "conftest.in"
  3870. cp "conftest.in" "conftest.nl"
  3871. $as_echo 'FGREP' >> "conftest.nl"
  3872. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3873. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3874. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3875. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3876. # Best one so far, save it but keep looking for a better one
  3877. ac_cv_path_FGREP="$ac_path_FGREP"
  3878. ac_path_FGREP_max=$ac_count
  3879. fi
  3880. # 10*(2^10) chars as input seems more than enough
  3881. test $ac_count -gt 10 && break
  3882. done
  3883. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3884. esac
  3885. $ac_path_FGREP_found && break 3
  3886. done
  3887. done
  3888. done
  3889. IFS=$as_save_IFS
  3890. if test -z "$ac_cv_path_FGREP"; then
  3891. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3892. fi
  3893. else
  3894. ac_cv_path_FGREP=$FGREP
  3895. fi
  3896. fi
  3897. fi
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3899. $as_echo "$ac_cv_path_FGREP" >&6; }
  3900. FGREP="$ac_cv_path_FGREP"
  3901. test -z "$GREP" && GREP=grep
  3902. # Check whether --with-gnu-ld was given.
  3903. if test "${with_gnu_ld+set}" = set; then :
  3904. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3905. else
  3906. with_gnu_ld=no
  3907. fi
  3908. ac_prog=ld
  3909. if test "$GCC" = yes; then
  3910. # Check if gcc -print-prog-name=ld gives a path.
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3912. $as_echo_n "checking for ld used by $CC... " >&6; }
  3913. case $host in
  3914. *-*-mingw*)
  3915. # gcc leaves a trailing carriage return which upsets mingw
  3916. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3917. *)
  3918. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3919. esac
  3920. case $ac_prog in
  3921. # Accept absolute paths.
  3922. [\\/]* | ?:[\\/]*)
  3923. re_direlt='/[^/][^/]*/\.\./'
  3924. # Canonicalize the pathname of ld
  3925. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3926. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3927. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3928. done
  3929. test -z "$LD" && LD="$ac_prog"
  3930. ;;
  3931. "")
  3932. # If it fails, then pretend we aren't using GCC.
  3933. ac_prog=ld
  3934. ;;
  3935. *)
  3936. # If it is relative, then search for the first ld in PATH.
  3937. with_gnu_ld=unknown
  3938. ;;
  3939. esac
  3940. elif test "$with_gnu_ld" = yes; then
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3942. $as_echo_n "checking for GNU ld... " >&6; }
  3943. else
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3945. $as_echo_n "checking for non-GNU ld... " >&6; }
  3946. fi
  3947. if test "${lt_cv_path_LD+set}" = set; then :
  3948. $as_echo_n "(cached) " >&6
  3949. else
  3950. if test -z "$LD"; then
  3951. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3952. for ac_dir in $PATH; do
  3953. IFS="$lt_save_ifs"
  3954. test -z "$ac_dir" && ac_dir=.
  3955. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3956. lt_cv_path_LD="$ac_dir/$ac_prog"
  3957. # Check to see if the program is GNU ld. I'd rather use --version,
  3958. # but apparently some variants of GNU ld only accept -v.
  3959. # Break only if it was the GNU/non-GNU ld that we prefer.
  3960. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3961. *GNU* | *'with BFD'*)
  3962. test "$with_gnu_ld" != no && break
  3963. ;;
  3964. *)
  3965. test "$with_gnu_ld" != yes && break
  3966. ;;
  3967. esac
  3968. fi
  3969. done
  3970. IFS="$lt_save_ifs"
  3971. else
  3972. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3973. fi
  3974. fi
  3975. LD="$lt_cv_path_LD"
  3976. if test -n "$LD"; then
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3978. $as_echo "$LD" >&6; }
  3979. else
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3981. $as_echo "no" >&6; }
  3982. fi
  3983. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3985. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3986. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  3987. $as_echo_n "(cached) " >&6
  3988. else
  3989. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3990. case `$LD -v 2>&1 </dev/null` in
  3991. *GNU* | *'with BFD'*)
  3992. lt_cv_prog_gnu_ld=yes
  3993. ;;
  3994. *)
  3995. lt_cv_prog_gnu_ld=no
  3996. ;;
  3997. esac
  3998. fi
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4000. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4001. with_gnu_ld=$lt_cv_prog_gnu_ld
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4003. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4004. if test "${lt_cv_path_NM+set}" = set; then :
  4005. $as_echo_n "(cached) " >&6
  4006. else
  4007. if test -n "$NM"; then
  4008. # Let the user override the test.
  4009. lt_cv_path_NM="$NM"
  4010. else
  4011. lt_nm_to_check="${ac_tool_prefix}nm"
  4012. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4013. lt_nm_to_check="$lt_nm_to_check nm"
  4014. fi
  4015. for lt_tmp_nm in $lt_nm_to_check; do
  4016. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4017. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4018. IFS="$lt_save_ifs"
  4019. test -z "$ac_dir" && ac_dir=.
  4020. tmp_nm="$ac_dir/$lt_tmp_nm"
  4021. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4022. # Check to see if the nm accepts a BSD-compat flag.
  4023. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4024. # nm: unknown option "B" ignored
  4025. # Tru64's nm complains that /dev/null is an invalid object file
  4026. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4027. */dev/null* | *'Invalid file or object type'*)
  4028. lt_cv_path_NM="$tmp_nm -B"
  4029. break
  4030. ;;
  4031. *)
  4032. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4033. */dev/null*)
  4034. lt_cv_path_NM="$tmp_nm -p"
  4035. break
  4036. ;;
  4037. *)
  4038. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4039. continue # so that we can try to find one that supports BSD flags
  4040. ;;
  4041. esac
  4042. ;;
  4043. esac
  4044. fi
  4045. done
  4046. IFS="$lt_save_ifs"
  4047. done
  4048. : ${lt_cv_path_NM=no}
  4049. fi
  4050. fi
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4052. $as_echo "$lt_cv_path_NM" >&6; }
  4053. if test "$lt_cv_path_NM" != "no"; then
  4054. NM="$lt_cv_path_NM"
  4055. else
  4056. # Didn't find any BSD compatible name lister, look for dumpbin.
  4057. if test -n "$DUMPBIN"; then :
  4058. # Let the user override the test.
  4059. else
  4060. if test -n "$ac_tool_prefix"; then
  4061. for ac_prog in dumpbin "link -dump"
  4062. do
  4063. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4064. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4066. $as_echo_n "checking for $ac_word... " >&6; }
  4067. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4068. $as_echo_n "(cached) " >&6
  4069. else
  4070. if test -n "$DUMPBIN"; then
  4071. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4072. else
  4073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4074. for as_dir in $PATH
  4075. do
  4076. IFS=$as_save_IFS
  4077. test -z "$as_dir" && as_dir=.
  4078. for ac_exec_ext in '' $ac_executable_extensions; do
  4079. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4080. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4081. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4082. break 2
  4083. fi
  4084. done
  4085. done
  4086. IFS=$as_save_IFS
  4087. fi
  4088. fi
  4089. DUMPBIN=$ac_cv_prog_DUMPBIN
  4090. if test -n "$DUMPBIN"; then
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4092. $as_echo "$DUMPBIN" >&6; }
  4093. else
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4095. $as_echo "no" >&6; }
  4096. fi
  4097. test -n "$DUMPBIN" && break
  4098. done
  4099. fi
  4100. if test -z "$DUMPBIN"; then
  4101. ac_ct_DUMPBIN=$DUMPBIN
  4102. for ac_prog in dumpbin "link -dump"
  4103. do
  4104. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4105. set dummy $ac_prog; ac_word=$2
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4107. $as_echo_n "checking for $ac_word... " >&6; }
  4108. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4109. $as_echo_n "(cached) " >&6
  4110. else
  4111. if test -n "$ac_ct_DUMPBIN"; then
  4112. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4113. else
  4114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4115. for as_dir in $PATH
  4116. do
  4117. IFS=$as_save_IFS
  4118. test -z "$as_dir" && as_dir=.
  4119. for ac_exec_ext in '' $ac_executable_extensions; do
  4120. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4121. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4123. break 2
  4124. fi
  4125. done
  4126. done
  4127. IFS=$as_save_IFS
  4128. fi
  4129. fi
  4130. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4131. if test -n "$ac_ct_DUMPBIN"; then
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4133. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4134. else
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4136. $as_echo "no" >&6; }
  4137. fi
  4138. test -n "$ac_ct_DUMPBIN" && break
  4139. done
  4140. if test "x$ac_ct_DUMPBIN" = x; then
  4141. DUMPBIN=":"
  4142. else
  4143. case $cross_compiling:$ac_tool_warned in
  4144. yes:)
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4146. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4147. ac_tool_warned=yes ;;
  4148. esac
  4149. DUMPBIN=$ac_ct_DUMPBIN
  4150. fi
  4151. fi
  4152. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4153. *COFF*)
  4154. DUMPBIN="$DUMPBIN -symbols"
  4155. ;;
  4156. *)
  4157. DUMPBIN=:
  4158. ;;
  4159. esac
  4160. fi
  4161. if test "$DUMPBIN" != ":"; then
  4162. NM="$DUMPBIN"
  4163. fi
  4164. fi
  4165. test -z "$NM" && NM=nm
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4167. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4168. if test "${lt_cv_nm_interface+set}" = set; then :
  4169. $as_echo_n "(cached) " >&6
  4170. else
  4171. lt_cv_nm_interface="BSD nm"
  4172. echo "int some_variable = 0;" > conftest.$ac_ext
  4173. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4174. (eval "$ac_compile" 2>conftest.err)
  4175. cat conftest.err >&5
  4176. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4177. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4178. cat conftest.err >&5
  4179. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4180. cat conftest.out >&5
  4181. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4182. lt_cv_nm_interface="MS dumpbin"
  4183. fi
  4184. rm -f conftest*
  4185. fi
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4187. $as_echo "$lt_cv_nm_interface" >&6; }
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4189. $as_echo_n "checking whether ln -s works... " >&6; }
  4190. LN_S=$as_ln_s
  4191. if test "$LN_S" = "ln -s"; then
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4193. $as_echo "yes" >&6; }
  4194. else
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4196. $as_echo "no, using $LN_S" >&6; }
  4197. fi
  4198. # find the maximum length of command line arguments
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4200. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4201. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4202. $as_echo_n "(cached) " >&6
  4203. else
  4204. i=0
  4205. teststring="ABCD"
  4206. case $build_os in
  4207. msdosdjgpp*)
  4208. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4209. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4210. # during glob expansion). Even if it were fixed, the result of this
  4211. # check would be larger than it should be.
  4212. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4213. ;;
  4214. gnu*)
  4215. # Under GNU Hurd, this test is not required because there is
  4216. # no limit to the length of command line arguments.
  4217. # Libtool will interpret -1 as no limit whatsoever
  4218. lt_cv_sys_max_cmd_len=-1;
  4219. ;;
  4220. cygwin* | mingw* | cegcc*)
  4221. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4222. # about 5 minutes as the teststring grows exponentially.
  4223. # Worse, since 9x/ME are not pre-emptively multitasking,
  4224. # you end up with a "frozen" computer, even though with patience
  4225. # the test eventually succeeds (with a max line length of 256k).
  4226. # Instead, let's just punt: use the minimum linelength reported by
  4227. # all of the supported platforms: 8192 (on NT/2K/XP).
  4228. lt_cv_sys_max_cmd_len=8192;
  4229. ;;
  4230. mint*)
  4231. # On MiNT this can take a long time and run out of memory.
  4232. lt_cv_sys_max_cmd_len=8192;
  4233. ;;
  4234. amigaos*)
  4235. # On AmigaOS with pdksh, this test takes hours, literally.
  4236. # So we just punt and use a minimum line length of 8192.
  4237. lt_cv_sys_max_cmd_len=8192;
  4238. ;;
  4239. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4240. # This has been around since 386BSD, at least. Likely further.
  4241. if test -x /sbin/sysctl; then
  4242. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4243. elif test -x /usr/sbin/sysctl; then
  4244. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4245. else
  4246. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4247. fi
  4248. # And add a safety zone
  4249. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4250. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4251. ;;
  4252. interix*)
  4253. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4254. lt_cv_sys_max_cmd_len=196608
  4255. ;;
  4256. osf*)
  4257. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4258. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4259. # nice to cause kernel panics so lets avoid the loop below.
  4260. # First set a reasonable default.
  4261. lt_cv_sys_max_cmd_len=16384
  4262. #
  4263. if test -x /sbin/sysconfig; then
  4264. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4265. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4266. esac
  4267. fi
  4268. ;;
  4269. sco3.2v5*)
  4270. lt_cv_sys_max_cmd_len=102400
  4271. ;;
  4272. sysv5* | sco5v6* | sysv4.2uw2*)
  4273. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4274. if test -n "$kargmax"; then
  4275. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4276. else
  4277. lt_cv_sys_max_cmd_len=32768
  4278. fi
  4279. ;;
  4280. *)
  4281. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4282. if test -n "$lt_cv_sys_max_cmd_len"; then
  4283. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4284. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4285. else
  4286. # Make teststring a little bigger before we do anything with it.
  4287. # a 1K string should be a reasonable start.
  4288. for i in 1 2 3 4 5 6 7 8 ; do
  4289. teststring=$teststring$teststring
  4290. done
  4291. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4292. # If test is not a shell built-in, we'll probably end up computing a
  4293. # maximum length that is only half of the actual maximum length, but
  4294. # we can't tell.
  4295. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4296. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4297. test $i != 17 # 1/2 MB should be enough
  4298. do
  4299. i=`expr $i + 1`
  4300. teststring=$teststring$teststring
  4301. done
  4302. # Only check the string length outside the loop.
  4303. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4304. teststring=
  4305. # Add a significant safety factor because C++ compilers can tack on
  4306. # massive amounts of additional arguments before passing them to the
  4307. # linker. It appears as though 1/2 is a usable value.
  4308. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4309. fi
  4310. ;;
  4311. esac
  4312. fi
  4313. if test -n $lt_cv_sys_max_cmd_len ; then
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4315. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4316. else
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4318. $as_echo "none" >&6; }
  4319. fi
  4320. max_cmd_len=$lt_cv_sys_max_cmd_len
  4321. : ${CP="cp -f"}
  4322. : ${MV="mv -f"}
  4323. : ${RM="rm -f"}
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4325. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4326. # Try some XSI features
  4327. xsi_shell=no
  4328. ( _lt_dummy="a/b/c"
  4329. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4330. = c,a/b,b/c, \
  4331. && eval 'test $(( 1 + 1 )) -eq 2 \
  4332. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4333. && xsi_shell=yes
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4335. $as_echo "$xsi_shell" >&6; }
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4337. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4338. lt_shell_append=no
  4339. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4340. >/dev/null 2>&1 \
  4341. && lt_shell_append=yes
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4343. $as_echo "$lt_shell_append" >&6; }
  4344. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4345. lt_unset=unset
  4346. else
  4347. lt_unset=false
  4348. fi
  4349. # test EBCDIC or ASCII
  4350. case `echo X|tr X '\101'` in
  4351. A) # ASCII based system
  4352. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4353. lt_SP2NL='tr \040 \012'
  4354. lt_NL2SP='tr \015\012 \040\040'
  4355. ;;
  4356. *) # EBCDIC based system
  4357. lt_SP2NL='tr \100 \n'
  4358. lt_NL2SP='tr \r\n \100\100'
  4359. ;;
  4360. esac
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4362. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4363. if test "${lt_cv_to_host_file_cmd+set}" = set; then :
  4364. $as_echo_n "(cached) " >&6
  4365. else
  4366. case $host in
  4367. *-*-mingw* )
  4368. case $build in
  4369. *-*-mingw* ) # actually msys
  4370. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4371. ;;
  4372. *-*-cygwin* )
  4373. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4374. ;;
  4375. * ) # otherwise, assume *nix
  4376. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4377. ;;
  4378. esac
  4379. ;;
  4380. *-*-cygwin* )
  4381. case $build in
  4382. *-*-mingw* ) # actually msys
  4383. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4384. ;;
  4385. *-*-cygwin* )
  4386. lt_cv_to_host_file_cmd=func_convert_file_noop
  4387. ;;
  4388. * ) # otherwise, assume *nix
  4389. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4390. ;;
  4391. esac
  4392. ;;
  4393. * ) # unhandled hosts (and "normal" native builds)
  4394. lt_cv_to_host_file_cmd=func_convert_file_noop
  4395. ;;
  4396. esac
  4397. fi
  4398. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4400. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4402. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4403. if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
  4404. $as_echo_n "(cached) " >&6
  4405. else
  4406. #assume ordinary cross tools, or native build.
  4407. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4408. case $host in
  4409. *-*-mingw* )
  4410. case $build in
  4411. *-*-mingw* ) # actually msys
  4412. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4413. ;;
  4414. esac
  4415. ;;
  4416. esac
  4417. fi
  4418. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4420. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4422. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4423. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4424. $as_echo_n "(cached) " >&6
  4425. else
  4426. lt_cv_ld_reload_flag='-r'
  4427. fi
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4429. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4430. reload_flag=$lt_cv_ld_reload_flag
  4431. case $reload_flag in
  4432. "" | " "*) ;;
  4433. *) reload_flag=" $reload_flag" ;;
  4434. esac
  4435. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4436. case $host_os in
  4437. cygwin* | mingw* | pw32* | cegcc*)
  4438. if test "$GCC" != yes; then
  4439. reload_cmds=false
  4440. fi
  4441. ;;
  4442. darwin*)
  4443. if test "$GCC" = yes; then
  4444. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4445. else
  4446. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4447. fi
  4448. ;;
  4449. esac
  4450. if test -n "$ac_tool_prefix"; then
  4451. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4452. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4454. $as_echo_n "checking for $ac_word... " >&6; }
  4455. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4456. $as_echo_n "(cached) " >&6
  4457. else
  4458. if test -n "$OBJDUMP"; then
  4459. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4460. else
  4461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4462. for as_dir in $PATH
  4463. do
  4464. IFS=$as_save_IFS
  4465. test -z "$as_dir" && as_dir=.
  4466. for ac_exec_ext in '' $ac_executable_extensions; do
  4467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4468. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4470. break 2
  4471. fi
  4472. done
  4473. done
  4474. IFS=$as_save_IFS
  4475. fi
  4476. fi
  4477. OBJDUMP=$ac_cv_prog_OBJDUMP
  4478. if test -n "$OBJDUMP"; then
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4480. $as_echo "$OBJDUMP" >&6; }
  4481. else
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4483. $as_echo "no" >&6; }
  4484. fi
  4485. fi
  4486. if test -z "$ac_cv_prog_OBJDUMP"; then
  4487. ac_ct_OBJDUMP=$OBJDUMP
  4488. # Extract the first word of "objdump", so it can be a program name with args.
  4489. set dummy objdump; ac_word=$2
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4491. $as_echo_n "checking for $ac_word... " >&6; }
  4492. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4493. $as_echo_n "(cached) " >&6
  4494. else
  4495. if test -n "$ac_ct_OBJDUMP"; then
  4496. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4497. else
  4498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4499. for as_dir in $PATH
  4500. do
  4501. IFS=$as_save_IFS
  4502. test -z "$as_dir" && as_dir=.
  4503. for ac_exec_ext in '' $ac_executable_extensions; do
  4504. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4505. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4506. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4507. break 2
  4508. fi
  4509. done
  4510. done
  4511. IFS=$as_save_IFS
  4512. fi
  4513. fi
  4514. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4515. if test -n "$ac_ct_OBJDUMP"; then
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4517. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4518. else
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4520. $as_echo "no" >&6; }
  4521. fi
  4522. if test "x$ac_ct_OBJDUMP" = x; then
  4523. OBJDUMP="false"
  4524. else
  4525. case $cross_compiling:$ac_tool_warned in
  4526. yes:)
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4528. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4529. ac_tool_warned=yes ;;
  4530. esac
  4531. OBJDUMP=$ac_ct_OBJDUMP
  4532. fi
  4533. else
  4534. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4535. fi
  4536. test -z "$OBJDUMP" && OBJDUMP=objdump
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4538. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4539. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4543. lt_cv_file_magic_test_file=
  4544. lt_cv_deplibs_check_method='unknown'
  4545. # Need to set the preceding variable on all platforms that support
  4546. # interlibrary dependencies.
  4547. # 'none' -- dependencies not supported.
  4548. # `unknown' -- same as none, but documents that we really don't know.
  4549. # 'pass_all' -- all dependencies passed with no checks.
  4550. # 'test_compile' -- check by making test program.
  4551. # 'file_magic [[regex]]' -- check by looking for files in library path
  4552. # which responds to the $file_magic_cmd with a given extended regex.
  4553. # If you have `file' or equivalent on your system and you're not sure
  4554. # whether `pass_all' will *always* work, you probably want this one.
  4555. case $host_os in
  4556. aix[4-9]*)
  4557. lt_cv_deplibs_check_method=pass_all
  4558. ;;
  4559. beos*)
  4560. lt_cv_deplibs_check_method=pass_all
  4561. ;;
  4562. bsdi[45]*)
  4563. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4564. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4565. lt_cv_file_magic_test_file=/shlib/libc.so
  4566. ;;
  4567. cygwin*)
  4568. # func_win32_libid is a shell function defined in ltmain.sh
  4569. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4570. lt_cv_file_magic_cmd='func_win32_libid'
  4571. ;;
  4572. mingw* | pw32*)
  4573. # Base MSYS/MinGW do not provide the 'file' command needed by
  4574. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4575. # unless we find 'file', for example because we are cross-compiling.
  4576. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4577. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4578. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4579. lt_cv_file_magic_cmd='func_win32_libid'
  4580. else
  4581. # Keep this pattern in sync with the one in func_win32_libid.
  4582. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4583. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4584. fi
  4585. ;;
  4586. cegcc*)
  4587. # use the weaker test based on 'objdump'. See mingw*.
  4588. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4589. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4590. ;;
  4591. darwin* | rhapsody*)
  4592. lt_cv_deplibs_check_method=pass_all
  4593. ;;
  4594. freebsd* | dragonfly*)
  4595. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4596. case $host_cpu in
  4597. i*86 )
  4598. # Not sure whether the presence of OpenBSD here was a mistake.
  4599. # Let's accept both of them until this is cleared up.
  4600. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4601. lt_cv_file_magic_cmd=/usr/bin/file
  4602. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4603. ;;
  4604. esac
  4605. else
  4606. lt_cv_deplibs_check_method=pass_all
  4607. fi
  4608. ;;
  4609. gnu*)
  4610. lt_cv_deplibs_check_method=pass_all
  4611. ;;
  4612. haiku*)
  4613. lt_cv_deplibs_check_method=pass_all
  4614. ;;
  4615. hpux10.20* | hpux11*)
  4616. lt_cv_file_magic_cmd=/usr/bin/file
  4617. case $host_cpu in
  4618. ia64*)
  4619. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4620. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4621. ;;
  4622. hppa*64*)
  4623. 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]'
  4624. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4625. ;;
  4626. *)
  4627. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4628. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4629. ;;
  4630. esac
  4631. ;;
  4632. interix[3-9]*)
  4633. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4634. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4635. ;;
  4636. irix5* | irix6* | nonstopux*)
  4637. case $LD in
  4638. *-32|*"-32 ") libmagic=32-bit;;
  4639. *-n32|*"-n32 ") libmagic=N32;;
  4640. *-64|*"-64 ") libmagic=64-bit;;
  4641. *) libmagic=never-match;;
  4642. esac
  4643. lt_cv_deplibs_check_method=pass_all
  4644. ;;
  4645. # This must be Linux ELF.
  4646. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4647. lt_cv_deplibs_check_method=pass_all
  4648. ;;
  4649. netbsd*)
  4650. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4651. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4652. else
  4653. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4654. fi
  4655. ;;
  4656. newos6*)
  4657. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4658. lt_cv_file_magic_cmd=/usr/bin/file
  4659. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4660. ;;
  4661. *nto* | *qnx*)
  4662. lt_cv_deplibs_check_method=pass_all
  4663. ;;
  4664. openbsd*)
  4665. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4666. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4667. else
  4668. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4669. fi
  4670. ;;
  4671. osf3* | osf4* | osf5*)
  4672. lt_cv_deplibs_check_method=pass_all
  4673. ;;
  4674. rdos*)
  4675. lt_cv_deplibs_check_method=pass_all
  4676. ;;
  4677. solaris*)
  4678. lt_cv_deplibs_check_method=pass_all
  4679. ;;
  4680. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4681. lt_cv_deplibs_check_method=pass_all
  4682. ;;
  4683. sysv4 | sysv4.3*)
  4684. case $host_vendor in
  4685. motorola)
  4686. 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]'
  4687. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4688. ;;
  4689. ncr)
  4690. lt_cv_deplibs_check_method=pass_all
  4691. ;;
  4692. sequent)
  4693. lt_cv_file_magic_cmd='/bin/file'
  4694. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4695. ;;
  4696. sni)
  4697. lt_cv_file_magic_cmd='/bin/file'
  4698. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4699. lt_cv_file_magic_test_file=/lib/libc.so
  4700. ;;
  4701. siemens)
  4702. lt_cv_deplibs_check_method=pass_all
  4703. ;;
  4704. pc)
  4705. lt_cv_deplibs_check_method=pass_all
  4706. ;;
  4707. esac
  4708. ;;
  4709. tpf*)
  4710. lt_cv_deplibs_check_method=pass_all
  4711. ;;
  4712. esac
  4713. fi
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4715. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4716. file_magic_glob=
  4717. want_nocaseglob=no
  4718. if test "$build" = "$host"; then
  4719. case $host_os in
  4720. mingw* | pw32*)
  4721. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4722. want_nocaseglob=yes
  4723. else
  4724. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4725. fi
  4726. ;;
  4727. esac
  4728. fi
  4729. file_magic_cmd=$lt_cv_file_magic_cmd
  4730. deplibs_check_method=$lt_cv_deplibs_check_method
  4731. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4732. if test -n "$ac_tool_prefix"; then
  4733. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4734. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4736. $as_echo_n "checking for $ac_word... " >&6; }
  4737. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  4738. $as_echo_n "(cached) " >&6
  4739. else
  4740. if test -n "$DLLTOOL"; then
  4741. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4742. else
  4743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4744. for as_dir in $PATH
  4745. do
  4746. IFS=$as_save_IFS
  4747. test -z "$as_dir" && as_dir=.
  4748. for ac_exec_ext in '' $ac_executable_extensions; do
  4749. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4750. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4752. break 2
  4753. fi
  4754. done
  4755. done
  4756. IFS=$as_save_IFS
  4757. fi
  4758. fi
  4759. DLLTOOL=$ac_cv_prog_DLLTOOL
  4760. if test -n "$DLLTOOL"; then
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4762. $as_echo "$DLLTOOL" >&6; }
  4763. else
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4765. $as_echo "no" >&6; }
  4766. fi
  4767. fi
  4768. if test -z "$ac_cv_prog_DLLTOOL"; then
  4769. ac_ct_DLLTOOL=$DLLTOOL
  4770. # Extract the first word of "dlltool", so it can be a program name with args.
  4771. set dummy dlltool; ac_word=$2
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4773. $as_echo_n "checking for $ac_word... " >&6; }
  4774. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  4775. $as_echo_n "(cached) " >&6
  4776. else
  4777. if test -n "$ac_ct_DLLTOOL"; then
  4778. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4779. else
  4780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4781. for as_dir in $PATH
  4782. do
  4783. IFS=$as_save_IFS
  4784. test -z "$as_dir" && as_dir=.
  4785. for ac_exec_ext in '' $ac_executable_extensions; do
  4786. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4787. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4789. break 2
  4790. fi
  4791. done
  4792. done
  4793. IFS=$as_save_IFS
  4794. fi
  4795. fi
  4796. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4797. if test -n "$ac_ct_DLLTOOL"; then
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4799. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4800. else
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4802. $as_echo "no" >&6; }
  4803. fi
  4804. if test "x$ac_ct_DLLTOOL" = x; then
  4805. DLLTOOL="false"
  4806. else
  4807. case $cross_compiling:$ac_tool_warned in
  4808. yes:)
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4811. ac_tool_warned=yes ;;
  4812. esac
  4813. DLLTOOL=$ac_ct_DLLTOOL
  4814. fi
  4815. else
  4816. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4817. fi
  4818. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4820. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4821. if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
  4822. $as_echo_n "(cached) " >&6
  4823. else
  4824. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4825. case $host_os in
  4826. cygwin* | mingw* | pw32* | cegcc*)
  4827. # two different shell functions defined in ltmain.sh
  4828. # decide which to use based on capabilities of $DLLTOOL
  4829. case `$DLLTOOL --help 2>&1` in
  4830. *--identify-strict*)
  4831. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4832. ;;
  4833. *)
  4834. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4835. ;;
  4836. esac
  4837. ;;
  4838. *)
  4839. # fallback: assume linklib IS sharedlib
  4840. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4841. ;;
  4842. esac
  4843. fi
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4845. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4846. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4847. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4848. if test -n "$ac_tool_prefix"; then
  4849. for ac_prog in ar
  4850. do
  4851. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4852. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4854. $as_echo_n "checking for $ac_word... " >&6; }
  4855. if test "${ac_cv_prog_AR+set}" = set; then :
  4856. $as_echo_n "(cached) " >&6
  4857. else
  4858. if test -n "$AR"; then
  4859. ac_cv_prog_AR="$AR" # Let the user override the test.
  4860. else
  4861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4862. for as_dir in $PATH
  4863. do
  4864. IFS=$as_save_IFS
  4865. test -z "$as_dir" && as_dir=.
  4866. for ac_exec_ext in '' $ac_executable_extensions; do
  4867. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4868. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4870. break 2
  4871. fi
  4872. done
  4873. done
  4874. IFS=$as_save_IFS
  4875. fi
  4876. fi
  4877. AR=$ac_cv_prog_AR
  4878. if test -n "$AR"; then
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4880. $as_echo "$AR" >&6; }
  4881. else
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4883. $as_echo "no" >&6; }
  4884. fi
  4885. test -n "$AR" && break
  4886. done
  4887. fi
  4888. if test -z "$AR"; then
  4889. ac_ct_AR=$AR
  4890. for ac_prog in ar
  4891. do
  4892. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4893. set dummy $ac_prog; ac_word=$2
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4895. $as_echo_n "checking for $ac_word... " >&6; }
  4896. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4897. $as_echo_n "(cached) " >&6
  4898. else
  4899. if test -n "$ac_ct_AR"; then
  4900. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4901. else
  4902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4903. for as_dir in $PATH
  4904. do
  4905. IFS=$as_save_IFS
  4906. test -z "$as_dir" && as_dir=.
  4907. for ac_exec_ext in '' $ac_executable_extensions; do
  4908. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4909. ac_cv_prog_ac_ct_AR="$ac_prog"
  4910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4911. break 2
  4912. fi
  4913. done
  4914. done
  4915. IFS=$as_save_IFS
  4916. fi
  4917. fi
  4918. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4919. if test -n "$ac_ct_AR"; then
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4921. $as_echo "$ac_ct_AR" >&6; }
  4922. else
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4924. $as_echo "no" >&6; }
  4925. fi
  4926. test -n "$ac_ct_AR" && break
  4927. done
  4928. if test "x$ac_ct_AR" = x; then
  4929. AR="false"
  4930. else
  4931. case $cross_compiling:$ac_tool_warned in
  4932. yes:)
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4934. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4935. ac_tool_warned=yes ;;
  4936. esac
  4937. AR=$ac_ct_AR
  4938. fi
  4939. fi
  4940. : ${AR=ar}
  4941. : ${AR_FLAGS=cru}
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4943. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4944. if test "${lt_cv_ar_at_file+set}" = set; then :
  4945. $as_echo_n "(cached) " >&6
  4946. else
  4947. lt_cv_ar_at_file=no
  4948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4949. /* end confdefs.h. */
  4950. int
  4951. main ()
  4952. {
  4953. ;
  4954. return 0;
  4955. }
  4956. _ACEOF
  4957. if ac_fn_c_try_compile "$LINENO"; then :
  4958. echo conftest.$ac_objext > conftest.lst
  4959. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4960. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4961. (eval $lt_ar_try) 2>&5
  4962. ac_status=$?
  4963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4964. test $ac_status = 0; }
  4965. if test "$ac_status" -eq 0; then
  4966. # Ensure the archiver fails upon bogus file names.
  4967. rm -f conftest.$ac_objext libconftest.a
  4968. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4969. (eval $lt_ar_try) 2>&5
  4970. ac_status=$?
  4971. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4972. test $ac_status = 0; }
  4973. if test "$ac_status" -ne 0; then
  4974. lt_cv_ar_at_file=@
  4975. fi
  4976. fi
  4977. rm -f conftest.* libconftest.a
  4978. fi
  4979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4980. fi
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4982. $as_echo "$lt_cv_ar_at_file" >&6; }
  4983. if test "x$lt_cv_ar_at_file" = xno; then
  4984. archiver_list_spec=
  4985. else
  4986. archiver_list_spec=$lt_cv_ar_at_file
  4987. fi
  4988. if test -n "$ac_tool_prefix"; then
  4989. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4990. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4992. $as_echo_n "checking for $ac_word... " >&6; }
  4993. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4994. $as_echo_n "(cached) " >&6
  4995. else
  4996. if test -n "$STRIP"; then
  4997. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4998. else
  4999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5000. for as_dir in $PATH
  5001. do
  5002. IFS=$as_save_IFS
  5003. test -z "$as_dir" && as_dir=.
  5004. for ac_exec_ext in '' $ac_executable_extensions; do
  5005. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5006. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5008. break 2
  5009. fi
  5010. done
  5011. done
  5012. IFS=$as_save_IFS
  5013. fi
  5014. fi
  5015. STRIP=$ac_cv_prog_STRIP
  5016. if test -n "$STRIP"; then
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5018. $as_echo "$STRIP" >&6; }
  5019. else
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5021. $as_echo "no" >&6; }
  5022. fi
  5023. fi
  5024. if test -z "$ac_cv_prog_STRIP"; then
  5025. ac_ct_STRIP=$STRIP
  5026. # Extract the first word of "strip", so it can be a program name with args.
  5027. set dummy strip; ac_word=$2
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5029. $as_echo_n "checking for $ac_word... " >&6; }
  5030. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5031. $as_echo_n "(cached) " >&6
  5032. else
  5033. if test -n "$ac_ct_STRIP"; then
  5034. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5035. else
  5036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5037. for as_dir in $PATH
  5038. do
  5039. IFS=$as_save_IFS
  5040. test -z "$as_dir" && as_dir=.
  5041. for ac_exec_ext in '' $ac_executable_extensions; do
  5042. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5043. ac_cv_prog_ac_ct_STRIP="strip"
  5044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5045. break 2
  5046. fi
  5047. done
  5048. done
  5049. IFS=$as_save_IFS
  5050. fi
  5051. fi
  5052. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5053. if test -n "$ac_ct_STRIP"; then
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5055. $as_echo "$ac_ct_STRIP" >&6; }
  5056. else
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5058. $as_echo "no" >&6; }
  5059. fi
  5060. if test "x$ac_ct_STRIP" = x; then
  5061. STRIP=":"
  5062. else
  5063. case $cross_compiling:$ac_tool_warned in
  5064. yes:)
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5066. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5067. ac_tool_warned=yes ;;
  5068. esac
  5069. STRIP=$ac_ct_STRIP
  5070. fi
  5071. else
  5072. STRIP="$ac_cv_prog_STRIP"
  5073. fi
  5074. test -z "$STRIP" && STRIP=:
  5075. if test -n "$ac_tool_prefix"; then
  5076. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5077. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5079. $as_echo_n "checking for $ac_word... " >&6; }
  5080. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5081. $as_echo_n "(cached) " >&6
  5082. else
  5083. if test -n "$RANLIB"; then
  5084. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5085. else
  5086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5087. for as_dir in $PATH
  5088. do
  5089. IFS=$as_save_IFS
  5090. test -z "$as_dir" && as_dir=.
  5091. for ac_exec_ext in '' $ac_executable_extensions; do
  5092. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5093. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5095. break 2
  5096. fi
  5097. done
  5098. done
  5099. IFS=$as_save_IFS
  5100. fi
  5101. fi
  5102. RANLIB=$ac_cv_prog_RANLIB
  5103. if test -n "$RANLIB"; then
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5105. $as_echo "$RANLIB" >&6; }
  5106. else
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5108. $as_echo "no" >&6; }
  5109. fi
  5110. fi
  5111. if test -z "$ac_cv_prog_RANLIB"; then
  5112. ac_ct_RANLIB=$RANLIB
  5113. # Extract the first word of "ranlib", so it can be a program name with args.
  5114. set dummy ranlib; ac_word=$2
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5116. $as_echo_n "checking for $ac_word... " >&6; }
  5117. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5118. $as_echo_n "(cached) " >&6
  5119. else
  5120. if test -n "$ac_ct_RANLIB"; then
  5121. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5122. else
  5123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5124. for as_dir in $PATH
  5125. do
  5126. IFS=$as_save_IFS
  5127. test -z "$as_dir" && as_dir=.
  5128. for ac_exec_ext in '' $ac_executable_extensions; do
  5129. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5130. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5132. break 2
  5133. fi
  5134. done
  5135. done
  5136. IFS=$as_save_IFS
  5137. fi
  5138. fi
  5139. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5140. if test -n "$ac_ct_RANLIB"; then
  5141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5142. $as_echo "$ac_ct_RANLIB" >&6; }
  5143. else
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5145. $as_echo "no" >&6; }
  5146. fi
  5147. if test "x$ac_ct_RANLIB" = x; then
  5148. RANLIB=":"
  5149. else
  5150. case $cross_compiling:$ac_tool_warned in
  5151. yes:)
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5153. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5154. ac_tool_warned=yes ;;
  5155. esac
  5156. RANLIB=$ac_ct_RANLIB
  5157. fi
  5158. else
  5159. RANLIB="$ac_cv_prog_RANLIB"
  5160. fi
  5161. test -z "$RANLIB" && RANLIB=:
  5162. # Determine commands to create old-style static archives.
  5163. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5164. old_postinstall_cmds='chmod 644 $oldlib'
  5165. old_postuninstall_cmds=
  5166. if test -n "$RANLIB"; then
  5167. case $host_os in
  5168. openbsd*)
  5169. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5170. ;;
  5171. *)
  5172. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5173. ;;
  5174. esac
  5175. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5176. fi
  5177. case $host_os in
  5178. darwin*)
  5179. lock_old_archive_extraction=yes ;;
  5180. *)
  5181. lock_old_archive_extraction=no ;;
  5182. esac
  5183. for ac_prog in gawk mawk nawk awk
  5184. do
  5185. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5186. set dummy $ac_prog; ac_word=$2
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5188. $as_echo_n "checking for $ac_word... " >&6; }
  5189. if test "${ac_cv_prog_AWK+set}" = set; then :
  5190. $as_echo_n "(cached) " >&6
  5191. else
  5192. if test -n "$AWK"; then
  5193. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5194. else
  5195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5196. for as_dir in $PATH
  5197. do
  5198. IFS=$as_save_IFS
  5199. test -z "$as_dir" && as_dir=.
  5200. for ac_exec_ext in '' $ac_executable_extensions; do
  5201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5202. ac_cv_prog_AWK="$ac_prog"
  5203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5204. break 2
  5205. fi
  5206. done
  5207. done
  5208. IFS=$as_save_IFS
  5209. fi
  5210. fi
  5211. AWK=$ac_cv_prog_AWK
  5212. if test -n "$AWK"; then
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5214. $as_echo "$AWK" >&6; }
  5215. else
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5217. $as_echo "no" >&6; }
  5218. fi
  5219. test -n "$AWK" && break
  5220. done
  5221. # If no C compiler was specified, use CC.
  5222. LTCC=${LTCC-"$CC"}
  5223. # If no C compiler flags were specified, use CFLAGS.
  5224. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5225. # Allow CC to be a program name with arguments.
  5226. compiler=$CC
  5227. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5229. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5230. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. # These are sane defaults that work on at least a few old systems.
  5234. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5235. # Character class describing NM global symbol codes.
  5236. symcode='[BCDEGRST]'
  5237. # Regexp to match symbols that can be accessed directly from C.
  5238. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5239. # Define system-specific variables.
  5240. case $host_os in
  5241. aix*)
  5242. symcode='[BCDT]'
  5243. ;;
  5244. cygwin* | mingw* | pw32* | cegcc*)
  5245. symcode='[ABCDGISTW]'
  5246. ;;
  5247. hpux*)
  5248. if test "$host_cpu" = ia64; then
  5249. symcode='[ABCDEGRST]'
  5250. fi
  5251. ;;
  5252. irix* | nonstopux*)
  5253. symcode='[BCDEGRST]'
  5254. ;;
  5255. osf*)
  5256. symcode='[BCDEGQRST]'
  5257. ;;
  5258. solaris*)
  5259. symcode='[BDRT]'
  5260. ;;
  5261. sco3.2v5*)
  5262. symcode='[DT]'
  5263. ;;
  5264. sysv4.2uw2*)
  5265. symcode='[DT]'
  5266. ;;
  5267. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5268. symcode='[ABDT]'
  5269. ;;
  5270. sysv4)
  5271. symcode='[DFNSTU]'
  5272. ;;
  5273. esac
  5274. # If we're using GNU nm, then use its standard symbol codes.
  5275. case `$NM -V 2>&1` in
  5276. *GNU* | *'with BFD'*)
  5277. symcode='[ABCDGIRSTW]' ;;
  5278. esac
  5279. # Transform an extracted symbol line into a proper C declaration.
  5280. # Some systems (esp. on ia64) link data and code symbols differently,
  5281. # so use this general approach.
  5282. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5283. # Transform an extracted symbol line into symbol name and symbol address
  5284. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5285. 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'"
  5286. # Handle CRLF in mingw tool chain
  5287. opt_cr=
  5288. case $build_os in
  5289. mingw*)
  5290. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5291. ;;
  5292. esac
  5293. # Try without a prefix underscore, then with it.
  5294. for ac_symprfx in "" "_"; do
  5295. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5296. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5297. # Write the raw and C identifiers.
  5298. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5299. # Fake it for dumpbin and say T for any non-static function
  5300. # and D for any global variable.
  5301. # Also find C++ and __fastcall symbols from MSVC++,
  5302. # which start with @ or ?.
  5303. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5304. " {last_section=section; section=\$ 3};"\
  5305. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5306. " \$ 0!~/External *\|/{next};"\
  5307. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5308. " {if(hide[section]) next};"\
  5309. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5310. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5311. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5312. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5313. " ' prfx=^$ac_symprfx"
  5314. else
  5315. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5316. fi
  5317. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5318. # Check to see that the pipe works correctly.
  5319. pipe_works=no
  5320. rm -f conftest*
  5321. cat > conftest.$ac_ext <<_LT_EOF
  5322. #ifdef __cplusplus
  5323. extern "C" {
  5324. #endif
  5325. char nm_test_var;
  5326. void nm_test_func(void);
  5327. void nm_test_func(void){}
  5328. #ifdef __cplusplus
  5329. }
  5330. #endif
  5331. int main(){nm_test_var='a';nm_test_func();return(0);}
  5332. _LT_EOF
  5333. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5334. (eval $ac_compile) 2>&5
  5335. ac_status=$?
  5336. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5337. test $ac_status = 0; }; then
  5338. # Now try to grab the symbols.
  5339. nlist=conftest.nm
  5340. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5341. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5342. ac_status=$?
  5343. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5344. test $ac_status = 0; } && test -s "$nlist"; then
  5345. # Try sorting and uniquifying the output.
  5346. if sort "$nlist" | uniq > "$nlist"T; then
  5347. mv -f "$nlist"T "$nlist"
  5348. else
  5349. rm -f "$nlist"T
  5350. fi
  5351. # Make sure that we snagged all the symbols we need.
  5352. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5353. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5354. cat <<_LT_EOF > conftest.$ac_ext
  5355. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5356. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5357. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5358. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5359. # define LT_DLSYM_CONST
  5360. #elif defined(__osf__)
  5361. /* This system does not cope well with relocations in const data. */
  5362. # define LT_DLSYM_CONST
  5363. #else
  5364. # define LT_DLSYM_CONST const
  5365. #endif
  5366. #ifdef __cplusplus
  5367. extern "C" {
  5368. #endif
  5369. _LT_EOF
  5370. # Now generate the symbol file.
  5371. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5372. cat <<_LT_EOF >> conftest.$ac_ext
  5373. /* The mapping between symbol names and symbols. */
  5374. LT_DLSYM_CONST struct {
  5375. const char *name;
  5376. void *address;
  5377. }
  5378. lt__PROGRAM__LTX_preloaded_symbols[] =
  5379. {
  5380. { "@PROGRAM@", (void *) 0 },
  5381. _LT_EOF
  5382. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5383. cat <<\_LT_EOF >> conftest.$ac_ext
  5384. {0, (void *) 0}
  5385. };
  5386. /* This works around a problem in FreeBSD linker */
  5387. #ifdef FREEBSD_WORKAROUND
  5388. static const void *lt_preloaded_setup() {
  5389. return lt__PROGRAM__LTX_preloaded_symbols;
  5390. }
  5391. #endif
  5392. #ifdef __cplusplus
  5393. }
  5394. #endif
  5395. _LT_EOF
  5396. # Now try linking the two files.
  5397. mv conftest.$ac_objext conftstm.$ac_objext
  5398. lt_globsym_save_LIBS=$LIBS
  5399. lt_globsym_save_CFLAGS=$CFLAGS
  5400. LIBS="conftstm.$ac_objext"
  5401. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5402. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5403. (eval $ac_link) 2>&5
  5404. ac_status=$?
  5405. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5406. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5407. pipe_works=yes
  5408. fi
  5409. LIBS=$lt_globsym_save_LIBS
  5410. CFLAGS=$lt_globsym_save_CFLAGS
  5411. else
  5412. echo "cannot find nm_test_func in $nlist" >&5
  5413. fi
  5414. else
  5415. echo "cannot find nm_test_var in $nlist" >&5
  5416. fi
  5417. else
  5418. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5419. fi
  5420. else
  5421. echo "$progname: failed program was:" >&5
  5422. cat conftest.$ac_ext >&5
  5423. fi
  5424. rm -rf conftest* conftst*
  5425. # Do not use the global_symbol_pipe unless it works.
  5426. if test "$pipe_works" = yes; then
  5427. break
  5428. else
  5429. lt_cv_sys_global_symbol_pipe=
  5430. fi
  5431. done
  5432. fi
  5433. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5434. lt_cv_sys_global_symbol_to_cdecl=
  5435. fi
  5436. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5438. $as_echo "failed" >&6; }
  5439. else
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5441. $as_echo "ok" >&6; }
  5442. fi
  5443. # Response file support.
  5444. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5445. nm_file_list_spec='@'
  5446. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5447. nm_file_list_spec='@'
  5448. fi
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5450. $as_echo_n "checking for sysroot... " >&6; }
  5451. # Check whether --with-sysroot was given.
  5452. if test "${with_sysroot+set}" = set; then :
  5453. withval=$with_sysroot;
  5454. else
  5455. with_sysroot=no
  5456. fi
  5457. lt_sysroot=
  5458. case ${with_sysroot} in #(
  5459. yes)
  5460. if test "$GCC" = yes; then
  5461. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5462. fi
  5463. ;; #(
  5464. /*)
  5465. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5466. ;; #(
  5467. no|'')
  5468. ;; #(
  5469. *)
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5471. $as_echo "${with_sysroot}" >&6; }
  5472. as_fn_error "The sysroot must be an absolute path." "$LINENO" 5
  5473. ;;
  5474. esac
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5476. $as_echo "${lt_sysroot:-no}" >&6; }
  5477. # Check whether --enable-libtool-lock was given.
  5478. if test "${enable_libtool_lock+set}" = set; then :
  5479. enableval=$enable_libtool_lock;
  5480. fi
  5481. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5482. # Some flags need to be propagated to the compiler or linker for good
  5483. # libtool support.
  5484. case $host in
  5485. ia64-*-hpux*)
  5486. # Find out which ABI we are using.
  5487. echo 'int i;' > conftest.$ac_ext
  5488. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5489. (eval $ac_compile) 2>&5
  5490. ac_status=$?
  5491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5492. test $ac_status = 0; }; then
  5493. case `/usr/bin/file conftest.$ac_objext` in
  5494. *ELF-32*)
  5495. HPUX_IA64_MODE="32"
  5496. ;;
  5497. *ELF-64*)
  5498. HPUX_IA64_MODE="64"
  5499. ;;
  5500. esac
  5501. fi
  5502. rm -rf conftest*
  5503. ;;
  5504. *-*-irix6*)
  5505. # Find out which ABI we are using.
  5506. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5507. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5508. (eval $ac_compile) 2>&5
  5509. ac_status=$?
  5510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5511. test $ac_status = 0; }; then
  5512. if test "$lt_cv_prog_gnu_ld" = yes; then
  5513. case `/usr/bin/file conftest.$ac_objext` in
  5514. *32-bit*)
  5515. LD="${LD-ld} -melf32bsmip"
  5516. ;;
  5517. *N32*)
  5518. LD="${LD-ld} -melf32bmipn32"
  5519. ;;
  5520. *64-bit*)
  5521. LD="${LD-ld} -melf64bmip"
  5522. ;;
  5523. esac
  5524. else
  5525. case `/usr/bin/file conftest.$ac_objext` in
  5526. *32-bit*)
  5527. LD="${LD-ld} -32"
  5528. ;;
  5529. *N32*)
  5530. LD="${LD-ld} -n32"
  5531. ;;
  5532. *64-bit*)
  5533. LD="${LD-ld} -64"
  5534. ;;
  5535. esac
  5536. fi
  5537. fi
  5538. rm -rf conftest*
  5539. ;;
  5540. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5541. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5542. # Find out which ABI we are using.
  5543. echo 'int i;' > conftest.$ac_ext
  5544. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5545. (eval $ac_compile) 2>&5
  5546. ac_status=$?
  5547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5548. test $ac_status = 0; }; then
  5549. case `/usr/bin/file conftest.o` in
  5550. *32-bit*)
  5551. case $host in
  5552. x86_64-*kfreebsd*-gnu)
  5553. LD="${LD-ld} -m elf_i386_fbsd"
  5554. ;;
  5555. x86_64-*linux*)
  5556. LD="${LD-ld} -m elf_i386"
  5557. ;;
  5558. ppc64-*linux*|powerpc64-*linux*)
  5559. LD="${LD-ld} -m elf32ppclinux"
  5560. ;;
  5561. s390x-*linux*)
  5562. LD="${LD-ld} -m elf_s390"
  5563. ;;
  5564. sparc64-*linux*)
  5565. LD="${LD-ld} -m elf32_sparc"
  5566. ;;
  5567. esac
  5568. ;;
  5569. *64-bit*)
  5570. case $host in
  5571. x86_64-*kfreebsd*-gnu)
  5572. LD="${LD-ld} -m elf_x86_64_fbsd"
  5573. ;;
  5574. x86_64-*linux*)
  5575. LD="${LD-ld} -m elf_x86_64"
  5576. ;;
  5577. ppc*-*linux*|powerpc*-*linux*)
  5578. LD="${LD-ld} -m elf64ppc"
  5579. ;;
  5580. s390*-*linux*|s390*-*tpf*)
  5581. LD="${LD-ld} -m elf64_s390"
  5582. ;;
  5583. sparc*-*linux*)
  5584. LD="${LD-ld} -m elf64_sparc"
  5585. ;;
  5586. esac
  5587. ;;
  5588. esac
  5589. fi
  5590. rm -rf conftest*
  5591. ;;
  5592. *-*-sco3.2v5*)
  5593. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5594. SAVE_CFLAGS="$CFLAGS"
  5595. CFLAGS="$CFLAGS -belf"
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5597. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5598. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5599. $as_echo_n "(cached) " >&6
  5600. else
  5601. ac_ext=c
  5602. ac_cpp='$CPP $CPPFLAGS'
  5603. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5604. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5605. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5607. /* end confdefs.h. */
  5608. int
  5609. main ()
  5610. {
  5611. ;
  5612. return 0;
  5613. }
  5614. _ACEOF
  5615. if ac_fn_c_try_link "$LINENO"; then :
  5616. lt_cv_cc_needs_belf=yes
  5617. else
  5618. lt_cv_cc_needs_belf=no
  5619. fi
  5620. rm -f core conftest.err conftest.$ac_objext \
  5621. conftest$ac_exeext conftest.$ac_ext
  5622. ac_ext=c
  5623. ac_cpp='$CPP $CPPFLAGS'
  5624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5627. fi
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5629. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5630. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5631. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5632. CFLAGS="$SAVE_CFLAGS"
  5633. fi
  5634. ;;
  5635. sparc*-*solaris*)
  5636. # Find out which ABI we are using.
  5637. echo 'int i;' > conftest.$ac_ext
  5638. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5639. (eval $ac_compile) 2>&5
  5640. ac_status=$?
  5641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5642. test $ac_status = 0; }; then
  5643. case `/usr/bin/file conftest.o` in
  5644. *64-bit*)
  5645. case $lt_cv_prog_gnu_ld in
  5646. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5647. *)
  5648. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5649. LD="${LD-ld} -64"
  5650. fi
  5651. ;;
  5652. esac
  5653. ;;
  5654. esac
  5655. fi
  5656. rm -rf conftest*
  5657. ;;
  5658. esac
  5659. need_locks="$enable_libtool_lock"
  5660. if test -n "$ac_tool_prefix"; then
  5661. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5662. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5664. $as_echo_n "checking for $ac_word... " >&6; }
  5665. if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
  5666. $as_echo_n "(cached) " >&6
  5667. else
  5668. if test -n "$MANIFEST_TOOL"; then
  5669. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5670. else
  5671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5672. for as_dir in $PATH
  5673. do
  5674. IFS=$as_save_IFS
  5675. test -z "$as_dir" && as_dir=.
  5676. for ac_exec_ext in '' $ac_executable_extensions; do
  5677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5678. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5680. break 2
  5681. fi
  5682. done
  5683. done
  5684. IFS=$as_save_IFS
  5685. fi
  5686. fi
  5687. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5688. if test -n "$MANIFEST_TOOL"; then
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5690. $as_echo "$MANIFEST_TOOL" >&6; }
  5691. else
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5693. $as_echo "no" >&6; }
  5694. fi
  5695. fi
  5696. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5697. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5698. # Extract the first word of "mt", so it can be a program name with args.
  5699. set dummy mt; ac_word=$2
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5701. $as_echo_n "checking for $ac_word... " >&6; }
  5702. if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
  5703. $as_echo_n "(cached) " >&6
  5704. else
  5705. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5706. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5707. else
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. test -z "$as_dir" && as_dir=.
  5713. for ac_exec_ext in '' $ac_executable_extensions; do
  5714. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5715. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5717. break 2
  5718. fi
  5719. done
  5720. done
  5721. IFS=$as_save_IFS
  5722. fi
  5723. fi
  5724. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5725. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5727. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5728. else
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5730. $as_echo "no" >&6; }
  5731. fi
  5732. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5733. MANIFEST_TOOL=":"
  5734. else
  5735. case $cross_compiling:$ac_tool_warned in
  5736. yes:)
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5739. ac_tool_warned=yes ;;
  5740. esac
  5741. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5742. fi
  5743. else
  5744. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5745. fi
  5746. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5748. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5749. if test "${lt_cv_path_mainfest_tool+set}" = set; then :
  5750. $as_echo_n "(cached) " >&6
  5751. else
  5752. lt_cv_path_mainfest_tool=no
  5753. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5754. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5755. cat conftest.err >&5
  5756. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5757. lt_cv_path_mainfest_tool=yes
  5758. fi
  5759. rm -f conftest*
  5760. fi
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5762. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5763. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5764. MANIFEST_TOOL=:
  5765. fi
  5766. case $host_os in
  5767. rhapsody* | darwin*)
  5768. if test -n "$ac_tool_prefix"; then
  5769. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5770. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5772. $as_echo_n "checking for $ac_word... " >&6; }
  5773. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5774. $as_echo_n "(cached) " >&6
  5775. else
  5776. if test -n "$DSYMUTIL"; then
  5777. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5778. else
  5779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5780. for as_dir in $PATH
  5781. do
  5782. IFS=$as_save_IFS
  5783. test -z "$as_dir" && as_dir=.
  5784. for ac_exec_ext in '' $ac_executable_extensions; do
  5785. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5786. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5788. break 2
  5789. fi
  5790. done
  5791. done
  5792. IFS=$as_save_IFS
  5793. fi
  5794. fi
  5795. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5796. if test -n "$DSYMUTIL"; then
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5798. $as_echo "$DSYMUTIL" >&6; }
  5799. else
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5801. $as_echo "no" >&6; }
  5802. fi
  5803. fi
  5804. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5805. ac_ct_DSYMUTIL=$DSYMUTIL
  5806. # Extract the first word of "dsymutil", so it can be a program name with args.
  5807. set dummy dsymutil; ac_word=$2
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5809. $as_echo_n "checking for $ac_word... " >&6; }
  5810. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5811. $as_echo_n "(cached) " >&6
  5812. else
  5813. if test -n "$ac_ct_DSYMUTIL"; then
  5814. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5815. else
  5816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5817. for as_dir in $PATH
  5818. do
  5819. IFS=$as_save_IFS
  5820. test -z "$as_dir" && as_dir=.
  5821. for ac_exec_ext in '' $ac_executable_extensions; do
  5822. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5823. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5825. break 2
  5826. fi
  5827. done
  5828. done
  5829. IFS=$as_save_IFS
  5830. fi
  5831. fi
  5832. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5833. if test -n "$ac_ct_DSYMUTIL"; then
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5835. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5836. else
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5838. $as_echo "no" >&6; }
  5839. fi
  5840. if test "x$ac_ct_DSYMUTIL" = x; then
  5841. DSYMUTIL=":"
  5842. else
  5843. case $cross_compiling:$ac_tool_warned in
  5844. yes:)
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5846. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5847. ac_tool_warned=yes ;;
  5848. esac
  5849. DSYMUTIL=$ac_ct_DSYMUTIL
  5850. fi
  5851. else
  5852. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5853. fi
  5854. if test -n "$ac_tool_prefix"; then
  5855. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5856. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5858. $as_echo_n "checking for $ac_word... " >&6; }
  5859. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. if test -n "$NMEDIT"; then
  5863. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5864. else
  5865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5866. for as_dir in $PATH
  5867. do
  5868. IFS=$as_save_IFS
  5869. test -z "$as_dir" && as_dir=.
  5870. for ac_exec_ext in '' $ac_executable_extensions; do
  5871. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5872. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5874. break 2
  5875. fi
  5876. done
  5877. done
  5878. IFS=$as_save_IFS
  5879. fi
  5880. fi
  5881. NMEDIT=$ac_cv_prog_NMEDIT
  5882. if test -n "$NMEDIT"; then
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5884. $as_echo "$NMEDIT" >&6; }
  5885. else
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5887. $as_echo "no" >&6; }
  5888. fi
  5889. fi
  5890. if test -z "$ac_cv_prog_NMEDIT"; then
  5891. ac_ct_NMEDIT=$NMEDIT
  5892. # Extract the first word of "nmedit", so it can be a program name with args.
  5893. set dummy nmedit; ac_word=$2
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5895. $as_echo_n "checking for $ac_word... " >&6; }
  5896. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. if test -n "$ac_ct_NMEDIT"; then
  5900. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5901. else
  5902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5903. for as_dir in $PATH
  5904. do
  5905. IFS=$as_save_IFS
  5906. test -z "$as_dir" && as_dir=.
  5907. for ac_exec_ext in '' $ac_executable_extensions; do
  5908. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5909. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5911. break 2
  5912. fi
  5913. done
  5914. done
  5915. IFS=$as_save_IFS
  5916. fi
  5917. fi
  5918. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5919. if test -n "$ac_ct_NMEDIT"; then
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5921. $as_echo "$ac_ct_NMEDIT" >&6; }
  5922. else
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5924. $as_echo "no" >&6; }
  5925. fi
  5926. if test "x$ac_ct_NMEDIT" = x; then
  5927. NMEDIT=":"
  5928. else
  5929. case $cross_compiling:$ac_tool_warned in
  5930. yes:)
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5932. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5933. ac_tool_warned=yes ;;
  5934. esac
  5935. NMEDIT=$ac_ct_NMEDIT
  5936. fi
  5937. else
  5938. NMEDIT="$ac_cv_prog_NMEDIT"
  5939. fi
  5940. if test -n "$ac_tool_prefix"; then
  5941. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5942. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5944. $as_echo_n "checking for $ac_word... " >&6; }
  5945. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5946. $as_echo_n "(cached) " >&6
  5947. else
  5948. if test -n "$LIPO"; then
  5949. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5950. else
  5951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5952. for as_dir in $PATH
  5953. do
  5954. IFS=$as_save_IFS
  5955. test -z "$as_dir" && as_dir=.
  5956. for ac_exec_ext in '' $ac_executable_extensions; do
  5957. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5958. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5960. break 2
  5961. fi
  5962. done
  5963. done
  5964. IFS=$as_save_IFS
  5965. fi
  5966. fi
  5967. LIPO=$ac_cv_prog_LIPO
  5968. if test -n "$LIPO"; then
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5970. $as_echo "$LIPO" >&6; }
  5971. else
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5973. $as_echo "no" >&6; }
  5974. fi
  5975. fi
  5976. if test -z "$ac_cv_prog_LIPO"; then
  5977. ac_ct_LIPO=$LIPO
  5978. # Extract the first word of "lipo", so it can be a program name with args.
  5979. set dummy lipo; ac_word=$2
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5981. $as_echo_n "checking for $ac_word... " >&6; }
  5982. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5983. $as_echo_n "(cached) " >&6
  5984. else
  5985. if test -n "$ac_ct_LIPO"; then
  5986. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5987. else
  5988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5989. for as_dir in $PATH
  5990. do
  5991. IFS=$as_save_IFS
  5992. test -z "$as_dir" && as_dir=.
  5993. for ac_exec_ext in '' $ac_executable_extensions; do
  5994. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5995. ac_cv_prog_ac_ct_LIPO="lipo"
  5996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5997. break 2
  5998. fi
  5999. done
  6000. done
  6001. IFS=$as_save_IFS
  6002. fi
  6003. fi
  6004. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6005. if test -n "$ac_ct_LIPO"; then
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6007. $as_echo "$ac_ct_LIPO" >&6; }
  6008. else
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6010. $as_echo "no" >&6; }
  6011. fi
  6012. if test "x$ac_ct_LIPO" = x; then
  6013. LIPO=":"
  6014. else
  6015. case $cross_compiling:$ac_tool_warned in
  6016. yes:)
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6018. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6019. ac_tool_warned=yes ;;
  6020. esac
  6021. LIPO=$ac_ct_LIPO
  6022. fi
  6023. else
  6024. LIPO="$ac_cv_prog_LIPO"
  6025. fi
  6026. if test -n "$ac_tool_prefix"; then
  6027. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6028. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6030. $as_echo_n "checking for $ac_word... " >&6; }
  6031. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6032. $as_echo_n "(cached) " >&6
  6033. else
  6034. if test -n "$OTOOL"; then
  6035. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6036. else
  6037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6038. for as_dir in $PATH
  6039. do
  6040. IFS=$as_save_IFS
  6041. test -z "$as_dir" && as_dir=.
  6042. for ac_exec_ext in '' $ac_executable_extensions; do
  6043. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6044. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6046. break 2
  6047. fi
  6048. done
  6049. done
  6050. IFS=$as_save_IFS
  6051. fi
  6052. fi
  6053. OTOOL=$ac_cv_prog_OTOOL
  6054. if test -n "$OTOOL"; then
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6056. $as_echo "$OTOOL" >&6; }
  6057. else
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6059. $as_echo "no" >&6; }
  6060. fi
  6061. fi
  6062. if test -z "$ac_cv_prog_OTOOL"; then
  6063. ac_ct_OTOOL=$OTOOL
  6064. # Extract the first word of "otool", so it can be a program name with args.
  6065. set dummy otool; ac_word=$2
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6067. $as_echo_n "checking for $ac_word... " >&6; }
  6068. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. if test -n "$ac_ct_OTOOL"; then
  6072. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6073. else
  6074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6075. for as_dir in $PATH
  6076. do
  6077. IFS=$as_save_IFS
  6078. test -z "$as_dir" && as_dir=.
  6079. for ac_exec_ext in '' $ac_executable_extensions; do
  6080. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6081. ac_cv_prog_ac_ct_OTOOL="otool"
  6082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6083. break 2
  6084. fi
  6085. done
  6086. done
  6087. IFS=$as_save_IFS
  6088. fi
  6089. fi
  6090. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6091. if test -n "$ac_ct_OTOOL"; then
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6093. $as_echo "$ac_ct_OTOOL" >&6; }
  6094. else
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6096. $as_echo "no" >&6; }
  6097. fi
  6098. if test "x$ac_ct_OTOOL" = x; then
  6099. OTOOL=":"
  6100. else
  6101. case $cross_compiling:$ac_tool_warned in
  6102. yes:)
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6104. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6105. ac_tool_warned=yes ;;
  6106. esac
  6107. OTOOL=$ac_ct_OTOOL
  6108. fi
  6109. else
  6110. OTOOL="$ac_cv_prog_OTOOL"
  6111. fi
  6112. if test -n "$ac_tool_prefix"; then
  6113. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6114. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6116. $as_echo_n "checking for $ac_word... " >&6; }
  6117. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6118. $as_echo_n "(cached) " >&6
  6119. else
  6120. if test -n "$OTOOL64"; then
  6121. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6122. else
  6123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6124. for as_dir in $PATH
  6125. do
  6126. IFS=$as_save_IFS
  6127. test -z "$as_dir" && as_dir=.
  6128. for ac_exec_ext in '' $ac_executable_extensions; do
  6129. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6130. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6132. break 2
  6133. fi
  6134. done
  6135. done
  6136. IFS=$as_save_IFS
  6137. fi
  6138. fi
  6139. OTOOL64=$ac_cv_prog_OTOOL64
  6140. if test -n "$OTOOL64"; then
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6142. $as_echo "$OTOOL64" >&6; }
  6143. else
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6145. $as_echo "no" >&6; }
  6146. fi
  6147. fi
  6148. if test -z "$ac_cv_prog_OTOOL64"; then
  6149. ac_ct_OTOOL64=$OTOOL64
  6150. # Extract the first word of "otool64", so it can be a program name with args.
  6151. set dummy otool64; ac_word=$2
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6153. $as_echo_n "checking for $ac_word... " >&6; }
  6154. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6155. $as_echo_n "(cached) " >&6
  6156. else
  6157. if test -n "$ac_ct_OTOOL64"; then
  6158. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6159. else
  6160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6161. for as_dir in $PATH
  6162. do
  6163. IFS=$as_save_IFS
  6164. test -z "$as_dir" && as_dir=.
  6165. for ac_exec_ext in '' $ac_executable_extensions; do
  6166. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6167. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6169. break 2
  6170. fi
  6171. done
  6172. done
  6173. IFS=$as_save_IFS
  6174. fi
  6175. fi
  6176. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6177. if test -n "$ac_ct_OTOOL64"; then
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6179. $as_echo "$ac_ct_OTOOL64" >&6; }
  6180. else
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6182. $as_echo "no" >&6; }
  6183. fi
  6184. if test "x$ac_ct_OTOOL64" = x; then
  6185. OTOOL64=":"
  6186. else
  6187. case $cross_compiling:$ac_tool_warned in
  6188. yes:)
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6190. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6191. ac_tool_warned=yes ;;
  6192. esac
  6193. OTOOL64=$ac_ct_OTOOL64
  6194. fi
  6195. else
  6196. OTOOL64="$ac_cv_prog_OTOOL64"
  6197. fi
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6199. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6200. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. lt_cv_apple_cc_single_mod=no
  6204. if test -z "${LT_MULTI_MODULE}"; then
  6205. # By default we will add the -single_module flag. You can override
  6206. # by either setting the environment variable LT_MULTI_MODULE
  6207. # non-empty at configure time, or by adding -multi_module to the
  6208. # link flags.
  6209. rm -rf libconftest.dylib*
  6210. echo "int foo(void){return 1;}" > conftest.c
  6211. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6212. -dynamiclib -Wl,-single_module conftest.c" >&5
  6213. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6214. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6215. _lt_result=$?
  6216. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6217. lt_cv_apple_cc_single_mod=yes
  6218. else
  6219. cat conftest.err >&5
  6220. fi
  6221. rm -rf libconftest.dylib*
  6222. rm -f conftest.*
  6223. fi
  6224. fi
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6226. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6228. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6229. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6230. $as_echo_n "(cached) " >&6
  6231. else
  6232. lt_cv_ld_exported_symbols_list=no
  6233. save_LDFLAGS=$LDFLAGS
  6234. echo "_main" > conftest.sym
  6235. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6237. /* end confdefs.h. */
  6238. int
  6239. main ()
  6240. {
  6241. ;
  6242. return 0;
  6243. }
  6244. _ACEOF
  6245. if ac_fn_c_try_link "$LINENO"; then :
  6246. lt_cv_ld_exported_symbols_list=yes
  6247. else
  6248. lt_cv_ld_exported_symbols_list=no
  6249. fi
  6250. rm -f core conftest.err conftest.$ac_objext \
  6251. conftest$ac_exeext conftest.$ac_ext
  6252. LDFLAGS="$save_LDFLAGS"
  6253. fi
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6255. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6257. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6258. if test "${lt_cv_ld_force_load+set}" = set; then :
  6259. $as_echo_n "(cached) " >&6
  6260. else
  6261. lt_cv_ld_force_load=no
  6262. cat > conftest.c << _LT_EOF
  6263. int forced_loaded() { return 2;}
  6264. _LT_EOF
  6265. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6266. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6267. echo "$AR cru libconftest.a conftest.o" >&5
  6268. $AR cru libconftest.a conftest.o 2>&5
  6269. echo "$RANLIB libconftest.a" >&5
  6270. $RANLIB libconftest.a 2>&5
  6271. cat > conftest.c << _LT_EOF
  6272. int main() { return 0;}
  6273. _LT_EOF
  6274. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6275. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6276. _lt_result=$?
  6277. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6278. lt_cv_ld_force_load=yes
  6279. else
  6280. cat conftest.err >&5
  6281. fi
  6282. rm -f conftest.err libconftest.a conftest conftest.c
  6283. rm -rf conftest.dSYM
  6284. fi
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6286. $as_echo "$lt_cv_ld_force_load" >&6; }
  6287. case $host_os in
  6288. rhapsody* | darwin1.[012])
  6289. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6290. darwin1.*)
  6291. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6292. darwin*) # darwin 5.x on
  6293. # if running on 10.5 or later, the deployment target defaults
  6294. # to the OS version, if on x86, and 10.4, the deployment
  6295. # target defaults to 10.4. Don't you love it?
  6296. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6297. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6298. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6299. 10.[012]*)
  6300. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6301. 10.*)
  6302. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6303. esac
  6304. ;;
  6305. esac
  6306. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6307. _lt_dar_single_mod='$single_module'
  6308. fi
  6309. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6310. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6311. else
  6312. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6313. fi
  6314. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6315. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6316. else
  6317. _lt_dsymutil=
  6318. fi
  6319. ;;
  6320. esac
  6321. ac_ext=c
  6322. ac_cpp='$CPP $CPPFLAGS'
  6323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6327. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6328. # On Suns, sometimes $CPP names a directory.
  6329. if test -n "$CPP" && test -d "$CPP"; then
  6330. CPP=
  6331. fi
  6332. if test -z "$CPP"; then
  6333. if test "${ac_cv_prog_CPP+set}" = set; then :
  6334. $as_echo_n "(cached) " >&6
  6335. else
  6336. # Double quotes because CPP needs to be expanded
  6337. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6338. do
  6339. ac_preproc_ok=false
  6340. for ac_c_preproc_warn_flag in '' yes
  6341. do
  6342. # Use a header file that comes with gcc, so configuring glibc
  6343. # with a fresh cross-compiler works.
  6344. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6345. # <limits.h> exists even on freestanding compilers.
  6346. # On the NeXT, cc -E runs the code through the compiler's parser,
  6347. # not just through cpp. "Syntax error" is here to catch this case.
  6348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6349. /* end confdefs.h. */
  6350. #ifdef __STDC__
  6351. # include <limits.h>
  6352. #else
  6353. # include <assert.h>
  6354. #endif
  6355. Syntax error
  6356. _ACEOF
  6357. if ac_fn_c_try_cpp "$LINENO"; then :
  6358. else
  6359. # Broken: fails on valid input.
  6360. continue
  6361. fi
  6362. rm -f conftest.err conftest.$ac_ext
  6363. # OK, works on sane cases. Now check whether nonexistent headers
  6364. # can be detected and how.
  6365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6366. /* end confdefs.h. */
  6367. #include <ac_nonexistent.h>
  6368. _ACEOF
  6369. if ac_fn_c_try_cpp "$LINENO"; then :
  6370. # Broken: success on invalid input.
  6371. continue
  6372. else
  6373. # Passes both tests.
  6374. ac_preproc_ok=:
  6375. break
  6376. fi
  6377. rm -f conftest.err conftest.$ac_ext
  6378. done
  6379. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6380. rm -f conftest.err conftest.$ac_ext
  6381. if $ac_preproc_ok; then :
  6382. break
  6383. fi
  6384. done
  6385. ac_cv_prog_CPP=$CPP
  6386. fi
  6387. CPP=$ac_cv_prog_CPP
  6388. else
  6389. ac_cv_prog_CPP=$CPP
  6390. fi
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6392. $as_echo "$CPP" >&6; }
  6393. ac_preproc_ok=false
  6394. for ac_c_preproc_warn_flag in '' yes
  6395. do
  6396. # Use a header file that comes with gcc, so configuring glibc
  6397. # with a fresh cross-compiler works.
  6398. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6399. # <limits.h> exists even on freestanding compilers.
  6400. # On the NeXT, cc -E runs the code through the compiler's parser,
  6401. # not just through cpp. "Syntax error" is here to catch this case.
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. #ifdef __STDC__
  6405. # include <limits.h>
  6406. #else
  6407. # include <assert.h>
  6408. #endif
  6409. Syntax error
  6410. _ACEOF
  6411. if ac_fn_c_try_cpp "$LINENO"; then :
  6412. else
  6413. # Broken: fails on valid input.
  6414. continue
  6415. fi
  6416. rm -f conftest.err conftest.$ac_ext
  6417. # OK, works on sane cases. Now check whether nonexistent headers
  6418. # can be detected and how.
  6419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6420. /* end confdefs.h. */
  6421. #include <ac_nonexistent.h>
  6422. _ACEOF
  6423. if ac_fn_c_try_cpp "$LINENO"; then :
  6424. # Broken: success on invalid input.
  6425. continue
  6426. else
  6427. # Passes both tests.
  6428. ac_preproc_ok=:
  6429. break
  6430. fi
  6431. rm -f conftest.err conftest.$ac_ext
  6432. done
  6433. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6434. rm -f conftest.err conftest.$ac_ext
  6435. if $ac_preproc_ok; then :
  6436. else
  6437. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6438. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6439. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6440. See \`config.log' for more details." "$LINENO" 5; }
  6441. fi
  6442. ac_ext=c
  6443. ac_cpp='$CPP $CPPFLAGS'
  6444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6448. $as_echo_n "checking for ANSI C header files... " >&6; }
  6449. if test "${ac_cv_header_stdc+set}" = set; then :
  6450. $as_echo_n "(cached) " >&6
  6451. else
  6452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6453. /* end confdefs.h. */
  6454. #include <stdlib.h>
  6455. #include <stdarg.h>
  6456. #include <string.h>
  6457. #include <float.h>
  6458. int
  6459. main ()
  6460. {
  6461. ;
  6462. return 0;
  6463. }
  6464. _ACEOF
  6465. if ac_fn_c_try_compile "$LINENO"; then :
  6466. ac_cv_header_stdc=yes
  6467. else
  6468. ac_cv_header_stdc=no
  6469. fi
  6470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6471. if test $ac_cv_header_stdc = yes; then
  6472. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6474. /* end confdefs.h. */
  6475. #include <string.h>
  6476. _ACEOF
  6477. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6478. $EGREP "memchr" >/dev/null 2>&1; then :
  6479. else
  6480. ac_cv_header_stdc=no
  6481. fi
  6482. rm -f conftest*
  6483. fi
  6484. if test $ac_cv_header_stdc = yes; then
  6485. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6487. /* end confdefs.h. */
  6488. #include <stdlib.h>
  6489. _ACEOF
  6490. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6491. $EGREP "free" >/dev/null 2>&1; then :
  6492. else
  6493. ac_cv_header_stdc=no
  6494. fi
  6495. rm -f conftest*
  6496. fi
  6497. if test $ac_cv_header_stdc = yes; then
  6498. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6499. if test "$cross_compiling" = yes; then :
  6500. :
  6501. else
  6502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6503. /* end confdefs.h. */
  6504. #include <ctype.h>
  6505. #include <stdlib.h>
  6506. #if ((' ' & 0x0FF) == 0x020)
  6507. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6508. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6509. #else
  6510. # define ISLOWER(c) \
  6511. (('a' <= (c) && (c) <= 'i') \
  6512. || ('j' <= (c) && (c) <= 'r') \
  6513. || ('s' <= (c) && (c) <= 'z'))
  6514. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6515. #endif
  6516. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6517. int
  6518. main ()
  6519. {
  6520. int i;
  6521. for (i = 0; i < 256; i++)
  6522. if (XOR (islower (i), ISLOWER (i))
  6523. || toupper (i) != TOUPPER (i))
  6524. return 2;
  6525. return 0;
  6526. }
  6527. _ACEOF
  6528. if ac_fn_c_try_run "$LINENO"; then :
  6529. else
  6530. ac_cv_header_stdc=no
  6531. fi
  6532. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6533. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6534. fi
  6535. fi
  6536. fi
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6538. $as_echo "$ac_cv_header_stdc" >&6; }
  6539. if test $ac_cv_header_stdc = yes; then
  6540. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6541. fi
  6542. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6543. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6544. inttypes.h stdint.h unistd.h
  6545. do :
  6546. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6547. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6548. "
  6549. eval as_val=\$$as_ac_Header
  6550. if test "x$as_val" = x""yes; then :
  6551. cat >>confdefs.h <<_ACEOF
  6552. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6553. _ACEOF
  6554. fi
  6555. done
  6556. for ac_header in dlfcn.h
  6557. do :
  6558. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6559. "
  6560. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6561. cat >>confdefs.h <<_ACEOF
  6562. #define HAVE_DLFCN_H 1
  6563. _ACEOF
  6564. fi
  6565. done
  6566. func_stripname_cnf ()
  6567. {
  6568. case ${2} in
  6569. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6570. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6571. esac
  6572. } # func_stripname_cnf
  6573. # Set options
  6574. enable_dlopen=no
  6575. # Check whether --enable-shared was given.
  6576. if test "${enable_shared+set}" = set; then :
  6577. enableval=$enable_shared; p=${PACKAGE-default}
  6578. case $enableval in
  6579. yes) enable_shared=yes ;;
  6580. no) enable_shared=no ;;
  6581. *)
  6582. enable_shared=no
  6583. # Look at the argument we got. We use all the common list separators.
  6584. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6585. for pkg in $enableval; do
  6586. IFS="$lt_save_ifs"
  6587. if test "X$pkg" = "X$p"; then
  6588. enable_shared=yes
  6589. fi
  6590. done
  6591. IFS="$lt_save_ifs"
  6592. ;;
  6593. esac
  6594. else
  6595. enable_shared=yes
  6596. fi
  6597. # Check whether --enable-static was given.
  6598. if test "${enable_static+set}" = set; then :
  6599. enableval=$enable_static; p=${PACKAGE-default}
  6600. case $enableval in
  6601. yes) enable_static=yes ;;
  6602. no) enable_static=no ;;
  6603. *)
  6604. enable_static=no
  6605. # Look at the argument we got. We use all the common list separators.
  6606. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6607. for pkg in $enableval; do
  6608. IFS="$lt_save_ifs"
  6609. if test "X$pkg" = "X$p"; then
  6610. enable_static=yes
  6611. fi
  6612. done
  6613. IFS="$lt_save_ifs"
  6614. ;;
  6615. esac
  6616. else
  6617. enable_static=yes
  6618. fi
  6619. # Check whether --with-pic was given.
  6620. if test "${with_pic+set}" = set; then :
  6621. withval=$with_pic; pic_mode="$withval"
  6622. else
  6623. pic_mode=default
  6624. fi
  6625. test -z "$pic_mode" && pic_mode=default
  6626. # Check whether --enable-fast-install was given.
  6627. if test "${enable_fast_install+set}" = set; then :
  6628. enableval=$enable_fast_install; p=${PACKAGE-default}
  6629. case $enableval in
  6630. yes) enable_fast_install=yes ;;
  6631. no) enable_fast_install=no ;;
  6632. *)
  6633. enable_fast_install=no
  6634. # Look at the argument we got. We use all the common list separators.
  6635. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6636. for pkg in $enableval; do
  6637. IFS="$lt_save_ifs"
  6638. if test "X$pkg" = "X$p"; then
  6639. enable_fast_install=yes
  6640. fi
  6641. done
  6642. IFS="$lt_save_ifs"
  6643. ;;
  6644. esac
  6645. else
  6646. enable_fast_install=yes
  6647. fi
  6648. # This can be used to rebuild libtool when needed
  6649. LIBTOOL_DEPS="$ltmain"
  6650. # Always use our own libtool.
  6651. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6652. test -z "$LN_S" && LN_S="ln -s"
  6653. if test -n "${ZSH_VERSION+set}" ; then
  6654. setopt NO_GLOB_SUBST
  6655. fi
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6657. $as_echo_n "checking for objdir... " >&6; }
  6658. if test "${lt_cv_objdir+set}" = set; then :
  6659. $as_echo_n "(cached) " >&6
  6660. else
  6661. rm -f .libs 2>/dev/null
  6662. mkdir .libs 2>/dev/null
  6663. if test -d .libs; then
  6664. lt_cv_objdir=.libs
  6665. else
  6666. # MS-DOS does not allow filenames that begin with a dot.
  6667. lt_cv_objdir=_libs
  6668. fi
  6669. rmdir .libs 2>/dev/null
  6670. fi
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6672. $as_echo "$lt_cv_objdir" >&6; }
  6673. objdir=$lt_cv_objdir
  6674. cat >>confdefs.h <<_ACEOF
  6675. #define LT_OBJDIR "$lt_cv_objdir/"
  6676. _ACEOF
  6677. case $host_os in
  6678. aix3*)
  6679. # AIX sometimes has problems with the GCC collect2 program. For some
  6680. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6681. # vanish in a puff of smoke.
  6682. if test "X${COLLECT_NAMES+set}" != Xset; then
  6683. COLLECT_NAMES=
  6684. export COLLECT_NAMES
  6685. fi
  6686. ;;
  6687. esac
  6688. # Global variables:
  6689. ofile=libtool
  6690. can_build_shared=yes
  6691. # All known linkers require a `.a' archive for static linking (except MSVC,
  6692. # which needs '.lib').
  6693. libext=a
  6694. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6695. old_CC="$CC"
  6696. old_CFLAGS="$CFLAGS"
  6697. # Set sane defaults for various variables
  6698. test -z "$CC" && CC=cc
  6699. test -z "$LTCC" && LTCC=$CC
  6700. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6701. test -z "$LD" && LD=ld
  6702. test -z "$ac_objext" && ac_objext=o
  6703. for cc_temp in $compiler""; do
  6704. case $cc_temp in
  6705. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6706. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6707. \-*) ;;
  6708. *) break;;
  6709. esac
  6710. done
  6711. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6712. # Only perform the check for file, if the check method requires it
  6713. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6714. case $deplibs_check_method in
  6715. file_magic*)
  6716. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6718. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6719. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6720. $as_echo_n "(cached) " >&6
  6721. else
  6722. case $MAGIC_CMD in
  6723. [\\/*] | ?:[\\/]*)
  6724. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6725. ;;
  6726. *)
  6727. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6728. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6729. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6730. for ac_dir in $ac_dummy; do
  6731. IFS="$lt_save_ifs"
  6732. test -z "$ac_dir" && ac_dir=.
  6733. if test -f $ac_dir/${ac_tool_prefix}file; then
  6734. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6735. if test -n "$file_magic_test_file"; then
  6736. case $deplibs_check_method in
  6737. "file_magic "*)
  6738. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6739. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6740. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6741. $EGREP "$file_magic_regex" > /dev/null; then
  6742. :
  6743. else
  6744. cat <<_LT_EOF 1>&2
  6745. *** Warning: the command libtool uses to detect shared libraries,
  6746. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6747. *** The result is that libtool may fail to recognize shared libraries
  6748. *** as such. This will affect the creation of libtool libraries that
  6749. *** depend on shared libraries, but programs linked with such libtool
  6750. *** libraries will work regardless of this problem. Nevertheless, you
  6751. *** may want to report the problem to your system manager and/or to
  6752. *** bug-libtool@gnu.org
  6753. _LT_EOF
  6754. fi ;;
  6755. esac
  6756. fi
  6757. break
  6758. fi
  6759. done
  6760. IFS="$lt_save_ifs"
  6761. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6762. ;;
  6763. esac
  6764. fi
  6765. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6766. if test -n "$MAGIC_CMD"; then
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6768. $as_echo "$MAGIC_CMD" >&6; }
  6769. else
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6771. $as_echo "no" >&6; }
  6772. fi
  6773. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6774. if test -n "$ac_tool_prefix"; then
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6776. $as_echo_n "checking for file... " >&6; }
  6777. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6778. $as_echo_n "(cached) " >&6
  6779. else
  6780. case $MAGIC_CMD in
  6781. [\\/*] | ?:[\\/]*)
  6782. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6783. ;;
  6784. *)
  6785. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6786. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6787. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6788. for ac_dir in $ac_dummy; do
  6789. IFS="$lt_save_ifs"
  6790. test -z "$ac_dir" && ac_dir=.
  6791. if test -f $ac_dir/file; then
  6792. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6793. if test -n "$file_magic_test_file"; then
  6794. case $deplibs_check_method in
  6795. "file_magic "*)
  6796. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6797. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6798. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6799. $EGREP "$file_magic_regex" > /dev/null; then
  6800. :
  6801. else
  6802. cat <<_LT_EOF 1>&2
  6803. *** Warning: the command libtool uses to detect shared libraries,
  6804. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6805. *** The result is that libtool may fail to recognize shared libraries
  6806. *** as such. This will affect the creation of libtool libraries that
  6807. *** depend on shared libraries, but programs linked with such libtool
  6808. *** libraries will work regardless of this problem. Nevertheless, you
  6809. *** may want to report the problem to your system manager and/or to
  6810. *** bug-libtool@gnu.org
  6811. _LT_EOF
  6812. fi ;;
  6813. esac
  6814. fi
  6815. break
  6816. fi
  6817. done
  6818. IFS="$lt_save_ifs"
  6819. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6820. ;;
  6821. esac
  6822. fi
  6823. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6824. if test -n "$MAGIC_CMD"; then
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6826. $as_echo "$MAGIC_CMD" >&6; }
  6827. else
  6828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6829. $as_echo "no" >&6; }
  6830. fi
  6831. else
  6832. MAGIC_CMD=:
  6833. fi
  6834. fi
  6835. fi
  6836. ;;
  6837. esac
  6838. # Use C for the default configuration in the libtool script
  6839. lt_save_CC="$CC"
  6840. ac_ext=c
  6841. ac_cpp='$CPP $CPPFLAGS'
  6842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6845. # Source file extension for C test sources.
  6846. ac_ext=c
  6847. # Object file extension for compiled C test sources.
  6848. objext=o
  6849. objext=$objext
  6850. # Code to be used in simple compile tests
  6851. lt_simple_compile_test_code="int some_variable = 0;"
  6852. # Code to be used in simple link tests
  6853. lt_simple_link_test_code='int main(){return(0);}'
  6854. # If no C compiler was specified, use CC.
  6855. LTCC=${LTCC-"$CC"}
  6856. # If no C compiler flags were specified, use CFLAGS.
  6857. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6858. # Allow CC to be a program name with arguments.
  6859. compiler=$CC
  6860. # Save the default compiler, since it gets overwritten when the other
  6861. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6862. compiler_DEFAULT=$CC
  6863. # save warnings/boilerplate of simple test code
  6864. ac_outfile=conftest.$ac_objext
  6865. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6866. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6867. _lt_compiler_boilerplate=`cat conftest.err`
  6868. $RM conftest*
  6869. ac_outfile=conftest.$ac_objext
  6870. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6871. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6872. _lt_linker_boilerplate=`cat conftest.err`
  6873. $RM -r conftest*
  6874. if test -n "$compiler"; then
  6875. lt_prog_compiler_no_builtin_flag=
  6876. if test "$GCC" = yes; then
  6877. case $cc_basename in
  6878. nvcc*)
  6879. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6880. *)
  6881. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6882. esac
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6884. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6885. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6886. $as_echo_n "(cached) " >&6
  6887. else
  6888. lt_cv_prog_compiler_rtti_exceptions=no
  6889. ac_outfile=conftest.$ac_objext
  6890. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6891. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6892. # Insert the option either (1) after the last *FLAGS variable, or
  6893. # (2) before a word containing "conftest.", or (3) at the end.
  6894. # Note that $ac_compile itself does not contain backslashes and begins
  6895. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6896. # The option is referenced via a variable to avoid confusing sed.
  6897. lt_compile=`echo "$ac_compile" | $SED \
  6898. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6899. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6900. -e 's:$: $lt_compiler_flag:'`
  6901. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6902. (eval "$lt_compile" 2>conftest.err)
  6903. ac_status=$?
  6904. cat conftest.err >&5
  6905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6906. if (exit $ac_status) && test -s "$ac_outfile"; then
  6907. # The compiler can only warn and ignore the option if not recognized
  6908. # So say no if there are warnings other than the usual output.
  6909. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6910. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6911. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6912. lt_cv_prog_compiler_rtti_exceptions=yes
  6913. fi
  6914. fi
  6915. $RM conftest*
  6916. fi
  6917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6918. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6919. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6920. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6921. else
  6922. :
  6923. fi
  6924. fi
  6925. lt_prog_compiler_wl=
  6926. lt_prog_compiler_pic=
  6927. lt_prog_compiler_static=
  6928. if test "$GCC" = yes; then
  6929. lt_prog_compiler_wl='-Wl,'
  6930. lt_prog_compiler_static='-static'
  6931. case $host_os in
  6932. aix*)
  6933. # All AIX code is PIC.
  6934. if test "$host_cpu" = ia64; then
  6935. # AIX 5 now supports IA64 processor
  6936. lt_prog_compiler_static='-Bstatic'
  6937. fi
  6938. ;;
  6939. amigaos*)
  6940. case $host_cpu in
  6941. powerpc)
  6942. # see comment about AmigaOS4 .so support
  6943. lt_prog_compiler_pic='-fPIC'
  6944. ;;
  6945. m68k)
  6946. # FIXME: we need at least 68020 code to build shared libraries, but
  6947. # adding the `-m68020' flag to GCC prevents building anything better,
  6948. # like `-m68040'.
  6949. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6950. ;;
  6951. esac
  6952. ;;
  6953. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6954. # PIC is the default for these OSes.
  6955. ;;
  6956. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6957. # This hack is so that the source file can tell whether it is being
  6958. # built for inclusion in a dll (and should export symbols for example).
  6959. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6960. # (--disable-auto-import) libraries
  6961. lt_prog_compiler_pic='-DDLL_EXPORT'
  6962. ;;
  6963. darwin* | rhapsody*)
  6964. # PIC is the default on this platform
  6965. # Common symbols not allowed in MH_DYLIB files
  6966. lt_prog_compiler_pic='-fno-common'
  6967. ;;
  6968. haiku*)
  6969. # PIC is the default for Haiku.
  6970. # The "-static" flag exists, but is broken.
  6971. lt_prog_compiler_static=
  6972. ;;
  6973. hpux*)
  6974. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6975. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6976. # sets the default TLS model and affects inlining.
  6977. case $host_cpu in
  6978. hppa*64*)
  6979. # +Z the default
  6980. ;;
  6981. *)
  6982. lt_prog_compiler_pic='-fPIC'
  6983. ;;
  6984. esac
  6985. ;;
  6986. interix[3-9]*)
  6987. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6988. # Instead, we relocate shared libraries at runtime.
  6989. ;;
  6990. msdosdjgpp*)
  6991. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6992. # on systems that don't support them.
  6993. lt_prog_compiler_can_build_shared=no
  6994. enable_shared=no
  6995. ;;
  6996. *nto* | *qnx*)
  6997. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6998. # it will coredump.
  6999. lt_prog_compiler_pic='-fPIC -shared'
  7000. ;;
  7001. sysv4*MP*)
  7002. if test -d /usr/nec; then
  7003. lt_prog_compiler_pic=-Kconform_pic
  7004. fi
  7005. ;;
  7006. *)
  7007. lt_prog_compiler_pic='-fPIC'
  7008. ;;
  7009. esac
  7010. case $cc_basename in
  7011. nvcc*) # Cuda Compiler Driver 2.2
  7012. lt_prog_compiler_wl='-Xlinker '
  7013. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7014. ;;
  7015. esac
  7016. else
  7017. # PORTME Check for flag to pass linker flags through the system compiler.
  7018. case $host_os in
  7019. aix*)
  7020. lt_prog_compiler_wl='-Wl,'
  7021. if test "$host_cpu" = ia64; then
  7022. # AIX 5 now supports IA64 processor
  7023. lt_prog_compiler_static='-Bstatic'
  7024. else
  7025. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7026. fi
  7027. ;;
  7028. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7029. # This hack is so that the source file can tell whether it is being
  7030. # built for inclusion in a dll (and should export symbols for example).
  7031. lt_prog_compiler_pic='-DDLL_EXPORT'
  7032. ;;
  7033. hpux9* | hpux10* | hpux11*)
  7034. lt_prog_compiler_wl='-Wl,'
  7035. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7036. # not for PA HP-UX.
  7037. case $host_cpu in
  7038. hppa*64*|ia64*)
  7039. # +Z the default
  7040. ;;
  7041. *)
  7042. lt_prog_compiler_pic='+Z'
  7043. ;;
  7044. esac
  7045. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7046. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7047. ;;
  7048. irix5* | irix6* | nonstopux*)
  7049. lt_prog_compiler_wl='-Wl,'
  7050. # PIC (with -KPIC) is the default.
  7051. lt_prog_compiler_static='-non_shared'
  7052. ;;
  7053. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7054. case $cc_basename in
  7055. # old Intel for x86_64 which still supported -KPIC.
  7056. ecc*)
  7057. lt_prog_compiler_wl='-Wl,'
  7058. lt_prog_compiler_pic='-KPIC'
  7059. lt_prog_compiler_static='-static'
  7060. ;;
  7061. # icc used to be incompatible with GCC.
  7062. # ICC 10 doesn't accept -KPIC any more.
  7063. icc* | ifort*)
  7064. lt_prog_compiler_wl='-Wl,'
  7065. lt_prog_compiler_pic='-fPIC'
  7066. lt_prog_compiler_static='-static'
  7067. ;;
  7068. # Lahey Fortran 8.1.
  7069. lf95*)
  7070. lt_prog_compiler_wl='-Wl,'
  7071. lt_prog_compiler_pic='--shared'
  7072. lt_prog_compiler_static='--static'
  7073. ;;
  7074. nagfor*)
  7075. # NAG Fortran compiler
  7076. lt_prog_compiler_wl='-Wl,-Wl,,'
  7077. lt_prog_compiler_pic='-PIC'
  7078. lt_prog_compiler_static='-Bstatic'
  7079. ;;
  7080. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7081. # Portland Group compilers (*not* the Pentium gcc compiler,
  7082. # which looks to be a dead project)
  7083. lt_prog_compiler_wl='-Wl,'
  7084. lt_prog_compiler_pic='-fpic'
  7085. lt_prog_compiler_static='-Bstatic'
  7086. ;;
  7087. ccc*)
  7088. lt_prog_compiler_wl='-Wl,'
  7089. # All Alpha code is PIC.
  7090. lt_prog_compiler_static='-non_shared'
  7091. ;;
  7092. xl* | bgxl* | bgf* | mpixl*)
  7093. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7094. lt_prog_compiler_wl='-Wl,'
  7095. lt_prog_compiler_pic='-qpic'
  7096. lt_prog_compiler_static='-qstaticlink'
  7097. ;;
  7098. *)
  7099. case `$CC -V 2>&1 | sed 5q` in
  7100. *Sun\ F* | *Sun*Fortran*)
  7101. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7102. lt_prog_compiler_pic='-KPIC'
  7103. lt_prog_compiler_static='-Bstatic'
  7104. lt_prog_compiler_wl=''
  7105. ;;
  7106. *Sun\ C*)
  7107. # Sun C 5.9
  7108. lt_prog_compiler_pic='-KPIC'
  7109. lt_prog_compiler_static='-Bstatic'
  7110. lt_prog_compiler_wl='-Wl,'
  7111. ;;
  7112. esac
  7113. ;;
  7114. esac
  7115. ;;
  7116. newsos6)
  7117. lt_prog_compiler_pic='-KPIC'
  7118. lt_prog_compiler_static='-Bstatic'
  7119. ;;
  7120. *nto* | *qnx*)
  7121. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7122. # it will coredump.
  7123. lt_prog_compiler_pic='-fPIC -shared'
  7124. ;;
  7125. osf3* | osf4* | osf5*)
  7126. lt_prog_compiler_wl='-Wl,'
  7127. # All OSF/1 code is PIC.
  7128. lt_prog_compiler_static='-non_shared'
  7129. ;;
  7130. rdos*)
  7131. lt_prog_compiler_static='-non_shared'
  7132. ;;
  7133. solaris*)
  7134. lt_prog_compiler_pic='-KPIC'
  7135. lt_prog_compiler_static='-Bstatic'
  7136. case $cc_basename in
  7137. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7138. lt_prog_compiler_wl='-Qoption ld ';;
  7139. *)
  7140. lt_prog_compiler_wl='-Wl,';;
  7141. esac
  7142. ;;
  7143. sunos4*)
  7144. lt_prog_compiler_wl='-Qoption ld '
  7145. lt_prog_compiler_pic='-PIC'
  7146. lt_prog_compiler_static='-Bstatic'
  7147. ;;
  7148. sysv4 | sysv4.2uw2* | sysv4.3*)
  7149. lt_prog_compiler_wl='-Wl,'
  7150. lt_prog_compiler_pic='-KPIC'
  7151. lt_prog_compiler_static='-Bstatic'
  7152. ;;
  7153. sysv4*MP*)
  7154. if test -d /usr/nec ;then
  7155. lt_prog_compiler_pic='-Kconform_pic'
  7156. lt_prog_compiler_static='-Bstatic'
  7157. fi
  7158. ;;
  7159. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7160. lt_prog_compiler_wl='-Wl,'
  7161. lt_prog_compiler_pic='-KPIC'
  7162. lt_prog_compiler_static='-Bstatic'
  7163. ;;
  7164. unicos*)
  7165. lt_prog_compiler_wl='-Wl,'
  7166. lt_prog_compiler_can_build_shared=no
  7167. ;;
  7168. uts4*)
  7169. lt_prog_compiler_pic='-pic'
  7170. lt_prog_compiler_static='-Bstatic'
  7171. ;;
  7172. *)
  7173. lt_prog_compiler_can_build_shared=no
  7174. ;;
  7175. esac
  7176. fi
  7177. case $host_os in
  7178. # For platforms which do not support PIC, -DPIC is meaningless:
  7179. *djgpp*)
  7180. lt_prog_compiler_pic=
  7181. ;;
  7182. *)
  7183. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7184. ;;
  7185. esac
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7187. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7188. if test "${lt_cv_prog_compiler_pic+set}" = set; then :
  7189. $as_echo_n "(cached) " >&6
  7190. else
  7191. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7192. fi
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7194. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7195. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7196. #
  7197. # Check to make sure the PIC flag actually works.
  7198. #
  7199. if test -n "$lt_prog_compiler_pic"; then
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7201. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7202. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7203. $as_echo_n "(cached) " >&6
  7204. else
  7205. lt_cv_prog_compiler_pic_works=no
  7206. ac_outfile=conftest.$ac_objext
  7207. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7208. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7209. # Insert the option either (1) after the last *FLAGS variable, or
  7210. # (2) before a word containing "conftest.", or (3) at the end.
  7211. # Note that $ac_compile itself does not contain backslashes and begins
  7212. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7213. # The option is referenced via a variable to avoid confusing sed.
  7214. lt_compile=`echo "$ac_compile" | $SED \
  7215. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7216. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7217. -e 's:$: $lt_compiler_flag:'`
  7218. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7219. (eval "$lt_compile" 2>conftest.err)
  7220. ac_status=$?
  7221. cat conftest.err >&5
  7222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7223. if (exit $ac_status) && test -s "$ac_outfile"; then
  7224. # The compiler can only warn and ignore the option if not recognized
  7225. # So say no if there are warnings other than the usual output.
  7226. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7227. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7228. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7229. lt_cv_prog_compiler_pic_works=yes
  7230. fi
  7231. fi
  7232. $RM conftest*
  7233. fi
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7235. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7236. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7237. case $lt_prog_compiler_pic in
  7238. "" | " "*) ;;
  7239. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7240. esac
  7241. else
  7242. lt_prog_compiler_pic=
  7243. lt_prog_compiler_can_build_shared=no
  7244. fi
  7245. fi
  7246. #
  7247. # Check to make sure the static flag actually works.
  7248. #
  7249. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7251. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7252. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7253. $as_echo_n "(cached) " >&6
  7254. else
  7255. lt_cv_prog_compiler_static_works=no
  7256. save_LDFLAGS="$LDFLAGS"
  7257. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7258. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7259. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7260. # The linker can only warn and ignore the option if not recognized
  7261. # So say no if there are warnings
  7262. if test -s conftest.err; then
  7263. # Append any errors to the config.log.
  7264. cat conftest.err 1>&5
  7265. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7266. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7267. if diff conftest.exp conftest.er2 >/dev/null; then
  7268. lt_cv_prog_compiler_static_works=yes
  7269. fi
  7270. else
  7271. lt_cv_prog_compiler_static_works=yes
  7272. fi
  7273. fi
  7274. $RM -r conftest*
  7275. LDFLAGS="$save_LDFLAGS"
  7276. fi
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7278. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7279. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7280. :
  7281. else
  7282. lt_prog_compiler_static=
  7283. fi
  7284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7285. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7286. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7287. $as_echo_n "(cached) " >&6
  7288. else
  7289. lt_cv_prog_compiler_c_o=no
  7290. $RM -r conftest 2>/dev/null
  7291. mkdir conftest
  7292. cd conftest
  7293. mkdir out
  7294. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7295. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7296. # Insert the option either (1) after the last *FLAGS variable, or
  7297. # (2) before a word containing "conftest.", or (3) at the end.
  7298. # Note that $ac_compile itself does not contain backslashes and begins
  7299. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7300. lt_compile=`echo "$ac_compile" | $SED \
  7301. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7302. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7303. -e 's:$: $lt_compiler_flag:'`
  7304. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7305. (eval "$lt_compile" 2>out/conftest.err)
  7306. ac_status=$?
  7307. cat out/conftest.err >&5
  7308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7309. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7310. then
  7311. # The compiler can only warn and ignore the option if not recognized
  7312. # So say no if there are warnings
  7313. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7314. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7315. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7316. lt_cv_prog_compiler_c_o=yes
  7317. fi
  7318. fi
  7319. chmod u+w . 2>&5
  7320. $RM conftest*
  7321. # SGI C++ compiler will create directory out/ii_files/ for
  7322. # template instantiation
  7323. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7324. $RM out/* && rmdir out
  7325. cd ..
  7326. $RM -r conftest
  7327. $RM conftest*
  7328. fi
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7330. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7332. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7333. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7334. $as_echo_n "(cached) " >&6
  7335. else
  7336. lt_cv_prog_compiler_c_o=no
  7337. $RM -r conftest 2>/dev/null
  7338. mkdir conftest
  7339. cd conftest
  7340. mkdir out
  7341. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7342. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7343. # Insert the option either (1) after the last *FLAGS variable, or
  7344. # (2) before a word containing "conftest.", or (3) at the end.
  7345. # Note that $ac_compile itself does not contain backslashes and begins
  7346. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7347. lt_compile=`echo "$ac_compile" | $SED \
  7348. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7349. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7350. -e 's:$: $lt_compiler_flag:'`
  7351. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7352. (eval "$lt_compile" 2>out/conftest.err)
  7353. ac_status=$?
  7354. cat out/conftest.err >&5
  7355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7356. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7357. then
  7358. # The compiler can only warn and ignore the option if not recognized
  7359. # So say no if there are warnings
  7360. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7361. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7362. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7363. lt_cv_prog_compiler_c_o=yes
  7364. fi
  7365. fi
  7366. chmod u+w . 2>&5
  7367. $RM conftest*
  7368. # SGI C++ compiler will create directory out/ii_files/ for
  7369. # template instantiation
  7370. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7371. $RM out/* && rmdir out
  7372. cd ..
  7373. $RM -r conftest
  7374. $RM conftest*
  7375. fi
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7377. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7378. hard_links="nottested"
  7379. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7380. # do not overwrite the value of need_locks provided by the user
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7382. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7383. hard_links=yes
  7384. $RM conftest*
  7385. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7386. touch conftest.a
  7387. ln conftest.a conftest.b 2>&5 || hard_links=no
  7388. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7390. $as_echo "$hard_links" >&6; }
  7391. if test "$hard_links" = no; then
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7393. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7394. need_locks=warn
  7395. fi
  7396. else
  7397. need_locks=no
  7398. fi
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7400. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7401. runpath_var=
  7402. allow_undefined_flag=
  7403. always_export_symbols=no
  7404. archive_cmds=
  7405. archive_expsym_cmds=
  7406. compiler_needs_object=no
  7407. enable_shared_with_static_runtimes=no
  7408. export_dynamic_flag_spec=
  7409. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7410. hardcode_automatic=no
  7411. hardcode_direct=no
  7412. hardcode_direct_absolute=no
  7413. hardcode_libdir_flag_spec=
  7414. hardcode_libdir_flag_spec_ld=
  7415. hardcode_libdir_separator=
  7416. hardcode_minus_L=no
  7417. hardcode_shlibpath_var=unsupported
  7418. inherit_rpath=no
  7419. link_all_deplibs=unknown
  7420. module_cmds=
  7421. module_expsym_cmds=
  7422. old_archive_from_new_cmds=
  7423. old_archive_from_expsyms_cmds=
  7424. thread_safe_flag_spec=
  7425. whole_archive_flag_spec=
  7426. # include_expsyms should be a list of space-separated symbols to be *always*
  7427. # included in the symbol list
  7428. include_expsyms=
  7429. # exclude_expsyms can be an extended regexp of symbols to exclude
  7430. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7431. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7432. # as well as any symbol that contains `d'.
  7433. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7434. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7435. # platforms (ab)use it in PIC code, but their linkers get confused if
  7436. # the symbol is explicitly referenced. Since portable code cannot
  7437. # rely on this symbol name, it's probably fine to never include it in
  7438. # preloaded symbol tables.
  7439. # Exclude shared library initialization/finalization symbols.
  7440. extract_expsyms_cmds=
  7441. case $host_os in
  7442. cygwin* | mingw* | pw32* | cegcc*)
  7443. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7444. # When not using gcc, we currently assume that we are using
  7445. # Microsoft Visual C++.
  7446. if test "$GCC" != yes; then
  7447. with_gnu_ld=no
  7448. fi
  7449. ;;
  7450. interix*)
  7451. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7452. with_gnu_ld=yes
  7453. ;;
  7454. openbsd*)
  7455. with_gnu_ld=no
  7456. ;;
  7457. esac
  7458. ld_shlibs=yes
  7459. # On some targets, GNU ld is compatible enough with the native linker
  7460. # that we're better off using the native interface for both.
  7461. lt_use_gnu_ld_interface=no
  7462. if test "$with_gnu_ld" = yes; then
  7463. case $host_os in
  7464. aix*)
  7465. # The AIX port of GNU ld has always aspired to compatibility
  7466. # with the native linker. However, as the warning in the GNU ld
  7467. # block says, versions before 2.19.5* couldn't really create working
  7468. # shared libraries, regardless of the interface used.
  7469. case `$LD -v 2>&1` in
  7470. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7471. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7472. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7473. *)
  7474. lt_use_gnu_ld_interface=yes
  7475. ;;
  7476. esac
  7477. ;;
  7478. *)
  7479. lt_use_gnu_ld_interface=yes
  7480. ;;
  7481. esac
  7482. fi
  7483. if test "$lt_use_gnu_ld_interface" = yes; then
  7484. # If archive_cmds runs LD, not CC, wlarc should be empty
  7485. wlarc='${wl}'
  7486. # Set some defaults for GNU ld with shared library support. These
  7487. # are reset later if shared libraries are not supported. Putting them
  7488. # here allows them to be overridden if necessary.
  7489. runpath_var=LD_RUN_PATH
  7490. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7491. export_dynamic_flag_spec='${wl}--export-dynamic'
  7492. # ancient GNU ld didn't support --whole-archive et. al.
  7493. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7494. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7495. else
  7496. whole_archive_flag_spec=
  7497. fi
  7498. supports_anon_versioning=no
  7499. case `$LD -v 2>&1` in
  7500. *GNU\ gold*) supports_anon_versioning=yes ;;
  7501. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7502. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7503. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7504. *\ 2.11.*) ;; # other 2.11 versions
  7505. *) supports_anon_versioning=yes ;;
  7506. esac
  7507. # See if GNU ld supports shared libraries.
  7508. case $host_os in
  7509. aix[3-9]*)
  7510. # On AIX/PPC, the GNU linker is very broken
  7511. if test "$host_cpu" != ia64; then
  7512. ld_shlibs=no
  7513. cat <<_LT_EOF 1>&2
  7514. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7515. *** to be unable to reliably create shared libraries on AIX.
  7516. *** Therefore, libtool is disabling shared libraries support. If you
  7517. *** really care for shared libraries, you may want to install binutils
  7518. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7519. *** You will then need to restart the configuration process.
  7520. _LT_EOF
  7521. fi
  7522. ;;
  7523. amigaos*)
  7524. case $host_cpu in
  7525. powerpc)
  7526. # see comment about AmigaOS4 .so support
  7527. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7528. archive_expsym_cmds=''
  7529. ;;
  7530. m68k)
  7531. 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)'
  7532. hardcode_libdir_flag_spec='-L$libdir'
  7533. hardcode_minus_L=yes
  7534. ;;
  7535. esac
  7536. ;;
  7537. beos*)
  7538. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7539. allow_undefined_flag=unsupported
  7540. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7541. # support --undefined. This deserves some investigation. FIXME
  7542. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7543. else
  7544. ld_shlibs=no
  7545. fi
  7546. ;;
  7547. cygwin* | mingw* | pw32* | cegcc*)
  7548. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7549. # as there is no search path for DLLs.
  7550. hardcode_libdir_flag_spec='-L$libdir'
  7551. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7552. allow_undefined_flag=unsupported
  7553. always_export_symbols=no
  7554. enable_shared_with_static_runtimes=yes
  7555. 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'
  7556. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7557. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7558. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7559. # If the export-symbols file already is a .def file (1st line
  7560. # is EXPORTS), use it as is; otherwise, prepend...
  7561. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7562. cp $export_symbols $output_objdir/$soname.def;
  7563. else
  7564. echo EXPORTS > $output_objdir/$soname.def;
  7565. cat $export_symbols >> $output_objdir/$soname.def;
  7566. fi~
  7567. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7568. else
  7569. ld_shlibs=no
  7570. fi
  7571. ;;
  7572. haiku*)
  7573. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7574. link_all_deplibs=yes
  7575. ;;
  7576. interix[3-9]*)
  7577. hardcode_direct=no
  7578. hardcode_shlibpath_var=no
  7579. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7580. export_dynamic_flag_spec='${wl}-E'
  7581. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7582. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7583. # default) and relocated if they conflict, which is a slow very memory
  7584. # consuming and fragmenting process. To avoid this, we pick a random,
  7585. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7586. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7587. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7588. 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'
  7589. ;;
  7590. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7591. tmp_diet=no
  7592. if test "$host_os" = linux-dietlibc; then
  7593. case $cc_basename in
  7594. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7595. esac
  7596. fi
  7597. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7598. && test "$tmp_diet" = no
  7599. then
  7600. tmp_addflag=' $pic_flag'
  7601. tmp_sharedflag='-shared'
  7602. case $cc_basename,$host_cpu in
  7603. pgcc*) # Portland Group C compiler
  7604. 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'
  7605. tmp_addflag=' $pic_flag'
  7606. ;;
  7607. pgf77* | pgf90* | pgf95* | pgfortran*)
  7608. # Portland Group f77 and f90 compilers
  7609. 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'
  7610. tmp_addflag=' $pic_flag -Mnomain' ;;
  7611. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7612. tmp_addflag=' -i_dynamic' ;;
  7613. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7614. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7615. ifc* | ifort*) # Intel Fortran compiler
  7616. tmp_addflag=' -nofor_main' ;;
  7617. lf95*) # Lahey Fortran 8.1
  7618. whole_archive_flag_spec=
  7619. tmp_sharedflag='--shared' ;;
  7620. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7621. tmp_sharedflag='-qmkshrobj'
  7622. tmp_addflag= ;;
  7623. nvcc*) # Cuda Compiler Driver 2.2
  7624. 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'
  7625. compiler_needs_object=yes
  7626. ;;
  7627. esac
  7628. case `$CC -V 2>&1 | sed 5q` in
  7629. *Sun\ C*) # Sun C 5.9
  7630. 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'
  7631. compiler_needs_object=yes
  7632. tmp_sharedflag='-G' ;;
  7633. *Sun\ F*) # Sun Fortran 8.3
  7634. tmp_sharedflag='-G' ;;
  7635. esac
  7636. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7637. if test "x$supports_anon_versioning" = xyes; then
  7638. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7639. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7640. echo "local: *; };" >> $output_objdir/$libname.ver~
  7641. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7642. fi
  7643. case $cc_basename in
  7644. xlf* | bgf* | bgxlf* | mpixlf*)
  7645. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7646. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7647. hardcode_libdir_flag_spec=
  7648. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7649. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7650. if test "x$supports_anon_versioning" = xyes; then
  7651. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7652. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7653. echo "local: *; };" >> $output_objdir/$libname.ver~
  7654. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7655. fi
  7656. ;;
  7657. esac
  7658. else
  7659. ld_shlibs=no
  7660. fi
  7661. ;;
  7662. netbsd*)
  7663. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7664. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7665. wlarc=
  7666. else
  7667. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7668. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7669. fi
  7670. ;;
  7671. solaris*)
  7672. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7673. ld_shlibs=no
  7674. cat <<_LT_EOF 1>&2
  7675. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7676. *** create shared libraries on Solaris systems. Therefore, libtool
  7677. *** is disabling shared libraries support. We urge you to upgrade GNU
  7678. *** binutils to release 2.9.1 or newer. Another option is to modify
  7679. *** your PATH or compiler configuration so that the native linker is
  7680. *** used, and then restart.
  7681. _LT_EOF
  7682. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7683. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7684. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7685. else
  7686. ld_shlibs=no
  7687. fi
  7688. ;;
  7689. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7690. case `$LD -v 2>&1` in
  7691. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7692. ld_shlibs=no
  7693. cat <<_LT_EOF 1>&2
  7694. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7695. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7696. *** is disabling shared libraries support. We urge you to upgrade GNU
  7697. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7698. *** your PATH or compiler configuration so that the native linker is
  7699. *** used, and then restart.
  7700. _LT_EOF
  7701. ;;
  7702. *)
  7703. # For security reasons, it is highly recommended that you always
  7704. # use absolute paths for naming shared libraries, and exclude the
  7705. # DT_RUNPATH tag from executables and libraries. But doing so
  7706. # requires that you compile everything twice, which is a pain.
  7707. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7708. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7709. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7710. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7711. else
  7712. ld_shlibs=no
  7713. fi
  7714. ;;
  7715. esac
  7716. ;;
  7717. sunos4*)
  7718. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7719. wlarc=
  7720. hardcode_direct=yes
  7721. hardcode_shlibpath_var=no
  7722. ;;
  7723. *)
  7724. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7725. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7726. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7727. else
  7728. ld_shlibs=no
  7729. fi
  7730. ;;
  7731. esac
  7732. if test "$ld_shlibs" = no; then
  7733. runpath_var=
  7734. hardcode_libdir_flag_spec=
  7735. export_dynamic_flag_spec=
  7736. whole_archive_flag_spec=
  7737. fi
  7738. else
  7739. # PORTME fill in a description of your system's linker (not GNU ld)
  7740. case $host_os in
  7741. aix3*)
  7742. allow_undefined_flag=unsupported
  7743. always_export_symbols=yes
  7744. 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'
  7745. # Note: this linker hardcodes the directories in LIBPATH if there
  7746. # are no directories specified by -L.
  7747. hardcode_minus_L=yes
  7748. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7749. # Neither direct hardcoding nor static linking is supported with a
  7750. # broken collect2.
  7751. hardcode_direct=unsupported
  7752. fi
  7753. ;;
  7754. aix[4-9]*)
  7755. if test "$host_cpu" = ia64; then
  7756. # On IA64, the linker does run time linking by default, so we don't
  7757. # have to do anything special.
  7758. aix_use_runtimelinking=no
  7759. exp_sym_flag='-Bexport'
  7760. no_entry_flag=""
  7761. else
  7762. # If we're using GNU nm, then we don't want the "-C" option.
  7763. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7764. # Also, AIX nm treats weak defined symbols like other global
  7765. # defined symbols, whereas GNU nm marks them as "W".
  7766. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7767. 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'
  7768. else
  7769. 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'
  7770. fi
  7771. aix_use_runtimelinking=no
  7772. # Test if we are trying to use run time linking or normal
  7773. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7774. # need to do runtime linking.
  7775. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7776. for ld_flag in $LDFLAGS; do
  7777. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7778. aix_use_runtimelinking=yes
  7779. break
  7780. fi
  7781. done
  7782. ;;
  7783. esac
  7784. exp_sym_flag='-bexport'
  7785. no_entry_flag='-bnoentry'
  7786. fi
  7787. # When large executables or shared objects are built, AIX ld can
  7788. # have problems creating the table of contents. If linking a library
  7789. # or program results in "error TOC overflow" add -mminimal-toc to
  7790. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7791. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7792. archive_cmds=''
  7793. hardcode_direct=yes
  7794. hardcode_direct_absolute=yes
  7795. hardcode_libdir_separator=':'
  7796. link_all_deplibs=yes
  7797. file_list_spec='${wl}-f,'
  7798. if test "$GCC" = yes; then
  7799. case $host_os in aix4.[012]|aix4.[012].*)
  7800. # We only want to do this on AIX 4.2 and lower, the check
  7801. # below for broken collect2 doesn't work under 4.3+
  7802. collect2name=`${CC} -print-prog-name=collect2`
  7803. if test -f "$collect2name" &&
  7804. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7805. then
  7806. # We have reworked collect2
  7807. :
  7808. else
  7809. # We have old collect2
  7810. hardcode_direct=unsupported
  7811. # It fails to find uninstalled libraries when the uninstalled
  7812. # path is not listed in the libpath. Setting hardcode_minus_L
  7813. # to unsupported forces relinking
  7814. hardcode_minus_L=yes
  7815. hardcode_libdir_flag_spec='-L$libdir'
  7816. hardcode_libdir_separator=
  7817. fi
  7818. ;;
  7819. esac
  7820. shared_flag='-shared'
  7821. if test "$aix_use_runtimelinking" = yes; then
  7822. shared_flag="$shared_flag "'${wl}-G'
  7823. fi
  7824. else
  7825. # not using gcc
  7826. if test "$host_cpu" = ia64; then
  7827. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7828. # chokes on -Wl,-G. The following line is correct:
  7829. shared_flag='-G'
  7830. else
  7831. if test "$aix_use_runtimelinking" = yes; then
  7832. shared_flag='${wl}-G'
  7833. else
  7834. shared_flag='${wl}-bM:SRE'
  7835. fi
  7836. fi
  7837. fi
  7838. export_dynamic_flag_spec='${wl}-bexpall'
  7839. # It seems that -bexpall does not export symbols beginning with
  7840. # underscore (_), so it is better to generate a list of symbols to export.
  7841. always_export_symbols=yes
  7842. if test "$aix_use_runtimelinking" = yes; then
  7843. # Warning - without using the other runtime loading flags (-brtl),
  7844. # -berok will link without error, but may produce a broken library.
  7845. allow_undefined_flag='-berok'
  7846. # Determine the default libpath from the value encoded in an
  7847. # empty executable.
  7848. if test "${lt_cv_aix_libpath+set}" = set; then
  7849. aix_libpath=$lt_cv_aix_libpath
  7850. else
  7851. if test "${lt_cv_aix_libpath_+set}" = set; then :
  7852. $as_echo_n "(cached) " >&6
  7853. else
  7854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7855. /* end confdefs.h. */
  7856. int
  7857. main ()
  7858. {
  7859. ;
  7860. return 0;
  7861. }
  7862. _ACEOF
  7863. if ac_fn_c_try_link "$LINENO"; then :
  7864. lt_aix_libpath_sed='
  7865. /Import File Strings/,/^$/ {
  7866. /^0/ {
  7867. s/^0 *\([^ ]*\) *$/\1/
  7868. p
  7869. }
  7870. }'
  7871. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7872. # Check for a 64-bit object if we didn't find anything.
  7873. if test -z "$lt_cv_aix_libpath_"; then
  7874. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7875. fi
  7876. fi
  7877. rm -f core conftest.err conftest.$ac_objext \
  7878. conftest$ac_exeext conftest.$ac_ext
  7879. if test -z "$lt_cv_aix_libpath_"; then
  7880. lt_cv_aix_libpath_="/usr/lib:/lib"
  7881. fi
  7882. fi
  7883. aix_libpath=$lt_cv_aix_libpath_
  7884. fi
  7885. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7886. 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"
  7887. else
  7888. if test "$host_cpu" = ia64; then
  7889. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7890. allow_undefined_flag="-z nodefs"
  7891. 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"
  7892. else
  7893. # Determine the default libpath from the value encoded in an
  7894. # empty executable.
  7895. if test "${lt_cv_aix_libpath+set}" = set; then
  7896. aix_libpath=$lt_cv_aix_libpath
  7897. else
  7898. if test "${lt_cv_aix_libpath_+set}" = set; then :
  7899. $as_echo_n "(cached) " >&6
  7900. else
  7901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7902. /* end confdefs.h. */
  7903. int
  7904. main ()
  7905. {
  7906. ;
  7907. return 0;
  7908. }
  7909. _ACEOF
  7910. if ac_fn_c_try_link "$LINENO"; then :
  7911. lt_aix_libpath_sed='
  7912. /Import File Strings/,/^$/ {
  7913. /^0/ {
  7914. s/^0 *\([^ ]*\) *$/\1/
  7915. p
  7916. }
  7917. }'
  7918. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7919. # Check for a 64-bit object if we didn't find anything.
  7920. if test -z "$lt_cv_aix_libpath_"; then
  7921. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7922. fi
  7923. fi
  7924. rm -f core conftest.err conftest.$ac_objext \
  7925. conftest$ac_exeext conftest.$ac_ext
  7926. if test -z "$lt_cv_aix_libpath_"; then
  7927. lt_cv_aix_libpath_="/usr/lib:/lib"
  7928. fi
  7929. fi
  7930. aix_libpath=$lt_cv_aix_libpath_
  7931. fi
  7932. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7933. # Warning - without using the other run time loading flags,
  7934. # -berok will link without error, but may produce a broken library.
  7935. no_undefined_flag=' ${wl}-bernotok'
  7936. allow_undefined_flag=' ${wl}-berok'
  7937. if test "$with_gnu_ld" = yes; then
  7938. # We only use this code for GNU lds that support --whole-archive.
  7939. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7940. else
  7941. # Exported symbols can be pulled into shared objects from archives
  7942. whole_archive_flag_spec='$convenience'
  7943. fi
  7944. archive_cmds_need_lc=yes
  7945. # This is similar to how AIX traditionally builds its shared libraries.
  7946. 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'
  7947. fi
  7948. fi
  7949. ;;
  7950. amigaos*)
  7951. case $host_cpu in
  7952. powerpc)
  7953. # see comment about AmigaOS4 .so support
  7954. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7955. archive_expsym_cmds=''
  7956. ;;
  7957. m68k)
  7958. 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)'
  7959. hardcode_libdir_flag_spec='-L$libdir'
  7960. hardcode_minus_L=yes
  7961. ;;
  7962. esac
  7963. ;;
  7964. bsdi[45]*)
  7965. export_dynamic_flag_spec=-rdynamic
  7966. ;;
  7967. cygwin* | mingw* | pw32* | cegcc*)
  7968. # When not using gcc, we currently assume that we are using
  7969. # Microsoft Visual C++.
  7970. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7971. # no search path for DLLs.
  7972. case $cc_basename in
  7973. cl*)
  7974. # Native MSVC
  7975. hardcode_libdir_flag_spec=' '
  7976. allow_undefined_flag=unsupported
  7977. always_export_symbols=yes
  7978. file_list_spec='@'
  7979. # Tell ltmain to make .lib files, not .a files.
  7980. libext=lib
  7981. # Tell ltmain to make .dll files, not .so files.
  7982. shrext_cmds=".dll"
  7983. # FIXME: Setting linknames here is a bad hack.
  7984. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7985. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7986. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7987. else
  7988. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7989. fi~
  7990. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7991. linknames='
  7992. # The linker will not automatically build a static lib if we build a DLL.
  7993. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7994. enable_shared_with_static_runtimes=yes
  7995. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7996. # Don't use ranlib
  7997. old_postinstall_cmds='chmod 644 $oldlib'
  7998. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7999. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8000. case $lt_outputfile in
  8001. *.exe|*.EXE) ;;
  8002. *)
  8003. lt_outputfile="$lt_outputfile.exe"
  8004. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8005. ;;
  8006. esac~
  8007. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8008. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8009. $RM "$lt_outputfile.manifest";
  8010. fi'
  8011. ;;
  8012. *)
  8013. # Assume MSVC wrapper
  8014. hardcode_libdir_flag_spec=' '
  8015. allow_undefined_flag=unsupported
  8016. # Tell ltmain to make .lib files, not .a files.
  8017. libext=lib
  8018. # Tell ltmain to make .dll files, not .so files.
  8019. shrext_cmds=".dll"
  8020. # FIXME: Setting linknames here is a bad hack.
  8021. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8022. # The linker will automatically build a .lib file if we build a DLL.
  8023. old_archive_from_new_cmds='true'
  8024. # FIXME: Should let the user specify the lib program.
  8025. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8026. enable_shared_with_static_runtimes=yes
  8027. ;;
  8028. esac
  8029. ;;
  8030. darwin* | rhapsody*)
  8031. archive_cmds_need_lc=no
  8032. hardcode_direct=no
  8033. hardcode_automatic=yes
  8034. hardcode_shlibpath_var=unsupported
  8035. if test "$lt_cv_ld_force_load" = "yes"; then
  8036. 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\"`'
  8037. else
  8038. whole_archive_flag_spec=''
  8039. fi
  8040. link_all_deplibs=yes
  8041. allow_undefined_flag="$_lt_dar_allow_undefined"
  8042. case $cc_basename in
  8043. ifort*) _lt_dar_can_shared=yes ;;
  8044. *) _lt_dar_can_shared=$GCC ;;
  8045. esac
  8046. if test "$_lt_dar_can_shared" = "yes"; then
  8047. output_verbose_link_cmd=func_echo_all
  8048. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8049. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8050. 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}"
  8051. 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}"
  8052. else
  8053. ld_shlibs=no
  8054. fi
  8055. ;;
  8056. dgux*)
  8057. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8058. hardcode_libdir_flag_spec='-L$libdir'
  8059. hardcode_shlibpath_var=no
  8060. ;;
  8061. freebsd1*)
  8062. ld_shlibs=no
  8063. ;;
  8064. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8065. # support. Future versions do this automatically, but an explicit c++rt0.o
  8066. # does not break anything, and helps significantly (at the cost of a little
  8067. # extra space).
  8068. freebsd2.2*)
  8069. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8070. hardcode_libdir_flag_spec='-R$libdir'
  8071. hardcode_direct=yes
  8072. hardcode_shlibpath_var=no
  8073. ;;
  8074. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8075. freebsd2*)
  8076. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8077. hardcode_direct=yes
  8078. hardcode_minus_L=yes
  8079. hardcode_shlibpath_var=no
  8080. ;;
  8081. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8082. freebsd* | dragonfly*)
  8083. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8084. hardcode_libdir_flag_spec='-R$libdir'
  8085. hardcode_direct=yes
  8086. hardcode_shlibpath_var=no
  8087. ;;
  8088. hpux9*)
  8089. if test "$GCC" = yes; then
  8090. 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'
  8091. else
  8092. 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'
  8093. fi
  8094. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8095. hardcode_libdir_separator=:
  8096. hardcode_direct=yes
  8097. # hardcode_minus_L: Not really in the search PATH,
  8098. # but as the default location of the library.
  8099. hardcode_minus_L=yes
  8100. export_dynamic_flag_spec='${wl}-E'
  8101. ;;
  8102. hpux10*)
  8103. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8104. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8105. else
  8106. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8107. fi
  8108. if test "$with_gnu_ld" = no; then
  8109. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8110. hardcode_libdir_flag_spec_ld='+b $libdir'
  8111. hardcode_libdir_separator=:
  8112. hardcode_direct=yes
  8113. hardcode_direct_absolute=yes
  8114. export_dynamic_flag_spec='${wl}-E'
  8115. # hardcode_minus_L: Not really in the search PATH,
  8116. # but as the default location of the library.
  8117. hardcode_minus_L=yes
  8118. fi
  8119. ;;
  8120. hpux11*)
  8121. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8122. case $host_cpu in
  8123. hppa*64*)
  8124. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8125. ;;
  8126. ia64*)
  8127. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8128. ;;
  8129. *)
  8130. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8131. ;;
  8132. esac
  8133. else
  8134. case $host_cpu in
  8135. hppa*64*)
  8136. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8137. ;;
  8138. ia64*)
  8139. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8140. ;;
  8141. *)
  8142. # Older versions of the 11.00 compiler do not understand -b yet
  8143. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8145. $as_echo_n "checking if $CC understands -b... " >&6; }
  8146. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8147. $as_echo_n "(cached) " >&6
  8148. else
  8149. lt_cv_prog_compiler__b=no
  8150. save_LDFLAGS="$LDFLAGS"
  8151. LDFLAGS="$LDFLAGS -b"
  8152. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8153. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8154. # The linker can only warn and ignore the option if not recognized
  8155. # So say no if there are warnings
  8156. if test -s conftest.err; then
  8157. # Append any errors to the config.log.
  8158. cat conftest.err 1>&5
  8159. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8160. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8161. if diff conftest.exp conftest.er2 >/dev/null; then
  8162. lt_cv_prog_compiler__b=yes
  8163. fi
  8164. else
  8165. lt_cv_prog_compiler__b=yes
  8166. fi
  8167. fi
  8168. $RM -r conftest*
  8169. LDFLAGS="$save_LDFLAGS"
  8170. fi
  8171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8172. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8173. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8174. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8175. else
  8176. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8177. fi
  8178. ;;
  8179. esac
  8180. fi
  8181. if test "$with_gnu_ld" = no; then
  8182. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8183. hardcode_libdir_separator=:
  8184. case $host_cpu in
  8185. hppa*64*|ia64*)
  8186. hardcode_direct=no
  8187. hardcode_shlibpath_var=no
  8188. ;;
  8189. *)
  8190. hardcode_direct=yes
  8191. hardcode_direct_absolute=yes
  8192. export_dynamic_flag_spec='${wl}-E'
  8193. # hardcode_minus_L: Not really in the search PATH,
  8194. # but as the default location of the library.
  8195. hardcode_minus_L=yes
  8196. ;;
  8197. esac
  8198. fi
  8199. ;;
  8200. irix5* | irix6* | nonstopux*)
  8201. if test "$GCC" = yes; then
  8202. 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'
  8203. # Try to use the -exported_symbol ld option, if it does not
  8204. # work, assume that -exports_file does not work either and
  8205. # implicitly export all symbols.
  8206. # This should be the same for all languages, so no per-tag cache variable.
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8208. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8209. if test "${lt_cv_irix_exported_symbol+set}" = set; then :
  8210. $as_echo_n "(cached) " >&6
  8211. else
  8212. save_LDFLAGS="$LDFLAGS"
  8213. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8215. /* end confdefs.h. */
  8216. int foo (void) { return 0; }
  8217. _ACEOF
  8218. if ac_fn_c_try_link "$LINENO"; then :
  8219. lt_cv_irix_exported_symbol=yes
  8220. else
  8221. lt_cv_irix_exported_symbol=no
  8222. fi
  8223. rm -f core conftest.err conftest.$ac_objext \
  8224. conftest$ac_exeext conftest.$ac_ext
  8225. LDFLAGS="$save_LDFLAGS"
  8226. fi
  8227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8228. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8229. if test "$lt_cv_irix_exported_symbol" = yes; then
  8230. 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'
  8231. fi
  8232. else
  8233. 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'
  8234. 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'
  8235. fi
  8236. archive_cmds_need_lc='no'
  8237. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8238. hardcode_libdir_separator=:
  8239. inherit_rpath=yes
  8240. link_all_deplibs=yes
  8241. ;;
  8242. netbsd*)
  8243. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8244. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8245. else
  8246. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8247. fi
  8248. hardcode_libdir_flag_spec='-R$libdir'
  8249. hardcode_direct=yes
  8250. hardcode_shlibpath_var=no
  8251. ;;
  8252. newsos6)
  8253. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8254. hardcode_direct=yes
  8255. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8256. hardcode_libdir_separator=:
  8257. hardcode_shlibpath_var=no
  8258. ;;
  8259. *nto* | *qnx*)
  8260. ;;
  8261. openbsd*)
  8262. if test -f /usr/libexec/ld.so; then
  8263. hardcode_direct=yes
  8264. hardcode_shlibpath_var=no
  8265. hardcode_direct_absolute=yes
  8266. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8267. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8268. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8269. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8270. export_dynamic_flag_spec='${wl}-E'
  8271. else
  8272. case $host_os in
  8273. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8274. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8275. hardcode_libdir_flag_spec='-R$libdir'
  8276. ;;
  8277. *)
  8278. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8279. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8280. ;;
  8281. esac
  8282. fi
  8283. else
  8284. ld_shlibs=no
  8285. fi
  8286. ;;
  8287. os2*)
  8288. hardcode_libdir_flag_spec='-L$libdir'
  8289. hardcode_minus_L=yes
  8290. allow_undefined_flag=unsupported
  8291. 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'
  8292. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8293. ;;
  8294. osf3*)
  8295. if test "$GCC" = yes; then
  8296. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8297. 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'
  8298. else
  8299. allow_undefined_flag=' -expect_unresolved \*'
  8300. 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'
  8301. fi
  8302. archive_cmds_need_lc='no'
  8303. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8304. hardcode_libdir_separator=:
  8305. ;;
  8306. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8307. if test "$GCC" = yes; then
  8308. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8309. 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'
  8310. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8311. else
  8312. allow_undefined_flag=' -expect_unresolved \*'
  8313. 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'
  8314. 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~
  8315. $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'
  8316. # Both c and cxx compiler support -rpath directly
  8317. hardcode_libdir_flag_spec='-rpath $libdir'
  8318. fi
  8319. archive_cmds_need_lc='no'
  8320. hardcode_libdir_separator=:
  8321. ;;
  8322. solaris*)
  8323. no_undefined_flag=' -z defs'
  8324. if test "$GCC" = yes; then
  8325. wlarc='${wl}'
  8326. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8327. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8328. $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'
  8329. else
  8330. case `$CC -V 2>&1` in
  8331. *"Compilers 5.0"*)
  8332. wlarc=''
  8333. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8334. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8335. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8336. ;;
  8337. *)
  8338. wlarc='${wl}'
  8339. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8340. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8341. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8342. ;;
  8343. esac
  8344. fi
  8345. hardcode_libdir_flag_spec='-R$libdir'
  8346. hardcode_shlibpath_var=no
  8347. case $host_os in
  8348. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8349. *)
  8350. # The compiler driver will combine and reorder linker options,
  8351. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8352. # but is careful enough not to reorder.
  8353. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8354. if test "$GCC" = yes; then
  8355. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8356. else
  8357. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8358. fi
  8359. ;;
  8360. esac
  8361. link_all_deplibs=yes
  8362. ;;
  8363. sunos4*)
  8364. if test "x$host_vendor" = xsequent; then
  8365. # Use $CC to link under sequent, because it throws in some extra .o
  8366. # files that make .init and .fini sections work.
  8367. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8368. else
  8369. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8370. fi
  8371. hardcode_libdir_flag_spec='-L$libdir'
  8372. hardcode_direct=yes
  8373. hardcode_minus_L=yes
  8374. hardcode_shlibpath_var=no
  8375. ;;
  8376. sysv4)
  8377. case $host_vendor in
  8378. sni)
  8379. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8380. hardcode_direct=yes # is this really true???
  8381. ;;
  8382. siemens)
  8383. ## LD is ld it makes a PLAMLIB
  8384. ## CC just makes a GrossModule.
  8385. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8386. reload_cmds='$CC -r -o $output$reload_objs'
  8387. hardcode_direct=no
  8388. ;;
  8389. motorola)
  8390. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8391. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8392. ;;
  8393. esac
  8394. runpath_var='LD_RUN_PATH'
  8395. hardcode_shlibpath_var=no
  8396. ;;
  8397. sysv4.3*)
  8398. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8399. hardcode_shlibpath_var=no
  8400. export_dynamic_flag_spec='-Bexport'
  8401. ;;
  8402. sysv4*MP*)
  8403. if test -d /usr/nec; then
  8404. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8405. hardcode_shlibpath_var=no
  8406. runpath_var=LD_RUN_PATH
  8407. hardcode_runpath_var=yes
  8408. ld_shlibs=yes
  8409. fi
  8410. ;;
  8411. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8412. no_undefined_flag='${wl}-z,text'
  8413. archive_cmds_need_lc=no
  8414. hardcode_shlibpath_var=no
  8415. runpath_var='LD_RUN_PATH'
  8416. if test "$GCC" = yes; then
  8417. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8418. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8419. else
  8420. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8421. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8422. fi
  8423. ;;
  8424. sysv5* | sco3.2v5* | sco5v6*)
  8425. # Note: We can NOT use -z defs as we might desire, because we do not
  8426. # link with -lc, and that would cause any symbols used from libc to
  8427. # always be unresolved, which means just about no library would
  8428. # ever link correctly. If we're not using GNU ld we use -z text
  8429. # though, which does catch some bad symbols but isn't as heavy-handed
  8430. # as -z defs.
  8431. no_undefined_flag='${wl}-z,text'
  8432. allow_undefined_flag='${wl}-z,nodefs'
  8433. archive_cmds_need_lc=no
  8434. hardcode_shlibpath_var=no
  8435. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8436. hardcode_libdir_separator=':'
  8437. link_all_deplibs=yes
  8438. export_dynamic_flag_spec='${wl}-Bexport'
  8439. runpath_var='LD_RUN_PATH'
  8440. if test "$GCC" = yes; then
  8441. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8442. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. else
  8444. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8445. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. fi
  8447. ;;
  8448. uts4*)
  8449. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8450. hardcode_libdir_flag_spec='-L$libdir'
  8451. hardcode_shlibpath_var=no
  8452. ;;
  8453. *)
  8454. ld_shlibs=no
  8455. ;;
  8456. esac
  8457. if test x$host_vendor = xsni; then
  8458. case $host in
  8459. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8460. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8461. ;;
  8462. esac
  8463. fi
  8464. fi
  8465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8466. $as_echo "$ld_shlibs" >&6; }
  8467. test "$ld_shlibs" = no && can_build_shared=no
  8468. with_gnu_ld=$with_gnu_ld
  8469. #
  8470. # Do we need to explicitly link libc?
  8471. #
  8472. case "x$archive_cmds_need_lc" in
  8473. x|xyes)
  8474. # Assume -lc should be added
  8475. archive_cmds_need_lc=yes
  8476. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8477. case $archive_cmds in
  8478. *'~'*)
  8479. # FIXME: we may have to deal with multi-command sequences.
  8480. ;;
  8481. '$CC '*)
  8482. # Test whether the compiler implicitly links with -lc since on some
  8483. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8484. # to ld, don't add -lc before -lgcc.
  8485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8486. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8487. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8488. $as_echo_n "(cached) " >&6
  8489. else
  8490. $RM conftest*
  8491. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8492. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8493. (eval $ac_compile) 2>&5
  8494. ac_status=$?
  8495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8496. test $ac_status = 0; } 2>conftest.err; then
  8497. soname=conftest
  8498. lib=conftest
  8499. libobjs=conftest.$ac_objext
  8500. deplibs=
  8501. wl=$lt_prog_compiler_wl
  8502. pic_flag=$lt_prog_compiler_pic
  8503. compiler_flags=-v
  8504. linker_flags=-v
  8505. verstring=
  8506. output_objdir=.
  8507. libname=conftest
  8508. lt_save_allow_undefined_flag=$allow_undefined_flag
  8509. allow_undefined_flag=
  8510. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8511. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8512. ac_status=$?
  8513. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8514. test $ac_status = 0; }
  8515. then
  8516. lt_cv_archive_cmds_need_lc=no
  8517. else
  8518. lt_cv_archive_cmds_need_lc=yes
  8519. fi
  8520. allow_undefined_flag=$lt_save_allow_undefined_flag
  8521. else
  8522. cat conftest.err 1>&5
  8523. fi
  8524. $RM conftest*
  8525. fi
  8526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8527. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8528. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8529. ;;
  8530. esac
  8531. fi
  8532. ;;
  8533. esac
  8534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8535. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8536. if test "$GCC" = yes; then
  8537. case $host_os in
  8538. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8539. *) lt_awk_arg="/^libraries:/" ;;
  8540. esac
  8541. case $host_os in
  8542. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8543. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8544. esac
  8545. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8546. case $lt_search_path_spec in
  8547. *\;*)
  8548. # if the path contains ";" then we assume it to be the separator
  8549. # otherwise default to the standard path separator (i.e. ":") - it is
  8550. # assumed that no part of a normal pathname contains ";" but that should
  8551. # okay in the real world where ";" in dirpaths is itself problematic.
  8552. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8553. ;;
  8554. *)
  8555. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8556. ;;
  8557. esac
  8558. # Ok, now we have the path, separated by spaces, we can step through it
  8559. # and add multilib dir if necessary.
  8560. lt_tmp_lt_search_path_spec=
  8561. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8562. for lt_sys_path in $lt_search_path_spec; do
  8563. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8564. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8565. else
  8566. test -d "$lt_sys_path" && \
  8567. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8568. fi
  8569. done
  8570. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8571. BEGIN {RS=" "; FS="/|\n";} {
  8572. lt_foo="";
  8573. lt_count=0;
  8574. for (lt_i = NF; lt_i > 0; lt_i--) {
  8575. if ($lt_i != "" && $lt_i != ".") {
  8576. if ($lt_i == "..") {
  8577. lt_count++;
  8578. } else {
  8579. if (lt_count == 0) {
  8580. lt_foo="/" $lt_i lt_foo;
  8581. } else {
  8582. lt_count--;
  8583. }
  8584. }
  8585. }
  8586. }
  8587. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8588. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8589. }'`
  8590. # AWK program above erroneously prepends '/' to C:/dos/paths
  8591. # for these hosts.
  8592. case $host_os in
  8593. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8594. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8595. esac
  8596. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8597. else
  8598. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8599. fi
  8600. library_names_spec=
  8601. libname_spec='lib$name'
  8602. soname_spec=
  8603. shrext_cmds=".so"
  8604. postinstall_cmds=
  8605. postuninstall_cmds=
  8606. finish_cmds=
  8607. finish_eval=
  8608. shlibpath_var=
  8609. shlibpath_overrides_runpath=unknown
  8610. version_type=none
  8611. dynamic_linker="$host_os ld.so"
  8612. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8613. need_lib_prefix=unknown
  8614. hardcode_into_libs=no
  8615. # when you set need_version to no, make sure it does not cause -set_version
  8616. # flags to be left without arguments
  8617. need_version=unknown
  8618. case $host_os in
  8619. aix3*)
  8620. version_type=linux
  8621. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8622. shlibpath_var=LIBPATH
  8623. # AIX 3 has no versioning support, so we append a major version to the name.
  8624. soname_spec='${libname}${release}${shared_ext}$major'
  8625. ;;
  8626. aix[4-9]*)
  8627. version_type=linux
  8628. need_lib_prefix=no
  8629. need_version=no
  8630. hardcode_into_libs=yes
  8631. if test "$host_cpu" = ia64; then
  8632. # AIX 5 supports IA64
  8633. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8634. shlibpath_var=LD_LIBRARY_PATH
  8635. else
  8636. # With GCC up to 2.95.x, collect2 would create an import file
  8637. # for dependence libraries. The import file would start with
  8638. # the line `#! .'. This would cause the generated library to
  8639. # depend on `.', always an invalid library. This was fixed in
  8640. # development snapshots of GCC prior to 3.0.
  8641. case $host_os in
  8642. aix4 | aix4.[01] | aix4.[01].*)
  8643. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8644. echo ' yes '
  8645. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8646. :
  8647. else
  8648. can_build_shared=no
  8649. fi
  8650. ;;
  8651. esac
  8652. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8653. # soname into executable. Probably we can add versioning support to
  8654. # collect2, so additional links can be useful in future.
  8655. if test "$aix_use_runtimelinking" = yes; then
  8656. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8657. # instead of lib<name>.a to let people know that these are not
  8658. # typical AIX shared libraries.
  8659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8660. else
  8661. # We preserve .a as extension for shared libraries through AIX4.2
  8662. # and later when we are not doing run time linking.
  8663. library_names_spec='${libname}${release}.a $libname.a'
  8664. soname_spec='${libname}${release}${shared_ext}$major'
  8665. fi
  8666. shlibpath_var=LIBPATH
  8667. fi
  8668. ;;
  8669. amigaos*)
  8670. case $host_cpu in
  8671. powerpc)
  8672. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8673. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8675. ;;
  8676. m68k)
  8677. library_names_spec='$libname.ixlibrary $libname.a'
  8678. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8679. 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'
  8680. ;;
  8681. esac
  8682. ;;
  8683. beos*)
  8684. library_names_spec='${libname}${shared_ext}'
  8685. dynamic_linker="$host_os ld.so"
  8686. shlibpath_var=LIBRARY_PATH
  8687. ;;
  8688. bsdi[45]*)
  8689. version_type=linux
  8690. need_version=no
  8691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8692. soname_spec='${libname}${release}${shared_ext}$major'
  8693. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8694. shlibpath_var=LD_LIBRARY_PATH
  8695. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8696. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8697. # the default ld.so.conf also contains /usr/contrib/lib and
  8698. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8699. # libtool to hard-code these into programs
  8700. ;;
  8701. cygwin* | mingw* | pw32* | cegcc*)
  8702. version_type=windows
  8703. shrext_cmds=".dll"
  8704. need_version=no
  8705. need_lib_prefix=no
  8706. case $GCC,$cc_basename in
  8707. yes,*)
  8708. # gcc
  8709. library_names_spec='$libname.dll.a'
  8710. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8711. postinstall_cmds='base_file=`basename \${file}`~
  8712. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8713. dldir=$destdir/`dirname \$dlpath`~
  8714. test -d \$dldir || mkdir -p \$dldir~
  8715. $install_prog $dir/$dlname \$dldir/$dlname~
  8716. chmod a+x \$dldir/$dlname~
  8717. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8718. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8719. fi'
  8720. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8721. dlpath=$dir/\$dldll~
  8722. $RM \$dlpath'
  8723. shlibpath_overrides_runpath=yes
  8724. case $host_os in
  8725. cygwin*)
  8726. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8727. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8728. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8729. ;;
  8730. mingw* | cegcc*)
  8731. # MinGW DLLs use traditional 'lib' prefix
  8732. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8733. ;;
  8734. pw32*)
  8735. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8736. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8737. ;;
  8738. esac
  8739. dynamic_linker='Win32 ld.exe'
  8740. ;;
  8741. *,cl*)
  8742. # Native MSVC
  8743. libname_spec='$name'
  8744. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8745. library_names_spec='${libname}.dll.lib'
  8746. case $build_os in
  8747. mingw*)
  8748. sys_lib_search_path_spec=
  8749. lt_save_ifs=$IFS
  8750. IFS=';'
  8751. for lt_path in $LIB
  8752. do
  8753. IFS=$lt_save_ifs
  8754. # Let DOS variable expansion print the short 8.3 style file name.
  8755. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8756. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8757. done
  8758. IFS=$lt_save_ifs
  8759. # Convert to MSYS style.
  8760. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8761. ;;
  8762. cygwin*)
  8763. # Convert to unix form, then to dos form, then back to unix form
  8764. # but this time dos style (no spaces!) so that the unix form looks
  8765. # like /cygdrive/c/PROGRA~1:/cygdr...
  8766. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8767. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8768. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8769. ;;
  8770. *)
  8771. sys_lib_search_path_spec="$LIB"
  8772. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8773. # It is most probably a Windows format PATH.
  8774. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8775. else
  8776. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8777. fi
  8778. # FIXME: find the short name or the path components, as spaces are
  8779. # common. (e.g. "Program Files" -> "PROGRA~1")
  8780. ;;
  8781. esac
  8782. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8783. postinstall_cmds='base_file=`basename \${file}`~
  8784. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8785. dldir=$destdir/`dirname \$dlpath`~
  8786. test -d \$dldir || mkdir -p \$dldir~
  8787. $install_prog $dir/$dlname \$dldir/$dlname'
  8788. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8789. dlpath=$dir/\$dldll~
  8790. $RM \$dlpath'
  8791. shlibpath_overrides_runpath=yes
  8792. dynamic_linker='Win32 link.exe'
  8793. ;;
  8794. *)
  8795. # Assume MSVC wrapper
  8796. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8797. dynamic_linker='Win32 ld.exe'
  8798. ;;
  8799. esac
  8800. # FIXME: first we should search . and the directory the executable is in
  8801. shlibpath_var=PATH
  8802. ;;
  8803. darwin* | rhapsody*)
  8804. dynamic_linker="$host_os dyld"
  8805. version_type=darwin
  8806. need_lib_prefix=no
  8807. need_version=no
  8808. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8809. soname_spec='${libname}${release}${major}$shared_ext'
  8810. shlibpath_overrides_runpath=yes
  8811. shlibpath_var=DYLD_LIBRARY_PATH
  8812. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8813. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8814. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8815. ;;
  8816. dgux*)
  8817. version_type=linux
  8818. need_lib_prefix=no
  8819. need_version=no
  8820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8821. soname_spec='${libname}${release}${shared_ext}$major'
  8822. shlibpath_var=LD_LIBRARY_PATH
  8823. ;;
  8824. freebsd1*)
  8825. dynamic_linker=no
  8826. ;;
  8827. freebsd* | dragonfly*)
  8828. # DragonFly does not have aout. When/if they implement a new
  8829. # versioning mechanism, adjust this.
  8830. if test -x /usr/bin/objformat; then
  8831. objformat=`/usr/bin/objformat`
  8832. else
  8833. case $host_os in
  8834. freebsd[123]*) objformat=aout ;;
  8835. *) objformat=elf ;;
  8836. esac
  8837. fi
  8838. version_type=freebsd-$objformat
  8839. case $version_type in
  8840. freebsd-elf*)
  8841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8842. need_version=no
  8843. need_lib_prefix=no
  8844. ;;
  8845. freebsd-*)
  8846. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8847. need_version=yes
  8848. ;;
  8849. esac
  8850. shlibpath_var=LD_LIBRARY_PATH
  8851. case $host_os in
  8852. freebsd2*)
  8853. shlibpath_overrides_runpath=yes
  8854. ;;
  8855. freebsd3.[01]* | freebsdelf3.[01]*)
  8856. shlibpath_overrides_runpath=yes
  8857. hardcode_into_libs=yes
  8858. ;;
  8859. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8860. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8861. shlibpath_overrides_runpath=no
  8862. hardcode_into_libs=yes
  8863. ;;
  8864. *) # from 4.6 on, and DragonFly
  8865. shlibpath_overrides_runpath=yes
  8866. hardcode_into_libs=yes
  8867. ;;
  8868. esac
  8869. ;;
  8870. gnu*)
  8871. version_type=linux
  8872. need_lib_prefix=no
  8873. need_version=no
  8874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8875. soname_spec='${libname}${release}${shared_ext}$major'
  8876. shlibpath_var=LD_LIBRARY_PATH
  8877. hardcode_into_libs=yes
  8878. ;;
  8879. haiku*)
  8880. version_type=linux
  8881. need_lib_prefix=no
  8882. need_version=no
  8883. dynamic_linker="$host_os runtime_loader"
  8884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8885. soname_spec='${libname}${release}${shared_ext}$major'
  8886. shlibpath_var=LIBRARY_PATH
  8887. shlibpath_overrides_runpath=yes
  8888. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8889. hardcode_into_libs=yes
  8890. ;;
  8891. hpux9* | hpux10* | hpux11*)
  8892. # Give a soname corresponding to the major version so that dld.sl refuses to
  8893. # link against other versions.
  8894. version_type=sunos
  8895. need_lib_prefix=no
  8896. need_version=no
  8897. case $host_cpu in
  8898. ia64*)
  8899. shrext_cmds='.so'
  8900. hardcode_into_libs=yes
  8901. dynamic_linker="$host_os dld.so"
  8902. shlibpath_var=LD_LIBRARY_PATH
  8903. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8905. soname_spec='${libname}${release}${shared_ext}$major'
  8906. if test "X$HPUX_IA64_MODE" = X32; then
  8907. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8908. else
  8909. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8910. fi
  8911. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8912. ;;
  8913. hppa*64*)
  8914. shrext_cmds='.sl'
  8915. hardcode_into_libs=yes
  8916. dynamic_linker="$host_os dld.sl"
  8917. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8918. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8920. soname_spec='${libname}${release}${shared_ext}$major'
  8921. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8922. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8923. ;;
  8924. *)
  8925. shrext_cmds='.sl'
  8926. dynamic_linker="$host_os dld.sl"
  8927. shlibpath_var=SHLIB_PATH
  8928. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8930. soname_spec='${libname}${release}${shared_ext}$major'
  8931. ;;
  8932. esac
  8933. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8934. postinstall_cmds='chmod 555 $lib'
  8935. # or fails outright, so override atomically:
  8936. install_override_mode=555
  8937. ;;
  8938. interix[3-9]*)
  8939. version_type=linux
  8940. need_lib_prefix=no
  8941. need_version=no
  8942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8943. soname_spec='${libname}${release}${shared_ext}$major'
  8944. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8945. shlibpath_var=LD_LIBRARY_PATH
  8946. shlibpath_overrides_runpath=no
  8947. hardcode_into_libs=yes
  8948. ;;
  8949. irix5* | irix6* | nonstopux*)
  8950. case $host_os in
  8951. nonstopux*) version_type=nonstopux ;;
  8952. *)
  8953. if test "$lt_cv_prog_gnu_ld" = yes; then
  8954. version_type=linux
  8955. else
  8956. version_type=irix
  8957. fi ;;
  8958. esac
  8959. need_lib_prefix=no
  8960. need_version=no
  8961. soname_spec='${libname}${release}${shared_ext}$major'
  8962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8963. case $host_os in
  8964. irix5* | nonstopux*)
  8965. libsuff= shlibsuff=
  8966. ;;
  8967. *)
  8968. case $LD in # libtool.m4 will add one of these switches to LD
  8969. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8970. libsuff= shlibsuff= libmagic=32-bit;;
  8971. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8972. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8973. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8974. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8975. *) libsuff= shlibsuff= libmagic=never-match;;
  8976. esac
  8977. ;;
  8978. esac
  8979. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8980. shlibpath_overrides_runpath=no
  8981. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8982. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8983. hardcode_into_libs=yes
  8984. ;;
  8985. # No shared lib support for Linux oldld, aout, or coff.
  8986. linux*oldld* | linux*aout* | linux*coff*)
  8987. dynamic_linker=no
  8988. ;;
  8989. # This must be Linux ELF.
  8990. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8991. version_type=linux
  8992. need_lib_prefix=no
  8993. need_version=no
  8994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8995. soname_spec='${libname}${release}${shared_ext}$major'
  8996. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8997. shlibpath_var=LD_LIBRARY_PATH
  8998. shlibpath_overrides_runpath=no
  8999. # Some binutils ld are patched to set DT_RUNPATH
  9000. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9001. $as_echo_n "(cached) " >&6
  9002. else
  9003. lt_cv_shlibpath_overrides_runpath=no
  9004. save_LDFLAGS=$LDFLAGS
  9005. save_libdir=$libdir
  9006. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9007. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9009. /* end confdefs.h. */
  9010. int
  9011. main ()
  9012. {
  9013. ;
  9014. return 0;
  9015. }
  9016. _ACEOF
  9017. if ac_fn_c_try_link "$LINENO"; then :
  9018. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9019. lt_cv_shlibpath_overrides_runpath=yes
  9020. fi
  9021. fi
  9022. rm -f core conftest.err conftest.$ac_objext \
  9023. conftest$ac_exeext conftest.$ac_ext
  9024. LDFLAGS=$save_LDFLAGS
  9025. libdir=$save_libdir
  9026. fi
  9027. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9028. # This implies no fast_install, which is unacceptable.
  9029. # Some rework will be needed to allow for fast_install
  9030. # before this can be enabled.
  9031. hardcode_into_libs=yes
  9032. # Append ld.so.conf contents to the search path
  9033. if test -f /etc/ld.so.conf; then
  9034. 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' ' '`
  9035. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9036. fi
  9037. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9038. # powerpc, because MkLinux only supported shared libraries with the
  9039. # GNU dynamic linker. Since this was broken with cross compilers,
  9040. # most powerpc-linux boxes support dynamic linking these days and
  9041. # people can always --disable-shared, the test was removed, and we
  9042. # assume the GNU/Linux dynamic linker is in use.
  9043. dynamic_linker='GNU/Linux ld.so'
  9044. ;;
  9045. netbsd*)
  9046. version_type=sunos
  9047. need_lib_prefix=no
  9048. need_version=no
  9049. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9051. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9052. dynamic_linker='NetBSD (a.out) ld.so'
  9053. else
  9054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9055. soname_spec='${libname}${release}${shared_ext}$major'
  9056. dynamic_linker='NetBSD ld.elf_so'
  9057. fi
  9058. shlibpath_var=LD_LIBRARY_PATH
  9059. shlibpath_overrides_runpath=yes
  9060. hardcode_into_libs=yes
  9061. ;;
  9062. newsos6)
  9063. version_type=linux
  9064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9065. shlibpath_var=LD_LIBRARY_PATH
  9066. shlibpath_overrides_runpath=yes
  9067. ;;
  9068. *nto* | *qnx*)
  9069. version_type=qnx
  9070. need_lib_prefix=no
  9071. need_version=no
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9073. soname_spec='${libname}${release}${shared_ext}$major'
  9074. shlibpath_var=LD_LIBRARY_PATH
  9075. shlibpath_overrides_runpath=no
  9076. hardcode_into_libs=yes
  9077. dynamic_linker='ldqnx.so'
  9078. ;;
  9079. openbsd*)
  9080. version_type=sunos
  9081. sys_lib_dlsearch_path_spec="/usr/lib"
  9082. need_lib_prefix=no
  9083. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9084. case $host_os in
  9085. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9086. *) need_version=no ;;
  9087. esac
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9089. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9090. shlibpath_var=LD_LIBRARY_PATH
  9091. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9092. case $host_os in
  9093. openbsd2.[89] | openbsd2.[89].*)
  9094. shlibpath_overrides_runpath=no
  9095. ;;
  9096. *)
  9097. shlibpath_overrides_runpath=yes
  9098. ;;
  9099. esac
  9100. else
  9101. shlibpath_overrides_runpath=yes
  9102. fi
  9103. ;;
  9104. os2*)
  9105. libname_spec='$name'
  9106. shrext_cmds=".dll"
  9107. need_lib_prefix=no
  9108. library_names_spec='$libname${shared_ext} $libname.a'
  9109. dynamic_linker='OS/2 ld.exe'
  9110. shlibpath_var=LIBPATH
  9111. ;;
  9112. osf3* | osf4* | osf5*)
  9113. version_type=osf
  9114. need_lib_prefix=no
  9115. need_version=no
  9116. soname_spec='${libname}${release}${shared_ext}$major'
  9117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9118. shlibpath_var=LD_LIBRARY_PATH
  9119. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9120. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9121. ;;
  9122. rdos*)
  9123. dynamic_linker=no
  9124. ;;
  9125. solaris*)
  9126. version_type=linux
  9127. need_lib_prefix=no
  9128. need_version=no
  9129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9130. soname_spec='${libname}${release}${shared_ext}$major'
  9131. shlibpath_var=LD_LIBRARY_PATH
  9132. shlibpath_overrides_runpath=yes
  9133. hardcode_into_libs=yes
  9134. # ldd complains unless libraries are executable
  9135. postinstall_cmds='chmod +x $lib'
  9136. ;;
  9137. sunos4*)
  9138. version_type=sunos
  9139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9140. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9141. shlibpath_var=LD_LIBRARY_PATH
  9142. shlibpath_overrides_runpath=yes
  9143. if test "$with_gnu_ld" = yes; then
  9144. need_lib_prefix=no
  9145. fi
  9146. need_version=yes
  9147. ;;
  9148. sysv4 | sysv4.3*)
  9149. version_type=linux
  9150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9151. soname_spec='${libname}${release}${shared_ext}$major'
  9152. shlibpath_var=LD_LIBRARY_PATH
  9153. case $host_vendor in
  9154. sni)
  9155. shlibpath_overrides_runpath=no
  9156. need_lib_prefix=no
  9157. runpath_var=LD_RUN_PATH
  9158. ;;
  9159. siemens)
  9160. need_lib_prefix=no
  9161. ;;
  9162. motorola)
  9163. need_lib_prefix=no
  9164. need_version=no
  9165. shlibpath_overrides_runpath=no
  9166. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9167. ;;
  9168. esac
  9169. ;;
  9170. sysv4*MP*)
  9171. if test -d /usr/nec ;then
  9172. version_type=linux
  9173. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9174. soname_spec='$libname${shared_ext}.$major'
  9175. shlibpath_var=LD_LIBRARY_PATH
  9176. fi
  9177. ;;
  9178. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9179. version_type=freebsd-elf
  9180. need_lib_prefix=no
  9181. need_version=no
  9182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9183. soname_spec='${libname}${release}${shared_ext}$major'
  9184. shlibpath_var=LD_LIBRARY_PATH
  9185. shlibpath_overrides_runpath=yes
  9186. hardcode_into_libs=yes
  9187. if test "$with_gnu_ld" = yes; then
  9188. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9189. else
  9190. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9191. case $host_os in
  9192. sco3.2v5*)
  9193. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9194. ;;
  9195. esac
  9196. fi
  9197. sys_lib_dlsearch_path_spec='/usr/lib'
  9198. ;;
  9199. tpf*)
  9200. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9201. version_type=linux
  9202. need_lib_prefix=no
  9203. need_version=no
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9205. shlibpath_var=LD_LIBRARY_PATH
  9206. shlibpath_overrides_runpath=no
  9207. hardcode_into_libs=yes
  9208. ;;
  9209. uts4*)
  9210. version_type=linux
  9211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9212. soname_spec='${libname}${release}${shared_ext}$major'
  9213. shlibpath_var=LD_LIBRARY_PATH
  9214. ;;
  9215. *)
  9216. dynamic_linker=no
  9217. ;;
  9218. esac
  9219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9220. $as_echo "$dynamic_linker" >&6; }
  9221. test "$dynamic_linker" = no && can_build_shared=no
  9222. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9223. if test "$GCC" = yes; then
  9224. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9225. fi
  9226. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9227. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9228. fi
  9229. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9230. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9231. fi
  9232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9233. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9234. hardcode_action=
  9235. if test -n "$hardcode_libdir_flag_spec" ||
  9236. test -n "$runpath_var" ||
  9237. test "X$hardcode_automatic" = "Xyes" ; then
  9238. # We can hardcode non-existent directories.
  9239. if test "$hardcode_direct" != no &&
  9240. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9241. # have to relink, otherwise we might link with an installed library
  9242. # when we should be linking with a yet-to-be-installed one
  9243. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9244. test "$hardcode_minus_L" != no; then
  9245. # Linking always hardcodes the temporary library directory.
  9246. hardcode_action=relink
  9247. else
  9248. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9249. hardcode_action=immediate
  9250. fi
  9251. else
  9252. # We cannot hardcode anything, or else we can only hardcode existing
  9253. # directories.
  9254. hardcode_action=unsupported
  9255. fi
  9256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9257. $as_echo "$hardcode_action" >&6; }
  9258. if test "$hardcode_action" = relink ||
  9259. test "$inherit_rpath" = yes; then
  9260. # Fast installation is not supported
  9261. enable_fast_install=no
  9262. elif test "$shlibpath_overrides_runpath" = yes ||
  9263. test "$enable_shared" = no; then
  9264. # Fast installation is not necessary
  9265. enable_fast_install=needless
  9266. fi
  9267. if test "x$enable_dlopen" != xyes; then
  9268. enable_dlopen=unknown
  9269. enable_dlopen_self=unknown
  9270. enable_dlopen_self_static=unknown
  9271. else
  9272. lt_cv_dlopen=no
  9273. lt_cv_dlopen_libs=
  9274. case $host_os in
  9275. beos*)
  9276. lt_cv_dlopen="load_add_on"
  9277. lt_cv_dlopen_libs=
  9278. lt_cv_dlopen_self=yes
  9279. ;;
  9280. mingw* | pw32* | cegcc*)
  9281. lt_cv_dlopen="LoadLibrary"
  9282. lt_cv_dlopen_libs=
  9283. ;;
  9284. cygwin*)
  9285. lt_cv_dlopen="dlopen"
  9286. lt_cv_dlopen_libs=
  9287. ;;
  9288. darwin*)
  9289. # if libdl is installed we need to link against it
  9290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9291. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9292. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9293. $as_echo_n "(cached) " >&6
  9294. else
  9295. ac_check_lib_save_LIBS=$LIBS
  9296. LIBS="-ldl $LIBS"
  9297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9298. /* end confdefs.h. */
  9299. /* Override any GCC internal prototype to avoid an error.
  9300. Use char because int might match the return type of a GCC
  9301. builtin and then its argument prototype would still apply. */
  9302. #ifdef __cplusplus
  9303. extern "C"
  9304. #endif
  9305. char dlopen ();
  9306. int
  9307. main ()
  9308. {
  9309. return dlopen ();
  9310. ;
  9311. return 0;
  9312. }
  9313. _ACEOF
  9314. if ac_fn_c_try_link "$LINENO"; then :
  9315. ac_cv_lib_dl_dlopen=yes
  9316. else
  9317. ac_cv_lib_dl_dlopen=no
  9318. fi
  9319. rm -f core conftest.err conftest.$ac_objext \
  9320. conftest$ac_exeext conftest.$ac_ext
  9321. LIBS=$ac_check_lib_save_LIBS
  9322. fi
  9323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9324. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9325. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9326. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9327. else
  9328. lt_cv_dlopen="dyld"
  9329. lt_cv_dlopen_libs=
  9330. lt_cv_dlopen_self=yes
  9331. fi
  9332. ;;
  9333. *)
  9334. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9335. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9336. lt_cv_dlopen="shl_load"
  9337. else
  9338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9339. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9340. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9341. $as_echo_n "(cached) " >&6
  9342. else
  9343. ac_check_lib_save_LIBS=$LIBS
  9344. LIBS="-ldld $LIBS"
  9345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9346. /* end confdefs.h. */
  9347. /* Override any GCC internal prototype to avoid an error.
  9348. Use char because int might match the return type of a GCC
  9349. builtin and then its argument prototype would still apply. */
  9350. #ifdef __cplusplus
  9351. extern "C"
  9352. #endif
  9353. char shl_load ();
  9354. int
  9355. main ()
  9356. {
  9357. return shl_load ();
  9358. ;
  9359. return 0;
  9360. }
  9361. _ACEOF
  9362. if ac_fn_c_try_link "$LINENO"; then :
  9363. ac_cv_lib_dld_shl_load=yes
  9364. else
  9365. ac_cv_lib_dld_shl_load=no
  9366. fi
  9367. rm -f core conftest.err conftest.$ac_objext \
  9368. conftest$ac_exeext conftest.$ac_ext
  9369. LIBS=$ac_check_lib_save_LIBS
  9370. fi
  9371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9372. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9373. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9374. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9375. else
  9376. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9377. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9378. lt_cv_dlopen="dlopen"
  9379. else
  9380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9381. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9382. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9383. $as_echo_n "(cached) " >&6
  9384. else
  9385. ac_check_lib_save_LIBS=$LIBS
  9386. LIBS="-ldl $LIBS"
  9387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9388. /* end confdefs.h. */
  9389. /* Override any GCC internal prototype to avoid an error.
  9390. Use char because int might match the return type of a GCC
  9391. builtin and then its argument prototype would still apply. */
  9392. #ifdef __cplusplus
  9393. extern "C"
  9394. #endif
  9395. char dlopen ();
  9396. int
  9397. main ()
  9398. {
  9399. return dlopen ();
  9400. ;
  9401. return 0;
  9402. }
  9403. _ACEOF
  9404. if ac_fn_c_try_link "$LINENO"; then :
  9405. ac_cv_lib_dl_dlopen=yes
  9406. else
  9407. ac_cv_lib_dl_dlopen=no
  9408. fi
  9409. rm -f core conftest.err conftest.$ac_objext \
  9410. conftest$ac_exeext conftest.$ac_ext
  9411. LIBS=$ac_check_lib_save_LIBS
  9412. fi
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9414. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9415. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9416. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9417. else
  9418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9419. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9420. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9421. $as_echo_n "(cached) " >&6
  9422. else
  9423. ac_check_lib_save_LIBS=$LIBS
  9424. LIBS="-lsvld $LIBS"
  9425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9426. /* end confdefs.h. */
  9427. /* Override any GCC internal prototype to avoid an error.
  9428. Use char because int might match the return type of a GCC
  9429. builtin and then its argument prototype would still apply. */
  9430. #ifdef __cplusplus
  9431. extern "C"
  9432. #endif
  9433. char dlopen ();
  9434. int
  9435. main ()
  9436. {
  9437. return dlopen ();
  9438. ;
  9439. return 0;
  9440. }
  9441. _ACEOF
  9442. if ac_fn_c_try_link "$LINENO"; then :
  9443. ac_cv_lib_svld_dlopen=yes
  9444. else
  9445. ac_cv_lib_svld_dlopen=no
  9446. fi
  9447. rm -f core conftest.err conftest.$ac_objext \
  9448. conftest$ac_exeext conftest.$ac_ext
  9449. LIBS=$ac_check_lib_save_LIBS
  9450. fi
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9452. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9453. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9454. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9455. else
  9456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9457. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9458. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9459. $as_echo_n "(cached) " >&6
  9460. else
  9461. ac_check_lib_save_LIBS=$LIBS
  9462. LIBS="-ldld $LIBS"
  9463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9464. /* end confdefs.h. */
  9465. /* Override any GCC internal prototype to avoid an error.
  9466. Use char because int might match the return type of a GCC
  9467. builtin and then its argument prototype would still apply. */
  9468. #ifdef __cplusplus
  9469. extern "C"
  9470. #endif
  9471. char dld_link ();
  9472. int
  9473. main ()
  9474. {
  9475. return dld_link ();
  9476. ;
  9477. return 0;
  9478. }
  9479. _ACEOF
  9480. if ac_fn_c_try_link "$LINENO"; then :
  9481. ac_cv_lib_dld_dld_link=yes
  9482. else
  9483. ac_cv_lib_dld_dld_link=no
  9484. fi
  9485. rm -f core conftest.err conftest.$ac_objext \
  9486. conftest$ac_exeext conftest.$ac_ext
  9487. LIBS=$ac_check_lib_save_LIBS
  9488. fi
  9489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9490. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9491. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9492. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9493. fi
  9494. fi
  9495. fi
  9496. fi
  9497. fi
  9498. fi
  9499. ;;
  9500. esac
  9501. if test "x$lt_cv_dlopen" != xno; then
  9502. enable_dlopen=yes
  9503. else
  9504. enable_dlopen=no
  9505. fi
  9506. case $lt_cv_dlopen in
  9507. dlopen)
  9508. save_CPPFLAGS="$CPPFLAGS"
  9509. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9510. save_LDFLAGS="$LDFLAGS"
  9511. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9512. save_LIBS="$LIBS"
  9513. LIBS="$lt_cv_dlopen_libs $LIBS"
  9514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9515. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9516. if test "${lt_cv_dlopen_self+set}" = set; then :
  9517. $as_echo_n "(cached) " >&6
  9518. else
  9519. if test "$cross_compiling" = yes; then :
  9520. lt_cv_dlopen_self=cross
  9521. else
  9522. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9523. lt_status=$lt_dlunknown
  9524. cat > conftest.$ac_ext <<_LT_EOF
  9525. #line $LINENO "configure"
  9526. #include "confdefs.h"
  9527. #if HAVE_DLFCN_H
  9528. #include <dlfcn.h>
  9529. #endif
  9530. #include <stdio.h>
  9531. #ifdef RTLD_GLOBAL
  9532. # define LT_DLGLOBAL RTLD_GLOBAL
  9533. #else
  9534. # ifdef DL_GLOBAL
  9535. # define LT_DLGLOBAL DL_GLOBAL
  9536. # else
  9537. # define LT_DLGLOBAL 0
  9538. # endif
  9539. #endif
  9540. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9541. find out it does not work in some platform. */
  9542. #ifndef LT_DLLAZY_OR_NOW
  9543. # ifdef RTLD_LAZY
  9544. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9545. # else
  9546. # ifdef DL_LAZY
  9547. # define LT_DLLAZY_OR_NOW DL_LAZY
  9548. # else
  9549. # ifdef RTLD_NOW
  9550. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9551. # else
  9552. # ifdef DL_NOW
  9553. # define LT_DLLAZY_OR_NOW DL_NOW
  9554. # else
  9555. # define LT_DLLAZY_OR_NOW 0
  9556. # endif
  9557. # endif
  9558. # endif
  9559. # endif
  9560. #endif
  9561. /* When -fvisbility=hidden is used, assume the code has been annotated
  9562. correspondingly for the symbols needed. */
  9563. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9564. int fnord () __attribute__((visibility("default")));
  9565. #endif
  9566. int fnord () { return 42; }
  9567. int main ()
  9568. {
  9569. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9570. int status = $lt_dlunknown;
  9571. if (self)
  9572. {
  9573. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9574. else
  9575. {
  9576. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9577. else puts (dlerror ());
  9578. }
  9579. /* dlclose (self); */
  9580. }
  9581. else
  9582. puts (dlerror ());
  9583. return status;
  9584. }
  9585. _LT_EOF
  9586. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9587. (eval $ac_link) 2>&5
  9588. ac_status=$?
  9589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9590. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9591. (./conftest; exit; ) >&5 2>/dev/null
  9592. lt_status=$?
  9593. case x$lt_status in
  9594. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9595. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9596. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9597. esac
  9598. else :
  9599. # compilation failed
  9600. lt_cv_dlopen_self=no
  9601. fi
  9602. fi
  9603. rm -fr conftest*
  9604. fi
  9605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9606. $as_echo "$lt_cv_dlopen_self" >&6; }
  9607. if test "x$lt_cv_dlopen_self" = xyes; then
  9608. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9610. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9611. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9612. $as_echo_n "(cached) " >&6
  9613. else
  9614. if test "$cross_compiling" = yes; then :
  9615. lt_cv_dlopen_self_static=cross
  9616. else
  9617. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9618. lt_status=$lt_dlunknown
  9619. cat > conftest.$ac_ext <<_LT_EOF
  9620. #line $LINENO "configure"
  9621. #include "confdefs.h"
  9622. #if HAVE_DLFCN_H
  9623. #include <dlfcn.h>
  9624. #endif
  9625. #include <stdio.h>
  9626. #ifdef RTLD_GLOBAL
  9627. # define LT_DLGLOBAL RTLD_GLOBAL
  9628. #else
  9629. # ifdef DL_GLOBAL
  9630. # define LT_DLGLOBAL DL_GLOBAL
  9631. # else
  9632. # define LT_DLGLOBAL 0
  9633. # endif
  9634. #endif
  9635. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9636. find out it does not work in some platform. */
  9637. #ifndef LT_DLLAZY_OR_NOW
  9638. # ifdef RTLD_LAZY
  9639. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9640. # else
  9641. # ifdef DL_LAZY
  9642. # define LT_DLLAZY_OR_NOW DL_LAZY
  9643. # else
  9644. # ifdef RTLD_NOW
  9645. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9646. # else
  9647. # ifdef DL_NOW
  9648. # define LT_DLLAZY_OR_NOW DL_NOW
  9649. # else
  9650. # define LT_DLLAZY_OR_NOW 0
  9651. # endif
  9652. # endif
  9653. # endif
  9654. # endif
  9655. #endif
  9656. /* When -fvisbility=hidden is used, assume the code has been annotated
  9657. correspondingly for the symbols needed. */
  9658. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9659. int fnord () __attribute__((visibility("default")));
  9660. #endif
  9661. int fnord () { return 42; }
  9662. int main ()
  9663. {
  9664. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9665. int status = $lt_dlunknown;
  9666. if (self)
  9667. {
  9668. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9669. else
  9670. {
  9671. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9672. else puts (dlerror ());
  9673. }
  9674. /* dlclose (self); */
  9675. }
  9676. else
  9677. puts (dlerror ());
  9678. return status;
  9679. }
  9680. _LT_EOF
  9681. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9682. (eval $ac_link) 2>&5
  9683. ac_status=$?
  9684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9685. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9686. (./conftest; exit; ) >&5 2>/dev/null
  9687. lt_status=$?
  9688. case x$lt_status in
  9689. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9690. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9691. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9692. esac
  9693. else :
  9694. # compilation failed
  9695. lt_cv_dlopen_self_static=no
  9696. fi
  9697. fi
  9698. rm -fr conftest*
  9699. fi
  9700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9701. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9702. fi
  9703. CPPFLAGS="$save_CPPFLAGS"
  9704. LDFLAGS="$save_LDFLAGS"
  9705. LIBS="$save_LIBS"
  9706. ;;
  9707. esac
  9708. case $lt_cv_dlopen_self in
  9709. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9710. *) enable_dlopen_self=unknown ;;
  9711. esac
  9712. case $lt_cv_dlopen_self_static in
  9713. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9714. *) enable_dlopen_self_static=unknown ;;
  9715. esac
  9716. fi
  9717. striplib=
  9718. old_striplib=
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9720. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9721. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9722. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9723. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9725. $as_echo "yes" >&6; }
  9726. else
  9727. # FIXME - insert some real tests, host_os isn't really good enough
  9728. case $host_os in
  9729. darwin*)
  9730. if test -n "$STRIP" ; then
  9731. striplib="$STRIP -x"
  9732. old_striplib="$STRIP -S"
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9734. $as_echo "yes" >&6; }
  9735. else
  9736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9737. $as_echo "no" >&6; }
  9738. fi
  9739. ;;
  9740. *)
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9742. $as_echo "no" >&6; }
  9743. ;;
  9744. esac
  9745. fi
  9746. # Report which library types will actually be built
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9748. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9750. $as_echo "$can_build_shared" >&6; }
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9752. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9753. test "$can_build_shared" = "no" && enable_shared=no
  9754. # On AIX, shared libraries and static libraries use the same namespace, and
  9755. # are all built from PIC.
  9756. case $host_os in
  9757. aix3*)
  9758. test "$enable_shared" = yes && enable_static=no
  9759. if test -n "$RANLIB"; then
  9760. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9761. postinstall_cmds='$RANLIB $lib'
  9762. fi
  9763. ;;
  9764. aix[4-9]*)
  9765. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9766. test "$enable_shared" = yes && enable_static=no
  9767. fi
  9768. ;;
  9769. esac
  9770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9771. $as_echo "$enable_shared" >&6; }
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9773. $as_echo_n "checking whether to build static libraries... " >&6; }
  9774. # Make sure either enable_shared or enable_static is yes.
  9775. test "$enable_shared" = yes || enable_static=yes
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9777. $as_echo "$enable_static" >&6; }
  9778. fi
  9779. ac_ext=c
  9780. ac_cpp='$CPP $CPPFLAGS'
  9781. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9782. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9783. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9784. CC="$lt_save_CC"
  9785. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9786. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9787. (test "X$CXX" != "Xg++"))) ; then
  9788. ac_ext=cpp
  9789. ac_cpp='$CXXCPP $CPPFLAGS'
  9790. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9791. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9792. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9794. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9795. if test -z "$CXXCPP"; then
  9796. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  9797. $as_echo_n "(cached) " >&6
  9798. else
  9799. # Double quotes because CXXCPP needs to be expanded
  9800. for CXXCPP in "$CXX -E" "/lib/cpp"
  9801. do
  9802. ac_preproc_ok=false
  9803. for ac_cxx_preproc_warn_flag in '' yes
  9804. do
  9805. # Use a header file that comes with gcc, so configuring glibc
  9806. # with a fresh cross-compiler works.
  9807. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9808. # <limits.h> exists even on freestanding compilers.
  9809. # On the NeXT, cc -E runs the code through the compiler's parser,
  9810. # not just through cpp. "Syntax error" is here to catch this case.
  9811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9812. /* end confdefs.h. */
  9813. #ifdef __STDC__
  9814. # include <limits.h>
  9815. #else
  9816. # include <assert.h>
  9817. #endif
  9818. Syntax error
  9819. _ACEOF
  9820. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9821. else
  9822. # Broken: fails on valid input.
  9823. continue
  9824. fi
  9825. rm -f conftest.err conftest.$ac_ext
  9826. # OK, works on sane cases. Now check whether nonexistent headers
  9827. # can be detected and how.
  9828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9829. /* end confdefs.h. */
  9830. #include <ac_nonexistent.h>
  9831. _ACEOF
  9832. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9833. # Broken: success on invalid input.
  9834. continue
  9835. else
  9836. # Passes both tests.
  9837. ac_preproc_ok=:
  9838. break
  9839. fi
  9840. rm -f conftest.err conftest.$ac_ext
  9841. done
  9842. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9843. rm -f conftest.err conftest.$ac_ext
  9844. if $ac_preproc_ok; then :
  9845. break
  9846. fi
  9847. done
  9848. ac_cv_prog_CXXCPP=$CXXCPP
  9849. fi
  9850. CXXCPP=$ac_cv_prog_CXXCPP
  9851. else
  9852. ac_cv_prog_CXXCPP=$CXXCPP
  9853. fi
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9855. $as_echo "$CXXCPP" >&6; }
  9856. ac_preproc_ok=false
  9857. for ac_cxx_preproc_warn_flag in '' yes
  9858. do
  9859. # Use a header file that comes with gcc, so configuring glibc
  9860. # with a fresh cross-compiler works.
  9861. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9862. # <limits.h> exists even on freestanding compilers.
  9863. # On the NeXT, cc -E runs the code through the compiler's parser,
  9864. # not just through cpp. "Syntax error" is here to catch this case.
  9865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9866. /* end confdefs.h. */
  9867. #ifdef __STDC__
  9868. # include <limits.h>
  9869. #else
  9870. # include <assert.h>
  9871. #endif
  9872. Syntax error
  9873. _ACEOF
  9874. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9875. else
  9876. # Broken: fails on valid input.
  9877. continue
  9878. fi
  9879. rm -f conftest.err conftest.$ac_ext
  9880. # OK, works on sane cases. Now check whether nonexistent headers
  9881. # can be detected and how.
  9882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9883. /* end confdefs.h. */
  9884. #include <ac_nonexistent.h>
  9885. _ACEOF
  9886. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9887. # Broken: success on invalid input.
  9888. continue
  9889. else
  9890. # Passes both tests.
  9891. ac_preproc_ok=:
  9892. break
  9893. fi
  9894. rm -f conftest.err conftest.$ac_ext
  9895. done
  9896. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9897. rm -f conftest.err conftest.$ac_ext
  9898. if $ac_preproc_ok; then :
  9899. else
  9900. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9901. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9902. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  9903. See \`config.log' for more details." "$LINENO" 5; }
  9904. fi
  9905. ac_ext=c
  9906. ac_cpp='$CPP $CPPFLAGS'
  9907. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9908. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9909. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9910. else
  9911. _lt_caught_CXX_error=yes
  9912. fi
  9913. ac_ext=cpp
  9914. ac_cpp='$CXXCPP $CPPFLAGS'
  9915. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9916. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9917. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9918. archive_cmds_need_lc_CXX=no
  9919. allow_undefined_flag_CXX=
  9920. always_export_symbols_CXX=no
  9921. archive_expsym_cmds_CXX=
  9922. compiler_needs_object_CXX=no
  9923. export_dynamic_flag_spec_CXX=
  9924. hardcode_direct_CXX=no
  9925. hardcode_direct_absolute_CXX=no
  9926. hardcode_libdir_flag_spec_CXX=
  9927. hardcode_libdir_flag_spec_ld_CXX=
  9928. hardcode_libdir_separator_CXX=
  9929. hardcode_minus_L_CXX=no
  9930. hardcode_shlibpath_var_CXX=unsupported
  9931. hardcode_automatic_CXX=no
  9932. inherit_rpath_CXX=no
  9933. module_cmds_CXX=
  9934. module_expsym_cmds_CXX=
  9935. link_all_deplibs_CXX=unknown
  9936. old_archive_cmds_CXX=$old_archive_cmds
  9937. reload_flag_CXX=$reload_flag
  9938. reload_cmds_CXX=$reload_cmds
  9939. no_undefined_flag_CXX=
  9940. whole_archive_flag_spec_CXX=
  9941. enable_shared_with_static_runtimes_CXX=no
  9942. # Source file extension for C++ test sources.
  9943. ac_ext=cpp
  9944. # Object file extension for compiled C++ test sources.
  9945. objext=o
  9946. objext_CXX=$objext
  9947. # No sense in running all these tests if we already determined that
  9948. # the CXX compiler isn't working. Some variables (like enable_shared)
  9949. # are currently assumed to apply to all compilers on this platform,
  9950. # and will be corrupted by setting them based on a non-working compiler.
  9951. if test "$_lt_caught_CXX_error" != yes; then
  9952. # Code to be used in simple compile tests
  9953. lt_simple_compile_test_code="int some_variable = 0;"
  9954. # Code to be used in simple link tests
  9955. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9956. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9957. # If no C compiler was specified, use CC.
  9958. LTCC=${LTCC-"$CC"}
  9959. # If no C compiler flags were specified, use CFLAGS.
  9960. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9961. # Allow CC to be a program name with arguments.
  9962. compiler=$CC
  9963. # save warnings/boilerplate of simple test code
  9964. ac_outfile=conftest.$ac_objext
  9965. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9966. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9967. _lt_compiler_boilerplate=`cat conftest.err`
  9968. $RM conftest*
  9969. ac_outfile=conftest.$ac_objext
  9970. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9971. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9972. _lt_linker_boilerplate=`cat conftest.err`
  9973. $RM -r conftest*
  9974. # Allow CC to be a program name with arguments.
  9975. lt_save_CC=$CC
  9976. lt_save_CFLAGS=$CFLAGS
  9977. lt_save_LD=$LD
  9978. lt_save_GCC=$GCC
  9979. GCC=$GXX
  9980. lt_save_with_gnu_ld=$with_gnu_ld
  9981. lt_save_path_LD=$lt_cv_path_LD
  9982. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9983. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9984. else
  9985. $as_unset lt_cv_prog_gnu_ld
  9986. fi
  9987. if test -n "${lt_cv_path_LDCXX+set}"; then
  9988. lt_cv_path_LD=$lt_cv_path_LDCXX
  9989. else
  9990. $as_unset lt_cv_path_LD
  9991. fi
  9992. test -z "${LDCXX+set}" || LD=$LDCXX
  9993. CC=${CXX-"c++"}
  9994. CFLAGS=$CXXFLAGS
  9995. compiler=$CC
  9996. compiler_CXX=$CC
  9997. for cc_temp in $compiler""; do
  9998. case $cc_temp in
  9999. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10000. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10001. \-*) ;;
  10002. *) break;;
  10003. esac
  10004. done
  10005. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10006. if test -n "$compiler"; then
  10007. # We don't want -fno-exception when compiling C++ code, so set the
  10008. # no_builtin_flag separately
  10009. if test "$GXX" = yes; then
  10010. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10011. else
  10012. lt_prog_compiler_no_builtin_flag_CXX=
  10013. fi
  10014. if test "$GXX" = yes; then
  10015. # Set up default GNU C++ configuration
  10016. # Check whether --with-gnu-ld was given.
  10017. if test "${with_gnu_ld+set}" = set; then :
  10018. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10019. else
  10020. with_gnu_ld=no
  10021. fi
  10022. ac_prog=ld
  10023. if test "$GCC" = yes; then
  10024. # Check if gcc -print-prog-name=ld gives a path.
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10026. $as_echo_n "checking for ld used by $CC... " >&6; }
  10027. case $host in
  10028. *-*-mingw*)
  10029. # gcc leaves a trailing carriage return which upsets mingw
  10030. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10031. *)
  10032. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10033. esac
  10034. case $ac_prog in
  10035. # Accept absolute paths.
  10036. [\\/]* | ?:[\\/]*)
  10037. re_direlt='/[^/][^/]*/\.\./'
  10038. # Canonicalize the pathname of ld
  10039. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10040. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10041. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10042. done
  10043. test -z "$LD" && LD="$ac_prog"
  10044. ;;
  10045. "")
  10046. # If it fails, then pretend we aren't using GCC.
  10047. ac_prog=ld
  10048. ;;
  10049. *)
  10050. # If it is relative, then search for the first ld in PATH.
  10051. with_gnu_ld=unknown
  10052. ;;
  10053. esac
  10054. elif test "$with_gnu_ld" = yes; then
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10056. $as_echo_n "checking for GNU ld... " >&6; }
  10057. else
  10058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10059. $as_echo_n "checking for non-GNU ld... " >&6; }
  10060. fi
  10061. if test "${lt_cv_path_LD+set}" = set; then :
  10062. $as_echo_n "(cached) " >&6
  10063. else
  10064. if test -z "$LD"; then
  10065. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10066. for ac_dir in $PATH; do
  10067. IFS="$lt_save_ifs"
  10068. test -z "$ac_dir" && ac_dir=.
  10069. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10070. lt_cv_path_LD="$ac_dir/$ac_prog"
  10071. # Check to see if the program is GNU ld. I'd rather use --version,
  10072. # but apparently some variants of GNU ld only accept -v.
  10073. # Break only if it was the GNU/non-GNU ld that we prefer.
  10074. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10075. *GNU* | *'with BFD'*)
  10076. test "$with_gnu_ld" != no && break
  10077. ;;
  10078. *)
  10079. test "$with_gnu_ld" != yes && break
  10080. ;;
  10081. esac
  10082. fi
  10083. done
  10084. IFS="$lt_save_ifs"
  10085. else
  10086. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10087. fi
  10088. fi
  10089. LD="$lt_cv_path_LD"
  10090. if test -n "$LD"; then
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10092. $as_echo "$LD" >&6; }
  10093. else
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10095. $as_echo "no" >&6; }
  10096. fi
  10097. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10099. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10100. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10101. $as_echo_n "(cached) " >&6
  10102. else
  10103. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10104. case `$LD -v 2>&1 </dev/null` in
  10105. *GNU* | *'with BFD'*)
  10106. lt_cv_prog_gnu_ld=yes
  10107. ;;
  10108. *)
  10109. lt_cv_prog_gnu_ld=no
  10110. ;;
  10111. esac
  10112. fi
  10113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10114. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10115. with_gnu_ld=$lt_cv_prog_gnu_ld
  10116. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10117. # archiving commands below assume that GNU ld is being used.
  10118. if test "$with_gnu_ld" = yes; then
  10119. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10120. 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'
  10121. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10122. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10123. # If archive_cmds runs LD, not CC, wlarc should be empty
  10124. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10125. # investigate it a little bit more. (MM)
  10126. wlarc='${wl}'
  10127. # ancient GNU ld didn't support --whole-archive et. al.
  10128. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10129. $GREP 'no-whole-archive' > /dev/null; then
  10130. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10131. else
  10132. whole_archive_flag_spec_CXX=
  10133. fi
  10134. else
  10135. with_gnu_ld=no
  10136. wlarc=
  10137. # A generic and very simple default shared library creation
  10138. # command for GNU C++ for the case where it uses the native
  10139. # linker, instead of GNU ld. If possible, this setting should
  10140. # overridden to take advantage of the native linker features on
  10141. # the platform it is being used on.
  10142. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10143. fi
  10144. # Commands to make compiler produce verbose output that lists
  10145. # what "hidden" libraries, object files and flags are used when
  10146. # linking a shared library.
  10147. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10148. else
  10149. GXX=no
  10150. with_gnu_ld=no
  10151. wlarc=
  10152. fi
  10153. # PORTME: fill in a description of your system's C++ link characteristics
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10155. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10156. ld_shlibs_CXX=yes
  10157. case $host_os in
  10158. aix3*)
  10159. # FIXME: insert proper C++ library support
  10160. ld_shlibs_CXX=no
  10161. ;;
  10162. aix[4-9]*)
  10163. if test "$host_cpu" = ia64; then
  10164. # On IA64, the linker does run time linking by default, so we don't
  10165. # have to do anything special.
  10166. aix_use_runtimelinking=no
  10167. exp_sym_flag='-Bexport'
  10168. no_entry_flag=""
  10169. else
  10170. aix_use_runtimelinking=no
  10171. # Test if we are trying to use run time linking or normal
  10172. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10173. # need to do runtime linking.
  10174. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10175. for ld_flag in $LDFLAGS; do
  10176. case $ld_flag in
  10177. *-brtl*)
  10178. aix_use_runtimelinking=yes
  10179. break
  10180. ;;
  10181. esac
  10182. done
  10183. ;;
  10184. esac
  10185. exp_sym_flag='-bexport'
  10186. no_entry_flag='-bnoentry'
  10187. fi
  10188. # When large executables or shared objects are built, AIX ld can
  10189. # have problems creating the table of contents. If linking a library
  10190. # or program results in "error TOC overflow" add -mminimal-toc to
  10191. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10192. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10193. archive_cmds_CXX=''
  10194. hardcode_direct_CXX=yes
  10195. hardcode_direct_absolute_CXX=yes
  10196. hardcode_libdir_separator_CXX=':'
  10197. link_all_deplibs_CXX=yes
  10198. file_list_spec_CXX='${wl}-f,'
  10199. if test "$GXX" = yes; then
  10200. case $host_os in aix4.[012]|aix4.[012].*)
  10201. # We only want to do this on AIX 4.2 and lower, the check
  10202. # below for broken collect2 doesn't work under 4.3+
  10203. collect2name=`${CC} -print-prog-name=collect2`
  10204. if test -f "$collect2name" &&
  10205. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10206. then
  10207. # We have reworked collect2
  10208. :
  10209. else
  10210. # We have old collect2
  10211. hardcode_direct_CXX=unsupported
  10212. # It fails to find uninstalled libraries when the uninstalled
  10213. # path is not listed in the libpath. Setting hardcode_minus_L
  10214. # to unsupported forces relinking
  10215. hardcode_minus_L_CXX=yes
  10216. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10217. hardcode_libdir_separator_CXX=
  10218. fi
  10219. esac
  10220. shared_flag='-shared'
  10221. if test "$aix_use_runtimelinking" = yes; then
  10222. shared_flag="$shared_flag "'${wl}-G'
  10223. fi
  10224. else
  10225. # not using gcc
  10226. if test "$host_cpu" = ia64; then
  10227. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10228. # chokes on -Wl,-G. The following line is correct:
  10229. shared_flag='-G'
  10230. else
  10231. if test "$aix_use_runtimelinking" = yes; then
  10232. shared_flag='${wl}-G'
  10233. else
  10234. shared_flag='${wl}-bM:SRE'
  10235. fi
  10236. fi
  10237. fi
  10238. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10239. # It seems that -bexpall does not export symbols beginning with
  10240. # underscore (_), so it is better to generate a list of symbols to
  10241. # export.
  10242. always_export_symbols_CXX=yes
  10243. if test "$aix_use_runtimelinking" = yes; then
  10244. # Warning - without using the other runtime loading flags (-brtl),
  10245. # -berok will link without error, but may produce a broken library.
  10246. allow_undefined_flag_CXX='-berok'
  10247. # Determine the default libpath from the value encoded in an empty
  10248. # executable.
  10249. if test "${lt_cv_aix_libpath+set}" = set; then
  10250. aix_libpath=$lt_cv_aix_libpath
  10251. else
  10252. if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
  10253. $as_echo_n "(cached) " >&6
  10254. else
  10255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10256. /* end confdefs.h. */
  10257. int
  10258. main ()
  10259. {
  10260. ;
  10261. return 0;
  10262. }
  10263. _ACEOF
  10264. if ac_fn_cxx_try_link "$LINENO"; then :
  10265. lt_aix_libpath_sed='
  10266. /Import File Strings/,/^$/ {
  10267. /^0/ {
  10268. s/^0 *\([^ ]*\) *$/\1/
  10269. p
  10270. }
  10271. }'
  10272. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10273. # Check for a 64-bit object if we didn't find anything.
  10274. if test -z "$lt_cv_aix_libpath__CXX"; then
  10275. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10276. fi
  10277. fi
  10278. rm -f core conftest.err conftest.$ac_objext \
  10279. conftest$ac_exeext conftest.$ac_ext
  10280. if test -z "$lt_cv_aix_libpath__CXX"; then
  10281. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10282. fi
  10283. fi
  10284. aix_libpath=$lt_cv_aix_libpath__CXX
  10285. fi
  10286. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10287. 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"
  10288. else
  10289. if test "$host_cpu" = ia64; then
  10290. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10291. allow_undefined_flag_CXX="-z nodefs"
  10292. 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"
  10293. else
  10294. # Determine the default libpath from the value encoded in an
  10295. # empty executable.
  10296. if test "${lt_cv_aix_libpath+set}" = set; then
  10297. aix_libpath=$lt_cv_aix_libpath
  10298. else
  10299. if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
  10300. $as_echo_n "(cached) " >&6
  10301. else
  10302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10303. /* end confdefs.h. */
  10304. int
  10305. main ()
  10306. {
  10307. ;
  10308. return 0;
  10309. }
  10310. _ACEOF
  10311. if ac_fn_cxx_try_link "$LINENO"; then :
  10312. lt_aix_libpath_sed='
  10313. /Import File Strings/,/^$/ {
  10314. /^0/ {
  10315. s/^0 *\([^ ]*\) *$/\1/
  10316. p
  10317. }
  10318. }'
  10319. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10320. # Check for a 64-bit object if we didn't find anything.
  10321. if test -z "$lt_cv_aix_libpath__CXX"; then
  10322. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10323. fi
  10324. fi
  10325. rm -f core conftest.err conftest.$ac_objext \
  10326. conftest$ac_exeext conftest.$ac_ext
  10327. if test -z "$lt_cv_aix_libpath__CXX"; then
  10328. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10329. fi
  10330. fi
  10331. aix_libpath=$lt_cv_aix_libpath__CXX
  10332. fi
  10333. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10334. # Warning - without using the other run time loading flags,
  10335. # -berok will link without error, but may produce a broken library.
  10336. no_undefined_flag_CXX=' ${wl}-bernotok'
  10337. allow_undefined_flag_CXX=' ${wl}-berok'
  10338. if test "$with_gnu_ld" = yes; then
  10339. # We only use this code for GNU lds that support --whole-archive.
  10340. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10341. else
  10342. # Exported symbols can be pulled into shared objects from archives
  10343. whole_archive_flag_spec_CXX='$convenience'
  10344. fi
  10345. archive_cmds_need_lc_CXX=yes
  10346. # This is similar to how AIX traditionally builds its shared
  10347. # libraries.
  10348. 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'
  10349. fi
  10350. fi
  10351. ;;
  10352. beos*)
  10353. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10354. allow_undefined_flag_CXX=unsupported
  10355. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10356. # support --undefined. This deserves some investigation. FIXME
  10357. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10358. else
  10359. ld_shlibs_CXX=no
  10360. fi
  10361. ;;
  10362. chorus*)
  10363. case $cc_basename in
  10364. *)
  10365. # FIXME: insert proper C++ library support
  10366. ld_shlibs_CXX=no
  10367. ;;
  10368. esac
  10369. ;;
  10370. cygwin* | mingw* | pw32* | cegcc*)
  10371. case $GXX,$cc_basename in
  10372. ,cl* | no,cl*)
  10373. # Native MSVC
  10374. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10375. # no search path for DLLs.
  10376. hardcode_libdir_flag_spec_CXX=' '
  10377. allow_undefined_flag_CXX=unsupported
  10378. always_export_symbols_CXX=yes
  10379. file_list_spec_CXX='@'
  10380. # Tell ltmain to make .lib files, not .a files.
  10381. libext=lib
  10382. # Tell ltmain to make .dll files, not .so files.
  10383. shrext_cmds=".dll"
  10384. # FIXME: Setting linknames here is a bad hack.
  10385. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10386. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10387. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10388. else
  10389. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10390. fi~
  10391. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10392. linknames='
  10393. # The linker will not automatically build a static lib if we build a DLL.
  10394. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10395. enable_shared_with_static_runtimes_CXX=yes
  10396. # Don't use ranlib
  10397. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10398. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10399. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10400. case $lt_outputfile in
  10401. *.exe|*.EXE) ;;
  10402. *)
  10403. lt_outputfile="$lt_outputfile.exe"
  10404. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10405. ;;
  10406. esac~
  10407. func_to_tool_file "$lt_outputfile"~
  10408. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10409. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10410. $RM "$lt_outputfile.manifest";
  10411. fi'
  10412. ;;
  10413. *)
  10414. # g++
  10415. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10416. # as there is no search path for DLLs.
  10417. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10418. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10419. allow_undefined_flag_CXX=unsupported
  10420. always_export_symbols_CXX=no
  10421. enable_shared_with_static_runtimes_CXX=yes
  10422. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10423. 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'
  10424. # If the export-symbols file already is a .def file (1st line
  10425. # is EXPORTS), use it as is; otherwise, prepend...
  10426. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10427. cp $export_symbols $output_objdir/$soname.def;
  10428. else
  10429. echo EXPORTS > $output_objdir/$soname.def;
  10430. cat $export_symbols >> $output_objdir/$soname.def;
  10431. fi~
  10432. $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'
  10433. else
  10434. ld_shlibs_CXX=no
  10435. fi
  10436. ;;
  10437. esac
  10438. ;;
  10439. darwin* | rhapsody*)
  10440. archive_cmds_need_lc_CXX=no
  10441. hardcode_direct_CXX=no
  10442. hardcode_automatic_CXX=yes
  10443. hardcode_shlibpath_var_CXX=unsupported
  10444. if test "$lt_cv_ld_force_load" = "yes"; then
  10445. 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\"`'
  10446. else
  10447. whole_archive_flag_spec_CXX=''
  10448. fi
  10449. link_all_deplibs_CXX=yes
  10450. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10451. case $cc_basename in
  10452. ifort*) _lt_dar_can_shared=yes ;;
  10453. *) _lt_dar_can_shared=$GCC ;;
  10454. esac
  10455. if test "$_lt_dar_can_shared" = "yes"; then
  10456. output_verbose_link_cmd=func_echo_all
  10457. 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}"
  10458. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10459. 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}"
  10460. 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}"
  10461. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10462. 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}"
  10463. 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}"
  10464. fi
  10465. else
  10466. ld_shlibs_CXX=no
  10467. fi
  10468. ;;
  10469. dgux*)
  10470. case $cc_basename in
  10471. ec++*)
  10472. # FIXME: insert proper C++ library support
  10473. ld_shlibs_CXX=no
  10474. ;;
  10475. ghcx*)
  10476. # Green Hills C++ Compiler
  10477. # FIXME: insert proper C++ library support
  10478. ld_shlibs_CXX=no
  10479. ;;
  10480. *)
  10481. # FIXME: insert proper C++ library support
  10482. ld_shlibs_CXX=no
  10483. ;;
  10484. esac
  10485. ;;
  10486. freebsd[12]*)
  10487. # C++ shared libraries reported to be fairly broken before
  10488. # switch to ELF
  10489. ld_shlibs_CXX=no
  10490. ;;
  10491. freebsd-elf*)
  10492. archive_cmds_need_lc_CXX=no
  10493. ;;
  10494. freebsd* | dragonfly*)
  10495. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10496. # conventions
  10497. ld_shlibs_CXX=yes
  10498. ;;
  10499. gnu*)
  10500. ;;
  10501. haiku*)
  10502. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10503. link_all_deplibs_CXX=yes
  10504. ;;
  10505. hpux9*)
  10506. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10507. hardcode_libdir_separator_CXX=:
  10508. export_dynamic_flag_spec_CXX='${wl}-E'
  10509. hardcode_direct_CXX=yes
  10510. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10511. # but as the default
  10512. # location of the library.
  10513. case $cc_basename in
  10514. CC*)
  10515. # FIXME: insert proper C++ library support
  10516. ld_shlibs_CXX=no
  10517. ;;
  10518. aCC*)
  10519. 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'
  10520. # Commands to make compiler produce verbose output that lists
  10521. # what "hidden" libraries, object files and flags are used when
  10522. # linking a shared library.
  10523. #
  10524. # There doesn't appear to be a way to prevent this compiler from
  10525. # explicitly linking system object files so we need to strip them
  10526. # from the output so that they don't get included in the library
  10527. # dependencies.
  10528. 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"'
  10529. ;;
  10530. *)
  10531. if test "$GXX" = yes; then
  10532. 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'
  10533. else
  10534. # FIXME: insert proper C++ library support
  10535. ld_shlibs_CXX=no
  10536. fi
  10537. ;;
  10538. esac
  10539. ;;
  10540. hpux10*|hpux11*)
  10541. if test $with_gnu_ld = no; then
  10542. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10543. hardcode_libdir_separator_CXX=:
  10544. case $host_cpu in
  10545. hppa*64*|ia64*)
  10546. ;;
  10547. *)
  10548. export_dynamic_flag_spec_CXX='${wl}-E'
  10549. ;;
  10550. esac
  10551. fi
  10552. case $host_cpu in
  10553. hppa*64*|ia64*)
  10554. hardcode_direct_CXX=no
  10555. hardcode_shlibpath_var_CXX=no
  10556. ;;
  10557. *)
  10558. hardcode_direct_CXX=yes
  10559. hardcode_direct_absolute_CXX=yes
  10560. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10561. # but as the default
  10562. # location of the library.
  10563. ;;
  10564. esac
  10565. case $cc_basename in
  10566. CC*)
  10567. # FIXME: insert proper C++ library support
  10568. ld_shlibs_CXX=no
  10569. ;;
  10570. aCC*)
  10571. case $host_cpu in
  10572. hppa*64*)
  10573. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10574. ;;
  10575. ia64*)
  10576. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10577. ;;
  10578. *)
  10579. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10580. ;;
  10581. esac
  10582. # Commands to make compiler produce verbose output that lists
  10583. # what "hidden" libraries, object files and flags are used when
  10584. # linking a shared library.
  10585. #
  10586. # There doesn't appear to be a way to prevent this compiler from
  10587. # explicitly linking system object files so we need to strip them
  10588. # from the output so that they don't get included in the library
  10589. # dependencies.
  10590. 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"'
  10591. ;;
  10592. *)
  10593. if test "$GXX" = yes; then
  10594. if test $with_gnu_ld = no; then
  10595. case $host_cpu in
  10596. hppa*64*)
  10597. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10598. ;;
  10599. ia64*)
  10600. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10601. ;;
  10602. *)
  10603. 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'
  10604. ;;
  10605. esac
  10606. fi
  10607. else
  10608. # FIXME: insert proper C++ library support
  10609. ld_shlibs_CXX=no
  10610. fi
  10611. ;;
  10612. esac
  10613. ;;
  10614. interix[3-9]*)
  10615. hardcode_direct_CXX=no
  10616. hardcode_shlibpath_var_CXX=no
  10617. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10618. export_dynamic_flag_spec_CXX='${wl}-E'
  10619. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10620. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10621. # default) and relocated if they conflict, which is a slow very memory
  10622. # consuming and fragmenting process. To avoid this, we pick a random,
  10623. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10624. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10625. 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'
  10626. 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'
  10627. ;;
  10628. irix5* | irix6*)
  10629. case $cc_basename in
  10630. CC*)
  10631. # SGI C++
  10632. 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'
  10633. # Archives containing C++ object files must be created using
  10634. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10635. # necessary to make sure instantiated templates are included
  10636. # in the archive.
  10637. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10638. ;;
  10639. *)
  10640. if test "$GXX" = yes; then
  10641. if test "$with_gnu_ld" = no; then
  10642. 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'
  10643. else
  10644. 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'
  10645. fi
  10646. fi
  10647. link_all_deplibs_CXX=yes
  10648. ;;
  10649. esac
  10650. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10651. hardcode_libdir_separator_CXX=:
  10652. inherit_rpath_CXX=yes
  10653. ;;
  10654. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10655. case $cc_basename in
  10656. KCC*)
  10657. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10658. # KCC will only create a shared library if the output file
  10659. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10660. # to its proper name (with version) after linking.
  10661. 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'
  10662. 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'
  10663. # Commands to make compiler produce verbose output that lists
  10664. # what "hidden" libraries, object files and flags are used when
  10665. # linking a shared library.
  10666. #
  10667. # There doesn't appear to be a way to prevent this compiler from
  10668. # explicitly linking system object files so we need to strip them
  10669. # from the output so that they don't get included in the library
  10670. # dependencies.
  10671. 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"'
  10672. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10673. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10674. # Archives containing C++ object files must be created using
  10675. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10676. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10677. ;;
  10678. icpc* | ecpc* )
  10679. # Intel C++
  10680. with_gnu_ld=yes
  10681. # version 8.0 and above of icpc choke on multiply defined symbols
  10682. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10683. # earlier do not add the objects themselves.
  10684. case `$CC -V 2>&1` in
  10685. *"Version 7."*)
  10686. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10687. 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'
  10688. ;;
  10689. *) # Version 8.0 or newer
  10690. tmp_idyn=
  10691. case $host_cpu in
  10692. ia64*) tmp_idyn=' -i_dynamic';;
  10693. esac
  10694. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10695. 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'
  10696. ;;
  10697. esac
  10698. archive_cmds_need_lc_CXX=no
  10699. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10700. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10701. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10702. ;;
  10703. pgCC* | pgcpp*)
  10704. # Portland Group C++ compiler
  10705. case `$CC -V` in
  10706. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10707. prelink_cmds_CXX='tpldir=Template.dir~
  10708. rm -rf $tpldir~
  10709. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10710. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  10711. old_archive_cmds_CXX='tpldir=Template.dir~
  10712. rm -rf $tpldir~
  10713. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10714. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  10715. $RANLIB $oldlib'
  10716. archive_cmds_CXX='tpldir=Template.dir~
  10717. rm -rf $tpldir~
  10718. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10719. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10720. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10721. rm -rf $tpldir~
  10722. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10723. $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'
  10724. ;;
  10725. *) # Version 6 and above use weak symbols
  10726. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10727. 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'
  10728. ;;
  10729. esac
  10730. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10731. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10732. 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'
  10733. ;;
  10734. cxx*)
  10735. # Compaq C++
  10736. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10737. 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'
  10738. runpath_var=LD_RUN_PATH
  10739. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10740. hardcode_libdir_separator_CXX=:
  10741. # Commands to make compiler produce verbose output that lists
  10742. # what "hidden" libraries, object files and flags are used when
  10743. # linking a shared library.
  10744. #
  10745. # There doesn't appear to be a way to prevent this compiler from
  10746. # explicitly linking system object files so we need to strip them
  10747. # from the output so that they don't get included in the library
  10748. # dependencies.
  10749. 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'
  10750. ;;
  10751. xl* | mpixl* | bgxl*)
  10752. # IBM XL 8.0 on PPC, with GNU ld
  10753. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10754. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10755. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10756. if test "x$supports_anon_versioning" = xyes; then
  10757. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10758. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10759. echo "local: *; };" >> $output_objdir/$libname.ver~
  10760. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10761. fi
  10762. ;;
  10763. *)
  10764. case `$CC -V 2>&1 | sed 5q` in
  10765. *Sun\ C*)
  10766. # Sun C++ 5.9
  10767. no_undefined_flag_CXX=' -zdefs'
  10768. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10769. 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'
  10770. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10771. 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'
  10772. compiler_needs_object_CXX=yes
  10773. # Not sure whether something based on
  10774. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10775. # would be better.
  10776. output_verbose_link_cmd='func_echo_all'
  10777. # Archives containing C++ object files must be created using
  10778. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10779. # necessary to make sure instantiated templates are included
  10780. # in the archive.
  10781. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10782. ;;
  10783. esac
  10784. ;;
  10785. esac
  10786. ;;
  10787. lynxos*)
  10788. # FIXME: insert proper C++ library support
  10789. ld_shlibs_CXX=no
  10790. ;;
  10791. m88k*)
  10792. # FIXME: insert proper C++ library support
  10793. ld_shlibs_CXX=no
  10794. ;;
  10795. mvs*)
  10796. case $cc_basename in
  10797. cxx*)
  10798. # FIXME: insert proper C++ library support
  10799. ld_shlibs_CXX=no
  10800. ;;
  10801. *)
  10802. # FIXME: insert proper C++ library support
  10803. ld_shlibs_CXX=no
  10804. ;;
  10805. esac
  10806. ;;
  10807. netbsd*)
  10808. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10809. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10810. wlarc=
  10811. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10812. hardcode_direct_CXX=yes
  10813. hardcode_shlibpath_var_CXX=no
  10814. fi
  10815. # Workaround some broken pre-1.5 toolchains
  10816. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10817. ;;
  10818. *nto* | *qnx*)
  10819. ld_shlibs_CXX=yes
  10820. ;;
  10821. openbsd2*)
  10822. # C++ shared libraries are fairly broken
  10823. ld_shlibs_CXX=no
  10824. ;;
  10825. openbsd*)
  10826. if test -f /usr/libexec/ld.so; then
  10827. hardcode_direct_CXX=yes
  10828. hardcode_shlibpath_var_CXX=no
  10829. hardcode_direct_absolute_CXX=yes
  10830. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10831. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10832. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10833. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10834. export_dynamic_flag_spec_CXX='${wl}-E'
  10835. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10836. fi
  10837. output_verbose_link_cmd=func_echo_all
  10838. else
  10839. ld_shlibs_CXX=no
  10840. fi
  10841. ;;
  10842. osf3* | osf4* | osf5*)
  10843. case $cc_basename in
  10844. KCC*)
  10845. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10846. # KCC will only create a shared library if the output file
  10847. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10848. # to its proper name (with version) after linking.
  10849. 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'
  10850. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10851. hardcode_libdir_separator_CXX=:
  10852. # Archives containing C++ object files must be created using
  10853. # the KAI C++ compiler.
  10854. case $host in
  10855. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10856. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10857. esac
  10858. ;;
  10859. RCC*)
  10860. # Rational C++ 2.4.1
  10861. # FIXME: insert proper C++ library support
  10862. ld_shlibs_CXX=no
  10863. ;;
  10864. cxx*)
  10865. case $host in
  10866. osf3*)
  10867. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10868. 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'
  10869. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10870. ;;
  10871. *)
  10872. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10873. 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'
  10874. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10875. echo "-hidden">> $lib.exp~
  10876. $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~
  10877. $RM $lib.exp'
  10878. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10879. ;;
  10880. esac
  10881. hardcode_libdir_separator_CXX=:
  10882. # Commands to make compiler produce verbose output that lists
  10883. # what "hidden" libraries, object files and flags are used when
  10884. # linking a shared library.
  10885. #
  10886. # There doesn't appear to be a way to prevent this compiler from
  10887. # explicitly linking system object files so we need to strip them
  10888. # from the output so that they don't get included in the library
  10889. # dependencies.
  10890. 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"'
  10891. ;;
  10892. *)
  10893. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10894. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10895. case $host in
  10896. osf3*)
  10897. 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'
  10898. ;;
  10899. *)
  10900. 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'
  10901. ;;
  10902. esac
  10903. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10904. hardcode_libdir_separator_CXX=:
  10905. # Commands to make compiler produce verbose output that lists
  10906. # what "hidden" libraries, object files and flags are used when
  10907. # linking a shared library.
  10908. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10909. else
  10910. # FIXME: insert proper C++ library support
  10911. ld_shlibs_CXX=no
  10912. fi
  10913. ;;
  10914. esac
  10915. ;;
  10916. psos*)
  10917. # FIXME: insert proper C++ library support
  10918. ld_shlibs_CXX=no
  10919. ;;
  10920. sunos4*)
  10921. case $cc_basename in
  10922. CC*)
  10923. # Sun C++ 4.x
  10924. # FIXME: insert proper C++ library support
  10925. ld_shlibs_CXX=no
  10926. ;;
  10927. lcc*)
  10928. # Lucid
  10929. # FIXME: insert proper C++ library support
  10930. ld_shlibs_CXX=no
  10931. ;;
  10932. *)
  10933. # FIXME: insert proper C++ library support
  10934. ld_shlibs_CXX=no
  10935. ;;
  10936. esac
  10937. ;;
  10938. solaris*)
  10939. case $cc_basename in
  10940. CC* | sunCC*)
  10941. # Sun C++ 4.2, 5.x and Centerline C++
  10942. archive_cmds_need_lc_CXX=yes
  10943. no_undefined_flag_CXX=' -zdefs'
  10944. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10945. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10946. $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'
  10947. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10948. hardcode_shlibpath_var_CXX=no
  10949. case $host_os in
  10950. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10951. *)
  10952. # The compiler driver will combine and reorder linker options,
  10953. # but understands `-z linker_flag'.
  10954. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10955. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10956. ;;
  10957. esac
  10958. link_all_deplibs_CXX=yes
  10959. output_verbose_link_cmd='func_echo_all'
  10960. # Archives containing C++ object files must be created using
  10961. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10962. # necessary to make sure instantiated templates are included
  10963. # in the archive.
  10964. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10965. ;;
  10966. gcx*)
  10967. # Green Hills C++ Compiler
  10968. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10969. # The C++ compiler must be used to create the archive.
  10970. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10971. ;;
  10972. *)
  10973. # GNU C++ compiler with Solaris linker
  10974. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10975. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10976. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10977. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10978. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10979. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10980. # Commands to make compiler produce verbose output that lists
  10981. # what "hidden" libraries, object files and flags are used when
  10982. # linking a shared library.
  10983. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10984. else
  10985. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10986. # platform.
  10987. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10988. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10989. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10990. # Commands to make compiler produce verbose output that lists
  10991. # what "hidden" libraries, object files and flags are used when
  10992. # linking a shared library.
  10993. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10994. fi
  10995. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10996. case $host_os in
  10997. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10998. *)
  10999. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11000. ;;
  11001. esac
  11002. fi
  11003. ;;
  11004. esac
  11005. ;;
  11006. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11007. no_undefined_flag_CXX='${wl}-z,text'
  11008. archive_cmds_need_lc_CXX=no
  11009. hardcode_shlibpath_var_CXX=no
  11010. runpath_var='LD_RUN_PATH'
  11011. case $cc_basename in
  11012. CC*)
  11013. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11014. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11015. ;;
  11016. *)
  11017. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11018. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11019. ;;
  11020. esac
  11021. ;;
  11022. sysv5* | sco3.2v5* | sco5v6*)
  11023. # Note: We can NOT use -z defs as we might desire, because we do not
  11024. # link with -lc, and that would cause any symbols used from libc to
  11025. # always be unresolved, which means just about no library would
  11026. # ever link correctly. If we're not using GNU ld we use -z text
  11027. # though, which does catch some bad symbols but isn't as heavy-handed
  11028. # as -z defs.
  11029. no_undefined_flag_CXX='${wl}-z,text'
  11030. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11031. archive_cmds_need_lc_CXX=no
  11032. hardcode_shlibpath_var_CXX=no
  11033. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11034. hardcode_libdir_separator_CXX=':'
  11035. link_all_deplibs_CXX=yes
  11036. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11037. runpath_var='LD_RUN_PATH'
  11038. case $cc_basename in
  11039. CC*)
  11040. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11041. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11042. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11043. '"$old_archive_cmds_CXX"
  11044. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11045. '"$reload_cmds_CXX"
  11046. ;;
  11047. *)
  11048. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11049. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11050. ;;
  11051. esac
  11052. ;;
  11053. tandem*)
  11054. case $cc_basename in
  11055. NCC*)
  11056. # NonStop-UX NCC 3.20
  11057. # FIXME: insert proper C++ library support
  11058. ld_shlibs_CXX=no
  11059. ;;
  11060. *)
  11061. # FIXME: insert proper C++ library support
  11062. ld_shlibs_CXX=no
  11063. ;;
  11064. esac
  11065. ;;
  11066. vxworks*)
  11067. # FIXME: insert proper C++ library support
  11068. ld_shlibs_CXX=no
  11069. ;;
  11070. *)
  11071. # FIXME: insert proper C++ library support
  11072. ld_shlibs_CXX=no
  11073. ;;
  11074. esac
  11075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11076. $as_echo "$ld_shlibs_CXX" >&6; }
  11077. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11078. GCC_CXX="$GXX"
  11079. LD_CXX="$LD"
  11080. ## CAVEAT EMPTOR:
  11081. ## There is no encapsulation within the following macros, do not change
  11082. ## the running order or otherwise move them around unless you know exactly
  11083. ## what you are doing...
  11084. # Dependencies to place before and after the object being linked:
  11085. predep_objects_CXX=
  11086. postdep_objects_CXX=
  11087. predeps_CXX=
  11088. postdeps_CXX=
  11089. compiler_lib_search_path_CXX=
  11090. cat > conftest.$ac_ext <<_LT_EOF
  11091. class Foo
  11092. {
  11093. public:
  11094. Foo (void) { a = 0; }
  11095. private:
  11096. int a;
  11097. };
  11098. _LT_EOF
  11099. _lt_libdeps_save_CFLAGS=$CFLAGS
  11100. case "$CC $CFLAGS " in #(
  11101. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11102. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11103. esac
  11104. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11105. (eval $ac_compile) 2>&5
  11106. ac_status=$?
  11107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11108. test $ac_status = 0; }; then
  11109. # Parse the compiler output and extract the necessary
  11110. # objects, libraries and library flags.
  11111. # Sentinel used to keep track of whether or not we are before
  11112. # the conftest object file.
  11113. pre_test_object_deps_done=no
  11114. for p in `eval "$output_verbose_link_cmd"`; do
  11115. case ${prev}${p} in
  11116. -L* | -R* | -l*)
  11117. # Some compilers place space between "-{L,R}" and the path.
  11118. # Remove the space.
  11119. if test $p = "-L" ||
  11120. test $p = "-R"; then
  11121. prev=$p
  11122. continue
  11123. fi
  11124. # Expand the sysroot to ease extracting the directories later.
  11125. if test -z "$prev"; then
  11126. case $p in
  11127. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11128. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11129. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11130. esac
  11131. fi
  11132. case $p in
  11133. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11134. esac
  11135. if test "$pre_test_object_deps_done" = no; then
  11136. case ${prev} in
  11137. -L | -R)
  11138. # Internal compiler library paths should come after those
  11139. # provided the user. The postdeps already come after the
  11140. # user supplied libs so there is no need to process them.
  11141. if test -z "$compiler_lib_search_path_CXX"; then
  11142. compiler_lib_search_path_CXX="${prev}${p}"
  11143. else
  11144. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11145. fi
  11146. ;;
  11147. # The "-l" case would never come before the object being
  11148. # linked, so don't bother handling this case.
  11149. esac
  11150. else
  11151. if test -z "$postdeps_CXX"; then
  11152. postdeps_CXX="${prev}${p}"
  11153. else
  11154. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11155. fi
  11156. fi
  11157. prev=
  11158. ;;
  11159. *.lto.$objext) ;; # Ignore GCC LTO objects
  11160. *.$objext)
  11161. # This assumes that the test object file only shows up
  11162. # once in the compiler output.
  11163. if test "$p" = "conftest.$objext"; then
  11164. pre_test_object_deps_done=yes
  11165. continue
  11166. fi
  11167. if test "$pre_test_object_deps_done" = no; then
  11168. if test -z "$predep_objects_CXX"; then
  11169. predep_objects_CXX="$p"
  11170. else
  11171. predep_objects_CXX="$predep_objects_CXX $p"
  11172. fi
  11173. else
  11174. if test -z "$postdep_objects_CXX"; then
  11175. postdep_objects_CXX="$p"
  11176. else
  11177. postdep_objects_CXX="$postdep_objects_CXX $p"
  11178. fi
  11179. fi
  11180. ;;
  11181. *) ;; # Ignore the rest.
  11182. esac
  11183. done
  11184. # Clean up.
  11185. rm -f a.out a.exe
  11186. else
  11187. echo "libtool.m4: error: problem compiling CXX test program"
  11188. fi
  11189. $RM -f confest.$objext
  11190. CFLAGS=$_lt_libdeps_save_CFLAGS
  11191. # PORTME: override above test on systems where it is broken
  11192. case $host_os in
  11193. interix[3-9]*)
  11194. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11195. # hack all around it, let's just trust "g++" to DTRT.
  11196. predep_objects_CXX=
  11197. postdep_objects_CXX=
  11198. postdeps_CXX=
  11199. ;;
  11200. linux*)
  11201. case `$CC -V 2>&1 | sed 5q` in
  11202. *Sun\ C*)
  11203. # Sun C++ 5.9
  11204. # The more standards-conforming stlport4 library is
  11205. # incompatible with the Cstd library. Avoid specifying
  11206. # it if it's in CXXFLAGS. Ignore libCrun as
  11207. # -library=stlport4 depends on it.
  11208. case " $CXX $CXXFLAGS " in
  11209. *" -library=stlport4 "*)
  11210. solaris_use_stlport4=yes
  11211. ;;
  11212. esac
  11213. if test "$solaris_use_stlport4" != yes; then
  11214. postdeps_CXX='-library=Cstd -library=Crun'
  11215. fi
  11216. ;;
  11217. esac
  11218. ;;
  11219. solaris*)
  11220. case $cc_basename in
  11221. CC* | sunCC*)
  11222. # The more standards-conforming stlport4 library is
  11223. # incompatible with the Cstd library. Avoid specifying
  11224. # it if it's in CXXFLAGS. Ignore libCrun as
  11225. # -library=stlport4 depends on it.
  11226. case " $CXX $CXXFLAGS " in
  11227. *" -library=stlport4 "*)
  11228. solaris_use_stlport4=yes
  11229. ;;
  11230. esac
  11231. # Adding this requires a known-good setup of shared libraries for
  11232. # Sun compiler versions before 5.6, else PIC objects from an old
  11233. # archive will be linked into the output, leading to subtle bugs.
  11234. if test "$solaris_use_stlport4" != yes; then
  11235. postdeps_CXX='-library=Cstd -library=Crun'
  11236. fi
  11237. ;;
  11238. esac
  11239. ;;
  11240. esac
  11241. case " $postdeps_CXX " in
  11242. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11243. esac
  11244. compiler_lib_search_dirs_CXX=
  11245. if test -n "${compiler_lib_search_path_CXX}"; then
  11246. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11247. fi
  11248. lt_prog_compiler_wl_CXX=
  11249. lt_prog_compiler_pic_CXX=
  11250. lt_prog_compiler_static_CXX=
  11251. # C++ specific cases for pic, static, wl, etc.
  11252. if test "$GXX" = yes; then
  11253. lt_prog_compiler_wl_CXX='-Wl,'
  11254. lt_prog_compiler_static_CXX='-static'
  11255. case $host_os in
  11256. aix*)
  11257. # All AIX code is PIC.
  11258. if test "$host_cpu" = ia64; then
  11259. # AIX 5 now supports IA64 processor
  11260. lt_prog_compiler_static_CXX='-Bstatic'
  11261. fi
  11262. ;;
  11263. amigaos*)
  11264. case $host_cpu in
  11265. powerpc)
  11266. # see comment about AmigaOS4 .so support
  11267. lt_prog_compiler_pic_CXX='-fPIC'
  11268. ;;
  11269. m68k)
  11270. # FIXME: we need at least 68020 code to build shared libraries, but
  11271. # adding the `-m68020' flag to GCC prevents building anything better,
  11272. # like `-m68040'.
  11273. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11274. ;;
  11275. esac
  11276. ;;
  11277. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11278. # PIC is the default for these OSes.
  11279. ;;
  11280. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11281. # This hack is so that the source file can tell whether it is being
  11282. # built for inclusion in a dll (and should export symbols for example).
  11283. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11284. # (--disable-auto-import) libraries
  11285. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11286. ;;
  11287. darwin* | rhapsody*)
  11288. # PIC is the default on this platform
  11289. # Common symbols not allowed in MH_DYLIB files
  11290. lt_prog_compiler_pic_CXX='-fno-common'
  11291. ;;
  11292. *djgpp*)
  11293. # DJGPP does not support shared libraries at all
  11294. lt_prog_compiler_pic_CXX=
  11295. ;;
  11296. haiku*)
  11297. # PIC is the default for Haiku.
  11298. # The "-static" flag exists, but is broken.
  11299. lt_prog_compiler_static_CXX=
  11300. ;;
  11301. interix[3-9]*)
  11302. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11303. # Instead, we relocate shared libraries at runtime.
  11304. ;;
  11305. sysv4*MP*)
  11306. if test -d /usr/nec; then
  11307. lt_prog_compiler_pic_CXX=-Kconform_pic
  11308. fi
  11309. ;;
  11310. hpux*)
  11311. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11312. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11313. # sets the default TLS model and affects inlining.
  11314. case $host_cpu in
  11315. hppa*64*)
  11316. ;;
  11317. *)
  11318. lt_prog_compiler_pic_CXX='-fPIC'
  11319. ;;
  11320. esac
  11321. ;;
  11322. *qnx* | *nto*)
  11323. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11324. # it will coredump.
  11325. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11326. ;;
  11327. *)
  11328. lt_prog_compiler_pic_CXX='-fPIC'
  11329. ;;
  11330. esac
  11331. else
  11332. case $host_os in
  11333. aix[4-9]*)
  11334. # All AIX code is PIC.
  11335. if test "$host_cpu" = ia64; then
  11336. # AIX 5 now supports IA64 processor
  11337. lt_prog_compiler_static_CXX='-Bstatic'
  11338. else
  11339. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11340. fi
  11341. ;;
  11342. chorus*)
  11343. case $cc_basename in
  11344. cxch68*)
  11345. # Green Hills C++ Compiler
  11346. # _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"
  11347. ;;
  11348. esac
  11349. ;;
  11350. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11351. # This hack is so that the source file can tell whether it is being
  11352. # built for inclusion in a dll (and should export symbols for example).
  11353. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11354. ;;
  11355. dgux*)
  11356. case $cc_basename in
  11357. ec++*)
  11358. lt_prog_compiler_pic_CXX='-KPIC'
  11359. ;;
  11360. ghcx*)
  11361. # Green Hills C++ Compiler
  11362. lt_prog_compiler_pic_CXX='-pic'
  11363. ;;
  11364. *)
  11365. ;;
  11366. esac
  11367. ;;
  11368. freebsd* | dragonfly*)
  11369. # FreeBSD uses GNU C++
  11370. ;;
  11371. hpux9* | hpux10* | hpux11*)
  11372. case $cc_basename in
  11373. CC*)
  11374. lt_prog_compiler_wl_CXX='-Wl,'
  11375. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11376. if test "$host_cpu" != ia64; then
  11377. lt_prog_compiler_pic_CXX='+Z'
  11378. fi
  11379. ;;
  11380. aCC*)
  11381. lt_prog_compiler_wl_CXX='-Wl,'
  11382. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11383. case $host_cpu in
  11384. hppa*64*|ia64*)
  11385. # +Z the default
  11386. ;;
  11387. *)
  11388. lt_prog_compiler_pic_CXX='+Z'
  11389. ;;
  11390. esac
  11391. ;;
  11392. *)
  11393. ;;
  11394. esac
  11395. ;;
  11396. interix*)
  11397. # This is c89, which is MS Visual C++ (no shared libs)
  11398. # Anyone wants to do a port?
  11399. ;;
  11400. irix5* | irix6* | nonstopux*)
  11401. case $cc_basename in
  11402. CC*)
  11403. lt_prog_compiler_wl_CXX='-Wl,'
  11404. lt_prog_compiler_static_CXX='-non_shared'
  11405. # CC pic flag -KPIC is the default.
  11406. ;;
  11407. *)
  11408. ;;
  11409. esac
  11410. ;;
  11411. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11412. case $cc_basename in
  11413. KCC*)
  11414. # KAI C++ Compiler
  11415. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11416. lt_prog_compiler_pic_CXX='-fPIC'
  11417. ;;
  11418. ecpc* )
  11419. # old Intel C++ for x86_64 which still supported -KPIC.
  11420. lt_prog_compiler_wl_CXX='-Wl,'
  11421. lt_prog_compiler_pic_CXX='-KPIC'
  11422. lt_prog_compiler_static_CXX='-static'
  11423. ;;
  11424. icpc* )
  11425. # Intel C++, used to be incompatible with GCC.
  11426. # ICC 10 doesn't accept -KPIC any more.
  11427. lt_prog_compiler_wl_CXX='-Wl,'
  11428. lt_prog_compiler_pic_CXX='-fPIC'
  11429. lt_prog_compiler_static_CXX='-static'
  11430. ;;
  11431. pgCC* | pgcpp*)
  11432. # Portland Group C++ compiler
  11433. lt_prog_compiler_wl_CXX='-Wl,'
  11434. lt_prog_compiler_pic_CXX='-fpic'
  11435. lt_prog_compiler_static_CXX='-Bstatic'
  11436. ;;
  11437. cxx*)
  11438. # Compaq C++
  11439. # Make sure the PIC flag is empty. It appears that all Alpha
  11440. # Linux and Compaq Tru64 Unix objects are PIC.
  11441. lt_prog_compiler_pic_CXX=
  11442. lt_prog_compiler_static_CXX='-non_shared'
  11443. ;;
  11444. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11445. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11446. lt_prog_compiler_wl_CXX='-Wl,'
  11447. lt_prog_compiler_pic_CXX='-qpic'
  11448. lt_prog_compiler_static_CXX='-qstaticlink'
  11449. ;;
  11450. *)
  11451. case `$CC -V 2>&1 | sed 5q` in
  11452. *Sun\ C*)
  11453. # Sun C++ 5.9
  11454. lt_prog_compiler_pic_CXX='-KPIC'
  11455. lt_prog_compiler_static_CXX='-Bstatic'
  11456. lt_prog_compiler_wl_CXX='-Qoption ld '
  11457. ;;
  11458. esac
  11459. ;;
  11460. esac
  11461. ;;
  11462. lynxos*)
  11463. ;;
  11464. m88k*)
  11465. ;;
  11466. mvs*)
  11467. case $cc_basename in
  11468. cxx*)
  11469. lt_prog_compiler_pic_CXX='-W c,exportall'
  11470. ;;
  11471. *)
  11472. ;;
  11473. esac
  11474. ;;
  11475. netbsd*)
  11476. ;;
  11477. *qnx* | *nto*)
  11478. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11479. # it will coredump.
  11480. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11481. ;;
  11482. osf3* | osf4* | osf5*)
  11483. case $cc_basename in
  11484. KCC*)
  11485. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11486. ;;
  11487. RCC*)
  11488. # Rational C++ 2.4.1
  11489. lt_prog_compiler_pic_CXX='-pic'
  11490. ;;
  11491. cxx*)
  11492. # Digital/Compaq C++
  11493. lt_prog_compiler_wl_CXX='-Wl,'
  11494. # Make sure the PIC flag is empty. It appears that all Alpha
  11495. # Linux and Compaq Tru64 Unix objects are PIC.
  11496. lt_prog_compiler_pic_CXX=
  11497. lt_prog_compiler_static_CXX='-non_shared'
  11498. ;;
  11499. *)
  11500. ;;
  11501. esac
  11502. ;;
  11503. psos*)
  11504. ;;
  11505. solaris*)
  11506. case $cc_basename in
  11507. CC* | sunCC*)
  11508. # Sun C++ 4.2, 5.x and Centerline C++
  11509. lt_prog_compiler_pic_CXX='-KPIC'
  11510. lt_prog_compiler_static_CXX='-Bstatic'
  11511. lt_prog_compiler_wl_CXX='-Qoption ld '
  11512. ;;
  11513. gcx*)
  11514. # Green Hills C++ Compiler
  11515. lt_prog_compiler_pic_CXX='-PIC'
  11516. ;;
  11517. *)
  11518. ;;
  11519. esac
  11520. ;;
  11521. sunos4*)
  11522. case $cc_basename in
  11523. CC*)
  11524. # Sun C++ 4.x
  11525. lt_prog_compiler_pic_CXX='-pic'
  11526. lt_prog_compiler_static_CXX='-Bstatic'
  11527. ;;
  11528. lcc*)
  11529. # Lucid
  11530. lt_prog_compiler_pic_CXX='-pic'
  11531. ;;
  11532. *)
  11533. ;;
  11534. esac
  11535. ;;
  11536. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11537. case $cc_basename in
  11538. CC*)
  11539. lt_prog_compiler_wl_CXX='-Wl,'
  11540. lt_prog_compiler_pic_CXX='-KPIC'
  11541. lt_prog_compiler_static_CXX='-Bstatic'
  11542. ;;
  11543. esac
  11544. ;;
  11545. tandem*)
  11546. case $cc_basename in
  11547. NCC*)
  11548. # NonStop-UX NCC 3.20
  11549. lt_prog_compiler_pic_CXX='-KPIC'
  11550. ;;
  11551. *)
  11552. ;;
  11553. esac
  11554. ;;
  11555. vxworks*)
  11556. ;;
  11557. *)
  11558. lt_prog_compiler_can_build_shared_CXX=no
  11559. ;;
  11560. esac
  11561. fi
  11562. case $host_os in
  11563. # For platforms which do not support PIC, -DPIC is meaningless:
  11564. *djgpp*)
  11565. lt_prog_compiler_pic_CXX=
  11566. ;;
  11567. *)
  11568. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11569. ;;
  11570. esac
  11571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11572. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11573. if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
  11574. $as_echo_n "(cached) " >&6
  11575. else
  11576. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  11577. fi
  11578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  11579. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  11580. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  11581. #
  11582. # Check to make sure the PIC flag actually works.
  11583. #
  11584. if test -n "$lt_prog_compiler_pic_CXX"; then
  11585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11586. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11587. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11588. $as_echo_n "(cached) " >&6
  11589. else
  11590. lt_cv_prog_compiler_pic_works_CXX=no
  11591. ac_outfile=conftest.$ac_objext
  11592. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11593. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11594. # Insert the option either (1) after the last *FLAGS variable, or
  11595. # (2) before a word containing "conftest.", or (3) at the end.
  11596. # Note that $ac_compile itself does not contain backslashes and begins
  11597. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11598. # The option is referenced via a variable to avoid confusing sed.
  11599. lt_compile=`echo "$ac_compile" | $SED \
  11600. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11601. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11602. -e 's:$: $lt_compiler_flag:'`
  11603. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11604. (eval "$lt_compile" 2>conftest.err)
  11605. ac_status=$?
  11606. cat conftest.err >&5
  11607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11608. if (exit $ac_status) && test -s "$ac_outfile"; then
  11609. # The compiler can only warn and ignore the option if not recognized
  11610. # So say no if there are warnings other than the usual output.
  11611. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11612. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11613. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11614. lt_cv_prog_compiler_pic_works_CXX=yes
  11615. fi
  11616. fi
  11617. $RM conftest*
  11618. fi
  11619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11620. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11621. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11622. case $lt_prog_compiler_pic_CXX in
  11623. "" | " "*) ;;
  11624. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11625. esac
  11626. else
  11627. lt_prog_compiler_pic_CXX=
  11628. lt_prog_compiler_can_build_shared_CXX=no
  11629. fi
  11630. fi
  11631. #
  11632. # Check to make sure the static flag actually works.
  11633. #
  11634. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11636. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11637. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11638. $as_echo_n "(cached) " >&6
  11639. else
  11640. lt_cv_prog_compiler_static_works_CXX=no
  11641. save_LDFLAGS="$LDFLAGS"
  11642. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11643. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11644. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11645. # The linker can only warn and ignore the option if not recognized
  11646. # So say no if there are warnings
  11647. if test -s conftest.err; then
  11648. # Append any errors to the config.log.
  11649. cat conftest.err 1>&5
  11650. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11651. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11652. if diff conftest.exp conftest.er2 >/dev/null; then
  11653. lt_cv_prog_compiler_static_works_CXX=yes
  11654. fi
  11655. else
  11656. lt_cv_prog_compiler_static_works_CXX=yes
  11657. fi
  11658. fi
  11659. $RM -r conftest*
  11660. LDFLAGS="$save_LDFLAGS"
  11661. fi
  11662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11663. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11664. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11665. :
  11666. else
  11667. lt_prog_compiler_static_CXX=
  11668. fi
  11669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11670. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11671. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11672. $as_echo_n "(cached) " >&6
  11673. else
  11674. lt_cv_prog_compiler_c_o_CXX=no
  11675. $RM -r conftest 2>/dev/null
  11676. mkdir conftest
  11677. cd conftest
  11678. mkdir out
  11679. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11680. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11681. # Insert the option either (1) after the last *FLAGS variable, or
  11682. # (2) before a word containing "conftest.", or (3) at the end.
  11683. # Note that $ac_compile itself does not contain backslashes and begins
  11684. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11685. lt_compile=`echo "$ac_compile" | $SED \
  11686. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11687. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11688. -e 's:$: $lt_compiler_flag:'`
  11689. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11690. (eval "$lt_compile" 2>out/conftest.err)
  11691. ac_status=$?
  11692. cat out/conftest.err >&5
  11693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11694. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11695. then
  11696. # The compiler can only warn and ignore the option if not recognized
  11697. # So say no if there are warnings
  11698. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11699. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11700. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11701. lt_cv_prog_compiler_c_o_CXX=yes
  11702. fi
  11703. fi
  11704. chmod u+w . 2>&5
  11705. $RM conftest*
  11706. # SGI C++ compiler will create directory out/ii_files/ for
  11707. # template instantiation
  11708. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11709. $RM out/* && rmdir out
  11710. cd ..
  11711. $RM -r conftest
  11712. $RM conftest*
  11713. fi
  11714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11715. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11717. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11718. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11719. $as_echo_n "(cached) " >&6
  11720. else
  11721. lt_cv_prog_compiler_c_o_CXX=no
  11722. $RM -r conftest 2>/dev/null
  11723. mkdir conftest
  11724. cd conftest
  11725. mkdir out
  11726. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11727. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11728. # Insert the option either (1) after the last *FLAGS variable, or
  11729. # (2) before a word containing "conftest.", or (3) at the end.
  11730. # Note that $ac_compile itself does not contain backslashes and begins
  11731. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11732. lt_compile=`echo "$ac_compile" | $SED \
  11733. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11734. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11735. -e 's:$: $lt_compiler_flag:'`
  11736. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11737. (eval "$lt_compile" 2>out/conftest.err)
  11738. ac_status=$?
  11739. cat out/conftest.err >&5
  11740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11741. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11742. then
  11743. # The compiler can only warn and ignore the option if not recognized
  11744. # So say no if there are warnings
  11745. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11746. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11747. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11748. lt_cv_prog_compiler_c_o_CXX=yes
  11749. fi
  11750. fi
  11751. chmod u+w . 2>&5
  11752. $RM conftest*
  11753. # SGI C++ compiler will create directory out/ii_files/ for
  11754. # template instantiation
  11755. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11756. $RM out/* && rmdir out
  11757. cd ..
  11758. $RM -r conftest
  11759. $RM conftest*
  11760. fi
  11761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11762. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11763. hard_links="nottested"
  11764. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11765. # do not overwrite the value of need_locks provided by the user
  11766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11767. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11768. hard_links=yes
  11769. $RM conftest*
  11770. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11771. touch conftest.a
  11772. ln conftest.a conftest.b 2>&5 || hard_links=no
  11773. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11775. $as_echo "$hard_links" >&6; }
  11776. if test "$hard_links" = no; then
  11777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11778. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11779. need_locks=warn
  11780. fi
  11781. else
  11782. need_locks=no
  11783. fi
  11784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11785. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11786. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11787. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11788. case $host_os in
  11789. aix[4-9]*)
  11790. # If we're using GNU nm, then we don't want the "-C" option.
  11791. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11792. # Also, AIX nm treats weak defined symbols like other global defined
  11793. # symbols, whereas GNU nm marks them as "W".
  11794. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11795. 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'
  11796. else
  11797. 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'
  11798. fi
  11799. ;;
  11800. pw32*)
  11801. export_symbols_cmds_CXX="$ltdll_cmds"
  11802. ;;
  11803. cygwin* | mingw* | cegcc*)
  11804. case $cc_basename in
  11805. cl*) ;;
  11806. *)
  11807. 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'
  11808. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  11809. ;;
  11810. esac
  11811. ;;
  11812. *)
  11813. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11814. ;;
  11815. esac
  11816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11817. $as_echo "$ld_shlibs_CXX" >&6; }
  11818. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11819. with_gnu_ld_CXX=$with_gnu_ld
  11820. #
  11821. # Do we need to explicitly link libc?
  11822. #
  11823. case "x$archive_cmds_need_lc_CXX" in
  11824. x|xyes)
  11825. # Assume -lc should be added
  11826. archive_cmds_need_lc_CXX=yes
  11827. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11828. case $archive_cmds_CXX in
  11829. *'~'*)
  11830. # FIXME: we may have to deal with multi-command sequences.
  11831. ;;
  11832. '$CC '*)
  11833. # Test whether the compiler implicitly links with -lc since on some
  11834. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11835. # to ld, don't add -lc before -lgcc.
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11837. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11838. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  11839. $as_echo_n "(cached) " >&6
  11840. else
  11841. $RM conftest*
  11842. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11843. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11844. (eval $ac_compile) 2>&5
  11845. ac_status=$?
  11846. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11847. test $ac_status = 0; } 2>conftest.err; then
  11848. soname=conftest
  11849. lib=conftest
  11850. libobjs=conftest.$ac_objext
  11851. deplibs=
  11852. wl=$lt_prog_compiler_wl_CXX
  11853. pic_flag=$lt_prog_compiler_pic_CXX
  11854. compiler_flags=-v
  11855. linker_flags=-v
  11856. verstring=
  11857. output_objdir=.
  11858. libname=conftest
  11859. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11860. allow_undefined_flag_CXX=
  11861. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11862. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11863. ac_status=$?
  11864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11865. test $ac_status = 0; }
  11866. then
  11867. lt_cv_archive_cmds_need_lc_CXX=no
  11868. else
  11869. lt_cv_archive_cmds_need_lc_CXX=yes
  11870. fi
  11871. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11872. else
  11873. cat conftest.err 1>&5
  11874. fi
  11875. $RM conftest*
  11876. fi
  11877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11878. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11879. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11880. ;;
  11881. esac
  11882. fi
  11883. ;;
  11884. esac
  11885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11886. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11887. library_names_spec=
  11888. libname_spec='lib$name'
  11889. soname_spec=
  11890. shrext_cmds=".so"
  11891. postinstall_cmds=
  11892. postuninstall_cmds=
  11893. finish_cmds=
  11894. finish_eval=
  11895. shlibpath_var=
  11896. shlibpath_overrides_runpath=unknown
  11897. version_type=none
  11898. dynamic_linker="$host_os ld.so"
  11899. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11900. need_lib_prefix=unknown
  11901. hardcode_into_libs=no
  11902. # when you set need_version to no, make sure it does not cause -set_version
  11903. # flags to be left without arguments
  11904. need_version=unknown
  11905. case $host_os in
  11906. aix3*)
  11907. version_type=linux
  11908. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11909. shlibpath_var=LIBPATH
  11910. # AIX 3 has no versioning support, so we append a major version to the name.
  11911. soname_spec='${libname}${release}${shared_ext}$major'
  11912. ;;
  11913. aix[4-9]*)
  11914. version_type=linux
  11915. need_lib_prefix=no
  11916. need_version=no
  11917. hardcode_into_libs=yes
  11918. if test "$host_cpu" = ia64; then
  11919. # AIX 5 supports IA64
  11920. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11921. shlibpath_var=LD_LIBRARY_PATH
  11922. else
  11923. # With GCC up to 2.95.x, collect2 would create an import file
  11924. # for dependence libraries. The import file would start with
  11925. # the line `#! .'. This would cause the generated library to
  11926. # depend on `.', always an invalid library. This was fixed in
  11927. # development snapshots of GCC prior to 3.0.
  11928. case $host_os in
  11929. aix4 | aix4.[01] | aix4.[01].*)
  11930. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11931. echo ' yes '
  11932. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11933. :
  11934. else
  11935. can_build_shared=no
  11936. fi
  11937. ;;
  11938. esac
  11939. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11940. # soname into executable. Probably we can add versioning support to
  11941. # collect2, so additional links can be useful in future.
  11942. if test "$aix_use_runtimelinking" = yes; then
  11943. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11944. # instead of lib<name>.a to let people know that these are not
  11945. # typical AIX shared libraries.
  11946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11947. else
  11948. # We preserve .a as extension for shared libraries through AIX4.2
  11949. # and later when we are not doing run time linking.
  11950. library_names_spec='${libname}${release}.a $libname.a'
  11951. soname_spec='${libname}${release}${shared_ext}$major'
  11952. fi
  11953. shlibpath_var=LIBPATH
  11954. fi
  11955. ;;
  11956. amigaos*)
  11957. case $host_cpu in
  11958. powerpc)
  11959. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11960. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11962. ;;
  11963. m68k)
  11964. library_names_spec='$libname.ixlibrary $libname.a'
  11965. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11966. 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'
  11967. ;;
  11968. esac
  11969. ;;
  11970. beos*)
  11971. library_names_spec='${libname}${shared_ext}'
  11972. dynamic_linker="$host_os ld.so"
  11973. shlibpath_var=LIBRARY_PATH
  11974. ;;
  11975. bsdi[45]*)
  11976. version_type=linux
  11977. need_version=no
  11978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11979. soname_spec='${libname}${release}${shared_ext}$major'
  11980. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11981. shlibpath_var=LD_LIBRARY_PATH
  11982. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11983. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11984. # the default ld.so.conf also contains /usr/contrib/lib and
  11985. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11986. # libtool to hard-code these into programs
  11987. ;;
  11988. cygwin* | mingw* | pw32* | cegcc*)
  11989. version_type=windows
  11990. shrext_cmds=".dll"
  11991. need_version=no
  11992. need_lib_prefix=no
  11993. case $GCC,$cc_basename in
  11994. yes,*)
  11995. # gcc
  11996. library_names_spec='$libname.dll.a'
  11997. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11998. postinstall_cmds='base_file=`basename \${file}`~
  11999. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12000. dldir=$destdir/`dirname \$dlpath`~
  12001. test -d \$dldir || mkdir -p \$dldir~
  12002. $install_prog $dir/$dlname \$dldir/$dlname~
  12003. chmod a+x \$dldir/$dlname~
  12004. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12005. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12006. fi'
  12007. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12008. dlpath=$dir/\$dldll~
  12009. $RM \$dlpath'
  12010. shlibpath_overrides_runpath=yes
  12011. case $host_os in
  12012. cygwin*)
  12013. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12014. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12015. ;;
  12016. mingw* | cegcc*)
  12017. # MinGW DLLs use traditional 'lib' prefix
  12018. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12019. ;;
  12020. pw32*)
  12021. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12022. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12023. ;;
  12024. esac
  12025. dynamic_linker='Win32 ld.exe'
  12026. ;;
  12027. *,cl*)
  12028. # Native MSVC
  12029. libname_spec='$name'
  12030. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12031. library_names_spec='${libname}.dll.lib'
  12032. case $build_os in
  12033. mingw*)
  12034. sys_lib_search_path_spec=
  12035. lt_save_ifs=$IFS
  12036. IFS=';'
  12037. for lt_path in $LIB
  12038. do
  12039. IFS=$lt_save_ifs
  12040. # Let DOS variable expansion print the short 8.3 style file name.
  12041. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12042. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12043. done
  12044. IFS=$lt_save_ifs
  12045. # Convert to MSYS style.
  12046. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12047. ;;
  12048. cygwin*)
  12049. # Convert to unix form, then to dos form, then back to unix form
  12050. # but this time dos style (no spaces!) so that the unix form looks
  12051. # like /cygdrive/c/PROGRA~1:/cygdr...
  12052. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12053. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12054. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12055. ;;
  12056. *)
  12057. sys_lib_search_path_spec="$LIB"
  12058. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12059. # It is most probably a Windows format PATH.
  12060. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12061. else
  12062. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12063. fi
  12064. # FIXME: find the short name or the path components, as spaces are
  12065. # common. (e.g. "Program Files" -> "PROGRA~1")
  12066. ;;
  12067. esac
  12068. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12069. postinstall_cmds='base_file=`basename \${file}`~
  12070. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12071. dldir=$destdir/`dirname \$dlpath`~
  12072. test -d \$dldir || mkdir -p \$dldir~
  12073. $install_prog $dir/$dlname \$dldir/$dlname'
  12074. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12075. dlpath=$dir/\$dldll~
  12076. $RM \$dlpath'
  12077. shlibpath_overrides_runpath=yes
  12078. dynamic_linker='Win32 link.exe'
  12079. ;;
  12080. *)
  12081. # Assume MSVC wrapper
  12082. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12083. dynamic_linker='Win32 ld.exe'
  12084. ;;
  12085. esac
  12086. # FIXME: first we should search . and the directory the executable is in
  12087. shlibpath_var=PATH
  12088. ;;
  12089. darwin* | rhapsody*)
  12090. dynamic_linker="$host_os dyld"
  12091. version_type=darwin
  12092. need_lib_prefix=no
  12093. need_version=no
  12094. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12095. soname_spec='${libname}${release}${major}$shared_ext'
  12096. shlibpath_overrides_runpath=yes
  12097. shlibpath_var=DYLD_LIBRARY_PATH
  12098. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12099. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12100. ;;
  12101. dgux*)
  12102. version_type=linux
  12103. need_lib_prefix=no
  12104. need_version=no
  12105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12106. soname_spec='${libname}${release}${shared_ext}$major'
  12107. shlibpath_var=LD_LIBRARY_PATH
  12108. ;;
  12109. freebsd1*)
  12110. dynamic_linker=no
  12111. ;;
  12112. freebsd* | dragonfly*)
  12113. # DragonFly does not have aout. When/if they implement a new
  12114. # versioning mechanism, adjust this.
  12115. if test -x /usr/bin/objformat; then
  12116. objformat=`/usr/bin/objformat`
  12117. else
  12118. case $host_os in
  12119. freebsd[123]*) objformat=aout ;;
  12120. *) objformat=elf ;;
  12121. esac
  12122. fi
  12123. version_type=freebsd-$objformat
  12124. case $version_type in
  12125. freebsd-elf*)
  12126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12127. need_version=no
  12128. need_lib_prefix=no
  12129. ;;
  12130. freebsd-*)
  12131. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12132. need_version=yes
  12133. ;;
  12134. esac
  12135. shlibpath_var=LD_LIBRARY_PATH
  12136. case $host_os in
  12137. freebsd2*)
  12138. shlibpath_overrides_runpath=yes
  12139. ;;
  12140. freebsd3.[01]* | freebsdelf3.[01]*)
  12141. shlibpath_overrides_runpath=yes
  12142. hardcode_into_libs=yes
  12143. ;;
  12144. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12145. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12146. shlibpath_overrides_runpath=no
  12147. hardcode_into_libs=yes
  12148. ;;
  12149. *) # from 4.6 on, and DragonFly
  12150. shlibpath_overrides_runpath=yes
  12151. hardcode_into_libs=yes
  12152. ;;
  12153. esac
  12154. ;;
  12155. gnu*)
  12156. version_type=linux
  12157. need_lib_prefix=no
  12158. need_version=no
  12159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12160. soname_spec='${libname}${release}${shared_ext}$major'
  12161. shlibpath_var=LD_LIBRARY_PATH
  12162. hardcode_into_libs=yes
  12163. ;;
  12164. haiku*)
  12165. version_type=linux
  12166. need_lib_prefix=no
  12167. need_version=no
  12168. dynamic_linker="$host_os runtime_loader"
  12169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12170. soname_spec='${libname}${release}${shared_ext}$major'
  12171. shlibpath_var=LIBRARY_PATH
  12172. shlibpath_overrides_runpath=yes
  12173. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12174. hardcode_into_libs=yes
  12175. ;;
  12176. hpux9* | hpux10* | hpux11*)
  12177. # Give a soname corresponding to the major version so that dld.sl refuses to
  12178. # link against other versions.
  12179. version_type=sunos
  12180. need_lib_prefix=no
  12181. need_version=no
  12182. case $host_cpu in
  12183. ia64*)
  12184. shrext_cmds='.so'
  12185. hardcode_into_libs=yes
  12186. dynamic_linker="$host_os dld.so"
  12187. shlibpath_var=LD_LIBRARY_PATH
  12188. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12190. soname_spec='${libname}${release}${shared_ext}$major'
  12191. if test "X$HPUX_IA64_MODE" = X32; then
  12192. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12193. else
  12194. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12195. fi
  12196. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12197. ;;
  12198. hppa*64*)
  12199. shrext_cmds='.sl'
  12200. hardcode_into_libs=yes
  12201. dynamic_linker="$host_os dld.sl"
  12202. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12203. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12205. soname_spec='${libname}${release}${shared_ext}$major'
  12206. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12207. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12208. ;;
  12209. *)
  12210. shrext_cmds='.sl'
  12211. dynamic_linker="$host_os dld.sl"
  12212. shlibpath_var=SHLIB_PATH
  12213. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12215. soname_spec='${libname}${release}${shared_ext}$major'
  12216. ;;
  12217. esac
  12218. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12219. postinstall_cmds='chmod 555 $lib'
  12220. # or fails outright, so override atomically:
  12221. install_override_mode=555
  12222. ;;
  12223. interix[3-9]*)
  12224. version_type=linux
  12225. need_lib_prefix=no
  12226. need_version=no
  12227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12228. soname_spec='${libname}${release}${shared_ext}$major'
  12229. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12230. shlibpath_var=LD_LIBRARY_PATH
  12231. shlibpath_overrides_runpath=no
  12232. hardcode_into_libs=yes
  12233. ;;
  12234. irix5* | irix6* | nonstopux*)
  12235. case $host_os in
  12236. nonstopux*) version_type=nonstopux ;;
  12237. *)
  12238. if test "$lt_cv_prog_gnu_ld" = yes; then
  12239. version_type=linux
  12240. else
  12241. version_type=irix
  12242. fi ;;
  12243. esac
  12244. need_lib_prefix=no
  12245. need_version=no
  12246. soname_spec='${libname}${release}${shared_ext}$major'
  12247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12248. case $host_os in
  12249. irix5* | nonstopux*)
  12250. libsuff= shlibsuff=
  12251. ;;
  12252. *)
  12253. case $LD in # libtool.m4 will add one of these switches to LD
  12254. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12255. libsuff= shlibsuff= libmagic=32-bit;;
  12256. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12257. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12258. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12259. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12260. *) libsuff= shlibsuff= libmagic=never-match;;
  12261. esac
  12262. ;;
  12263. esac
  12264. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12265. shlibpath_overrides_runpath=no
  12266. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12267. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12268. hardcode_into_libs=yes
  12269. ;;
  12270. # No shared lib support for Linux oldld, aout, or coff.
  12271. linux*oldld* | linux*aout* | linux*coff*)
  12272. dynamic_linker=no
  12273. ;;
  12274. # This must be Linux ELF.
  12275. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12276. version_type=linux
  12277. need_lib_prefix=no
  12278. need_version=no
  12279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12280. soname_spec='${libname}${release}${shared_ext}$major'
  12281. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12282. shlibpath_var=LD_LIBRARY_PATH
  12283. shlibpath_overrides_runpath=no
  12284. # Some binutils ld are patched to set DT_RUNPATH
  12285. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12286. $as_echo_n "(cached) " >&6
  12287. else
  12288. lt_cv_shlibpath_overrides_runpath=no
  12289. save_LDFLAGS=$LDFLAGS
  12290. save_libdir=$libdir
  12291. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12292. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12294. /* end confdefs.h. */
  12295. int
  12296. main ()
  12297. {
  12298. ;
  12299. return 0;
  12300. }
  12301. _ACEOF
  12302. if ac_fn_cxx_try_link "$LINENO"; then :
  12303. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12304. lt_cv_shlibpath_overrides_runpath=yes
  12305. fi
  12306. fi
  12307. rm -f core conftest.err conftest.$ac_objext \
  12308. conftest$ac_exeext conftest.$ac_ext
  12309. LDFLAGS=$save_LDFLAGS
  12310. libdir=$save_libdir
  12311. fi
  12312. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12313. # This implies no fast_install, which is unacceptable.
  12314. # Some rework will be needed to allow for fast_install
  12315. # before this can be enabled.
  12316. hardcode_into_libs=yes
  12317. # Append ld.so.conf contents to the search path
  12318. if test -f /etc/ld.so.conf; then
  12319. 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' ' '`
  12320. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12321. fi
  12322. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12323. # powerpc, because MkLinux only supported shared libraries with the
  12324. # GNU dynamic linker. Since this was broken with cross compilers,
  12325. # most powerpc-linux boxes support dynamic linking these days and
  12326. # people can always --disable-shared, the test was removed, and we
  12327. # assume the GNU/Linux dynamic linker is in use.
  12328. dynamic_linker='GNU/Linux ld.so'
  12329. ;;
  12330. netbsd*)
  12331. version_type=sunos
  12332. need_lib_prefix=no
  12333. need_version=no
  12334. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12336. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12337. dynamic_linker='NetBSD (a.out) ld.so'
  12338. else
  12339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12340. soname_spec='${libname}${release}${shared_ext}$major'
  12341. dynamic_linker='NetBSD ld.elf_so'
  12342. fi
  12343. shlibpath_var=LD_LIBRARY_PATH
  12344. shlibpath_overrides_runpath=yes
  12345. hardcode_into_libs=yes
  12346. ;;
  12347. newsos6)
  12348. version_type=linux
  12349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12350. shlibpath_var=LD_LIBRARY_PATH
  12351. shlibpath_overrides_runpath=yes
  12352. ;;
  12353. *nto* | *qnx*)
  12354. version_type=qnx
  12355. need_lib_prefix=no
  12356. need_version=no
  12357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12358. soname_spec='${libname}${release}${shared_ext}$major'
  12359. shlibpath_var=LD_LIBRARY_PATH
  12360. shlibpath_overrides_runpath=no
  12361. hardcode_into_libs=yes
  12362. dynamic_linker='ldqnx.so'
  12363. ;;
  12364. openbsd*)
  12365. version_type=sunos
  12366. sys_lib_dlsearch_path_spec="/usr/lib"
  12367. need_lib_prefix=no
  12368. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12369. case $host_os in
  12370. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12371. *) need_version=no ;;
  12372. esac
  12373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12374. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12375. shlibpath_var=LD_LIBRARY_PATH
  12376. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12377. case $host_os in
  12378. openbsd2.[89] | openbsd2.[89].*)
  12379. shlibpath_overrides_runpath=no
  12380. ;;
  12381. *)
  12382. shlibpath_overrides_runpath=yes
  12383. ;;
  12384. esac
  12385. else
  12386. shlibpath_overrides_runpath=yes
  12387. fi
  12388. ;;
  12389. os2*)
  12390. libname_spec='$name'
  12391. shrext_cmds=".dll"
  12392. need_lib_prefix=no
  12393. library_names_spec='$libname${shared_ext} $libname.a'
  12394. dynamic_linker='OS/2 ld.exe'
  12395. shlibpath_var=LIBPATH
  12396. ;;
  12397. osf3* | osf4* | osf5*)
  12398. version_type=osf
  12399. need_lib_prefix=no
  12400. need_version=no
  12401. soname_spec='${libname}${release}${shared_ext}$major'
  12402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12403. shlibpath_var=LD_LIBRARY_PATH
  12404. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12405. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12406. ;;
  12407. rdos*)
  12408. dynamic_linker=no
  12409. ;;
  12410. solaris*)
  12411. version_type=linux
  12412. need_lib_prefix=no
  12413. need_version=no
  12414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12415. soname_spec='${libname}${release}${shared_ext}$major'
  12416. shlibpath_var=LD_LIBRARY_PATH
  12417. shlibpath_overrides_runpath=yes
  12418. hardcode_into_libs=yes
  12419. # ldd complains unless libraries are executable
  12420. postinstall_cmds='chmod +x $lib'
  12421. ;;
  12422. sunos4*)
  12423. version_type=sunos
  12424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12425. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12426. shlibpath_var=LD_LIBRARY_PATH
  12427. shlibpath_overrides_runpath=yes
  12428. if test "$with_gnu_ld" = yes; then
  12429. need_lib_prefix=no
  12430. fi
  12431. need_version=yes
  12432. ;;
  12433. sysv4 | sysv4.3*)
  12434. version_type=linux
  12435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12436. soname_spec='${libname}${release}${shared_ext}$major'
  12437. shlibpath_var=LD_LIBRARY_PATH
  12438. case $host_vendor in
  12439. sni)
  12440. shlibpath_overrides_runpath=no
  12441. need_lib_prefix=no
  12442. runpath_var=LD_RUN_PATH
  12443. ;;
  12444. siemens)
  12445. need_lib_prefix=no
  12446. ;;
  12447. motorola)
  12448. need_lib_prefix=no
  12449. need_version=no
  12450. shlibpath_overrides_runpath=no
  12451. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12452. ;;
  12453. esac
  12454. ;;
  12455. sysv4*MP*)
  12456. if test -d /usr/nec ;then
  12457. version_type=linux
  12458. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12459. soname_spec='$libname${shared_ext}.$major'
  12460. shlibpath_var=LD_LIBRARY_PATH
  12461. fi
  12462. ;;
  12463. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12464. version_type=freebsd-elf
  12465. need_lib_prefix=no
  12466. need_version=no
  12467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12468. soname_spec='${libname}${release}${shared_ext}$major'
  12469. shlibpath_var=LD_LIBRARY_PATH
  12470. shlibpath_overrides_runpath=yes
  12471. hardcode_into_libs=yes
  12472. if test "$with_gnu_ld" = yes; then
  12473. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12474. else
  12475. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12476. case $host_os in
  12477. sco3.2v5*)
  12478. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12479. ;;
  12480. esac
  12481. fi
  12482. sys_lib_dlsearch_path_spec='/usr/lib'
  12483. ;;
  12484. tpf*)
  12485. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12486. version_type=linux
  12487. need_lib_prefix=no
  12488. need_version=no
  12489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12490. shlibpath_var=LD_LIBRARY_PATH
  12491. shlibpath_overrides_runpath=no
  12492. hardcode_into_libs=yes
  12493. ;;
  12494. uts4*)
  12495. version_type=linux
  12496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12497. soname_spec='${libname}${release}${shared_ext}$major'
  12498. shlibpath_var=LD_LIBRARY_PATH
  12499. ;;
  12500. *)
  12501. dynamic_linker=no
  12502. ;;
  12503. esac
  12504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12505. $as_echo "$dynamic_linker" >&6; }
  12506. test "$dynamic_linker" = no && can_build_shared=no
  12507. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12508. if test "$GCC" = yes; then
  12509. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12510. fi
  12511. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12512. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12513. fi
  12514. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12515. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12516. fi
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12518. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12519. hardcode_action_CXX=
  12520. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12521. test -n "$runpath_var_CXX" ||
  12522. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12523. # We can hardcode non-existent directories.
  12524. if test "$hardcode_direct_CXX" != no &&
  12525. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12526. # have to relink, otherwise we might link with an installed library
  12527. # when we should be linking with a yet-to-be-installed one
  12528. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12529. test "$hardcode_minus_L_CXX" != no; then
  12530. # Linking always hardcodes the temporary library directory.
  12531. hardcode_action_CXX=relink
  12532. else
  12533. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12534. hardcode_action_CXX=immediate
  12535. fi
  12536. else
  12537. # We cannot hardcode anything, or else we can only hardcode existing
  12538. # directories.
  12539. hardcode_action_CXX=unsupported
  12540. fi
  12541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12542. $as_echo "$hardcode_action_CXX" >&6; }
  12543. if test "$hardcode_action_CXX" = relink ||
  12544. test "$inherit_rpath_CXX" = yes; then
  12545. # Fast installation is not supported
  12546. enable_fast_install=no
  12547. elif test "$shlibpath_overrides_runpath" = yes ||
  12548. test "$enable_shared" = no; then
  12549. # Fast installation is not necessary
  12550. enable_fast_install=needless
  12551. fi
  12552. fi # test -n "$compiler"
  12553. CC=$lt_save_CC
  12554. CFLAGS=$lt_save_CFLAGS
  12555. LDCXX=$LD
  12556. LD=$lt_save_LD
  12557. GCC=$lt_save_GCC
  12558. with_gnu_ld=$lt_save_with_gnu_ld
  12559. lt_cv_path_LDCXX=$lt_cv_path_LD
  12560. lt_cv_path_LD=$lt_save_path_LD
  12561. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12562. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12563. fi # test "$_lt_caught_CXX_error" != yes
  12564. ac_ext=c
  12565. ac_cpp='$CPP $CPPFLAGS'
  12566. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12567. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12568. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12569. ac_config_commands="$ac_config_commands libtool"
  12570. # Only expand once:
  12571. ac_config_headers="$ac_config_headers config.h"
  12572. am__api_version='1.11'
  12573. # Find a good install program. We prefer a C program (faster),
  12574. # so one script is as good as another. But avoid the broken or
  12575. # incompatible versions:
  12576. # SysV /etc/install, /usr/sbin/install
  12577. # SunOS /usr/etc/install
  12578. # IRIX /sbin/install
  12579. # AIX /bin/install
  12580. # AmigaOS /C/install, which installs bootblocks on floppy discs
  12581. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  12582. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  12583. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  12584. # OS/2's system install, which has a completely different semantic
  12585. # ./install, which can be erroneously created by make from ./install.sh.
  12586. # Reject install programs that cannot install multiple files.
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  12588. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  12589. if test -z "$INSTALL"; then
  12590. if test "${ac_cv_path_install+set}" = set; then :
  12591. $as_echo_n "(cached) " >&6
  12592. else
  12593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12594. for as_dir in $PATH
  12595. do
  12596. IFS=$as_save_IFS
  12597. test -z "$as_dir" && as_dir=.
  12598. # Account for people who put trailing slashes in PATH elements.
  12599. case $as_dir/ in #((
  12600. ./ | .// | /[cC]/* | \
  12601. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  12602. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  12603. /usr/ucb/* ) ;;
  12604. *)
  12605. # OSF1 and SCO ODT 3.0 have their own names for install.
  12606. # Don't use installbsd from OSF since it installs stuff as root
  12607. # by default.
  12608. for ac_prog in ginstall scoinst install; do
  12609. for ac_exec_ext in '' $ac_executable_extensions; do
  12610. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  12611. if test $ac_prog = install &&
  12612. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12613. # AIX install. It has an incompatible calling convention.
  12614. :
  12615. elif test $ac_prog = install &&
  12616. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12617. # program-specific install script used by HP pwplus--don't use.
  12618. :
  12619. else
  12620. rm -rf conftest.one conftest.two conftest.dir
  12621. echo one > conftest.one
  12622. echo two > conftest.two
  12623. mkdir conftest.dir
  12624. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  12625. test -s conftest.one && test -s conftest.two &&
  12626. test -s conftest.dir/conftest.one &&
  12627. test -s conftest.dir/conftest.two
  12628. then
  12629. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  12630. break 3
  12631. fi
  12632. fi
  12633. fi
  12634. done
  12635. done
  12636. ;;
  12637. esac
  12638. done
  12639. IFS=$as_save_IFS
  12640. rm -rf conftest.one conftest.two conftest.dir
  12641. fi
  12642. if test "${ac_cv_path_install+set}" = set; then
  12643. INSTALL=$ac_cv_path_install
  12644. else
  12645. # As a last resort, use the slow shell script. Don't cache a
  12646. # value for INSTALL within a source directory, because that will
  12647. # break other packages using the cache if that directory is
  12648. # removed, or if the value is a relative name.
  12649. INSTALL=$ac_install_sh
  12650. fi
  12651. fi
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  12653. $as_echo "$INSTALL" >&6; }
  12654. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  12655. # It thinks the first close brace ends the variable substitution.
  12656. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  12657. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  12658. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  12660. $as_echo_n "checking whether build environment is sane... " >&6; }
  12661. # Just in case
  12662. sleep 1
  12663. echo timestamp > conftest.file
  12664. # Reject unsafe characters in $srcdir or the absolute working directory
  12665. # name. Accept space and tab only in the latter.
  12666. am_lf='
  12667. '
  12668. case `pwd` in
  12669. *[\\\"\#\$\&\'\`$am_lf]*)
  12670. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  12671. esac
  12672. case $srcdir in
  12673. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  12674. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  12675. esac
  12676. # Do `set' in a subshell so we don't clobber the current shell's
  12677. # arguments. Must try -L first in case configure is actually a
  12678. # symlink; some systems play weird games with the mod time of symlinks
  12679. # (eg FreeBSD returns the mod time of the symlink's containing
  12680. # directory).
  12681. if (
  12682. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  12683. if test "$*" = "X"; then
  12684. # -L didn't work.
  12685. set X `ls -t "$srcdir/configure" conftest.file`
  12686. fi
  12687. rm -f conftest.file
  12688. if test "$*" != "X $srcdir/configure conftest.file" \
  12689. && test "$*" != "X conftest.file $srcdir/configure"; then
  12690. # If neither matched, then we have a broken ls. This can happen
  12691. # if, for instance, CONFIG_SHELL is bash and it inherits a
  12692. # broken ls alias from the environment. This has actually
  12693. # happened. Such a system could not be considered "sane".
  12694. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  12695. alias in your environment" "$LINENO" 5
  12696. fi
  12697. test "$2" = conftest.file
  12698. )
  12699. then
  12700. # Ok.
  12701. :
  12702. else
  12703. as_fn_error "newly created file is older than distributed files!
  12704. Check your system clock" "$LINENO" 5
  12705. fi
  12706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12707. $as_echo "yes" >&6; }
  12708. test "$program_prefix" != NONE &&
  12709. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  12710. # Use a double $ so make ignores it.
  12711. test "$program_suffix" != NONE &&
  12712. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  12713. # Double any \ or $.
  12714. # By default was `s,x,x', remove it if useless.
  12715. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  12716. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  12717. # expand $ac_aux_dir to an absolute path
  12718. am_aux_dir=`cd $ac_aux_dir && pwd`
  12719. if test x"${MISSING+set}" != xset; then
  12720. case $am_aux_dir in
  12721. *\ * | *\ *)
  12722. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  12723. *)
  12724. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  12725. esac
  12726. fi
  12727. # Use eval to expand $SHELL
  12728. if eval "$MISSING --run true"; then
  12729. am_missing_run="$MISSING --run "
  12730. else
  12731. am_missing_run=
  12732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  12733. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  12734. fi
  12735. if test x"${install_sh}" != xset; then
  12736. case $am_aux_dir in
  12737. *\ * | *\ *)
  12738. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  12739. *)
  12740. install_sh="\${SHELL} $am_aux_dir/install-sh"
  12741. esac
  12742. fi
  12743. # Installed binaries are usually stripped using `strip' when the user
  12744. # run `make install-strip'. However `strip' might not be the right
  12745. # tool to use in cross-compilation environments, therefore Automake
  12746. # will honor the `STRIP' environment variable to overrule this program.
  12747. if test "$cross_compiling" != no; then
  12748. if test -n "$ac_tool_prefix"; then
  12749. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  12750. set dummy ${ac_tool_prefix}strip; ac_word=$2
  12751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12752. $as_echo_n "checking for $ac_word... " >&6; }
  12753. if test "${ac_cv_prog_STRIP+set}" = set; then :
  12754. $as_echo_n "(cached) " >&6
  12755. else
  12756. if test -n "$STRIP"; then
  12757. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  12758. else
  12759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12760. for as_dir in $PATH
  12761. do
  12762. IFS=$as_save_IFS
  12763. test -z "$as_dir" && as_dir=.
  12764. for ac_exec_ext in '' $ac_executable_extensions; do
  12765. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12766. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  12767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12768. break 2
  12769. fi
  12770. done
  12771. done
  12772. IFS=$as_save_IFS
  12773. fi
  12774. fi
  12775. STRIP=$ac_cv_prog_STRIP
  12776. if test -n "$STRIP"; then
  12777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  12778. $as_echo "$STRIP" >&6; }
  12779. else
  12780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12781. $as_echo "no" >&6; }
  12782. fi
  12783. fi
  12784. if test -z "$ac_cv_prog_STRIP"; then
  12785. ac_ct_STRIP=$STRIP
  12786. # Extract the first word of "strip", so it can be a program name with args.
  12787. set dummy strip; ac_word=$2
  12788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12789. $as_echo_n "checking for $ac_word... " >&6; }
  12790. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  12791. $as_echo_n "(cached) " >&6
  12792. else
  12793. if test -n "$ac_ct_STRIP"; then
  12794. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  12795. else
  12796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12797. for as_dir in $PATH
  12798. do
  12799. IFS=$as_save_IFS
  12800. test -z "$as_dir" && as_dir=.
  12801. for ac_exec_ext in '' $ac_executable_extensions; do
  12802. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12803. ac_cv_prog_ac_ct_STRIP="strip"
  12804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12805. break 2
  12806. fi
  12807. done
  12808. done
  12809. IFS=$as_save_IFS
  12810. fi
  12811. fi
  12812. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  12813. if test -n "$ac_ct_STRIP"; then
  12814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  12815. $as_echo "$ac_ct_STRIP" >&6; }
  12816. else
  12817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12818. $as_echo "no" >&6; }
  12819. fi
  12820. if test "x$ac_ct_STRIP" = x; then
  12821. STRIP=":"
  12822. else
  12823. case $cross_compiling:$ac_tool_warned in
  12824. yes:)
  12825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12826. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12827. ac_tool_warned=yes ;;
  12828. esac
  12829. STRIP=$ac_ct_STRIP
  12830. fi
  12831. else
  12832. STRIP="$ac_cv_prog_STRIP"
  12833. fi
  12834. fi
  12835. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  12836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  12837. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  12838. if test -z "$MKDIR_P"; then
  12839. if test "${ac_cv_path_mkdir+set}" = set; then :
  12840. $as_echo_n "(cached) " >&6
  12841. else
  12842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12843. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  12844. do
  12845. IFS=$as_save_IFS
  12846. test -z "$as_dir" && as_dir=.
  12847. for ac_prog in mkdir gmkdir; do
  12848. for ac_exec_ext in '' $ac_executable_extensions; do
  12849. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  12850. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  12851. 'mkdir (GNU coreutils) '* | \
  12852. 'mkdir (coreutils) '* | \
  12853. 'mkdir (fileutils) '4.1*)
  12854. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  12855. break 3;;
  12856. esac
  12857. done
  12858. done
  12859. done
  12860. IFS=$as_save_IFS
  12861. fi
  12862. if test "${ac_cv_path_mkdir+set}" = set; then
  12863. MKDIR_P="$ac_cv_path_mkdir -p"
  12864. else
  12865. # As a last resort, use the slow shell script. Don't cache a
  12866. # value for MKDIR_P within a source directory, because that will
  12867. # break other packages using the cache if that directory is
  12868. # removed, or if the value is a relative name.
  12869. test -d ./--version && rmdir ./--version
  12870. MKDIR_P="$ac_install_sh -d"
  12871. fi
  12872. fi
  12873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  12874. $as_echo "$MKDIR_P" >&6; }
  12875. mkdir_p="$MKDIR_P"
  12876. case $mkdir_p in
  12877. [\\/$]* | ?:[\\/]*) ;;
  12878. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  12879. esac
  12880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  12881. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  12882. set x ${MAKE-make}
  12883. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  12884. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  12885. $as_echo_n "(cached) " >&6
  12886. else
  12887. cat >conftest.make <<\_ACEOF
  12888. SHELL = /bin/sh
  12889. all:
  12890. @echo '@@@%%%=$(MAKE)=@@@%%%'
  12891. _ACEOF
  12892. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  12893. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  12894. *@@@%%%=?*=@@@%%%*)
  12895. eval ac_cv_prog_make_${ac_make}_set=yes;;
  12896. *)
  12897. eval ac_cv_prog_make_${ac_make}_set=no;;
  12898. esac
  12899. rm -f conftest.make
  12900. fi
  12901. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  12902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12903. $as_echo "yes" >&6; }
  12904. SET_MAKE=
  12905. else
  12906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12907. $as_echo "no" >&6; }
  12908. SET_MAKE="MAKE=${MAKE-make}"
  12909. fi
  12910. rm -rf .tst 2>/dev/null
  12911. mkdir .tst 2>/dev/null
  12912. if test -d .tst; then
  12913. am__leading_dot=.
  12914. else
  12915. am__leading_dot=_
  12916. fi
  12917. rmdir .tst 2>/dev/null
  12918. DEPDIR="${am__leading_dot}deps"
  12919. ac_config_commands="$ac_config_commands depfiles"
  12920. am_make=${MAKE-make}
  12921. cat > confinc << 'END'
  12922. am__doit:
  12923. @echo this is the am__doit target
  12924. .PHONY: am__doit
  12925. END
  12926. # If we don't find an include directive, just comment out the code.
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  12928. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  12929. am__include="#"
  12930. am__quote=
  12931. _am_result=none
  12932. # First try GNU make style include.
  12933. echo "include confinc" > confmf
  12934. # Ignore all kinds of additional output from `make'.
  12935. case `$am_make -s -f confmf 2> /dev/null` in #(
  12936. *the\ am__doit\ target*)
  12937. am__include=include
  12938. am__quote=
  12939. _am_result=GNU
  12940. ;;
  12941. esac
  12942. # Now try BSD make style include.
  12943. if test "$am__include" = "#"; then
  12944. echo '.include "confinc"' > confmf
  12945. case `$am_make -s -f confmf 2> /dev/null` in #(
  12946. *the\ am__doit\ target*)
  12947. am__include=.include
  12948. am__quote="\""
  12949. _am_result=BSD
  12950. ;;
  12951. esac
  12952. fi
  12953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  12954. $as_echo "$_am_result" >&6; }
  12955. rm -f confinc confmf
  12956. # Check whether --enable-dependency-tracking was given.
  12957. if test "${enable_dependency_tracking+set}" = set; then :
  12958. enableval=$enable_dependency_tracking;
  12959. fi
  12960. if test "x$enable_dependency_tracking" != xno; then
  12961. am_depcomp="$ac_aux_dir/depcomp"
  12962. AMDEPBACKSLASH='\'
  12963. fi
  12964. if test "x$enable_dependency_tracking" != xno; then
  12965. AMDEP_TRUE=
  12966. AMDEP_FALSE='#'
  12967. else
  12968. AMDEP_TRUE='#'
  12969. AMDEP_FALSE=
  12970. fi
  12971. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  12972. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  12973. # is not polluted with repeated "-I."
  12974. am__isrc=' -I$(srcdir)'
  12975. # test to see if srcdir already configured
  12976. if test -f $srcdir/config.status; then
  12977. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  12978. fi
  12979. fi
  12980. # test whether we have cygpath
  12981. if test -z "$CYGPATH_W"; then
  12982. if (cygpath --version) >/dev/null 2>/dev/null; then
  12983. CYGPATH_W='cygpath -w'
  12984. else
  12985. CYGPATH_W=echo
  12986. fi
  12987. fi
  12988. # Define the identity of the package.
  12989. PACKAGE='klish'
  12990. VERSION='1.5.0'
  12991. cat >>confdefs.h <<_ACEOF
  12992. #define PACKAGE "$PACKAGE"
  12993. _ACEOF
  12994. cat >>confdefs.h <<_ACEOF
  12995. #define VERSION "$VERSION"
  12996. _ACEOF
  12997. # Some tools Automake needs.
  12998. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  12999. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  13000. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  13001. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  13002. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13003. # We need awk for the "check" target. The system "awk" is bad on
  13004. # some platforms.
  13005. # Always define AMTAR for backward compatibility.
  13006. AMTAR=${AMTAR-"${am_missing_run}tar"}
  13007. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  13008. depcc="$CC" am_compiler_list=
  13009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13010. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13011. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  13012. $as_echo_n "(cached) " >&6
  13013. else
  13014. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13015. # We make a subdir and do the tests there. Otherwise we can end up
  13016. # making bogus files that we don't know about and never remove. For
  13017. # instance it was reported that on HP-UX the gcc test will end up
  13018. # making a dummy file named `D' -- because `-MD' means `put the output
  13019. # in D'.
  13020. mkdir conftest.dir
  13021. # Copy depcomp to subdir because otherwise we won't find it if we're
  13022. # using a relative directory.
  13023. cp "$am_depcomp" conftest.dir
  13024. cd conftest.dir
  13025. # We will build objects and dependencies in a subdirectory because
  13026. # it helps to detect inapplicable dependency modes. For instance
  13027. # both Tru64's cc and ICC support -MD to output dependencies as a
  13028. # side effect of compilation, but ICC will put the dependencies in
  13029. # the current directory while Tru64 will put them in the object
  13030. # directory.
  13031. mkdir sub
  13032. am_cv_CC_dependencies_compiler_type=none
  13033. if test "$am_compiler_list" = ""; then
  13034. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13035. fi
  13036. am__universal=false
  13037. case " $depcc " in #(
  13038. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13039. esac
  13040. for depmode in $am_compiler_list; do
  13041. # Setup a source with many dependencies, because some compilers
  13042. # like to wrap large dependency lists on column 80 (with \), and
  13043. # we should not choose a depcomp mode which is confused by this.
  13044. #
  13045. # We need to recreate these files for each test, as the compiler may
  13046. # overwrite some of them when testing with obscure command lines.
  13047. # This happens at least with the AIX C compiler.
  13048. : > sub/conftest.c
  13049. for i in 1 2 3 4 5 6; do
  13050. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13051. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13052. # Solaris 8's {/usr,}/bin/sh.
  13053. touch sub/conftst$i.h
  13054. done
  13055. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13056. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13057. # mode. It turns out that the SunPro C++ compiler does not properly
  13058. # handle `-M -o', and we need to detect this. Also, some Intel
  13059. # versions had trouble with output in subdirs
  13060. am__obj=sub/conftest.${OBJEXT-o}
  13061. am__minus_obj="-o $am__obj"
  13062. case $depmode in
  13063. gcc)
  13064. # This depmode causes a compiler race in universal mode.
  13065. test "$am__universal" = false || continue
  13066. ;;
  13067. nosideeffect)
  13068. # after this tag, mechanisms are not by side-effect, so they'll
  13069. # only be used when explicitly requested
  13070. if test "x$enable_dependency_tracking" = xyes; then
  13071. continue
  13072. else
  13073. break
  13074. fi
  13075. ;;
  13076. msvisualcpp | msvcmsys)
  13077. # This compiler won't grok `-c -o', but also, the minuso test has
  13078. # not run yet. These depmodes are late enough in the game, and
  13079. # so weak that their functioning should not be impacted.
  13080. am__obj=conftest.${OBJEXT-o}
  13081. am__minus_obj=
  13082. ;;
  13083. none) break ;;
  13084. esac
  13085. if depmode=$depmode \
  13086. source=sub/conftest.c object=$am__obj \
  13087. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13088. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13089. >/dev/null 2>conftest.err &&
  13090. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13091. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13092. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13093. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13094. # icc doesn't choke on unknown options, it will just issue warnings
  13095. # or remarks (even with -Werror). So we grep stderr for any message
  13096. # that says an option was ignored or not supported.
  13097. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13098. # icc: Command line warning: ignoring option '-M'; no argument required
  13099. # The diagnosis changed in icc 8.0:
  13100. # icc: Command line remark: option '-MP' not supported
  13101. if (grep 'ignoring option' conftest.err ||
  13102. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13103. am_cv_CC_dependencies_compiler_type=$depmode
  13104. break
  13105. fi
  13106. fi
  13107. done
  13108. cd ..
  13109. rm -rf conftest.dir
  13110. else
  13111. am_cv_CC_dependencies_compiler_type=none
  13112. fi
  13113. fi
  13114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13115. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13116. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13117. if
  13118. test "x$enable_dependency_tracking" != xno \
  13119. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13120. am__fastdepCC_TRUE=
  13121. am__fastdepCC_FALSE='#'
  13122. else
  13123. am__fastdepCC_TRUE='#'
  13124. am__fastdepCC_FALSE=
  13125. fi
  13126. depcc="$CXX" am_compiler_list=
  13127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13128. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13129. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  13130. $as_echo_n "(cached) " >&6
  13131. else
  13132. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13133. # We make a subdir and do the tests there. Otherwise we can end up
  13134. # making bogus files that we don't know about and never remove. For
  13135. # instance it was reported that on HP-UX the gcc test will end up
  13136. # making a dummy file named `D' -- because `-MD' means `put the output
  13137. # in D'.
  13138. mkdir conftest.dir
  13139. # Copy depcomp to subdir because otherwise we won't find it if we're
  13140. # using a relative directory.
  13141. cp "$am_depcomp" conftest.dir
  13142. cd conftest.dir
  13143. # We will build objects and dependencies in a subdirectory because
  13144. # it helps to detect inapplicable dependency modes. For instance
  13145. # both Tru64's cc and ICC support -MD to output dependencies as a
  13146. # side effect of compilation, but ICC will put the dependencies in
  13147. # the current directory while Tru64 will put them in the object
  13148. # directory.
  13149. mkdir sub
  13150. am_cv_CXX_dependencies_compiler_type=none
  13151. if test "$am_compiler_list" = ""; then
  13152. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13153. fi
  13154. am__universal=false
  13155. case " $depcc " in #(
  13156. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13157. esac
  13158. for depmode in $am_compiler_list; do
  13159. # Setup a source with many dependencies, because some compilers
  13160. # like to wrap large dependency lists on column 80 (with \), and
  13161. # we should not choose a depcomp mode which is confused by this.
  13162. #
  13163. # We need to recreate these files for each test, as the compiler may
  13164. # overwrite some of them when testing with obscure command lines.
  13165. # This happens at least with the AIX C compiler.
  13166. : > sub/conftest.c
  13167. for i in 1 2 3 4 5 6; do
  13168. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13169. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13170. # Solaris 8's {/usr,}/bin/sh.
  13171. touch sub/conftst$i.h
  13172. done
  13173. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13174. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13175. # mode. It turns out that the SunPro C++ compiler does not properly
  13176. # handle `-M -o', and we need to detect this. Also, some Intel
  13177. # versions had trouble with output in subdirs
  13178. am__obj=sub/conftest.${OBJEXT-o}
  13179. am__minus_obj="-o $am__obj"
  13180. case $depmode in
  13181. gcc)
  13182. # This depmode causes a compiler race in universal mode.
  13183. test "$am__universal" = false || continue
  13184. ;;
  13185. nosideeffect)
  13186. # after this tag, mechanisms are not by side-effect, so they'll
  13187. # only be used when explicitly requested
  13188. if test "x$enable_dependency_tracking" = xyes; then
  13189. continue
  13190. else
  13191. break
  13192. fi
  13193. ;;
  13194. msvisualcpp | msvcmsys)
  13195. # This compiler won't grok `-c -o', but also, the minuso test has
  13196. # not run yet. These depmodes are late enough in the game, and
  13197. # so weak that their functioning should not be impacted.
  13198. am__obj=conftest.${OBJEXT-o}
  13199. am__minus_obj=
  13200. ;;
  13201. none) break ;;
  13202. esac
  13203. if depmode=$depmode \
  13204. source=sub/conftest.c object=$am__obj \
  13205. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13206. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13207. >/dev/null 2>conftest.err &&
  13208. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13209. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13210. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13211. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13212. # icc doesn't choke on unknown options, it will just issue warnings
  13213. # or remarks (even with -Werror). So we grep stderr for any message
  13214. # that says an option was ignored or not supported.
  13215. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13216. # icc: Command line warning: ignoring option '-M'; no argument required
  13217. # The diagnosis changed in icc 8.0:
  13218. # icc: Command line remark: option '-MP' not supported
  13219. if (grep 'ignoring option' conftest.err ||
  13220. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13221. am_cv_CXX_dependencies_compiler_type=$depmode
  13222. break
  13223. fi
  13224. fi
  13225. done
  13226. cd ..
  13227. rm -rf conftest.dir
  13228. else
  13229. am_cv_CXX_dependencies_compiler_type=none
  13230. fi
  13231. fi
  13232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13233. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13234. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13235. if
  13236. test "x$enable_dependency_tracking" != xno \
  13237. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13238. am__fastdepCXX_TRUE=
  13239. am__fastdepCXX_FALSE='#'
  13240. else
  13241. am__fastdepCXX_TRUE='#'
  13242. am__fastdepCXX_FALSE=
  13243. fi
  13244. if test "x$CC" != xcc; then
  13245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  13246. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  13247. else
  13248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  13249. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  13250. fi
  13251. set dummy $CC; ac_cc=`$as_echo "$2" |
  13252. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13253. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  13254. $as_echo_n "(cached) " >&6
  13255. else
  13256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13257. /* end confdefs.h. */
  13258. int
  13259. main ()
  13260. {
  13261. ;
  13262. return 0;
  13263. }
  13264. _ACEOF
  13265. # Make sure it works both with $CC and with simple cc.
  13266. # We do the test twice because some compilers refuse to overwrite an
  13267. # existing .o file with -o, though they will create one.
  13268. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13269. rm -f conftest2.*
  13270. if { { case "(($ac_try" in
  13271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13272. *) ac_try_echo=$ac_try;;
  13273. esac
  13274. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13275. $as_echo "$ac_try_echo"; } >&5
  13276. (eval "$ac_try") 2>&5
  13277. ac_status=$?
  13278. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13279. test $ac_status = 0; } &&
  13280. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13282. *) ac_try_echo=$ac_try;;
  13283. esac
  13284. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13285. $as_echo "$ac_try_echo"; } >&5
  13286. (eval "$ac_try") 2>&5
  13287. ac_status=$?
  13288. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13289. test $ac_status = 0; };
  13290. then
  13291. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  13292. if test "x$CC" != xcc; then
  13293. # Test first that cc exists at all.
  13294. if { ac_try='cc -c conftest.$ac_ext >&5'
  13295. { { case "(($ac_try" in
  13296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13297. *) ac_try_echo=$ac_try;;
  13298. esac
  13299. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13300. $as_echo "$ac_try_echo"; } >&5
  13301. (eval "$ac_try") 2>&5
  13302. ac_status=$?
  13303. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13304. test $ac_status = 0; }; }; then
  13305. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13306. rm -f conftest2.*
  13307. if { { case "(($ac_try" in
  13308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13309. *) ac_try_echo=$ac_try;;
  13310. esac
  13311. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13312. $as_echo "$ac_try_echo"; } >&5
  13313. (eval "$ac_try") 2>&5
  13314. ac_status=$?
  13315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13316. test $ac_status = 0; } &&
  13317. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13319. *) ac_try_echo=$ac_try;;
  13320. esac
  13321. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13322. $as_echo "$ac_try_echo"; } >&5
  13323. (eval "$ac_try") 2>&5
  13324. ac_status=$?
  13325. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13326. test $ac_status = 0; };
  13327. then
  13328. # cc works too.
  13329. :
  13330. else
  13331. # cc exists but doesn't like -o.
  13332. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13333. fi
  13334. fi
  13335. fi
  13336. else
  13337. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13338. fi
  13339. rm -f core conftest*
  13340. fi
  13341. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  13342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13343. $as_echo "yes" >&6; }
  13344. else
  13345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13346. $as_echo "no" >&6; }
  13347. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  13348. fi
  13349. # FIXME: we rely on the cache variable name because
  13350. # there is no other way.
  13351. set dummy $CC
  13352. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13353. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13354. if test "$am_t" != yes; then
  13355. # Losing compiler, so override with the script.
  13356. # FIXME: It is wrong to rewrite CC.
  13357. # But if we don't then we get into trouble of one sort or another.
  13358. # A longer-term fix would be to have automake use am__CC in this case,
  13359. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13360. CC="$am_aux_dir/compile $CC"
  13361. fi
  13362. # needed to handle 64-bit architecture
  13363. # The cast to long int works around a bug in the HP C Compiler
  13364. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13365. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13366. # This bug is HP SR number 8606223364.
  13367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13368. $as_echo_n "checking size of int... " >&6; }
  13369. if test "${ac_cv_sizeof_int+set}" = set; then :
  13370. $as_echo_n "(cached) " >&6
  13371. else
  13372. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13373. else
  13374. if test "$ac_cv_type_int" = yes; then
  13375. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13376. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13377. { as_fn_set_status 77
  13378. as_fn_error "cannot compute sizeof (int)
  13379. See \`config.log' for more details." "$LINENO" 5; }; }
  13380. else
  13381. ac_cv_sizeof_int=0
  13382. fi
  13383. fi
  13384. fi
  13385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  13386. $as_echo "$ac_cv_sizeof_int" >&6; }
  13387. cat >>confdefs.h <<_ACEOF
  13388. #define SIZEOF_INT $ac_cv_sizeof_int
  13389. _ACEOF
  13390. # The cast to long int works around a bug in the HP C Compiler
  13391. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13392. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13393. # This bug is HP SR number 8606223364.
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13395. $as_echo_n "checking size of long... " >&6; }
  13396. if test "${ac_cv_sizeof_long+set}" = set; then :
  13397. $as_echo_n "(cached) " >&6
  13398. else
  13399. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13400. else
  13401. if test "$ac_cv_type_long" = yes; then
  13402. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13403. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13404. { as_fn_set_status 77
  13405. as_fn_error "cannot compute sizeof (long)
  13406. See \`config.log' for more details." "$LINENO" 5; }; }
  13407. else
  13408. ac_cv_sizeof_long=0
  13409. fi
  13410. fi
  13411. fi
  13412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13413. $as_echo "$ac_cv_sizeof_long" >&6; }
  13414. cat >>confdefs.h <<_ACEOF
  13415. #define SIZEOF_LONG $ac_cv_sizeof_long
  13416. _ACEOF
  13417. # The cast to long int works around a bug in the HP C Compiler
  13418. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13419. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13420. # This bug is HP SR number 8606223364.
  13421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  13422. $as_echo_n "checking size of size_t... " >&6; }
  13423. if test "${ac_cv_sizeof_size_t+set}" = set; then :
  13424. $as_echo_n "(cached) " >&6
  13425. else
  13426. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  13427. else
  13428. if test "$ac_cv_type_size_t" = yes; then
  13429. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13430. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13431. { as_fn_set_status 77
  13432. as_fn_error "cannot compute sizeof (size_t)
  13433. See \`config.log' for more details." "$LINENO" 5; }; }
  13434. else
  13435. ac_cv_sizeof_size_t=0
  13436. fi
  13437. fi
  13438. fi
  13439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  13440. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  13441. cat >>confdefs.h <<_ACEOF
  13442. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  13443. _ACEOF
  13444. #------------------------------------------------------------------------
  13445. # Handle the --prefix=... option
  13446. #------------------------------------------------------------------------
  13447. if test "${prefix}" = "NONE"; then
  13448. prefix=/usr/local
  13449. fi
  13450. if test "${exec_prefix}" = "NONE"; then
  13451. exec_prefix=$prefix
  13452. fi
  13453. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  13454. eval libdir="$libdir"
  13455. ################################
  13456. # Deal with debugging options
  13457. ################################
  13458. # Check whether --enable-debug was given.
  13459. if test "${enable_debug+set}" = set; then :
  13460. enableval=$enable_debug;
  13461. else
  13462. enable_debug=no
  13463. fi
  13464. if test x$enable_debug = xyes; then
  13465. DEBUG_TRUE=
  13466. DEBUG_FALSE='#'
  13467. else
  13468. DEBUG_TRUE='#'
  13469. DEBUG_FALSE=
  13470. fi
  13471. ################################
  13472. # Check for the LUB library
  13473. ################################
  13474. LUB_LIBS="-llub"
  13475. LUB_CFLAGS=""
  13476. if test "x$LUB_LIBS" = "x"; then
  13477. as_fn_error "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  13478. fi
  13479. ################################
  13480. # Check for the KONF library
  13481. ################################
  13482. KONF_LIBS="-lkonf"
  13483. KONF_CFLAGS=""
  13484. if test "x$KONF_LIBS" = "x"; then
  13485. as_fn_error "Cannot find the \"CLI config\" library" "$LINENO" 5
  13486. fi
  13487. ################################
  13488. # Check for the TINYRL library
  13489. ################################
  13490. TINYRL_LIBS="-ltinyrl"
  13491. TINYRL_CFLAGS=""
  13492. if test "x$TINYRL_LIBS" = "x"; then
  13493. as_fn_error "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  13494. fi
  13495. ################################
  13496. # Check for the TINYXML library
  13497. ################################
  13498. TINYXML_LIBS="-ltinyxml"
  13499. TINYXML_CXXFLAGS="-std=gnu++98"
  13500. if test "x$TINYXML_LIBS" = "x"; then
  13501. as_fn_error "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  13502. fi
  13503. ################################
  13504. # Check for the PTHREAD library
  13505. ################################
  13506. # Check whether --with-pthread was given.
  13507. if test "${with_pthread+set}" = set; then :
  13508. withval=$with_pthread;
  13509. fi
  13510. for ac_header in pthread.h
  13511. do :
  13512. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  13513. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  13514. cat >>confdefs.h <<_ACEOF
  13515. #define HAVE_PTHREAD_H 1
  13516. _ACEOF
  13517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  13518. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  13519. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  13520. $as_echo_n "(cached) " >&6
  13521. else
  13522. ac_check_lib_save_LIBS=$LIBS
  13523. LIBS="-lpthread $LIBS"
  13524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13525. /* end confdefs.h. */
  13526. /* Override any GCC internal prototype to avoid an error.
  13527. Use char because int might match the return type of a GCC
  13528. builtin and then its argument prototype would still apply. */
  13529. #ifdef __cplusplus
  13530. extern "C"
  13531. #endif
  13532. char pthread_create ();
  13533. int
  13534. main ()
  13535. {
  13536. return pthread_create ();
  13537. ;
  13538. return 0;
  13539. }
  13540. _ACEOF
  13541. if ac_fn_c_try_link "$LINENO"; then :
  13542. ac_cv_lib_pthread_pthread_create=yes
  13543. else
  13544. ac_cv_lib_pthread_pthread_create=no
  13545. fi
  13546. rm -f core conftest.err conftest.$ac_objext \
  13547. conftest$ac_exeext conftest.$ac_ext
  13548. LIBS=$ac_check_lib_save_LIBS
  13549. fi
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  13551. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  13552. if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  13553. $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
  13554. if test "x$with_pthread" = "x"; then
  13555. PTHREAD_LIBS="-lpthread"
  13556. else
  13557. PTHREAD_CFLAGS="-I$with_pthread/include"
  13558. PTHREAD_LIBS="-L$with_pthread/lib -lpthread"
  13559. fi
  13560. fi
  13561. fi
  13562. done
  13563. if test "x$PTHREAD_LIBS" = "x"; then
  13564. as_fn_error "Cannot find the POSIX threads library" "$LINENO" 5
  13565. fi
  13566. ################################
  13567. # Check for the RT library
  13568. ################################
  13569. # Check whether --with-rt was given.
  13570. if test "${with_rt+set}" = set; then :
  13571. withval=$with_rt;
  13572. fi
  13573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  13574. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  13575. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
  13576. $as_echo_n "(cached) " >&6
  13577. else
  13578. ac_check_lib_save_LIBS=$LIBS
  13579. LIBS="-lrt $LIBS"
  13580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13581. /* end confdefs.h. */
  13582. /* Override any GCC internal prototype to avoid an error.
  13583. Use char because int might match the return type of a GCC
  13584. builtin and then its argument prototype would still apply. */
  13585. #ifdef __cplusplus
  13586. extern "C"
  13587. #endif
  13588. char clock_gettime ();
  13589. int
  13590. main ()
  13591. {
  13592. return clock_gettime ();
  13593. ;
  13594. return 0;
  13595. }
  13596. _ACEOF
  13597. if ac_fn_c_try_link "$LINENO"; then :
  13598. ac_cv_lib_rt_clock_gettime=yes
  13599. else
  13600. ac_cv_lib_rt_clock_gettime=no
  13601. fi
  13602. rm -f core conftest.err conftest.$ac_objext \
  13603. conftest$ac_exeext conftest.$ac_ext
  13604. LIBS=$ac_check_lib_save_LIBS
  13605. fi
  13606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13607. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13608. if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
  13609. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  13610. if test "x$with_rt" = "x"; then
  13611. RT_LIBS="-lrt"
  13612. else
  13613. RT_CFLAGS="-I$with_rt/include"
  13614. RT_LIBS="-L$with_rt/lib -lrt"
  13615. fi
  13616. fi
  13617. ################################
  13618. # Check for the TCL library
  13619. ################################
  13620. TCL_CONFIG=${libdir}/tclConfig.sh
  13621. # Check whether --with-tcl was given.
  13622. if test "${with_tcl+set}" = set; then :
  13623. withval=$with_tcl; if test -e $TCL_CONFIG; then
  13624. source ${TCL_CONFIG} # get TCL_VERSION
  13625. if test "${with_tcl}" = "yes"; then
  13626. TCL_CFLAGS="${TCL_INCLUDE_SPEC}"
  13627. TCL_LIBS="${TCL_LIB_SPEC}"
  13628. else
  13629. TCL_CFLAGS="-I${with_tcl}/include"
  13630. TCL_LIBS="-L${with_tcl}/lib -ltcl"
  13631. fi
  13632. CPPFLAGS="$CPPFLAGS $TCL_CFLAGS"
  13633. for ac_header in tcl.h
  13634. do :
  13635. ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
  13636. if test "x$ac_cv_header_tcl_h" = x""yes; then :
  13637. cat >>confdefs.h <<_ACEOF
  13638. #define HAVE_TCL_H 1
  13639. _ACEOF
  13640. as_ac_Lib=`$as_echo "ac_cv_lib_tcl${TCL_VERSION}''_Tcl_CreateInterp" | $as_tr_sh`
  13641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}" >&5
  13642. $as_echo_n "checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}... " >&6; }
  13643. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13644. $as_echo_n "(cached) " >&6
  13645. else
  13646. ac_check_lib_save_LIBS=$LIBS
  13647. LIBS="-ltcl${TCL_VERSION} $LIBS"
  13648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13649. /* end confdefs.h. */
  13650. /* Override any GCC internal prototype to avoid an error.
  13651. Use char because int might match the return type of a GCC
  13652. builtin and then its argument prototype would still apply. */
  13653. #ifdef __cplusplus
  13654. extern "C"
  13655. #endif
  13656. char Tcl_CreateInterp ();
  13657. int
  13658. main ()
  13659. {
  13660. return Tcl_CreateInterp ();
  13661. ;
  13662. return 0;
  13663. }
  13664. _ACEOF
  13665. if ac_fn_c_try_link "$LINENO"; then :
  13666. eval "$as_ac_Lib=yes"
  13667. else
  13668. eval "$as_ac_Lib=no"
  13669. fi
  13670. rm -f core conftest.err conftest.$ac_objext \
  13671. conftest$ac_exeext conftest.$ac_ext
  13672. LIBS=$ac_check_lib_save_LIBS
  13673. fi
  13674. eval ac_res=\$$as_ac_Lib
  13675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13676. $as_echo "$ac_res" >&6; }
  13677. eval as_val=\$$as_ac_Lib
  13678. if test "x$as_val" = x""yes; then :
  13679. $as_echo "#define HAVE_LIBTCL /**/" >>confdefs.h
  13680. have_tcl="yes"
  13681. fi
  13682. fi
  13683. done
  13684. fi
  13685. fi
  13686. if test "x${have_tcl}" = "xyes"; then
  13687. TCL_TRUE=
  13688. TCL_FALSE='#'
  13689. else
  13690. TCL_TRUE='#'
  13691. TCL_FALSE=
  13692. fi
  13693. ################################
  13694. # Check for inclusion of lub_heap
  13695. ################################
  13696. # Check whether --enable-lubheap was given.
  13697. if test "${enable_lubheap+set}" = set; then :
  13698. enableval=$enable_lubheap;
  13699. else
  13700. enable_lubheap=no
  13701. fi
  13702. if test "x$enable_lubheap" = "xyes"; then
  13703. LUBHEAP_TRUE=
  13704. LUBHEAP_FALSE='#'
  13705. else
  13706. LUBHEAP_TRUE='#'
  13707. LUBHEAP_FALSE=
  13708. fi
  13709. if test "x$enable_lubheap" = "xyes"; then
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing standard memory libraries with lubheap" >&5
  13711. $as_echo "$as_me: WARNING: Replacing standard memory libraries with lubheap" >&2;}
  13712. LUBHEAP_LIBS="-llubheap"
  13713. LUBHEAP_CFLAGS=""
  13714. if test "x$LUBHEAP_LIBS" = "x"; then
  13715. as_fn_error "Cannot find the \"Little Useful Bits Heap\" library" "$LINENO" 5
  13716. fi
  13717. fi
  13718. ################################
  13719. # Check for linkage with GPL libraries
  13720. ################################
  13721. # Check whether --enable-gpl was given.
  13722. if test "${enable_gpl+set}" = set; then :
  13723. enableval=$enable_gpl;
  13724. else
  13725. enable_gpl=yes
  13726. fi
  13727. if test "x$enable_gpl" = "xyes"; then
  13728. ################################
  13729. # Check for BFD library
  13730. ################################
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking with GPL licence libraries" >&5
  13732. $as_echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  13733. for ac_header in bfd.h
  13734. do :
  13735. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  13736. if test "x$ac_cv_header_bfd_h" = x""yes; then :
  13737. cat >>confdefs.h <<_ACEOF
  13738. #define HAVE_BFD_H 1
  13739. _ACEOF
  13740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
  13741. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  13742. if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then :
  13743. $as_echo_n "(cached) " >&6
  13744. else
  13745. ac_check_lib_save_LIBS=$LIBS
  13746. LIBS="-lbfd $LIBS"
  13747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13748. /* end confdefs.h. */
  13749. /* Override any GCC internal prototype to avoid an error.
  13750. Use char because int might match the return type of a GCC
  13751. builtin and then its argument prototype would still apply. */
  13752. #ifdef __cplusplus
  13753. extern "C"
  13754. #endif
  13755. char bfd_init ();
  13756. int
  13757. main ()
  13758. {
  13759. return bfd_init ();
  13760. ;
  13761. return 0;
  13762. }
  13763. _ACEOF
  13764. if ac_fn_c_try_link "$LINENO"; then :
  13765. ac_cv_lib_bfd_bfd_init=yes
  13766. else
  13767. ac_cv_lib_bfd_bfd_init=no
  13768. fi
  13769. rm -f core conftest.err conftest.$ac_objext \
  13770. conftest$ac_exeext conftest.$ac_ext
  13771. LIBS=$ac_check_lib_save_LIBS
  13772. fi
  13773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
  13774. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  13775. if test "x$ac_cv_lib_bfd_bfd_init" = x""yes; then :
  13776. $as_echo "#define HAVE_LIBBFD /**/" >>confdefs.h
  13777. BFD_LIBS="-lbfd -liberty"
  13778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_dgettext in -lintl" >&5
  13779. $as_echo_n "checking for libintl_dgettext in -lintl... " >&6; }
  13780. if test "${ac_cv_lib_intl_libintl_dgettext+set}" = set; then :
  13781. $as_echo_n "(cached) " >&6
  13782. else
  13783. ac_check_lib_save_LIBS=$LIBS
  13784. LIBS="-lintl $LIBS"
  13785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13786. /* end confdefs.h. */
  13787. /* Override any GCC internal prototype to avoid an error.
  13788. Use char because int might match the return type of a GCC
  13789. builtin and then its argument prototype would still apply. */
  13790. #ifdef __cplusplus
  13791. extern "C"
  13792. #endif
  13793. char libintl_dgettext ();
  13794. int
  13795. main ()
  13796. {
  13797. return libintl_dgettext ();
  13798. ;
  13799. return 0;
  13800. }
  13801. _ACEOF
  13802. if ac_fn_c_try_link "$LINENO"; then :
  13803. ac_cv_lib_intl_libintl_dgettext=yes
  13804. else
  13805. ac_cv_lib_intl_libintl_dgettext=no
  13806. fi
  13807. rm -f core conftest.err conftest.$ac_objext \
  13808. conftest$ac_exeext conftest.$ac_ext
  13809. LIBS=$ac_check_lib_save_LIBS
  13810. fi
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  13812. $as_echo "$ac_cv_lib_intl_libintl_dgettext" >&6; }
  13813. if test "x$ac_cv_lib_intl_libintl_dgettext" = x""yes; then :
  13814. $as_echo "#define HAVE_LIBINTL /**/" >>confdefs.h
  13815. BFD_LIBS="$BFD_LIBS -lintl"
  13816. fi
  13817. fi
  13818. fi
  13819. done
  13820. else
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  13822. $as_echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  13823. fi
  13824. ################################
  13825. # Check for getopt_long()
  13826. ################################
  13827. for ac_header in getopt.h
  13828. do :
  13829. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  13830. if test "x$ac_cv_header_getopt_h" = x""yes; then :
  13831. cat >>confdefs.h <<_ACEOF
  13832. #define HAVE_GETOPT_H 1
  13833. _ACEOF
  13834. else
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  13836. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  13837. fi
  13838. done
  13839. ################################
  13840. # Check for locale.h
  13841. ################################
  13842. for ac_header in locale.h
  13843. do :
  13844. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  13845. if test "x$ac_cv_header_locale_h" = x""yes; then :
  13846. cat >>confdefs.h <<_ACEOF
  13847. #define HAVE_LOCALE_H 1
  13848. _ACEOF
  13849. else
  13850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  13851. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  13852. fi
  13853. done
  13854. ################################
  13855. # Check for CODESET within nl_langinfo
  13856. ################################
  13857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  13858. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  13859. if test "${am_cv_langinfo_codeset+set}" = set; then :
  13860. $as_echo_n "(cached) " >&6
  13861. else
  13862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13863. /* end confdefs.h. */
  13864. #include <langinfo.h>
  13865. int
  13866. main ()
  13867. {
  13868. char* cs = nl_langinfo(CODESET); return !cs;
  13869. ;
  13870. return 0;
  13871. }
  13872. _ACEOF
  13873. if ac_fn_c_try_link "$LINENO"; then :
  13874. am_cv_langinfo_codeset=yes
  13875. else
  13876. am_cv_langinfo_codeset=no
  13877. fi
  13878. rm -f core conftest.err conftest.$ac_objext \
  13879. conftest$ac_exeext conftest.$ac_ext
  13880. fi
  13881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  13882. $as_echo "$am_cv_langinfo_codeset" >&6; }
  13883. if test $am_cv_langinfo_codeset = yes; then
  13884. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  13885. fi
  13886. ################################
  13887. # Check for pwd.h and grp.h
  13888. ################################
  13889. for ac_header in pwd.h
  13890. do :
  13891. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  13892. if test "x$ac_cv_header_pwd_h" = x""yes; then :
  13893. cat >>confdefs.h <<_ACEOF
  13894. #define HAVE_PWD_H 1
  13895. _ACEOF
  13896. else
  13897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  13898. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  13899. fi
  13900. done
  13901. for ac_header in grp.h
  13902. do :
  13903. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  13904. if test "x$ac_cv_header_grp_h" = x""yes; then :
  13905. cat >>confdefs.h <<_ACEOF
  13906. #define HAVE_GRP_H 1
  13907. _ACEOF
  13908. else
  13909. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  13910. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  13911. fi
  13912. done
  13913. ################################
  13914. # Check for chroot
  13915. ################################
  13916. for ac_func in chroot
  13917. do :
  13918. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  13919. if test "x$ac_cv_func_chroot" = x""yes; then :
  13920. cat >>confdefs.h <<_ACEOF
  13921. #define HAVE_CHROOT 1
  13922. _ACEOF
  13923. else
  13924. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  13925. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  13926. fi
  13927. done
  13928. ac_config_files="$ac_config_files Makefile"
  13929. cat >confcache <<\_ACEOF
  13930. # This file is a shell script that caches the results of configure
  13931. # tests run on this system so they can be shared between configure
  13932. # scripts and configure runs, see configure's option --config-cache.
  13933. # It is not useful on other systems. If it contains results you don't
  13934. # want to keep, you may remove or edit it.
  13935. #
  13936. # config.status only pays attention to the cache file if you give it
  13937. # the --recheck option to rerun configure.
  13938. #
  13939. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13940. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13941. # following values.
  13942. _ACEOF
  13943. # The following way of writing the cache mishandles newlines in values,
  13944. # but we know of no workaround that is simple, portable, and efficient.
  13945. # So, we kill variables containing newlines.
  13946. # Ultrix sh set writes to stderr and can't be redirected directly,
  13947. # and sets the high bit in the cache file unless we assign to the vars.
  13948. (
  13949. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13950. eval ac_val=\$$ac_var
  13951. case $ac_val in #(
  13952. *${as_nl}*)
  13953. case $ac_var in #(
  13954. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13955. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13956. esac
  13957. case $ac_var in #(
  13958. _ | IFS | as_nl) ;; #(
  13959. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13960. *) { eval $ac_var=; unset $ac_var;} ;;
  13961. esac ;;
  13962. esac
  13963. done
  13964. (set) 2>&1 |
  13965. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13966. *${as_nl}ac_space=\ *)
  13967. # `set' does not quote correctly, so add quotes: double-quote
  13968. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13969. sed -n \
  13970. "s/'/'\\\\''/g;
  13971. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13972. ;; #(
  13973. *)
  13974. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13975. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13976. ;;
  13977. esac |
  13978. sort
  13979. ) |
  13980. sed '
  13981. /^ac_cv_env_/b end
  13982. t clear
  13983. :clear
  13984. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13985. t end
  13986. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13987. :end' >>confcache
  13988. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13989. if test -w "$cache_file"; then
  13990. test "x$cache_file" != "x/dev/null" &&
  13991. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13992. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13993. cat confcache >$cache_file
  13994. else
  13995. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13996. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13997. fi
  13998. fi
  13999. rm -f confcache
  14000. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14001. # Let make expand exec_prefix.
  14002. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14003. DEFS=-DHAVE_CONFIG_H
  14004. ac_libobjs=
  14005. ac_ltlibobjs=
  14006. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14007. # 1. Remove the extension, and $U if already installed.
  14008. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14009. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14010. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14011. # will be set to the directory where LIBOBJS objects are built.
  14012. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14013. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14014. done
  14015. LIBOBJS=$ac_libobjs
  14016. LTLIBOBJS=$ac_ltlibobjs
  14017. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14018. as_fn_error "conditional \"AMDEP\" was never defined.
  14019. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14020. fi
  14021. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14022. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  14023. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14024. fi
  14025. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14026. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14027. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14028. fi
  14029. if test -n "$EXEEXT"; then
  14030. am__EXEEXT_TRUE=
  14031. am__EXEEXT_FALSE='#'
  14032. else
  14033. am__EXEEXT_TRUE='#'
  14034. am__EXEEXT_FALSE=
  14035. fi
  14036. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  14037. as_fn_error "conditional \"DEBUG\" was never defined.
  14038. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14039. fi
  14040. if test -z "${TCL_TRUE}" && test -z "${TCL_FALSE}"; then
  14041. as_fn_error "conditional \"TCL\" was never defined.
  14042. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14043. fi
  14044. if test -z "${LUBHEAP_TRUE}" && test -z "${LUBHEAP_FALSE}"; then
  14045. as_fn_error "conditional \"LUBHEAP\" was never defined.
  14046. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14047. fi
  14048. : ${CONFIG_STATUS=./config.status}
  14049. ac_write_fail=0
  14050. ac_clean_files_save=$ac_clean_files
  14051. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14052. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14053. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14054. as_write_fail=0
  14055. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14056. #! $SHELL
  14057. # Generated by $as_me.
  14058. # Run this file to recreate the current configuration.
  14059. # Compiler output produced by configure, useful for debugging
  14060. # configure, is in config.log if it exists.
  14061. debug=false
  14062. ac_cs_recheck=false
  14063. ac_cs_silent=false
  14064. SHELL=\${CONFIG_SHELL-$SHELL}
  14065. export SHELL
  14066. _ASEOF
  14067. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14068. ## -------------------- ##
  14069. ## M4sh Initialization. ##
  14070. ## -------------------- ##
  14071. # Be more Bourne compatible
  14072. DUALCASE=1; export DUALCASE # for MKS sh
  14073. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14074. emulate sh
  14075. NULLCMD=:
  14076. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14077. # is contrary to our usage. Disable this feature.
  14078. alias -g '${1+"$@"}'='"$@"'
  14079. setopt NO_GLOB_SUBST
  14080. else
  14081. case `(set -o) 2>/dev/null` in #(
  14082. *posix*) :
  14083. set -o posix ;; #(
  14084. *) :
  14085. ;;
  14086. esac
  14087. fi
  14088. as_nl='
  14089. '
  14090. export as_nl
  14091. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14092. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14093. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14094. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14095. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14096. # but without wasting forks for bash or zsh.
  14097. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14098. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14099. as_echo='print -r --'
  14100. as_echo_n='print -rn --'
  14101. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14102. as_echo='printf %s\n'
  14103. as_echo_n='printf %s'
  14104. else
  14105. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14106. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14107. as_echo_n='/usr/ucb/echo -n'
  14108. else
  14109. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14110. as_echo_n_body='eval
  14111. arg=$1;
  14112. case $arg in #(
  14113. *"$as_nl"*)
  14114. expr "X$arg" : "X\\(.*\\)$as_nl";
  14115. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14116. esac;
  14117. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14118. '
  14119. export as_echo_n_body
  14120. as_echo_n='sh -c $as_echo_n_body as_echo'
  14121. fi
  14122. export as_echo_body
  14123. as_echo='sh -c $as_echo_body as_echo'
  14124. fi
  14125. # The user is always right.
  14126. if test "${PATH_SEPARATOR+set}" != set; then
  14127. PATH_SEPARATOR=:
  14128. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14129. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14130. PATH_SEPARATOR=';'
  14131. }
  14132. fi
  14133. # IFS
  14134. # We need space, tab and new line, in precisely that order. Quoting is
  14135. # there to prevent editors from complaining about space-tab.
  14136. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14137. # splitting by setting IFS to empty value.)
  14138. IFS=" "" $as_nl"
  14139. # Find who we are. Look in the path if we contain no directory separator.
  14140. case $0 in #((
  14141. *[\\/]* ) as_myself=$0 ;;
  14142. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14143. for as_dir in $PATH
  14144. do
  14145. IFS=$as_save_IFS
  14146. test -z "$as_dir" && as_dir=.
  14147. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14148. done
  14149. IFS=$as_save_IFS
  14150. ;;
  14151. esac
  14152. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14153. # in which case we are not to be found in the path.
  14154. if test "x$as_myself" = x; then
  14155. as_myself=$0
  14156. fi
  14157. if test ! -f "$as_myself"; then
  14158. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14159. exit 1
  14160. fi
  14161. # Unset variables that we do not need and which cause bugs (e.g. in
  14162. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14163. # suppresses any "Segmentation fault" message there. '((' could
  14164. # trigger a bug in pdksh 5.2.14.
  14165. for as_var in BASH_ENV ENV MAIL MAILPATH
  14166. do eval test x\${$as_var+set} = xset \
  14167. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14168. done
  14169. PS1='$ '
  14170. PS2='> '
  14171. PS4='+ '
  14172. # NLS nuisances.
  14173. LC_ALL=C
  14174. export LC_ALL
  14175. LANGUAGE=C
  14176. export LANGUAGE
  14177. # CDPATH.
  14178. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14179. # as_fn_error ERROR [LINENO LOG_FD]
  14180. # ---------------------------------
  14181. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14182. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14183. # script with status $?, using 1 if that was 0.
  14184. as_fn_error ()
  14185. {
  14186. as_status=$?; test $as_status -eq 0 && as_status=1
  14187. if test "$3"; then
  14188. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14189. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14190. fi
  14191. $as_echo "$as_me: error: $1" >&2
  14192. as_fn_exit $as_status
  14193. } # as_fn_error
  14194. # as_fn_set_status STATUS
  14195. # -----------------------
  14196. # Set $? to STATUS, without forking.
  14197. as_fn_set_status ()
  14198. {
  14199. return $1
  14200. } # as_fn_set_status
  14201. # as_fn_exit STATUS
  14202. # -----------------
  14203. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14204. as_fn_exit ()
  14205. {
  14206. set +e
  14207. as_fn_set_status $1
  14208. exit $1
  14209. } # as_fn_exit
  14210. # as_fn_unset VAR
  14211. # ---------------
  14212. # Portably unset VAR.
  14213. as_fn_unset ()
  14214. {
  14215. { eval $1=; unset $1;}
  14216. }
  14217. as_unset=as_fn_unset
  14218. # as_fn_append VAR VALUE
  14219. # ----------------------
  14220. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14221. # advantage of any shell optimizations that allow amortized linear growth over
  14222. # repeated appends, instead of the typical quadratic growth present in naive
  14223. # implementations.
  14224. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14225. eval 'as_fn_append ()
  14226. {
  14227. eval $1+=\$2
  14228. }'
  14229. else
  14230. as_fn_append ()
  14231. {
  14232. eval $1=\$$1\$2
  14233. }
  14234. fi # as_fn_append
  14235. # as_fn_arith ARG...
  14236. # ------------------
  14237. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14238. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14239. # must be portable across $(()) and expr.
  14240. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14241. eval 'as_fn_arith ()
  14242. {
  14243. as_val=$(( $* ))
  14244. }'
  14245. else
  14246. as_fn_arith ()
  14247. {
  14248. as_val=`expr "$@" || test $? -eq 1`
  14249. }
  14250. fi # as_fn_arith
  14251. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14252. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14253. as_expr=expr
  14254. else
  14255. as_expr=false
  14256. fi
  14257. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14258. as_basename=basename
  14259. else
  14260. as_basename=false
  14261. fi
  14262. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14263. as_dirname=dirname
  14264. else
  14265. as_dirname=false
  14266. fi
  14267. as_me=`$as_basename -- "$0" ||
  14268. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14269. X"$0" : 'X\(//\)$' \| \
  14270. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14271. $as_echo X/"$0" |
  14272. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14273. s//\1/
  14274. q
  14275. }
  14276. /^X\/\(\/\/\)$/{
  14277. s//\1/
  14278. q
  14279. }
  14280. /^X\/\(\/\).*/{
  14281. s//\1/
  14282. q
  14283. }
  14284. s/.*/./; q'`
  14285. # Avoid depending upon Character Ranges.
  14286. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14287. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14288. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14289. as_cr_digits='0123456789'
  14290. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14291. ECHO_C= ECHO_N= ECHO_T=
  14292. case `echo -n x` in #(((((
  14293. -n*)
  14294. case `echo 'xy\c'` in
  14295. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14296. xy) ECHO_C='\c';;
  14297. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14298. ECHO_T=' ';;
  14299. esac;;
  14300. *)
  14301. ECHO_N='-n';;
  14302. esac
  14303. rm -f conf$$ conf$$.exe conf$$.file
  14304. if test -d conf$$.dir; then
  14305. rm -f conf$$.dir/conf$$.file
  14306. else
  14307. rm -f conf$$.dir
  14308. mkdir conf$$.dir 2>/dev/null
  14309. fi
  14310. if (echo >conf$$.file) 2>/dev/null; then
  14311. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14312. as_ln_s='ln -s'
  14313. # ... but there are two gotchas:
  14314. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14315. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14316. # In both cases, we have to default to `cp -p'.
  14317. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14318. as_ln_s='cp -p'
  14319. elif ln conf$$.file conf$$ 2>/dev/null; then
  14320. as_ln_s=ln
  14321. else
  14322. as_ln_s='cp -p'
  14323. fi
  14324. else
  14325. as_ln_s='cp -p'
  14326. fi
  14327. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14328. rmdir conf$$.dir 2>/dev/null
  14329. # as_fn_mkdir_p
  14330. # -------------
  14331. # Create "$as_dir" as a directory, including parents if necessary.
  14332. as_fn_mkdir_p ()
  14333. {
  14334. case $as_dir in #(
  14335. -*) as_dir=./$as_dir;;
  14336. esac
  14337. test -d "$as_dir" || eval $as_mkdir_p || {
  14338. as_dirs=
  14339. while :; do
  14340. case $as_dir in #(
  14341. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14342. *) as_qdir=$as_dir;;
  14343. esac
  14344. as_dirs="'$as_qdir' $as_dirs"
  14345. as_dir=`$as_dirname -- "$as_dir" ||
  14346. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14347. X"$as_dir" : 'X\(//\)[^/]' \| \
  14348. X"$as_dir" : 'X\(//\)$' \| \
  14349. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14350. $as_echo X"$as_dir" |
  14351. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14352. s//\1/
  14353. q
  14354. }
  14355. /^X\(\/\/\)[^/].*/{
  14356. s//\1/
  14357. q
  14358. }
  14359. /^X\(\/\/\)$/{
  14360. s//\1/
  14361. q
  14362. }
  14363. /^X\(\/\).*/{
  14364. s//\1/
  14365. q
  14366. }
  14367. s/.*/./; q'`
  14368. test -d "$as_dir" && break
  14369. done
  14370. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14371. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14372. } # as_fn_mkdir_p
  14373. if mkdir -p . 2>/dev/null; then
  14374. as_mkdir_p='mkdir -p "$as_dir"'
  14375. else
  14376. test -d ./-p && rmdir ./-p
  14377. as_mkdir_p=false
  14378. fi
  14379. if test -x / >/dev/null 2>&1; then
  14380. as_test_x='test -x'
  14381. else
  14382. if ls -dL / >/dev/null 2>&1; then
  14383. as_ls_L_option=L
  14384. else
  14385. as_ls_L_option=
  14386. fi
  14387. as_test_x='
  14388. eval sh -c '\''
  14389. if test -d "$1"; then
  14390. test -d "$1/.";
  14391. else
  14392. case $1 in #(
  14393. -*)set "./$1";;
  14394. esac;
  14395. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14396. ???[sx]*):;;*)false;;esac;fi
  14397. '\'' sh
  14398. '
  14399. fi
  14400. as_executable_p=$as_test_x
  14401. # Sed expression to map a string onto a valid CPP name.
  14402. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14403. # Sed expression to map a string onto a valid variable name.
  14404. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14405. exec 6>&1
  14406. ## ----------------------------------- ##
  14407. ## Main body of $CONFIG_STATUS script. ##
  14408. ## ----------------------------------- ##
  14409. _ASEOF
  14410. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14411. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14412. # Save the log message, to keep $0 and so on meaningful, and to
  14413. # report actual input values of CONFIG_FILES etc. instead of their
  14414. # values after options handling.
  14415. ac_log="
  14416. This file was extended by klish $as_me 1.5.0, which was
  14417. generated by GNU Autoconf 2.64. Invocation command line was
  14418. CONFIG_FILES = $CONFIG_FILES
  14419. CONFIG_HEADERS = $CONFIG_HEADERS
  14420. CONFIG_LINKS = $CONFIG_LINKS
  14421. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14422. $ $0 $@
  14423. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14424. "
  14425. _ACEOF
  14426. case $ac_config_files in *"
  14427. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14428. esac
  14429. case $ac_config_headers in *"
  14430. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14431. esac
  14432. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14433. # Files that config.status was made for.
  14434. config_files="$ac_config_files"
  14435. config_headers="$ac_config_headers"
  14436. config_commands="$ac_config_commands"
  14437. _ACEOF
  14438. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14439. ac_cs_usage="\
  14440. \`$as_me' instantiates files and other configuration actions
  14441. from templates according to the current configuration. Unless the files
  14442. and actions are specified as TAGs, all are instantiated by default.
  14443. Usage: $0 [OPTION]... [TAG]...
  14444. -h, --help print this help, then exit
  14445. -V, --version print version number and configuration settings, then exit
  14446. -q, --quiet, --silent
  14447. do not print progress messages
  14448. -d, --debug don't remove temporary files
  14449. --recheck update $as_me by reconfiguring in the same conditions
  14450. --file=FILE[:TEMPLATE]
  14451. instantiate the configuration file FILE
  14452. --header=FILE[:TEMPLATE]
  14453. instantiate the configuration header FILE
  14454. Configuration files:
  14455. $config_files
  14456. Configuration headers:
  14457. $config_headers
  14458. Configuration commands:
  14459. $config_commands
  14460. Report bugs to <serj.kalichev at gmail dot com>."
  14461. _ACEOF
  14462. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14463. ac_cs_version="\\
  14464. klish config.status 1.5.0
  14465. configured by $0, generated by GNU Autoconf 2.64,
  14466. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  14467. Copyright (C) 2009 Free Software Foundation, Inc.
  14468. This config.status script is free software; the Free Software Foundation
  14469. gives unlimited permission to copy, distribute and modify it."
  14470. ac_pwd='$ac_pwd'
  14471. srcdir='$srcdir'
  14472. INSTALL='$INSTALL'
  14473. MKDIR_P='$MKDIR_P'
  14474. AWK='$AWK'
  14475. test -n "\$AWK" || AWK=awk
  14476. _ACEOF
  14477. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14478. # The default lists apply if the user does not specify any file.
  14479. ac_need_defaults=:
  14480. while test $# != 0
  14481. do
  14482. case $1 in
  14483. --*=*)
  14484. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14485. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14486. ac_shift=:
  14487. ;;
  14488. *)
  14489. ac_option=$1
  14490. ac_optarg=$2
  14491. ac_shift=shift
  14492. ;;
  14493. esac
  14494. case $ac_option in
  14495. # Handling of the options.
  14496. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14497. ac_cs_recheck=: ;;
  14498. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14499. $as_echo "$ac_cs_version"; exit ;;
  14500. --debug | --debu | --deb | --de | --d | -d )
  14501. debug=: ;;
  14502. --file | --fil | --fi | --f )
  14503. $ac_shift
  14504. case $ac_optarg in
  14505. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14506. esac
  14507. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14508. ac_need_defaults=false;;
  14509. --header | --heade | --head | --hea )
  14510. $ac_shift
  14511. case $ac_optarg in
  14512. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14513. esac
  14514. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14515. ac_need_defaults=false;;
  14516. --he | --h)
  14517. # Conflict between --help and --header
  14518. as_fn_error "ambiguous option: \`$1'
  14519. Try \`$0 --help' for more information.";;
  14520. --help | --hel | -h )
  14521. $as_echo "$ac_cs_usage"; exit ;;
  14522. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14523. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14524. ac_cs_silent=: ;;
  14525. # This is an error.
  14526. -*) as_fn_error "unrecognized option: \`$1'
  14527. Try \`$0 --help' for more information." ;;
  14528. *) as_fn_append ac_config_targets " $1"
  14529. ac_need_defaults=false ;;
  14530. esac
  14531. shift
  14532. done
  14533. ac_configure_extra_args=
  14534. if $ac_cs_silent; then
  14535. exec 6>/dev/null
  14536. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14537. fi
  14538. _ACEOF
  14539. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14540. if \$ac_cs_recheck; then
  14541. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14542. shift
  14543. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14544. CONFIG_SHELL='$SHELL'
  14545. export CONFIG_SHELL
  14546. exec "\$@"
  14547. fi
  14548. _ACEOF
  14549. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14550. exec 5>>config.log
  14551. {
  14552. echo
  14553. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14554. ## Running $as_me. ##
  14555. _ASBOX
  14556. $as_echo "$ac_log"
  14557. } >&5
  14558. _ACEOF
  14559. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14560. #
  14561. # INIT-COMMANDS
  14562. #
  14563. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14564. # if CDPATH is set.
  14565. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14566. sed_quote_subst='$sed_quote_subst'
  14567. double_quote_subst='$double_quote_subst'
  14568. delay_variable_subst='$delay_variable_subst'
  14569. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  14570. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14571. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14572. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14573. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14574. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14575. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14576. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14577. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14578. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14579. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14580. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14581. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14582. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14583. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14584. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14585. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14586. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14587. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14588. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14589. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14590. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14591. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14592. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14593. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14594. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14595. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14596. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14597. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14598. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14599. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14600. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14601. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14602. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14603. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14604. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14605. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14606. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14607. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14608. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14609. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14610. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14611. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14612. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14613. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14614. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14615. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14616. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14617. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14618. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14619. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14620. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14621. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14622. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14623. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14624. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14625. 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"`'
  14626. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14627. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14628. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14629. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14630. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14631. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14632. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14633. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14634. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14635. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14636. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14637. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14638. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14639. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14640. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14641. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14642. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14643. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14644. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14645. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14646. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14647. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14648. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14649. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14650. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14651. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14652. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14653. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14654. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14655. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14656. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14657. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14658. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14659. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14660. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14661. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14662. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14663. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14664. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14665. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14666. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14667. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14668. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14669. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14670. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14671. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14672. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14673. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14674. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14675. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14676. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14677. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14678. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14679. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14680. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14681. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14682. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14683. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14684. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14685. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14686. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14687. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14688. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14689. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14690. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14691. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14692. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14693. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14694. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14695. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14696. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14697. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14698. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14699. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14700. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14701. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14702. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14703. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14704. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14705. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14706. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14707. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14708. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14709. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14710. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14711. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14712. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14713. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14714. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14715. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14716. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14717. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14718. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14719. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14720. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14721. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14722. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14723. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14724. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14725. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14726. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14727. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14728. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14729. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14730. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14731. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14732. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14733. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14734. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14735. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14736. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14737. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14738. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14739. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14740. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14741. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14742. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14743. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14744. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14745. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14746. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14747. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14748. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14749. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14750. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14751. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14752. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14753. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14754. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14755. LTCC='$LTCC'
  14756. LTCFLAGS='$LTCFLAGS'
  14757. compiler='$compiler_DEFAULT'
  14758. # A function that is used when there is no print builtin or printf.
  14759. func_fallback_echo ()
  14760. {
  14761. eval 'cat <<_LTECHO_EOF
  14762. \$1
  14763. _LTECHO_EOF'
  14764. }
  14765. # Quote evaled strings.
  14766. for var in AS \
  14767. DLLTOOL \
  14768. OBJDUMP \
  14769. SHELL \
  14770. ECHO \
  14771. SED \
  14772. GREP \
  14773. EGREP \
  14774. FGREP \
  14775. LD \
  14776. NM \
  14777. LN_S \
  14778. lt_SP2NL \
  14779. lt_NL2SP \
  14780. reload_flag \
  14781. deplibs_check_method \
  14782. file_magic_cmd \
  14783. file_magic_glob \
  14784. want_nocaseglob \
  14785. sharedlib_from_linklib_cmd \
  14786. AR \
  14787. AR_FLAGS \
  14788. archiver_list_spec \
  14789. STRIP \
  14790. RANLIB \
  14791. CC \
  14792. CFLAGS \
  14793. compiler \
  14794. lt_cv_sys_global_symbol_pipe \
  14795. lt_cv_sys_global_symbol_to_cdecl \
  14796. lt_cv_sys_global_symbol_to_c_name_address \
  14797. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14798. nm_file_list_spec \
  14799. lt_prog_compiler_no_builtin_flag \
  14800. lt_prog_compiler_pic \
  14801. lt_prog_compiler_wl \
  14802. lt_prog_compiler_static \
  14803. lt_cv_prog_compiler_c_o \
  14804. need_locks \
  14805. MANIFEST_TOOL \
  14806. DSYMUTIL \
  14807. NMEDIT \
  14808. LIPO \
  14809. OTOOL \
  14810. OTOOL64 \
  14811. shrext_cmds \
  14812. export_dynamic_flag_spec \
  14813. whole_archive_flag_spec \
  14814. compiler_needs_object \
  14815. with_gnu_ld \
  14816. allow_undefined_flag \
  14817. no_undefined_flag \
  14818. hardcode_libdir_flag_spec \
  14819. hardcode_libdir_flag_spec_ld \
  14820. hardcode_libdir_separator \
  14821. exclude_expsyms \
  14822. include_expsyms \
  14823. file_list_spec \
  14824. variables_saved_for_relink \
  14825. libname_spec \
  14826. library_names_spec \
  14827. soname_spec \
  14828. install_override_mode \
  14829. finish_eval \
  14830. old_striplib \
  14831. striplib \
  14832. compiler_lib_search_dirs \
  14833. predep_objects \
  14834. postdep_objects \
  14835. predeps \
  14836. postdeps \
  14837. compiler_lib_search_path \
  14838. LD_CXX \
  14839. reload_flag_CXX \
  14840. compiler_CXX \
  14841. lt_prog_compiler_no_builtin_flag_CXX \
  14842. lt_prog_compiler_pic_CXX \
  14843. lt_prog_compiler_wl_CXX \
  14844. lt_prog_compiler_static_CXX \
  14845. lt_cv_prog_compiler_c_o_CXX \
  14846. export_dynamic_flag_spec_CXX \
  14847. whole_archive_flag_spec_CXX \
  14848. compiler_needs_object_CXX \
  14849. with_gnu_ld_CXX \
  14850. allow_undefined_flag_CXX \
  14851. no_undefined_flag_CXX \
  14852. hardcode_libdir_flag_spec_CXX \
  14853. hardcode_libdir_flag_spec_ld_CXX \
  14854. hardcode_libdir_separator_CXX \
  14855. exclude_expsyms_CXX \
  14856. include_expsyms_CXX \
  14857. file_list_spec_CXX \
  14858. compiler_lib_search_dirs_CXX \
  14859. predep_objects_CXX \
  14860. postdep_objects_CXX \
  14861. predeps_CXX \
  14862. postdeps_CXX \
  14863. compiler_lib_search_path_CXX; do
  14864. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14865. *[\\\\\\\`\\"\\\$]*)
  14866. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14867. ;;
  14868. *)
  14869. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14870. ;;
  14871. esac
  14872. done
  14873. # Double-quote double-evaled strings.
  14874. for var in reload_cmds \
  14875. old_postinstall_cmds \
  14876. old_postuninstall_cmds \
  14877. old_archive_cmds \
  14878. extract_expsyms_cmds \
  14879. old_archive_from_new_cmds \
  14880. old_archive_from_expsyms_cmds \
  14881. archive_cmds \
  14882. archive_expsym_cmds \
  14883. module_cmds \
  14884. module_expsym_cmds \
  14885. export_symbols_cmds \
  14886. prelink_cmds \
  14887. postlink_cmds \
  14888. postinstall_cmds \
  14889. postuninstall_cmds \
  14890. finish_cmds \
  14891. sys_lib_search_path_spec \
  14892. sys_lib_dlsearch_path_spec \
  14893. reload_cmds_CXX \
  14894. old_archive_cmds_CXX \
  14895. old_archive_from_new_cmds_CXX \
  14896. old_archive_from_expsyms_cmds_CXX \
  14897. archive_cmds_CXX \
  14898. archive_expsym_cmds_CXX \
  14899. module_cmds_CXX \
  14900. module_expsym_cmds_CXX \
  14901. export_symbols_cmds_CXX \
  14902. prelink_cmds_CXX \
  14903. postlink_cmds_CXX; do
  14904. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14905. *[\\\\\\\`\\"\\\$]*)
  14906. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14907. ;;
  14908. *)
  14909. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14910. ;;
  14911. esac
  14912. done
  14913. ac_aux_dir='$ac_aux_dir'
  14914. xsi_shell='$xsi_shell'
  14915. lt_shell_append='$lt_shell_append'
  14916. # See if we are running on zsh, and set the options which allow our
  14917. # commands through without removal of \ escapes INIT.
  14918. if test -n "\${ZSH_VERSION+set}" ; then
  14919. setopt NO_GLOB_SUBST
  14920. fi
  14921. PACKAGE='$PACKAGE'
  14922. VERSION='$VERSION'
  14923. TIMESTAMP='$TIMESTAMP'
  14924. RM='$RM'
  14925. ofile='$ofile'
  14926. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14927. _ACEOF
  14928. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14929. # Handling of arguments.
  14930. for ac_config_target in $ac_config_targets
  14931. do
  14932. case $ac_config_target in
  14933. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14934. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14935. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14936. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14937. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14938. esac
  14939. done
  14940. # If the user did not use the arguments to specify the items to instantiate,
  14941. # then the envvar interface is used. Set only those that are not.
  14942. # We use the long form for the default assignment because of an extremely
  14943. # bizarre bug on SunOS 4.1.3.
  14944. if $ac_need_defaults; then
  14945. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14946. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14947. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14948. fi
  14949. # Have a temporary directory for convenience. Make it in the build tree
  14950. # simply because there is no reason against having it here, and in addition,
  14951. # creating and moving files from /tmp can sometimes cause problems.
  14952. # Hook for its removal unless debugging.
  14953. # Note that there is a small window in which the directory will not be cleaned:
  14954. # after its creation but before its name has been assigned to `$tmp'.
  14955. $debug ||
  14956. {
  14957. tmp=
  14958. trap 'exit_status=$?
  14959. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14960. ' 0
  14961. trap 'as_fn_exit 1' 1 2 13 15
  14962. }
  14963. # Create a (secure) tmp directory for tmp files.
  14964. {
  14965. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14966. test -n "$tmp" && test -d "$tmp"
  14967. } ||
  14968. {
  14969. tmp=./conf$$-$RANDOM
  14970. (umask 077 && mkdir "$tmp")
  14971. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14972. # Set up the scripts for CONFIG_FILES section.
  14973. # No need to generate them if there are no CONFIG_FILES.
  14974. # This happens for instance with `./config.status config.h'.
  14975. if test -n "$CONFIG_FILES"; then
  14976. ac_cr=`echo X | tr X '\015'`
  14977. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14978. # But we know of no other shell where ac_cr would be empty at this
  14979. # point, so we can use a bashism as a fallback.
  14980. if test "x$ac_cr" = x; then
  14981. eval ac_cr=\$\'\\r\'
  14982. fi
  14983. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14984. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14985. ac_cs_awk_cr='\r'
  14986. else
  14987. ac_cs_awk_cr=$ac_cr
  14988. fi
  14989. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14990. _ACEOF
  14991. {
  14992. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14993. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14994. echo "_ACEOF"
  14995. } >conf$$subs.sh ||
  14996. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14997. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14998. ac_delim='%!_!# '
  14999. for ac_last_try in false false false false false :; do
  15000. . ./conf$$subs.sh ||
  15001. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15002. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15003. if test $ac_delim_n = $ac_delim_num; then
  15004. break
  15005. elif $ac_last_try; then
  15006. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15007. else
  15008. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15009. fi
  15010. done
  15011. rm -f conf$$subs.sh
  15012. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15013. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15014. _ACEOF
  15015. sed -n '
  15016. h
  15017. s/^/S["/; s/!.*/"]=/
  15018. p
  15019. g
  15020. s/^[^!]*!//
  15021. :repl
  15022. t repl
  15023. s/'"$ac_delim"'$//
  15024. t delim
  15025. :nl
  15026. h
  15027. s/\(.\{148\}\).*/\1/
  15028. t more1
  15029. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15030. p
  15031. n
  15032. b repl
  15033. :more1
  15034. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15035. p
  15036. g
  15037. s/.\{148\}//
  15038. t nl
  15039. :delim
  15040. h
  15041. s/\(.\{148\}\).*/\1/
  15042. t more2
  15043. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15044. p
  15045. b
  15046. :more2
  15047. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15048. p
  15049. g
  15050. s/.\{148\}//
  15051. t delim
  15052. ' <conf$$subs.awk | sed '
  15053. /^[^""]/{
  15054. N
  15055. s/\n//
  15056. }
  15057. ' >>$CONFIG_STATUS || ac_write_fail=1
  15058. rm -f conf$$subs.awk
  15059. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15060. _ACAWK
  15061. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15062. for (key in S) S_is_set[key] = 1
  15063. FS = ""
  15064. }
  15065. {
  15066. line = $ 0
  15067. nfields = split(line, field, "@")
  15068. substed = 0
  15069. len = length(field[1])
  15070. for (i = 2; i < nfields; i++) {
  15071. key = field[i]
  15072. keylen = length(key)
  15073. if (S_is_set[key]) {
  15074. value = S[key]
  15075. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15076. len += length(value) + length(field[++i])
  15077. substed = 1
  15078. } else
  15079. len += 1 + keylen
  15080. }
  15081. print line
  15082. }
  15083. _ACAWK
  15084. _ACEOF
  15085. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15086. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15087. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15088. else
  15089. cat
  15090. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15091. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  15092. _ACEOF
  15093. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15094. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15095. # trailing colons and then remove the whole line if VPATH becomes empty
  15096. # (actually we leave an empty line to preserve line numbers).
  15097. if test "x$srcdir" = x.; then
  15098. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15099. s/:*\$(srcdir):*/:/
  15100. s/:*\${srcdir}:*/:/
  15101. s/:*@srcdir@:*/:/
  15102. s/^\([^=]*=[ ]*\):*/\1/
  15103. s/:*$//
  15104. s/^[^=]*=[ ]*$//
  15105. }'
  15106. fi
  15107. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15108. fi # test -n "$CONFIG_FILES"
  15109. # Set up the scripts for CONFIG_HEADERS section.
  15110. # No need to generate them if there are no CONFIG_HEADERS.
  15111. # This happens for instance with `./config.status Makefile'.
  15112. if test -n "$CONFIG_HEADERS"; then
  15113. cat >"$tmp/defines.awk" <<\_ACAWK ||
  15114. BEGIN {
  15115. _ACEOF
  15116. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15117. # here-document in config.status, that substitutes the proper values into
  15118. # config.h.in to produce config.h.
  15119. # Create a delimiter string that does not exist in confdefs.h, to ease
  15120. # handling of long lines.
  15121. ac_delim='%!_!# '
  15122. for ac_last_try in false false :; do
  15123. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  15124. if test -z "$ac_t"; then
  15125. break
  15126. elif $ac_last_try; then
  15127. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  15128. else
  15129. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15130. fi
  15131. done
  15132. # For the awk script, D is an array of macro values keyed by name,
  15133. # likewise P contains macro parameters if any. Preserve backslash
  15134. # newline sequences.
  15135. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15136. sed -n '
  15137. s/.\{148\}/&'"$ac_delim"'/g
  15138. t rset
  15139. :rset
  15140. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15141. t def
  15142. d
  15143. :def
  15144. s/\\$//
  15145. t bsnl
  15146. s/["\\]/\\&/g
  15147. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15148. D["\1"]=" \3"/p
  15149. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15150. d
  15151. :bsnl
  15152. s/["\\]/\\&/g
  15153. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15154. D["\1"]=" \3\\\\\\n"\\/p
  15155. t cont
  15156. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15157. t cont
  15158. d
  15159. :cont
  15160. n
  15161. s/.\{148\}/&'"$ac_delim"'/g
  15162. t clear
  15163. :clear
  15164. s/\\$//
  15165. t bsnlc
  15166. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15167. d
  15168. :bsnlc
  15169. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15170. b cont
  15171. ' <confdefs.h | sed '
  15172. s/'"$ac_delim"'/"\\\
  15173. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15174. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15175. for (key in D) D_is_set[key] = 1
  15176. FS = ""
  15177. }
  15178. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15179. line = \$ 0
  15180. split(line, arg, " ")
  15181. if (arg[1] == "#") {
  15182. defundef = arg[2]
  15183. mac1 = arg[3]
  15184. } else {
  15185. defundef = substr(arg[1], 2)
  15186. mac1 = arg[2]
  15187. }
  15188. split(mac1, mac2, "(") #)
  15189. macro = mac2[1]
  15190. prefix = substr(line, 1, index(line, defundef) - 1)
  15191. if (D_is_set[macro]) {
  15192. # Preserve the white space surrounding the "#".
  15193. print prefix "define", macro P[macro] D[macro]
  15194. next
  15195. } else {
  15196. # Replace #undef with comments. This is necessary, for example,
  15197. # in the case of _POSIX_SOURCE, which is predefined and required
  15198. # on some systems where configure will not decide to define it.
  15199. if (defundef == "undef") {
  15200. print "/*", prefix defundef, macro, "*/"
  15201. next
  15202. }
  15203. }
  15204. }
  15205. { print }
  15206. _ACAWK
  15207. _ACEOF
  15208. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15209. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  15210. fi # test -n "$CONFIG_HEADERS"
  15211. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15212. shift
  15213. for ac_tag
  15214. do
  15215. case $ac_tag in
  15216. :[FHLC]) ac_mode=$ac_tag; continue;;
  15217. esac
  15218. case $ac_mode$ac_tag in
  15219. :[FHL]*:*);;
  15220. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15221. :[FH]-) ac_tag=-:-;;
  15222. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15223. esac
  15224. ac_save_IFS=$IFS
  15225. IFS=:
  15226. set x $ac_tag
  15227. IFS=$ac_save_IFS
  15228. shift
  15229. ac_file=$1
  15230. shift
  15231. case $ac_mode in
  15232. :L) ac_source=$1;;
  15233. :[FH])
  15234. ac_file_inputs=
  15235. for ac_f
  15236. do
  15237. case $ac_f in
  15238. -) ac_f="$tmp/stdin";;
  15239. *) # Look for the file first in the build tree, then in the source tree
  15240. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15241. # because $ac_f cannot contain `:'.
  15242. test -f "$ac_f" ||
  15243. case $ac_f in
  15244. [\\/$]*) false;;
  15245. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15246. esac ||
  15247. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15248. esac
  15249. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15250. as_fn_append ac_file_inputs " '$ac_f'"
  15251. done
  15252. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15253. # use $as_me), people would be surprised to read:
  15254. # /* config.h. Generated by config.status. */
  15255. configure_input='Generated from '`
  15256. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15257. `' by configure.'
  15258. if test x"$ac_file" != x-; then
  15259. configure_input="$ac_file. $configure_input"
  15260. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15261. $as_echo "$as_me: creating $ac_file" >&6;}
  15262. fi
  15263. # Neutralize special characters interpreted by sed in replacement strings.
  15264. case $configure_input in #(
  15265. *\&* | *\|* | *\\* )
  15266. ac_sed_conf_input=`$as_echo "$configure_input" |
  15267. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15268. *) ac_sed_conf_input=$configure_input;;
  15269. esac
  15270. case $ac_tag in
  15271. *:-:* | *:-) cat >"$tmp/stdin" \
  15272. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  15273. esac
  15274. ;;
  15275. esac
  15276. ac_dir=`$as_dirname -- "$ac_file" ||
  15277. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15278. X"$ac_file" : 'X\(//\)[^/]' \| \
  15279. X"$ac_file" : 'X\(//\)$' \| \
  15280. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15281. $as_echo X"$ac_file" |
  15282. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15283. s//\1/
  15284. q
  15285. }
  15286. /^X\(\/\/\)[^/].*/{
  15287. s//\1/
  15288. q
  15289. }
  15290. /^X\(\/\/\)$/{
  15291. s//\1/
  15292. q
  15293. }
  15294. /^X\(\/\).*/{
  15295. s//\1/
  15296. q
  15297. }
  15298. s/.*/./; q'`
  15299. as_dir="$ac_dir"; as_fn_mkdir_p
  15300. ac_builddir=.
  15301. case "$ac_dir" in
  15302. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15303. *)
  15304. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15305. # A ".." for each directory in $ac_dir_suffix.
  15306. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15307. case $ac_top_builddir_sub in
  15308. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15309. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15310. esac ;;
  15311. esac
  15312. ac_abs_top_builddir=$ac_pwd
  15313. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15314. # for backward compatibility:
  15315. ac_top_builddir=$ac_top_build_prefix
  15316. case $srcdir in
  15317. .) # We are building in place.
  15318. ac_srcdir=.
  15319. ac_top_srcdir=$ac_top_builddir_sub
  15320. ac_abs_top_srcdir=$ac_pwd ;;
  15321. [\\/]* | ?:[\\/]* ) # Absolute name.
  15322. ac_srcdir=$srcdir$ac_dir_suffix;
  15323. ac_top_srcdir=$srcdir
  15324. ac_abs_top_srcdir=$srcdir ;;
  15325. *) # Relative name.
  15326. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15327. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15328. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15329. esac
  15330. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15331. case $ac_mode in
  15332. :F)
  15333. #
  15334. # CONFIG_FILE
  15335. #
  15336. case $INSTALL in
  15337. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15338. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15339. esac
  15340. ac_MKDIR_P=$MKDIR_P
  15341. case $MKDIR_P in
  15342. [\\/$]* | ?:[\\/]* ) ;;
  15343. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15344. esac
  15345. _ACEOF
  15346. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15347. # If the template does not know about datarootdir, expand it.
  15348. # FIXME: This hack should be removed a few years after 2.60.
  15349. ac_datarootdir_hack=; ac_datarootdir_seen=
  15350. ac_sed_dataroot='
  15351. /datarootdir/ {
  15352. p
  15353. q
  15354. }
  15355. /@datadir@/p
  15356. /@docdir@/p
  15357. /@infodir@/p
  15358. /@localedir@/p
  15359. /@mandir@/p'
  15360. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15361. *datarootdir*) ac_datarootdir_seen=yes;;
  15362. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15364. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15365. _ACEOF
  15366. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15367. ac_datarootdir_hack='
  15368. s&@datadir@&$datadir&g
  15369. s&@docdir@&$docdir&g
  15370. s&@infodir@&$infodir&g
  15371. s&@localedir@&$localedir&g
  15372. s&@mandir@&$mandir&g
  15373. s&\\\${datarootdir}&$datarootdir&g' ;;
  15374. esac
  15375. _ACEOF
  15376. # Neutralize VPATH when `$srcdir' = `.'.
  15377. # Shell code in configure.ac might set extrasub.
  15378. # FIXME: do we really want to maintain this feature?
  15379. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15380. ac_sed_extra="$ac_vpsub
  15381. $extrasub
  15382. _ACEOF
  15383. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15384. :t
  15385. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15386. s|@configure_input@|$ac_sed_conf_input|;t t
  15387. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15388. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15389. s&@srcdir@&$ac_srcdir&;t t
  15390. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15391. s&@top_srcdir@&$ac_top_srcdir&;t t
  15392. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15393. s&@builddir@&$ac_builddir&;t t
  15394. s&@abs_builddir@&$ac_abs_builddir&;t t
  15395. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15396. s&@INSTALL@&$ac_INSTALL&;t t
  15397. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15398. $ac_datarootdir_hack
  15399. "
  15400. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15401. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15402. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15403. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15404. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15406. which seems to be undefined. Please make sure it is defined." >&5
  15407. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15408. which seems to be undefined. Please make sure it is defined." >&2;}
  15409. rm -f "$tmp/stdin"
  15410. case $ac_file in
  15411. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15412. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15413. esac \
  15414. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15415. ;;
  15416. :H)
  15417. #
  15418. # CONFIG_HEADER
  15419. #
  15420. if test x"$ac_file" != x-; then
  15421. {
  15422. $as_echo "/* $configure_input */" \
  15423. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  15424. } >"$tmp/config.h" \
  15425. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15426. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  15427. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15428. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15429. else
  15430. rm -f "$ac_file"
  15431. mv "$tmp/config.h" "$ac_file" \
  15432. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15433. fi
  15434. else
  15435. $as_echo "/* $configure_input */" \
  15436. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  15437. || as_fn_error "could not create -" "$LINENO" 5
  15438. fi
  15439. # Compute "$ac_file"'s index in $config_headers.
  15440. _am_arg="$ac_file"
  15441. _am_stamp_count=1
  15442. for _am_header in $config_headers :; do
  15443. case $_am_header in
  15444. $_am_arg | $_am_arg:* )
  15445. break ;;
  15446. * )
  15447. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15448. esac
  15449. done
  15450. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15451. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15452. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15453. X"$_am_arg" : 'X\(//\)$' \| \
  15454. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15455. $as_echo X"$_am_arg" |
  15456. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15457. s//\1/
  15458. q
  15459. }
  15460. /^X\(\/\/\)[^/].*/{
  15461. s//\1/
  15462. q
  15463. }
  15464. /^X\(\/\/\)$/{
  15465. s//\1/
  15466. q
  15467. }
  15468. /^X\(\/\).*/{
  15469. s//\1/
  15470. q
  15471. }
  15472. s/.*/./; q'`/stamp-h$_am_stamp_count
  15473. ;;
  15474. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15475. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15476. ;;
  15477. esac
  15478. case $ac_file$ac_mode in
  15479. "libtool":C)
  15480. # See if we are running on zsh, and set the options which allow our
  15481. # commands through without removal of \ escapes.
  15482. if test -n "${ZSH_VERSION+set}" ; then
  15483. setopt NO_GLOB_SUBST
  15484. fi
  15485. cfgfile="${ofile}T"
  15486. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15487. $RM "$cfgfile"
  15488. cat <<_LT_EOF >> "$cfgfile"
  15489. #! $SHELL
  15490. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15491. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15492. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15493. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15494. #
  15495. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15496. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  15497. # Inc.
  15498. # Written by Gordon Matzigkeit, 1996
  15499. #
  15500. # This file is part of GNU Libtool.
  15501. #
  15502. # GNU Libtool is free software; you can redistribute it and/or
  15503. # modify it under the terms of the GNU General Public License as
  15504. # published by the Free Software Foundation; either version 2 of
  15505. # the License, or (at your option) any later version.
  15506. #
  15507. # As a special exception to the GNU General Public License,
  15508. # if you distribute this file as part of a program or library that
  15509. # is built using GNU Libtool, you may include this file under the
  15510. # same distribution terms that you use for the rest of that program.
  15511. #
  15512. # GNU Libtool is distributed in the hope that it will be useful,
  15513. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15514. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15515. # GNU General Public License for more details.
  15516. #
  15517. # You should have received a copy of the GNU General Public License
  15518. # along with GNU Libtool; see the file COPYING. If not, a copy
  15519. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15520. # obtained by writing to the Free Software Foundation, Inc.,
  15521. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15522. # The names of the tagged configurations supported by this script.
  15523. available_tags="CXX "
  15524. # ### BEGIN LIBTOOL CONFIG
  15525. # Assembler program.
  15526. AS=$lt_AS
  15527. # DLL creation program.
  15528. DLLTOOL=$lt_DLLTOOL
  15529. # Object dumper program.
  15530. OBJDUMP=$lt_OBJDUMP
  15531. # Which release of libtool.m4 was used?
  15532. macro_version=$macro_version
  15533. macro_revision=$macro_revision
  15534. # Whether or not to build shared libraries.
  15535. build_libtool_libs=$enable_shared
  15536. # Whether or not to build static libraries.
  15537. build_old_libs=$enable_static
  15538. # What type of objects to build.
  15539. pic_mode=$pic_mode
  15540. # Whether or not to optimize for fast installation.
  15541. fast_install=$enable_fast_install
  15542. # Shell to use when invoking shell scripts.
  15543. SHELL=$lt_SHELL
  15544. # An echo program that protects backslashes.
  15545. ECHO=$lt_ECHO
  15546. # The host system.
  15547. host_alias=$host_alias
  15548. host=$host
  15549. host_os=$host_os
  15550. # The build system.
  15551. build_alias=$build_alias
  15552. build=$build
  15553. build_os=$build_os
  15554. # A sed program that does not truncate output.
  15555. SED=$lt_SED
  15556. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15557. Xsed="\$SED -e 1s/^X//"
  15558. # A grep program that handles long lines.
  15559. GREP=$lt_GREP
  15560. # An ERE matcher.
  15561. EGREP=$lt_EGREP
  15562. # A literal string matcher.
  15563. FGREP=$lt_FGREP
  15564. # A BSD- or MS-compatible name lister.
  15565. NM=$lt_NM
  15566. # Whether we need soft or hard links.
  15567. LN_S=$lt_LN_S
  15568. # What is the maximum length of a command?
  15569. max_cmd_len=$max_cmd_len
  15570. # Object file suffix (normally "o").
  15571. objext=$ac_objext
  15572. # Executable file suffix (normally "").
  15573. exeext=$exeext
  15574. # whether the shell understands "unset".
  15575. lt_unset=$lt_unset
  15576. # turn spaces into newlines.
  15577. SP2NL=$lt_lt_SP2NL
  15578. # turn newlines into spaces.
  15579. NL2SP=$lt_lt_NL2SP
  15580. # convert \$build file names to \$host format.
  15581. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15582. # convert \$build files to toolchain format.
  15583. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15584. # Method to check whether dependent libraries are shared objects.
  15585. deplibs_check_method=$lt_deplibs_check_method
  15586. # Command to use when deplibs_check_method = "file_magic".
  15587. file_magic_cmd=$lt_file_magic_cmd
  15588. # How to find potential files when deplibs_check_method = "file_magic".
  15589. file_magic_glob=$lt_file_magic_glob
  15590. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15591. want_nocaseglob=$lt_want_nocaseglob
  15592. # Command to associate shared and link libraries.
  15593. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15594. # The archiver.
  15595. AR=$lt_AR
  15596. # Flags to create an archive.
  15597. AR_FLAGS=$lt_AR_FLAGS
  15598. # How to feed a file listing to the archiver.
  15599. archiver_list_spec=$lt_archiver_list_spec
  15600. # A symbol stripping program.
  15601. STRIP=$lt_STRIP
  15602. # Commands used to install an old-style archive.
  15603. RANLIB=$lt_RANLIB
  15604. old_postinstall_cmds=$lt_old_postinstall_cmds
  15605. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15606. # Whether to use a lock for old archive extraction.
  15607. lock_old_archive_extraction=$lock_old_archive_extraction
  15608. # A C compiler.
  15609. LTCC=$lt_CC
  15610. # LTCC compiler flags.
  15611. LTCFLAGS=$lt_CFLAGS
  15612. # Take the output of nm and produce a listing of raw symbols and C names.
  15613. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15614. # Transform the output of nm in a proper C declaration.
  15615. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15616. # Transform the output of nm in a C name address pair.
  15617. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15618. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15619. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15620. # Specify filename containing input files for \$NM.
  15621. nm_file_list_spec=$lt_nm_file_list_spec
  15622. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15623. lt_sysroot=$lt_sysroot
  15624. # The name of the directory that contains temporary libtool files.
  15625. objdir=$objdir
  15626. # Used to examine libraries when file_magic_cmd begins with "file".
  15627. MAGIC_CMD=$MAGIC_CMD
  15628. # Must we lock files when doing compilation?
  15629. need_locks=$lt_need_locks
  15630. # Manifest tool.
  15631. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15632. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15633. DSYMUTIL=$lt_DSYMUTIL
  15634. # Tool to change global to local symbols on Mac OS X.
  15635. NMEDIT=$lt_NMEDIT
  15636. # Tool to manipulate fat objects and archives on Mac OS X.
  15637. LIPO=$lt_LIPO
  15638. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15639. OTOOL=$lt_OTOOL
  15640. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15641. OTOOL64=$lt_OTOOL64
  15642. # Old archive suffix (normally "a").
  15643. libext=$libext
  15644. # Shared library suffix (normally ".so").
  15645. shrext_cmds=$lt_shrext_cmds
  15646. # The commands to extract the exported symbol list from a shared archive.
  15647. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15648. # Variables whose values should be saved in libtool wrapper scripts and
  15649. # restored at link time.
  15650. variables_saved_for_relink=$lt_variables_saved_for_relink
  15651. # Do we need the "lib" prefix for modules?
  15652. need_lib_prefix=$need_lib_prefix
  15653. # Do we need a version for libraries?
  15654. need_version=$need_version
  15655. # Library versioning type.
  15656. version_type=$version_type
  15657. # Shared library runtime path variable.
  15658. runpath_var=$runpath_var
  15659. # Shared library path variable.
  15660. shlibpath_var=$shlibpath_var
  15661. # Is shlibpath searched before the hard-coded library search path?
  15662. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15663. # Format of library name prefix.
  15664. libname_spec=$lt_libname_spec
  15665. # List of archive names. First name is the real one, the rest are links.
  15666. # The last name is the one that the linker finds with -lNAME
  15667. library_names_spec=$lt_library_names_spec
  15668. # The coded name of the library, if different from the real name.
  15669. soname_spec=$lt_soname_spec
  15670. # Permission mode override for installation of shared libraries.
  15671. install_override_mode=$lt_install_override_mode
  15672. # Command to use after installation of a shared archive.
  15673. postinstall_cmds=$lt_postinstall_cmds
  15674. # Command to use after uninstallation of a shared archive.
  15675. postuninstall_cmds=$lt_postuninstall_cmds
  15676. # Commands used to finish a libtool library installation in a directory.
  15677. finish_cmds=$lt_finish_cmds
  15678. # As "finish_cmds", except a single script fragment to be evaled but
  15679. # not shown.
  15680. finish_eval=$lt_finish_eval
  15681. # Whether we should hardcode library paths into libraries.
  15682. hardcode_into_libs=$hardcode_into_libs
  15683. # Compile-time system search path for libraries.
  15684. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15685. # Run-time system search path for libraries.
  15686. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15687. # Whether dlopen is supported.
  15688. dlopen_support=$enable_dlopen
  15689. # Whether dlopen of programs is supported.
  15690. dlopen_self=$enable_dlopen_self
  15691. # Whether dlopen of statically linked programs is supported.
  15692. dlopen_self_static=$enable_dlopen_self_static
  15693. # Commands to strip libraries.
  15694. old_striplib=$lt_old_striplib
  15695. striplib=$lt_striplib
  15696. # The linker used to build libraries.
  15697. LD=$lt_LD
  15698. # How to create reloadable object files.
  15699. reload_flag=$lt_reload_flag
  15700. reload_cmds=$lt_reload_cmds
  15701. # Commands used to build an old-style archive.
  15702. old_archive_cmds=$lt_old_archive_cmds
  15703. # A language specific compiler.
  15704. CC=$lt_compiler
  15705. # Is the compiler the GNU compiler?
  15706. with_gcc=$GCC
  15707. # Compiler flag to turn off builtin functions.
  15708. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15709. # Additional compiler flags for building library objects.
  15710. pic_flag=$lt_lt_prog_compiler_pic
  15711. # How to pass a linker flag through the compiler.
  15712. wl=$lt_lt_prog_compiler_wl
  15713. # Compiler flag to prevent dynamic linking.
  15714. link_static_flag=$lt_lt_prog_compiler_static
  15715. # Does compiler simultaneously support -c and -o options?
  15716. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15717. # Whether or not to add -lc for building shared libraries.
  15718. build_libtool_need_lc=$archive_cmds_need_lc
  15719. # Whether or not to disallow shared libs when runtime libs are static.
  15720. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15721. # Compiler flag to allow reflexive dlopens.
  15722. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15723. # Compiler flag to generate shared objects directly from archives.
  15724. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15725. # Whether the compiler copes with passing no objects directly.
  15726. compiler_needs_object=$lt_compiler_needs_object
  15727. # Create an old-style archive from a shared archive.
  15728. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15729. # Create a temporary old-style archive to link instead of a shared archive.
  15730. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15731. # Commands used to build a shared archive.
  15732. archive_cmds=$lt_archive_cmds
  15733. archive_expsym_cmds=$lt_archive_expsym_cmds
  15734. # Commands used to build a loadable module if different from building
  15735. # a shared archive.
  15736. module_cmds=$lt_module_cmds
  15737. module_expsym_cmds=$lt_module_expsym_cmds
  15738. # Whether we are building with GNU ld or not.
  15739. with_gnu_ld=$lt_with_gnu_ld
  15740. # Flag that allows shared libraries with undefined symbols to be built.
  15741. allow_undefined_flag=$lt_allow_undefined_flag
  15742. # Flag that enforces no undefined symbols.
  15743. no_undefined_flag=$lt_no_undefined_flag
  15744. # Flag to hardcode \$libdir into a binary during linking.
  15745. # This must work even if \$libdir does not exist
  15746. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15747. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15748. # during linking. This must work even if \$libdir does not exist.
  15749. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15750. # Whether we need a single "-rpath" flag with a separated argument.
  15751. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15752. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15753. # DIR into the resulting binary.
  15754. hardcode_direct=$hardcode_direct
  15755. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15756. # DIR into the resulting binary and the resulting library dependency is
  15757. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15758. # library is relocated.
  15759. hardcode_direct_absolute=$hardcode_direct_absolute
  15760. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15761. # into the resulting binary.
  15762. hardcode_minus_L=$hardcode_minus_L
  15763. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15764. # into the resulting binary.
  15765. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15766. # Set to "yes" if building a shared library automatically hardcodes DIR
  15767. # into the library and all subsequent libraries and executables linked
  15768. # against it.
  15769. hardcode_automatic=$hardcode_automatic
  15770. # Set to yes if linker adds runtime paths of dependent libraries
  15771. # to runtime path list.
  15772. inherit_rpath=$inherit_rpath
  15773. # Whether libtool must link a program against all its dependency libraries.
  15774. link_all_deplibs=$link_all_deplibs
  15775. # Set to "yes" if exported symbols are required.
  15776. always_export_symbols=$always_export_symbols
  15777. # The commands to list exported symbols.
  15778. export_symbols_cmds=$lt_export_symbols_cmds
  15779. # Symbols that should not be listed in the preloaded symbols.
  15780. exclude_expsyms=$lt_exclude_expsyms
  15781. # Symbols that must always be exported.
  15782. include_expsyms=$lt_include_expsyms
  15783. # Commands necessary for linking programs (against libraries) with templates.
  15784. prelink_cmds=$lt_prelink_cmds
  15785. # Commands necessary for finishing linking programs.
  15786. postlink_cmds=$lt_postlink_cmds
  15787. # Specify filename containing input files.
  15788. file_list_spec=$lt_file_list_spec
  15789. # How to hardcode a shared library path into an executable.
  15790. hardcode_action=$hardcode_action
  15791. # The directories searched by this compiler when creating a shared library.
  15792. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15793. # Dependencies to place before and after the objects being linked to
  15794. # create a shared library.
  15795. predep_objects=$lt_predep_objects
  15796. postdep_objects=$lt_postdep_objects
  15797. predeps=$lt_predeps
  15798. postdeps=$lt_postdeps
  15799. # The library search path used internally by the compiler when linking
  15800. # a shared library.
  15801. compiler_lib_search_path=$lt_compiler_lib_search_path
  15802. # ### END LIBTOOL CONFIG
  15803. _LT_EOF
  15804. case $host_os in
  15805. aix3*)
  15806. cat <<\_LT_EOF >> "$cfgfile"
  15807. # AIX sometimes has problems with the GCC collect2 program. For some
  15808. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15809. # vanish in a puff of smoke.
  15810. if test "X${COLLECT_NAMES+set}" != Xset; then
  15811. COLLECT_NAMES=
  15812. export COLLECT_NAMES
  15813. fi
  15814. _LT_EOF
  15815. ;;
  15816. esac
  15817. ltmain="$ac_aux_dir/ltmain.sh"
  15818. # We use sed instead of cat because bash on DJGPP gets confused if
  15819. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15820. # text mode, it properly converts lines to CR/LF. This bash problem
  15821. # is reportedly fixed, but why not run on old versions too?
  15822. sed '$q' "$ltmain" >> "$cfgfile" \
  15823. || (rm -f "$cfgfile"; exit 1)
  15824. if test x"$xsi_shell" = xyes; then
  15825. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15826. func_dirname ()\
  15827. {\
  15828. \ case ${1} in\
  15829. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15830. \ * ) func_dirname_result="${3}" ;;\
  15831. \ esac\
  15832. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15833. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15834. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15835. test 0 -eq $? || _lt_function_replace_fail=:
  15836. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15837. func_basename ()\
  15838. {\
  15839. \ func_basename_result="${1##*/}"\
  15840. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15841. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15842. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15843. test 0 -eq $? || _lt_function_replace_fail=:
  15844. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15845. func_dirname_and_basename ()\
  15846. {\
  15847. \ case ${1} in\
  15848. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15849. \ * ) func_dirname_result="${3}" ;;\
  15850. \ esac\
  15851. \ func_basename_result="${1##*/}"\
  15852. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15853. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15854. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15855. test 0 -eq $? || _lt_function_replace_fail=:
  15856. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15857. func_stripname ()\
  15858. {\
  15859. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15860. \ # positional parameters, so assign one to ordinary parameter first.\
  15861. \ func_stripname_result=${3}\
  15862. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15863. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15864. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15865. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15866. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15867. test 0 -eq $? || _lt_function_replace_fail=:
  15868. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15869. func_split_long_opt ()\
  15870. {\
  15871. \ func_split_long_opt_name=${1%%=*}\
  15872. \ func_split_long_opt_arg=${1#*=}\
  15873. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15874. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15875. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15876. test 0 -eq $? || _lt_function_replace_fail=:
  15877. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  15878. func_split_short_opt ()\
  15879. {\
  15880. \ func_split_short_opt_arg=${1#??}\
  15881. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  15882. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15883. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15884. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15885. test 0 -eq $? || _lt_function_replace_fail=:
  15886. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  15887. func_lo2o ()\
  15888. {\
  15889. \ case ${1} in\
  15890. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  15891. \ *) func_lo2o_result=${1} ;;\
  15892. \ esac\
  15893. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  15894. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15895. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15896. test 0 -eq $? || _lt_function_replace_fail=:
  15897. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  15898. func_xform ()\
  15899. {\
  15900. func_xform_result=${1%.*}.lo\
  15901. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  15902. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15903. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15904. test 0 -eq $? || _lt_function_replace_fail=:
  15905. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  15906. func_arith ()\
  15907. {\
  15908. func_arith_result=$(( $* ))\
  15909. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  15910. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15911. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15912. test 0 -eq $? || _lt_function_replace_fail=:
  15913. sed -e '/^func_len ()$/,/^} # func_len /c\
  15914. func_len ()\
  15915. {\
  15916. func_len_result=${#1}\
  15917. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  15918. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15919. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15920. test 0 -eq $? || _lt_function_replace_fail=:
  15921. fi
  15922. if test x"$lt_shell_append" = xyes; then
  15923. sed -e '/^func_append ()$/,/^} # func_append /c\
  15924. func_append ()\
  15925. {\
  15926. eval "${1}+=\\${2}"\
  15927. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  15928. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15929. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15930. test 0 -eq $? || _lt_function_replace_fail=:
  15931. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  15932. func_append_quoted ()\
  15933. {\
  15934. \ func_quote_for_eval "${2}"\
  15935. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  15936. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  15937. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15938. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15939. test 0 -eq $? || _lt_function_replace_fail=:
  15940. # Save a `func_append' function call where possible by direct use of '+='
  15941. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  15942. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15943. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15944. test 0 -eq $? || _lt_function_replace_fail=:
  15945. else
  15946. # Save a `func_append' function call even when '+=' is not available
  15947. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  15948. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15949. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15950. test 0 -eq $? || _lt_function_replace_fail=:
  15951. fi
  15952. if test x"$_lt_function_replace_fail" = x":"; then
  15953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  15954. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  15955. fi
  15956. mv -f "$cfgfile" "$ofile" ||
  15957. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15958. chmod +x "$ofile"
  15959. cat <<_LT_EOF >> "$ofile"
  15960. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15961. # The linker used to build libraries.
  15962. LD=$lt_LD_CXX
  15963. # How to create reloadable object files.
  15964. reload_flag=$lt_reload_flag_CXX
  15965. reload_cmds=$lt_reload_cmds_CXX
  15966. # Commands used to build an old-style archive.
  15967. old_archive_cmds=$lt_old_archive_cmds_CXX
  15968. # A language specific compiler.
  15969. CC=$lt_compiler_CXX
  15970. # Is the compiler the GNU compiler?
  15971. with_gcc=$GCC_CXX
  15972. # Compiler flag to turn off builtin functions.
  15973. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15974. # Additional compiler flags for building library objects.
  15975. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15976. # How to pass a linker flag through the compiler.
  15977. wl=$lt_lt_prog_compiler_wl_CXX
  15978. # Compiler flag to prevent dynamic linking.
  15979. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15980. # Does compiler simultaneously support -c and -o options?
  15981. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15982. # Whether or not to add -lc for building shared libraries.
  15983. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15984. # Whether or not to disallow shared libs when runtime libs are static.
  15985. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15986. # Compiler flag to allow reflexive dlopens.
  15987. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15988. # Compiler flag to generate shared objects directly from archives.
  15989. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15990. # Whether the compiler copes with passing no objects directly.
  15991. compiler_needs_object=$lt_compiler_needs_object_CXX
  15992. # Create an old-style archive from a shared archive.
  15993. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15994. # Create a temporary old-style archive to link instead of a shared archive.
  15995. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15996. # Commands used to build a shared archive.
  15997. archive_cmds=$lt_archive_cmds_CXX
  15998. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15999. # Commands used to build a loadable module if different from building
  16000. # a shared archive.
  16001. module_cmds=$lt_module_cmds_CXX
  16002. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16003. # Whether we are building with GNU ld or not.
  16004. with_gnu_ld=$lt_with_gnu_ld_CXX
  16005. # Flag that allows shared libraries with undefined symbols to be built.
  16006. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16007. # Flag that enforces no undefined symbols.
  16008. no_undefined_flag=$lt_no_undefined_flag_CXX
  16009. # Flag to hardcode \$libdir into a binary during linking.
  16010. # This must work even if \$libdir does not exist
  16011. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16012. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16013. # during linking. This must work even if \$libdir does not exist.
  16014. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16015. # Whether we need a single "-rpath" flag with a separated argument.
  16016. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16017. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16018. # DIR into the resulting binary.
  16019. hardcode_direct=$hardcode_direct_CXX
  16020. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16021. # DIR into the resulting binary and the resulting library dependency is
  16022. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16023. # library is relocated.
  16024. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16025. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16026. # into the resulting binary.
  16027. hardcode_minus_L=$hardcode_minus_L_CXX
  16028. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16029. # into the resulting binary.
  16030. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16031. # Set to "yes" if building a shared library automatically hardcodes DIR
  16032. # into the library and all subsequent libraries and executables linked
  16033. # against it.
  16034. hardcode_automatic=$hardcode_automatic_CXX
  16035. # Set to yes if linker adds runtime paths of dependent libraries
  16036. # to runtime path list.
  16037. inherit_rpath=$inherit_rpath_CXX
  16038. # Whether libtool must link a program against all its dependency libraries.
  16039. link_all_deplibs=$link_all_deplibs_CXX
  16040. # Set to "yes" if exported symbols are required.
  16041. always_export_symbols=$always_export_symbols_CXX
  16042. # The commands to list exported symbols.
  16043. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16044. # Symbols that should not be listed in the preloaded symbols.
  16045. exclude_expsyms=$lt_exclude_expsyms_CXX
  16046. # Symbols that must always be exported.
  16047. include_expsyms=$lt_include_expsyms_CXX
  16048. # Commands necessary for linking programs (against libraries) with templates.
  16049. prelink_cmds=$lt_prelink_cmds_CXX
  16050. # Commands necessary for finishing linking programs.
  16051. postlink_cmds=$lt_postlink_cmds_CXX
  16052. # Specify filename containing input files.
  16053. file_list_spec=$lt_file_list_spec_CXX
  16054. # How to hardcode a shared library path into an executable.
  16055. hardcode_action=$hardcode_action_CXX
  16056. # The directories searched by this compiler when creating a shared library.
  16057. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16058. # Dependencies to place before and after the objects being linked to
  16059. # create a shared library.
  16060. predep_objects=$lt_predep_objects_CXX
  16061. postdep_objects=$lt_postdep_objects_CXX
  16062. predeps=$lt_predeps_CXX
  16063. postdeps=$lt_postdeps_CXX
  16064. # The library search path used internally by the compiler when linking
  16065. # a shared library.
  16066. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16067. # ### END LIBTOOL TAG CONFIG: CXX
  16068. _LT_EOF
  16069. ;;
  16070. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16071. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16072. # are listed without --file. Let's play safe and only enable the eval
  16073. # if we detect the quoting.
  16074. case $CONFIG_FILES in
  16075. *\'*) eval set x "$CONFIG_FILES" ;;
  16076. *) set x $CONFIG_FILES ;;
  16077. esac
  16078. shift
  16079. for mf
  16080. do
  16081. # Strip MF so we end up with the name of the file.
  16082. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16083. # Check whether this is an Automake generated Makefile or not.
  16084. # We used to match only the files named `Makefile.in', but
  16085. # some people rename them; so instead we look at the file content.
  16086. # Grep'ing the first line is not enough: some people post-process
  16087. # each Makefile.in and add a new line on top of each file to say so.
  16088. # Grep'ing the whole file is not good either: AIX grep has a line
  16089. # limit of 2048, but all sed's we know have understand at least 4000.
  16090. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16091. dirpart=`$as_dirname -- "$mf" ||
  16092. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16093. X"$mf" : 'X\(//\)[^/]' \| \
  16094. X"$mf" : 'X\(//\)$' \| \
  16095. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16096. $as_echo X"$mf" |
  16097. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16098. s//\1/
  16099. q
  16100. }
  16101. /^X\(\/\/\)[^/].*/{
  16102. s//\1/
  16103. q
  16104. }
  16105. /^X\(\/\/\)$/{
  16106. s//\1/
  16107. q
  16108. }
  16109. /^X\(\/\).*/{
  16110. s//\1/
  16111. q
  16112. }
  16113. s/.*/./; q'`
  16114. else
  16115. continue
  16116. fi
  16117. # Extract the definition of DEPDIR, am__include, and am__quote
  16118. # from the Makefile without running `make'.
  16119. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16120. test -z "$DEPDIR" && continue
  16121. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16122. test -z "am__include" && continue
  16123. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16124. # When using ansi2knr, U may be empty or an underscore; expand it
  16125. U=`sed -n 's/^U = //p' < "$mf"`
  16126. # Find all dependency output files, they are included files with
  16127. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16128. # simplest approach to changing $(DEPDIR) to its actual value in the
  16129. # expansion.
  16130. for file in `sed -n "
  16131. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16132. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16133. # Make sure the directory exists.
  16134. test -f "$dirpart/$file" && continue
  16135. fdir=`$as_dirname -- "$file" ||
  16136. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16137. X"$file" : 'X\(//\)[^/]' \| \
  16138. X"$file" : 'X\(//\)$' \| \
  16139. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16140. $as_echo X"$file" |
  16141. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16142. s//\1/
  16143. q
  16144. }
  16145. /^X\(\/\/\)[^/].*/{
  16146. s//\1/
  16147. q
  16148. }
  16149. /^X\(\/\/\)$/{
  16150. s//\1/
  16151. q
  16152. }
  16153. /^X\(\/\).*/{
  16154. s//\1/
  16155. q
  16156. }
  16157. s/.*/./; q'`
  16158. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16159. # echo "creating $dirpart/$file"
  16160. echo '# dummy' > "$dirpart/$file"
  16161. done
  16162. done
  16163. }
  16164. ;;
  16165. esac
  16166. done # for ac_tag
  16167. as_fn_exit 0
  16168. _ACEOF
  16169. ac_clean_files=$ac_clean_files_save
  16170. test $ac_write_fail = 0 ||
  16171. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16172. # configure is writing to config.log, and then calls config.status.
  16173. # config.status does its own redirection, appending to config.log.
  16174. # Unfortunately, on DOS this fails, as config.log is still kept open
  16175. # by configure, so config.status won't be able to write to it; its
  16176. # output is simply discarded. So we exec the FD to /dev/null,
  16177. # effectively closing config.log, so it can be properly (re)opened and
  16178. # appended to by config.status. When coming back to configure, we
  16179. # need to make the FD available again.
  16180. if test "$no_create" != yes; then
  16181. ac_cs_success=:
  16182. ac_config_status_args=
  16183. test "$silent" = yes &&
  16184. ac_config_status_args="$ac_config_status_args --quiet"
  16185. exec 5>/dev/null
  16186. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16187. exec 5>>config.log
  16188. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16189. # would make configure fail if this is the last instruction.
  16190. $ac_cs_success || as_fn_exit $?
  16191. fi
  16192. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16194. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16195. fi