configure 585 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for klish 1.5.3.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1
  164. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  165. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  168. PATH=/empty FPATH=/empty; export PATH FPATH
  169. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  170. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  231. $0: gmail dot com about your system, including any error
  232. $0: possibly output before this message. Then install a
  233. $0: modern shell, or manually run the script under such a
  234. $0: shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='klish'
  523. PACKAGE_TARNAME='klish'
  524. PACKAGE_VERSION='1.5.3'
  525. PACKAGE_STRING='klish 1.5.3'
  526. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  527. PACKAGE_URL=''
  528. # Factoring default headers for most tests.
  529. ac_includes_default="\
  530. #include <stdio.h>
  531. #ifdef HAVE_SYS_TYPES_H
  532. # include <sys/types.h>
  533. #endif
  534. #ifdef HAVE_SYS_STAT_H
  535. # include <sys/stat.h>
  536. #endif
  537. #ifdef STDC_HEADERS
  538. # include <stdlib.h>
  539. # include <stddef.h>
  540. #else
  541. # ifdef HAVE_STDLIB_H
  542. # include <stdlib.h>
  543. # endif
  544. #endif
  545. #ifdef HAVE_STRING_H
  546. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  547. # include <memory.h>
  548. # endif
  549. # include <string.h>
  550. #endif
  551. #ifdef HAVE_STRINGS_H
  552. # include <strings.h>
  553. #endif
  554. #ifdef HAVE_INTTYPES_H
  555. # include <inttypes.h>
  556. #endif
  557. #ifdef HAVE_STDINT_H
  558. # include <stdint.h>
  559. #endif
  560. #ifdef HAVE_UNISTD_H
  561. # include <unistd.h>
  562. #endif"
  563. ac_subst_vars='am__EXEEXT_FALSE
  564. am__EXEEXT_TRUE
  565. LTLIBOBJS
  566. LIBOBJS
  567. BFD_LIBS
  568. LUBHEAP_CFLAGS
  569. LUBHEAP_LIBS
  570. LUBHEAP_FALSE
  571. LUBHEAP_TRUE
  572. TCL_FALSE
  573. TCL_TRUE
  574. TCL_VERSION
  575. TCL_LIBS
  576. TCL_CFLAGS
  577. RT_CFLAGS
  578. RT_LIBS
  579. PTHREAD_CFLAGS
  580. PTHREAD_LIBS
  581. TINYXML_CXXFLAGS
  582. TINYXML_LIBS
  583. TINYRL_CFLAGS
  584. TINYRL_LIBS
  585. KONF_CFLAGS
  586. KONF_LIBS
  587. LUB_CFLAGS
  588. LUB_LIBS
  589. DEBUG_FALSE
  590. DEBUG_TRUE
  591. am__fastdepCXX_FALSE
  592. am__fastdepCXX_TRUE
  593. CXXDEPMODE
  594. am__fastdepCC_FALSE
  595. am__fastdepCC_TRUE
  596. CCDEPMODE
  597. am__nodep
  598. AMDEPBACKSLASH
  599. AMDEP_FALSE
  600. AMDEP_TRUE
  601. am__quote
  602. am__include
  603. DEPDIR
  604. am__untar
  605. am__tar
  606. AMTAR
  607. am__leading_dot
  608. SET_MAKE
  609. mkdir_p
  610. MKDIR_P
  611. INSTALL_STRIP_PROGRAM
  612. install_sh
  613. MAKEINFO
  614. AUTOHEADER
  615. AUTOMAKE
  616. AUTOCONF
  617. ACLOCAL
  618. VERSION
  619. PACKAGE
  620. CYGPATH_W
  621. am__isrc
  622. INSTALL_DATA
  623. INSTALL_SCRIPT
  624. INSTALL_PROGRAM
  625. CXXCPP
  626. OTOOL64
  627. OTOOL
  628. LIPO
  629. NMEDIT
  630. DSYMUTIL
  631. MANIFEST_TOOL
  632. AWK
  633. RANLIB
  634. STRIP
  635. ac_ct_AR
  636. AR
  637. LN_S
  638. NM
  639. ac_ct_DUMPBIN
  640. DUMPBIN
  641. LD
  642. FGREP
  643. SED
  644. LIBTOOL
  645. OBJDUMP
  646. DLLTOOL
  647. AS
  648. host_os
  649. host_vendor
  650. host_cpu
  651. host
  652. build_os
  653. build_vendor
  654. build_cpu
  655. build
  656. ac_ct_CXX
  657. CXXFLAGS
  658. CXX
  659. EGREP
  660. GREP
  661. CPP
  662. OBJEXT
  663. EXEEXT
  664. ac_ct_CC
  665. CPPFLAGS
  666. LDFLAGS
  667. CFLAGS
  668. CC
  669. target_alias
  670. host_alias
  671. build_alias
  672. LIBS
  673. ECHO_T
  674. ECHO_N
  675. ECHO_C
  676. DEFS
  677. mandir
  678. localedir
  679. libdir
  680. psdir
  681. pdfdir
  682. dvidir
  683. htmldir
  684. infodir
  685. docdir
  686. oldincludedir
  687. includedir
  688. localstatedir
  689. sharedstatedir
  690. sysconfdir
  691. datadir
  692. datarootdir
  693. libexecdir
  694. sbindir
  695. bindir
  696. program_transform_name
  697. prefix
  698. exec_prefix
  699. PACKAGE_URL
  700. PACKAGE_BUGREPORT
  701. PACKAGE_STRING
  702. PACKAGE_VERSION
  703. PACKAGE_TARNAME
  704. PACKAGE_NAME
  705. PATH_SEPARATOR
  706. SHELL'
  707. ac_subst_files=''
  708. ac_user_opts='
  709. enable_option_checking
  710. enable_shared
  711. enable_static
  712. with_pic
  713. enable_fast_install
  714. with_gnu_ld
  715. with_sysroot
  716. enable_libtool_lock
  717. enable_dependency_tracking
  718. enable_debug
  719. with_pthread
  720. with_rt
  721. with_tcl
  722. enable_lubheap
  723. enable_gpl
  724. '
  725. ac_precious_vars='build_alias
  726. host_alias
  727. target_alias
  728. CC
  729. CFLAGS
  730. LDFLAGS
  731. LIBS
  732. CPPFLAGS
  733. CPP
  734. CXX
  735. CXXFLAGS
  736. CCC
  737. CXXCPP'
  738. # Initialize some variables set by options.
  739. ac_init_help=
  740. ac_init_version=false
  741. ac_unrecognized_opts=
  742. ac_unrecognized_sep=
  743. # The variables have the same names as the options, with
  744. # dashes changed to underlines.
  745. cache_file=/dev/null
  746. exec_prefix=NONE
  747. no_create=
  748. no_recursion=
  749. prefix=NONE
  750. program_prefix=NONE
  751. program_suffix=NONE
  752. program_transform_name=s,x,x,
  753. silent=
  754. site=
  755. srcdir=
  756. verbose=
  757. x_includes=NONE
  758. x_libraries=NONE
  759. # Installation directory options.
  760. # These are left unexpanded so users can "make install exec_prefix=/foo"
  761. # and all the variables that are supposed to be based on exec_prefix
  762. # by default will actually change.
  763. # Use braces instead of parens because sh, perl, etc. also accept them.
  764. # (The list follows the same order as the GNU Coding Standards.)
  765. bindir='${exec_prefix}/bin'
  766. sbindir='${exec_prefix}/sbin'
  767. libexecdir='${exec_prefix}/libexec'
  768. datarootdir='${prefix}/share'
  769. datadir='${datarootdir}'
  770. sysconfdir='${prefix}/etc'
  771. sharedstatedir='${prefix}/com'
  772. localstatedir='${prefix}/var'
  773. includedir='${prefix}/include'
  774. oldincludedir='/usr/include'
  775. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  776. infodir='${datarootdir}/info'
  777. htmldir='${docdir}'
  778. dvidir='${docdir}'
  779. pdfdir='${docdir}'
  780. psdir='${docdir}'
  781. libdir='${exec_prefix}/lib'
  782. localedir='${datarootdir}/locale'
  783. mandir='${datarootdir}/man'
  784. ac_prev=
  785. ac_dashdash=
  786. for ac_option
  787. do
  788. # If the previous option needs an argument, assign it.
  789. if test -n "$ac_prev"; then
  790. eval $ac_prev=\$ac_option
  791. ac_prev=
  792. continue
  793. fi
  794. case $ac_option in
  795. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  796. *=) ac_optarg= ;;
  797. *) ac_optarg=yes ;;
  798. esac
  799. # Accept the important Cygnus configure options, so we can diagnose typos.
  800. case $ac_dashdash$ac_option in
  801. --)
  802. ac_dashdash=yes ;;
  803. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  804. ac_prev=bindir ;;
  805. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  806. bindir=$ac_optarg ;;
  807. -build | --build | --buil | --bui | --bu)
  808. ac_prev=build_alias ;;
  809. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  810. build_alias=$ac_optarg ;;
  811. -cache-file | --cache-file | --cache-fil | --cache-fi \
  812. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  813. ac_prev=cache_file ;;
  814. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  815. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  816. cache_file=$ac_optarg ;;
  817. --config-cache | -C)
  818. cache_file=config.cache ;;
  819. -datadir | --datadir | --datadi | --datad)
  820. ac_prev=datadir ;;
  821. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  822. datadir=$ac_optarg ;;
  823. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  824. | --dataroo | --dataro | --datar)
  825. ac_prev=datarootdir ;;
  826. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  827. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  828. datarootdir=$ac_optarg ;;
  829. -disable-* | --disable-*)
  830. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  831. # Reject names that are not valid shell variable names.
  832. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  833. as_fn_error $? "invalid feature name: $ac_useropt"
  834. ac_useropt_orig=$ac_useropt
  835. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  836. case $ac_user_opts in
  837. *"
  838. "enable_$ac_useropt"
  839. "*) ;;
  840. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  841. ac_unrecognized_sep=', ';;
  842. esac
  843. eval enable_$ac_useropt=no ;;
  844. -docdir | --docdir | --docdi | --doc | --do)
  845. ac_prev=docdir ;;
  846. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  847. docdir=$ac_optarg ;;
  848. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  849. ac_prev=dvidir ;;
  850. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  851. dvidir=$ac_optarg ;;
  852. -enable-* | --enable-*)
  853. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  854. # Reject names that are not valid shell variable names.
  855. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  856. as_fn_error $? "invalid feature name: $ac_useropt"
  857. ac_useropt_orig=$ac_useropt
  858. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  859. case $ac_user_opts in
  860. *"
  861. "enable_$ac_useropt"
  862. "*) ;;
  863. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  864. ac_unrecognized_sep=', ';;
  865. esac
  866. eval enable_$ac_useropt=\$ac_optarg ;;
  867. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  868. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  869. | --exec | --exe | --ex)
  870. ac_prev=exec_prefix ;;
  871. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  872. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  873. | --exec=* | --exe=* | --ex=*)
  874. exec_prefix=$ac_optarg ;;
  875. -gas | --gas | --ga | --g)
  876. # Obsolete; use --with-gas.
  877. with_gas=yes ;;
  878. -help | --help | --hel | --he | -h)
  879. ac_init_help=long ;;
  880. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  881. ac_init_help=recursive ;;
  882. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  883. ac_init_help=short ;;
  884. -host | --host | --hos | --ho)
  885. ac_prev=host_alias ;;
  886. -host=* | --host=* | --hos=* | --ho=*)
  887. host_alias=$ac_optarg ;;
  888. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  889. ac_prev=htmldir ;;
  890. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  891. | --ht=*)
  892. htmldir=$ac_optarg ;;
  893. -includedir | --includedir | --includedi | --included | --include \
  894. | --includ | --inclu | --incl | --inc)
  895. ac_prev=includedir ;;
  896. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  897. | --includ=* | --inclu=* | --incl=* | --inc=*)
  898. includedir=$ac_optarg ;;
  899. -infodir | --infodir | --infodi | --infod | --info | --inf)
  900. ac_prev=infodir ;;
  901. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  902. infodir=$ac_optarg ;;
  903. -libdir | --libdir | --libdi | --libd)
  904. ac_prev=libdir ;;
  905. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  906. libdir=$ac_optarg ;;
  907. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  908. | --libexe | --libex | --libe)
  909. ac_prev=libexecdir ;;
  910. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  911. | --libexe=* | --libex=* | --libe=*)
  912. libexecdir=$ac_optarg ;;
  913. -localedir | --localedir | --localedi | --localed | --locale)
  914. ac_prev=localedir ;;
  915. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  916. localedir=$ac_optarg ;;
  917. -localstatedir | --localstatedir | --localstatedi | --localstated \
  918. | --localstate | --localstat | --localsta | --localst | --locals)
  919. ac_prev=localstatedir ;;
  920. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  921. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  922. localstatedir=$ac_optarg ;;
  923. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  924. ac_prev=mandir ;;
  925. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  926. mandir=$ac_optarg ;;
  927. -nfp | --nfp | --nf)
  928. # Obsolete; use --without-fp.
  929. with_fp=no ;;
  930. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  931. | --no-cr | --no-c | -n)
  932. no_create=yes ;;
  933. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  934. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  935. no_recursion=yes ;;
  936. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  937. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  938. | --oldin | --oldi | --old | --ol | --o)
  939. ac_prev=oldincludedir ;;
  940. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  941. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  942. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  943. oldincludedir=$ac_optarg ;;
  944. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  945. ac_prev=prefix ;;
  946. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  947. prefix=$ac_optarg ;;
  948. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  949. | --program-pre | --program-pr | --program-p)
  950. ac_prev=program_prefix ;;
  951. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  952. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  953. program_prefix=$ac_optarg ;;
  954. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  955. | --program-suf | --program-su | --program-s)
  956. ac_prev=program_suffix ;;
  957. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  958. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  959. program_suffix=$ac_optarg ;;
  960. -program-transform-name | --program-transform-name \
  961. | --program-transform-nam | --program-transform-na \
  962. | --program-transform-n | --program-transform- \
  963. | --program-transform | --program-transfor \
  964. | --program-transfo | --program-transf \
  965. | --program-trans | --program-tran \
  966. | --progr-tra | --program-tr | --program-t)
  967. ac_prev=program_transform_name ;;
  968. -program-transform-name=* | --program-transform-name=* \
  969. | --program-transform-nam=* | --program-transform-na=* \
  970. | --program-transform-n=* | --program-transform-=* \
  971. | --program-transform=* | --program-transfor=* \
  972. | --program-transfo=* | --program-transf=* \
  973. | --program-trans=* | --program-tran=* \
  974. | --progr-tra=* | --program-tr=* | --program-t=*)
  975. program_transform_name=$ac_optarg ;;
  976. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  977. ac_prev=pdfdir ;;
  978. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  979. pdfdir=$ac_optarg ;;
  980. -psdir | --psdir | --psdi | --psd | --ps)
  981. ac_prev=psdir ;;
  982. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  983. psdir=$ac_optarg ;;
  984. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  985. | -silent | --silent | --silen | --sile | --sil)
  986. silent=yes ;;
  987. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  988. ac_prev=sbindir ;;
  989. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  990. | --sbi=* | --sb=*)
  991. sbindir=$ac_optarg ;;
  992. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  993. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  994. | --sharedst | --shareds | --shared | --share | --shar \
  995. | --sha | --sh)
  996. ac_prev=sharedstatedir ;;
  997. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  998. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  999. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1000. | --sha=* | --sh=*)
  1001. sharedstatedir=$ac_optarg ;;
  1002. -site | --site | --sit)
  1003. ac_prev=site ;;
  1004. -site=* | --site=* | --sit=*)
  1005. site=$ac_optarg ;;
  1006. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1007. ac_prev=srcdir ;;
  1008. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1009. srcdir=$ac_optarg ;;
  1010. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1011. | --syscon | --sysco | --sysc | --sys | --sy)
  1012. ac_prev=sysconfdir ;;
  1013. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1014. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1015. sysconfdir=$ac_optarg ;;
  1016. -target | --target | --targe | --targ | --tar | --ta | --t)
  1017. ac_prev=target_alias ;;
  1018. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1019. target_alias=$ac_optarg ;;
  1020. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1021. verbose=yes ;;
  1022. -version | --version | --versio | --versi | --vers | -V)
  1023. ac_init_version=: ;;
  1024. -with-* | --with-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid package name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "with_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval with_$ac_useropt=\$ac_optarg ;;
  1039. -without-* | --without-*)
  1040. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1041. # Reject names that are not valid shell variable names.
  1042. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. as_fn_error $? "invalid package name: $ac_useropt"
  1044. ac_useropt_orig=$ac_useropt
  1045. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. case $ac_user_opts in
  1047. *"
  1048. "with_$ac_useropt"
  1049. "*) ;;
  1050. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1051. ac_unrecognized_sep=', ';;
  1052. esac
  1053. eval with_$ac_useropt=no ;;
  1054. --x)
  1055. # Obsolete; use --with-x.
  1056. with_x=yes ;;
  1057. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1058. | --x-incl | --x-inc | --x-in | --x-i)
  1059. ac_prev=x_includes ;;
  1060. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1061. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1062. x_includes=$ac_optarg ;;
  1063. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1064. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1065. ac_prev=x_libraries ;;
  1066. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1067. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1068. x_libraries=$ac_optarg ;;
  1069. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1070. Try \`$0 --help' for more information"
  1071. ;;
  1072. *=*)
  1073. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1074. # Reject names that are not valid shell variable names.
  1075. case $ac_envvar in #(
  1076. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1077. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1078. esac
  1079. eval $ac_envvar=\$ac_optarg
  1080. export $ac_envvar ;;
  1081. *)
  1082. # FIXME: should be removed in autoconf 3.0.
  1083. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1084. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1085. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1086. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1087. ;;
  1088. esac
  1089. done
  1090. if test -n "$ac_prev"; then
  1091. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1092. as_fn_error $? "missing argument to $ac_option"
  1093. fi
  1094. if test -n "$ac_unrecognized_opts"; then
  1095. case $enable_option_checking in
  1096. no) ;;
  1097. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1098. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1099. esac
  1100. fi
  1101. # Check all directory arguments for consistency.
  1102. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1103. datadir sysconfdir sharedstatedir localstatedir includedir \
  1104. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1105. libdir localedir mandir
  1106. do
  1107. eval ac_val=\$$ac_var
  1108. # Remove trailing slashes.
  1109. case $ac_val in
  1110. */ )
  1111. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1112. eval $ac_var=\$ac_val;;
  1113. esac
  1114. # Be sure to have absolute directory names.
  1115. case $ac_val in
  1116. [\\/$]* | ?:[\\/]* ) continue;;
  1117. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1118. esac
  1119. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1120. done
  1121. # There might be people who depend on the old broken behavior: `$host'
  1122. # used to hold the argument of --host etc.
  1123. # FIXME: To remove some day.
  1124. build=$build_alias
  1125. host=$host_alias
  1126. target=$target_alias
  1127. # FIXME: To remove some day.
  1128. if test "x$host_alias" != x; then
  1129. if test "x$build_alias" = x; then
  1130. cross_compiling=maybe
  1131. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1132. If a cross compiler is detected then cross compile mode will be used" >&2
  1133. elif test "x$build_alias" != "x$host_alias"; then
  1134. cross_compiling=yes
  1135. fi
  1136. fi
  1137. ac_tool_prefix=
  1138. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1139. test "$silent" = yes && exec 6>/dev/null
  1140. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1141. ac_ls_di=`ls -di .` &&
  1142. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1143. as_fn_error $? "working directory cannot be determined"
  1144. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1145. as_fn_error $? "pwd does not report name of working directory"
  1146. # Find the source files, if location was not specified.
  1147. if test -z "$srcdir"; then
  1148. ac_srcdir_defaulted=yes
  1149. # Try the directory containing this script, then the parent directory.
  1150. ac_confdir=`$as_dirname -- "$as_myself" ||
  1151. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1152. X"$as_myself" : 'X\(//\)[^/]' \| \
  1153. X"$as_myself" : 'X\(//\)$' \| \
  1154. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1155. $as_echo X"$as_myself" |
  1156. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1157. s//\1/
  1158. q
  1159. }
  1160. /^X\(\/\/\)[^/].*/{
  1161. s//\1/
  1162. q
  1163. }
  1164. /^X\(\/\/\)$/{
  1165. s//\1/
  1166. q
  1167. }
  1168. /^X\(\/\).*/{
  1169. s//\1/
  1170. q
  1171. }
  1172. s/.*/./; q'`
  1173. srcdir=$ac_confdir
  1174. if test ! -r "$srcdir/$ac_unique_file"; then
  1175. srcdir=..
  1176. fi
  1177. else
  1178. ac_srcdir_defaulted=no
  1179. fi
  1180. if test ! -r "$srcdir/$ac_unique_file"; then
  1181. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1182. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1183. fi
  1184. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1185. ac_abs_confdir=`(
  1186. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1187. pwd)`
  1188. # When building in place, set srcdir=.
  1189. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1190. srcdir=.
  1191. fi
  1192. # Remove unnecessary trailing slashes from srcdir.
  1193. # Double slashes in file names in object file debugging info
  1194. # mess up M-x gdb in Emacs.
  1195. case $srcdir in
  1196. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1197. esac
  1198. for ac_var in $ac_precious_vars; do
  1199. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_env_${ac_var}_value=\$${ac_var}
  1201. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1202. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1203. done
  1204. #
  1205. # Report the --help message.
  1206. #
  1207. if test "$ac_init_help" = "long"; then
  1208. # Omit some internal or obsolete options to make the list less imposing.
  1209. # This message is too long to be a string in the A/UX 3.1 sh.
  1210. cat <<_ACEOF
  1211. \`configure' configures klish 1.5.3 to adapt to many kinds of systems.
  1212. Usage: $0 [OPTION]... [VAR=VALUE]...
  1213. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1214. VAR=VALUE. See below for descriptions of some of the useful variables.
  1215. Defaults for the options are specified in brackets.
  1216. Configuration:
  1217. -h, --help display this help and exit
  1218. --help=short display options specific to this package
  1219. --help=recursive display the short help of all the included packages
  1220. -V, --version display version information and exit
  1221. -q, --quiet, --silent do not print \`checking ...' messages
  1222. --cache-file=FILE cache test results in FILE [disabled]
  1223. -C, --config-cache alias for \`--cache-file=config.cache'
  1224. -n, --no-create do not create output files
  1225. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1226. Installation directories:
  1227. --prefix=PREFIX install architecture-independent files in PREFIX
  1228. [$ac_default_prefix]
  1229. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1230. [PREFIX]
  1231. By default, \`make install' will install all the files in
  1232. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1233. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1234. for instance \`--prefix=\$HOME'.
  1235. For better control, use the options below.
  1236. Fine tuning of the installation directories:
  1237. --bindir=DIR user executables [EPREFIX/bin]
  1238. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1239. --libexecdir=DIR program executables [EPREFIX/libexec]
  1240. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1241. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1242. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1243. --libdir=DIR object code libraries [EPREFIX/lib]
  1244. --includedir=DIR C header files [PREFIX/include]
  1245. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1246. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1247. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1248. --infodir=DIR info documentation [DATAROOTDIR/info]
  1249. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1250. --mandir=DIR man documentation [DATAROOTDIR/man]
  1251. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1252. --htmldir=DIR html documentation [DOCDIR]
  1253. --dvidir=DIR dvi documentation [DOCDIR]
  1254. --pdfdir=DIR pdf documentation [DOCDIR]
  1255. --psdir=DIR ps documentation [DOCDIR]
  1256. _ACEOF
  1257. cat <<\_ACEOF
  1258. Program names:
  1259. --program-prefix=PREFIX prepend PREFIX to installed program names
  1260. --program-suffix=SUFFIX append SUFFIX to installed program names
  1261. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1262. System types:
  1263. --build=BUILD configure for building on BUILD [guessed]
  1264. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1265. _ACEOF
  1266. fi
  1267. if test -n "$ac_init_help"; then
  1268. case $ac_init_help in
  1269. short | recursive ) echo "Configuration of klish 1.5.3:";;
  1270. esac
  1271. cat <<\_ACEOF
  1272. Optional Features:
  1273. --disable-option-checking ignore unrecognized --enable/--with options
  1274. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1275. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1276. --enable-shared[=PKGS] build shared libraries [default=yes]
  1277. --enable-static[=PKGS] build static libraries [default=yes]
  1278. --enable-fast-install[=PKGS]
  1279. optimize for fast installation [default=yes]
  1280. --disable-libtool-lock avoid locking (might break parallel builds)
  1281. --disable-dependency-tracking speeds up one-time build
  1282. --enable-dependency-tracking do not reject slow dependency extractors
  1283. --enable-debug Turn on debugging including asserts [default=no]
  1284. --enable-lubheap Replace standard memory libaries with lubheap
  1285. (EXPERIMENTAL) [default=no]
  1286. --enable-gpl Link with GPL licenced libraries [default=yes]
  1287. Optional Packages:
  1288. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1289. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1290. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1291. both]
  1292. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1293. --with-sysroot=DIR Search for dependent libraries within DIR
  1294. (or the compiler's sysroot if not specified).
  1295. --with-pthread=DIR Use POSIX threads library distribution in DIR
  1296. --with-rt=DIR Use POSIX real time library distribution in DIR
  1297. --with-tcl=DIR Use TCL library distribution in DIR
  1298. Some influential environment variables:
  1299. CC C compiler command
  1300. CFLAGS C compiler flags
  1301. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1302. nonstandard directory <lib dir>
  1303. LIBS libraries to pass to the linker, e.g. -l<library>
  1304. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1305. you have headers in a nonstandard directory <include dir>
  1306. CPP C preprocessor
  1307. CXX C++ compiler command
  1308. CXXFLAGS C++ compiler flags
  1309. CXXCPP C++ preprocessor
  1310. Use these variables to override the choices made by `configure' or to help
  1311. it to find libraries and programs with nonstandard names/locations.
  1312. Report bugs to <serj.kalichev at gmail dot com>.
  1313. _ACEOF
  1314. ac_status=$?
  1315. fi
  1316. if test "$ac_init_help" = "recursive"; then
  1317. # If there are subdirs, report their specific --help.
  1318. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1319. test -d "$ac_dir" ||
  1320. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1321. continue
  1322. ac_builddir=.
  1323. case "$ac_dir" in
  1324. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1325. *)
  1326. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1327. # A ".." for each directory in $ac_dir_suffix.
  1328. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1329. case $ac_top_builddir_sub in
  1330. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1331. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1332. esac ;;
  1333. esac
  1334. ac_abs_top_builddir=$ac_pwd
  1335. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1336. # for backward compatibility:
  1337. ac_top_builddir=$ac_top_build_prefix
  1338. case $srcdir in
  1339. .) # We are building in place.
  1340. ac_srcdir=.
  1341. ac_top_srcdir=$ac_top_builddir_sub
  1342. ac_abs_top_srcdir=$ac_pwd ;;
  1343. [\\/]* | ?:[\\/]* ) # Absolute name.
  1344. ac_srcdir=$srcdir$ac_dir_suffix;
  1345. ac_top_srcdir=$srcdir
  1346. ac_abs_top_srcdir=$srcdir ;;
  1347. *) # Relative name.
  1348. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1349. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1350. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1351. esac
  1352. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1353. cd "$ac_dir" || { ac_status=$?; continue; }
  1354. # Check for guested configure.
  1355. if test -f "$ac_srcdir/configure.gnu"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1358. elif test -f "$ac_srcdir/configure"; then
  1359. echo &&
  1360. $SHELL "$ac_srcdir/configure" --help=recursive
  1361. else
  1362. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1363. fi || ac_status=$?
  1364. cd "$ac_pwd" || { ac_status=$?; break; }
  1365. done
  1366. fi
  1367. test -n "$ac_init_help" && exit $ac_status
  1368. if $ac_init_version; then
  1369. cat <<\_ACEOF
  1370. klish configure 1.5.3
  1371. generated by GNU Autoconf 2.68
  1372. Copyright (C) 2010 Free Software Foundation, Inc.
  1373. This configure script is free software; the Free Software Foundation
  1374. gives unlimited permission to copy, distribute and modify it.
  1375. _ACEOF
  1376. exit
  1377. fi
  1378. ## ------------------------ ##
  1379. ## Autoconf initialization. ##
  1380. ## ------------------------ ##
  1381. # ac_fn_c_try_compile LINENO
  1382. # --------------------------
  1383. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1384. ac_fn_c_try_compile ()
  1385. {
  1386. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1387. rm -f conftest.$ac_objext
  1388. if { { ac_try="$ac_compile"
  1389. case "(($ac_try" in
  1390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1391. *) ac_try_echo=$ac_try;;
  1392. esac
  1393. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1394. $as_echo "$ac_try_echo"; } >&5
  1395. (eval "$ac_compile") 2>conftest.err
  1396. ac_status=$?
  1397. if test -s conftest.err; then
  1398. grep -v '^ *+' conftest.err >conftest.er1
  1399. cat conftest.er1 >&5
  1400. mv -f conftest.er1 conftest.err
  1401. fi
  1402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1403. test $ac_status = 0; } && {
  1404. test -z "$ac_c_werror_flag" ||
  1405. test ! -s conftest.err
  1406. } && test -s conftest.$ac_objext; then :
  1407. ac_retval=0
  1408. else
  1409. $as_echo "$as_me: failed program was:" >&5
  1410. sed 's/^/| /' conftest.$ac_ext >&5
  1411. ac_retval=1
  1412. fi
  1413. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1414. as_fn_set_status $ac_retval
  1415. } # ac_fn_c_try_compile
  1416. # ac_fn_c_try_cpp LINENO
  1417. # ----------------------
  1418. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1419. ac_fn_c_try_cpp ()
  1420. {
  1421. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1422. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1423. case "(($ac_try" in
  1424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1425. *) ac_try_echo=$ac_try;;
  1426. esac
  1427. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1428. $as_echo "$ac_try_echo"; } >&5
  1429. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1430. ac_status=$?
  1431. if test -s conftest.err; then
  1432. grep -v '^ *+' conftest.err >conftest.er1
  1433. cat conftest.er1 >&5
  1434. mv -f conftest.er1 conftest.err
  1435. fi
  1436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1437. test $ac_status = 0; } > conftest.i && {
  1438. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1439. test ! -s conftest.err
  1440. }; then :
  1441. ac_retval=0
  1442. else
  1443. $as_echo "$as_me: failed program was:" >&5
  1444. sed 's/^/| /' conftest.$ac_ext >&5
  1445. ac_retval=1
  1446. fi
  1447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1448. as_fn_set_status $ac_retval
  1449. } # ac_fn_c_try_cpp
  1450. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1451. # -------------------------------------------------------
  1452. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1453. # the include files in INCLUDES and setting the cache variable VAR
  1454. # accordingly.
  1455. ac_fn_c_check_header_mongrel ()
  1456. {
  1457. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1458. if eval \${$3+:} false; then :
  1459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1460. $as_echo_n "checking for $2... " >&6; }
  1461. if eval \${$3+:} false; then :
  1462. $as_echo_n "(cached) " >&6
  1463. fi
  1464. eval ac_res=\$$3
  1465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1466. $as_echo "$ac_res" >&6; }
  1467. else
  1468. # Is the header compilable?
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1470. $as_echo_n "checking $2 usability... " >&6; }
  1471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1472. /* end confdefs.h. */
  1473. $4
  1474. #include <$2>
  1475. _ACEOF
  1476. if ac_fn_c_try_compile "$LINENO"; then :
  1477. ac_header_compiler=yes
  1478. else
  1479. ac_header_compiler=no
  1480. fi
  1481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1483. $as_echo "$ac_header_compiler" >&6; }
  1484. # Is the header present?
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1486. $as_echo_n "checking $2 presence... " >&6; }
  1487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1488. /* end confdefs.h. */
  1489. #include <$2>
  1490. _ACEOF
  1491. if ac_fn_c_try_cpp "$LINENO"; then :
  1492. ac_header_preproc=yes
  1493. else
  1494. ac_header_preproc=no
  1495. fi
  1496. rm -f conftest.err conftest.i conftest.$ac_ext
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1498. $as_echo "$ac_header_preproc" >&6; }
  1499. # So? What about this header?
  1500. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1501. yes:no: )
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1503. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1505. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1506. ;;
  1507. no:yes:* )
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1509. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1511. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1513. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1515. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1517. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1518. ( $as_echo "## --------------------------------------------- ##
  1519. ## Report this to serj.kalichev at gmail dot com ##
  1520. ## --------------------------------------------- ##"
  1521. ) | sed "s/^/$as_me: WARNING: /" >&2
  1522. ;;
  1523. esac
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1525. $as_echo_n "checking for $2... " >&6; }
  1526. if eval \${$3+:} false; then :
  1527. $as_echo_n "(cached) " >&6
  1528. else
  1529. eval "$3=\$ac_header_compiler"
  1530. fi
  1531. eval ac_res=\$$3
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1533. $as_echo "$ac_res" >&6; }
  1534. fi
  1535. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1536. } # ac_fn_c_check_header_mongrel
  1537. # ac_fn_c_try_run LINENO
  1538. # ----------------------
  1539. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1540. # that executables *can* be run.
  1541. ac_fn_c_try_run ()
  1542. {
  1543. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1544. if { { ac_try="$ac_link"
  1545. case "(($ac_try" in
  1546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1547. *) ac_try_echo=$ac_try;;
  1548. esac
  1549. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1550. $as_echo "$ac_try_echo"; } >&5
  1551. (eval "$ac_link") 2>&5
  1552. ac_status=$?
  1553. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1554. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1555. { { case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. $as_echo "$ac_try_echo"; } >&5
  1561. (eval "$ac_try") 2>&5
  1562. ac_status=$?
  1563. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1564. test $ac_status = 0; }; }; then :
  1565. ac_retval=0
  1566. else
  1567. $as_echo "$as_me: program exited with status $ac_status" >&5
  1568. $as_echo "$as_me: failed program was:" >&5
  1569. sed 's/^/| /' conftest.$ac_ext >&5
  1570. ac_retval=$ac_status
  1571. fi
  1572. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1573. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1574. as_fn_set_status $ac_retval
  1575. } # ac_fn_c_try_run
  1576. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1577. # -------------------------------------------------------
  1578. # Tests whether HEADER exists and can be compiled using the include files in
  1579. # INCLUDES, setting the cache variable VAR accordingly.
  1580. ac_fn_c_check_header_compile ()
  1581. {
  1582. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1584. $as_echo_n "checking for $2... " >&6; }
  1585. if eval \${$3+:} false; then :
  1586. $as_echo_n "(cached) " >&6
  1587. else
  1588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1589. /* end confdefs.h. */
  1590. $4
  1591. #include <$2>
  1592. _ACEOF
  1593. if ac_fn_c_try_compile "$LINENO"; then :
  1594. eval "$3=yes"
  1595. else
  1596. eval "$3=no"
  1597. fi
  1598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1599. fi
  1600. eval ac_res=\$$3
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1602. $as_echo "$ac_res" >&6; }
  1603. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1604. } # ac_fn_c_check_header_compile
  1605. # ac_fn_cxx_try_compile LINENO
  1606. # ----------------------------
  1607. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1608. ac_fn_cxx_try_compile ()
  1609. {
  1610. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1611. rm -f conftest.$ac_objext
  1612. if { { ac_try="$ac_compile"
  1613. case "(($ac_try" in
  1614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1615. *) ac_try_echo=$ac_try;;
  1616. esac
  1617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1618. $as_echo "$ac_try_echo"; } >&5
  1619. (eval "$ac_compile") 2>conftest.err
  1620. ac_status=$?
  1621. if test -s conftest.err; then
  1622. grep -v '^ *+' conftest.err >conftest.er1
  1623. cat conftest.er1 >&5
  1624. mv -f conftest.er1 conftest.err
  1625. fi
  1626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1627. test $ac_status = 0; } && {
  1628. test -z "$ac_cxx_werror_flag" ||
  1629. test ! -s conftest.err
  1630. } && test -s conftest.$ac_objext; then :
  1631. ac_retval=0
  1632. else
  1633. $as_echo "$as_me: failed program was:" >&5
  1634. sed 's/^/| /' conftest.$ac_ext >&5
  1635. ac_retval=1
  1636. fi
  1637. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1638. as_fn_set_status $ac_retval
  1639. } # ac_fn_cxx_try_compile
  1640. # ac_fn_c_try_link LINENO
  1641. # -----------------------
  1642. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1643. ac_fn_c_try_link ()
  1644. {
  1645. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1646. rm -f conftest.$ac_objext conftest$ac_exeext
  1647. if { { ac_try="$ac_link"
  1648. case "(($ac_try" in
  1649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1650. *) ac_try_echo=$ac_try;;
  1651. esac
  1652. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1653. $as_echo "$ac_try_echo"; } >&5
  1654. (eval "$ac_link") 2>conftest.err
  1655. ac_status=$?
  1656. if test -s conftest.err; then
  1657. grep -v '^ *+' conftest.err >conftest.er1
  1658. cat conftest.er1 >&5
  1659. mv -f conftest.er1 conftest.err
  1660. fi
  1661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1662. test $ac_status = 0; } && {
  1663. test -z "$ac_c_werror_flag" ||
  1664. test ! -s conftest.err
  1665. } && test -s conftest$ac_exeext && {
  1666. test "$cross_compiling" = yes ||
  1667. $as_test_x conftest$ac_exeext
  1668. }; then :
  1669. ac_retval=0
  1670. else
  1671. $as_echo "$as_me: failed program was:" >&5
  1672. sed 's/^/| /' conftest.$ac_ext >&5
  1673. ac_retval=1
  1674. fi
  1675. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1676. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1677. # interfere with the next link command; also delete a directory that is
  1678. # left behind by Apple's compiler. We do this before executing the actions.
  1679. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1680. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1681. as_fn_set_status $ac_retval
  1682. } # ac_fn_c_try_link
  1683. # ac_fn_c_check_func LINENO FUNC VAR
  1684. # ----------------------------------
  1685. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1686. ac_fn_c_check_func ()
  1687. {
  1688. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1690. $as_echo_n "checking for $2... " >&6; }
  1691. if eval \${$3+:} false; then :
  1692. $as_echo_n "(cached) " >&6
  1693. else
  1694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1695. /* end confdefs.h. */
  1696. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1697. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1698. #define $2 innocuous_$2
  1699. /* System header to define __stub macros and hopefully few prototypes,
  1700. which can conflict with char $2 (); below.
  1701. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1702. <limits.h> exists even on freestanding compilers. */
  1703. #ifdef __STDC__
  1704. # include <limits.h>
  1705. #else
  1706. # include <assert.h>
  1707. #endif
  1708. #undef $2
  1709. /* Override any GCC internal prototype to avoid an error.
  1710. Use char because int might match the return type of a GCC
  1711. builtin and then its argument prototype would still apply. */
  1712. #ifdef __cplusplus
  1713. extern "C"
  1714. #endif
  1715. char $2 ();
  1716. /* The GNU C library defines this for functions which it implements
  1717. to always fail with ENOSYS. Some functions are actually named
  1718. something starting with __ and the normal name is an alias. */
  1719. #if defined __stub_$2 || defined __stub___$2
  1720. choke me
  1721. #endif
  1722. int
  1723. main ()
  1724. {
  1725. return $2 ();
  1726. ;
  1727. return 0;
  1728. }
  1729. _ACEOF
  1730. if ac_fn_c_try_link "$LINENO"; then :
  1731. eval "$3=yes"
  1732. else
  1733. eval "$3=no"
  1734. fi
  1735. rm -f core conftest.err conftest.$ac_objext \
  1736. conftest$ac_exeext conftest.$ac_ext
  1737. fi
  1738. eval ac_res=\$$3
  1739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1740. $as_echo "$ac_res" >&6; }
  1741. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1742. } # ac_fn_c_check_func
  1743. # ac_fn_cxx_try_cpp LINENO
  1744. # ------------------------
  1745. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1746. ac_fn_cxx_try_cpp ()
  1747. {
  1748. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1750. case "(($ac_try" in
  1751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1752. *) ac_try_echo=$ac_try;;
  1753. esac
  1754. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1755. $as_echo "$ac_try_echo"; } >&5
  1756. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1757. ac_status=$?
  1758. if test -s conftest.err; then
  1759. grep -v '^ *+' conftest.err >conftest.er1
  1760. cat conftest.er1 >&5
  1761. mv -f conftest.er1 conftest.err
  1762. fi
  1763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1764. test $ac_status = 0; } > conftest.i && {
  1765. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1766. test ! -s conftest.err
  1767. }; then :
  1768. ac_retval=0
  1769. else
  1770. $as_echo "$as_me: failed program was:" >&5
  1771. sed 's/^/| /' conftest.$ac_ext >&5
  1772. ac_retval=1
  1773. fi
  1774. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1775. as_fn_set_status $ac_retval
  1776. } # ac_fn_cxx_try_cpp
  1777. # ac_fn_cxx_try_link LINENO
  1778. # -------------------------
  1779. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1780. ac_fn_cxx_try_link ()
  1781. {
  1782. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1783. rm -f conftest.$ac_objext conftest$ac_exeext
  1784. if { { ac_try="$ac_link"
  1785. case "(($ac_try" in
  1786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1787. *) ac_try_echo=$ac_try;;
  1788. esac
  1789. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1790. $as_echo "$ac_try_echo"; } >&5
  1791. (eval "$ac_link") 2>conftest.err
  1792. ac_status=$?
  1793. if test -s conftest.err; then
  1794. grep -v '^ *+' conftest.err >conftest.er1
  1795. cat conftest.er1 >&5
  1796. mv -f conftest.er1 conftest.err
  1797. fi
  1798. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1799. test $ac_status = 0; } && {
  1800. test -z "$ac_cxx_werror_flag" ||
  1801. test ! -s conftest.err
  1802. } && test -s conftest$ac_exeext && {
  1803. test "$cross_compiling" = yes ||
  1804. $as_test_x conftest$ac_exeext
  1805. }; then :
  1806. ac_retval=0
  1807. else
  1808. $as_echo "$as_me: failed program was:" >&5
  1809. sed 's/^/| /' conftest.$ac_ext >&5
  1810. ac_retval=1
  1811. fi
  1812. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1813. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1814. # interfere with the next link command; also delete a directory that is
  1815. # left behind by Apple's compiler. We do this before executing the actions.
  1816. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1817. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1818. as_fn_set_status $ac_retval
  1819. } # ac_fn_cxx_try_link
  1820. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1821. # --------------------------------------------
  1822. # Tries to find the compile-time value of EXPR in a program that includes
  1823. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1824. # computed
  1825. ac_fn_c_compute_int ()
  1826. {
  1827. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1828. if test "$cross_compiling" = yes; then
  1829. # Depending upon the size, compute the lo and hi bounds.
  1830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h. */
  1832. $4
  1833. int
  1834. main ()
  1835. {
  1836. static int test_array [1 - 2 * !(($2) >= 0)];
  1837. test_array [0] = 0
  1838. ;
  1839. return 0;
  1840. }
  1841. _ACEOF
  1842. if ac_fn_c_try_compile "$LINENO"; then :
  1843. ac_lo=0 ac_mid=0
  1844. while :; do
  1845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1846. /* end confdefs.h. */
  1847. $4
  1848. int
  1849. main ()
  1850. {
  1851. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1852. test_array [0] = 0
  1853. ;
  1854. return 0;
  1855. }
  1856. _ACEOF
  1857. if ac_fn_c_try_compile "$LINENO"; then :
  1858. ac_hi=$ac_mid; break
  1859. else
  1860. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1861. if test $ac_lo -le $ac_mid; then
  1862. ac_lo= ac_hi=
  1863. break
  1864. fi
  1865. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1866. fi
  1867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1868. done
  1869. else
  1870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1871. /* end confdefs.h. */
  1872. $4
  1873. int
  1874. main ()
  1875. {
  1876. static int test_array [1 - 2 * !(($2) < 0)];
  1877. test_array [0] = 0
  1878. ;
  1879. return 0;
  1880. }
  1881. _ACEOF
  1882. if ac_fn_c_try_compile "$LINENO"; then :
  1883. ac_hi=-1 ac_mid=-1
  1884. while :; do
  1885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1886. /* end confdefs.h. */
  1887. $4
  1888. int
  1889. main ()
  1890. {
  1891. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1892. test_array [0] = 0
  1893. ;
  1894. return 0;
  1895. }
  1896. _ACEOF
  1897. if ac_fn_c_try_compile "$LINENO"; then :
  1898. ac_lo=$ac_mid; break
  1899. else
  1900. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1901. if test $ac_mid -le $ac_hi; then
  1902. ac_lo= ac_hi=
  1903. break
  1904. fi
  1905. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1906. fi
  1907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1908. done
  1909. else
  1910. ac_lo= ac_hi=
  1911. fi
  1912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1913. fi
  1914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1915. # Binary search between lo and hi bounds.
  1916. while test "x$ac_lo" != "x$ac_hi"; do
  1917. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1919. /* end confdefs.h. */
  1920. $4
  1921. int
  1922. main ()
  1923. {
  1924. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1925. test_array [0] = 0
  1926. ;
  1927. return 0;
  1928. }
  1929. _ACEOF
  1930. if ac_fn_c_try_compile "$LINENO"; then :
  1931. ac_hi=$ac_mid
  1932. else
  1933. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1934. fi
  1935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1936. done
  1937. case $ac_lo in #((
  1938. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1939. '') ac_retval=1 ;;
  1940. esac
  1941. else
  1942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1943. /* end confdefs.h. */
  1944. $4
  1945. static long int longval () { return $2; }
  1946. static unsigned long int ulongval () { return $2; }
  1947. #include <stdio.h>
  1948. #include <stdlib.h>
  1949. int
  1950. main ()
  1951. {
  1952. FILE *f = fopen ("conftest.val", "w");
  1953. if (! f)
  1954. return 1;
  1955. if (($2) < 0)
  1956. {
  1957. long int i = longval ();
  1958. if (i != ($2))
  1959. return 1;
  1960. fprintf (f, "%ld", i);
  1961. }
  1962. else
  1963. {
  1964. unsigned long int i = ulongval ();
  1965. if (i != ($2))
  1966. return 1;
  1967. fprintf (f, "%lu", i);
  1968. }
  1969. /* Do not output a trailing newline, as this causes \r\n confusion
  1970. on some platforms. */
  1971. return ferror (f) || fclose (f) != 0;
  1972. ;
  1973. return 0;
  1974. }
  1975. _ACEOF
  1976. if ac_fn_c_try_run "$LINENO"; then :
  1977. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1978. else
  1979. ac_retval=1
  1980. fi
  1981. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1982. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1983. rm -f conftest.val
  1984. fi
  1985. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1986. as_fn_set_status $ac_retval
  1987. } # ac_fn_c_compute_int
  1988. cat >config.log <<_ACEOF
  1989. This file contains any messages produced by compilers while
  1990. running configure, to aid debugging if configure makes a mistake.
  1991. It was created by klish $as_me 1.5.3, which was
  1992. generated by GNU Autoconf 2.68. Invocation command line was
  1993. $ $0 $@
  1994. _ACEOF
  1995. exec 5>>config.log
  1996. {
  1997. cat <<_ASUNAME
  1998. ## --------- ##
  1999. ## Platform. ##
  2000. ## --------- ##
  2001. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2002. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2003. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2004. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2005. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2006. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2007. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2008. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2009. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2010. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2011. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2012. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2013. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2014. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2015. _ASUNAME
  2016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2017. for as_dir in $PATH
  2018. do
  2019. IFS=$as_save_IFS
  2020. test -z "$as_dir" && as_dir=.
  2021. $as_echo "PATH: $as_dir"
  2022. done
  2023. IFS=$as_save_IFS
  2024. } >&5
  2025. cat >&5 <<_ACEOF
  2026. ## ----------- ##
  2027. ## Core tests. ##
  2028. ## ----------- ##
  2029. _ACEOF
  2030. # Keep a trace of the command line.
  2031. # Strip out --no-create and --no-recursion so they do not pile up.
  2032. # Strip out --silent because we don't want to record it for future runs.
  2033. # Also quote any args containing shell meta-characters.
  2034. # Make two passes to allow for proper duplicate-argument suppression.
  2035. ac_configure_args=
  2036. ac_configure_args0=
  2037. ac_configure_args1=
  2038. ac_must_keep_next=false
  2039. for ac_pass in 1 2
  2040. do
  2041. for ac_arg
  2042. do
  2043. case $ac_arg in
  2044. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2045. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2046. | -silent | --silent | --silen | --sile | --sil)
  2047. continue ;;
  2048. *\'*)
  2049. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2050. esac
  2051. case $ac_pass in
  2052. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2053. 2)
  2054. as_fn_append ac_configure_args1 " '$ac_arg'"
  2055. if test $ac_must_keep_next = true; then
  2056. ac_must_keep_next=false # Got value, back to normal.
  2057. else
  2058. case $ac_arg in
  2059. *=* | --config-cache | -C | -disable-* | --disable-* \
  2060. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2061. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2062. | -with-* | --with-* | -without-* | --without-* | --x)
  2063. case "$ac_configure_args0 " in
  2064. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2065. esac
  2066. ;;
  2067. -* ) ac_must_keep_next=true ;;
  2068. esac
  2069. fi
  2070. as_fn_append ac_configure_args " '$ac_arg'"
  2071. ;;
  2072. esac
  2073. done
  2074. done
  2075. { ac_configure_args0=; unset ac_configure_args0;}
  2076. { ac_configure_args1=; unset ac_configure_args1;}
  2077. # When interrupted or exit'd, cleanup temporary files, and complete
  2078. # config.log. We remove comments because anyway the quotes in there
  2079. # would cause problems or look ugly.
  2080. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2081. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2082. trap 'exit_status=$?
  2083. # Save into config.log some information that might help in debugging.
  2084. {
  2085. echo
  2086. $as_echo "## ---------------- ##
  2087. ## Cache variables. ##
  2088. ## ---------------- ##"
  2089. echo
  2090. # The following way of writing the cache mishandles newlines in values,
  2091. (
  2092. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2093. eval ac_val=\$$ac_var
  2094. case $ac_val in #(
  2095. *${as_nl}*)
  2096. case $ac_var in #(
  2097. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2098. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2099. esac
  2100. case $ac_var in #(
  2101. _ | IFS | as_nl) ;; #(
  2102. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2103. *) { eval $ac_var=; unset $ac_var;} ;;
  2104. esac ;;
  2105. esac
  2106. done
  2107. (set) 2>&1 |
  2108. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2109. *${as_nl}ac_space=\ *)
  2110. sed -n \
  2111. "s/'\''/'\''\\\\'\'''\''/g;
  2112. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2113. ;; #(
  2114. *)
  2115. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2116. ;;
  2117. esac |
  2118. sort
  2119. )
  2120. echo
  2121. $as_echo "## ----------------- ##
  2122. ## Output variables. ##
  2123. ## ----------------- ##"
  2124. echo
  2125. for ac_var in $ac_subst_vars
  2126. do
  2127. eval ac_val=\$$ac_var
  2128. case $ac_val in
  2129. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2130. esac
  2131. $as_echo "$ac_var='\''$ac_val'\''"
  2132. done | sort
  2133. echo
  2134. if test -n "$ac_subst_files"; then
  2135. $as_echo "## ------------------- ##
  2136. ## File substitutions. ##
  2137. ## ------------------- ##"
  2138. echo
  2139. for ac_var in $ac_subst_files
  2140. do
  2141. eval ac_val=\$$ac_var
  2142. case $ac_val in
  2143. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2144. esac
  2145. $as_echo "$ac_var='\''$ac_val'\''"
  2146. done | sort
  2147. echo
  2148. fi
  2149. if test -s confdefs.h; then
  2150. $as_echo "## ----------- ##
  2151. ## confdefs.h. ##
  2152. ## ----------- ##"
  2153. echo
  2154. cat confdefs.h
  2155. echo
  2156. fi
  2157. test "$ac_signal" != 0 &&
  2158. $as_echo "$as_me: caught signal $ac_signal"
  2159. $as_echo "$as_me: exit $exit_status"
  2160. } >&5
  2161. rm -f core *.core core.conftest.* &&
  2162. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2163. exit $exit_status
  2164. ' 0
  2165. for ac_signal in 1 2 13 15; do
  2166. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2167. done
  2168. ac_signal=0
  2169. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2170. rm -f -r conftest* confdefs.h
  2171. $as_echo "/* confdefs.h */" > confdefs.h
  2172. # Predefined preprocessor variables.
  2173. cat >>confdefs.h <<_ACEOF
  2174. #define PACKAGE_NAME "$PACKAGE_NAME"
  2175. _ACEOF
  2176. cat >>confdefs.h <<_ACEOF
  2177. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2178. _ACEOF
  2179. cat >>confdefs.h <<_ACEOF
  2180. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2181. _ACEOF
  2182. cat >>confdefs.h <<_ACEOF
  2183. #define PACKAGE_STRING "$PACKAGE_STRING"
  2184. _ACEOF
  2185. cat >>confdefs.h <<_ACEOF
  2186. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2187. _ACEOF
  2188. cat >>confdefs.h <<_ACEOF
  2189. #define PACKAGE_URL "$PACKAGE_URL"
  2190. _ACEOF
  2191. # Let the site file select an alternate cache file if it wants to.
  2192. # Prefer an explicitly selected file to automatically selected ones.
  2193. ac_site_file1=NONE
  2194. ac_site_file2=NONE
  2195. if test -n "$CONFIG_SITE"; then
  2196. # We do not want a PATH search for config.site.
  2197. case $CONFIG_SITE in #((
  2198. -*) ac_site_file1=./$CONFIG_SITE;;
  2199. */*) ac_site_file1=$CONFIG_SITE;;
  2200. *) ac_site_file1=./$CONFIG_SITE;;
  2201. esac
  2202. elif test "x$prefix" != xNONE; then
  2203. ac_site_file1=$prefix/share/config.site
  2204. ac_site_file2=$prefix/etc/config.site
  2205. else
  2206. ac_site_file1=$ac_default_prefix/share/config.site
  2207. ac_site_file2=$ac_default_prefix/etc/config.site
  2208. fi
  2209. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2210. do
  2211. test "x$ac_site_file" = xNONE && continue
  2212. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2214. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2215. sed 's/^/| /' "$ac_site_file" >&5
  2216. . "$ac_site_file" \
  2217. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2219. as_fn_error $? "failed to load site script $ac_site_file
  2220. See \`config.log' for more details" "$LINENO" 5; }
  2221. fi
  2222. done
  2223. if test -r "$cache_file"; then
  2224. # Some versions of bash will fail to source /dev/null (special files
  2225. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2226. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2228. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2229. case $cache_file in
  2230. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2231. *) . "./$cache_file";;
  2232. esac
  2233. fi
  2234. else
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2236. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2237. >$cache_file
  2238. fi
  2239. # Check that the precious variables saved in the cache have kept the same
  2240. # value.
  2241. ac_cache_corrupted=false
  2242. for ac_var in $ac_precious_vars; do
  2243. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2244. eval ac_new_set=\$ac_env_${ac_var}_set
  2245. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2246. eval ac_new_val=\$ac_env_${ac_var}_value
  2247. case $ac_old_set,$ac_new_set in
  2248. set,)
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2250. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2251. ac_cache_corrupted=: ;;
  2252. ,set)
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2254. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2255. ac_cache_corrupted=: ;;
  2256. ,);;
  2257. *)
  2258. if test "x$ac_old_val" != "x$ac_new_val"; then
  2259. # differences in whitespace do not lead to failure.
  2260. ac_old_val_w=`echo x $ac_old_val`
  2261. ac_new_val_w=`echo x $ac_new_val`
  2262. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2264. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2265. ac_cache_corrupted=:
  2266. else
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2268. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2269. eval $ac_var=\$ac_old_val
  2270. fi
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2272. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2274. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2275. fi;;
  2276. esac
  2277. # Pass precious variables to config.status.
  2278. if test "$ac_new_set" = set; then
  2279. case $ac_new_val in
  2280. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2281. *) ac_arg=$ac_var=$ac_new_val ;;
  2282. esac
  2283. case " $ac_configure_args " in
  2284. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2285. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2286. esac
  2287. fi
  2288. done
  2289. if $ac_cache_corrupted; then
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2291. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2292. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2293. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2294. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2295. fi
  2296. ## -------------------- ##
  2297. ## Main body of script. ##
  2298. ## -------------------- ##
  2299. ac_ext=c
  2300. ac_cpp='$CPP $CPPFLAGS'
  2301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2304. ac_aux_dir=
  2305. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2306. if test -f "$ac_dir/install-sh"; then
  2307. ac_aux_dir=$ac_dir
  2308. ac_install_sh="$ac_aux_dir/install-sh -c"
  2309. break
  2310. elif test -f "$ac_dir/install.sh"; then
  2311. ac_aux_dir=$ac_dir
  2312. ac_install_sh="$ac_aux_dir/install.sh -c"
  2313. break
  2314. elif test -f "$ac_dir/shtool"; then
  2315. ac_aux_dir=$ac_dir
  2316. ac_install_sh="$ac_aux_dir/shtool install -c"
  2317. break
  2318. fi
  2319. done
  2320. if test -z "$ac_aux_dir"; then
  2321. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2322. fi
  2323. # These three variables are undocumented and unsupported,
  2324. # and are intended to be withdrawn in a future Autoconf release.
  2325. # They can cause serious problems if a builder's source tree is in a directory
  2326. # whose full name contains unusual characters.
  2327. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2328. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2329. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2330. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2331. ac_ext=c
  2332. ac_cpp='$CPP $CPPFLAGS'
  2333. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2334. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2335. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2336. if test -n "$ac_tool_prefix"; then
  2337. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2338. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2340. $as_echo_n "checking for $ac_word... " >&6; }
  2341. if ${ac_cv_prog_CC+:} false; then :
  2342. $as_echo_n "(cached) " >&6
  2343. else
  2344. if test -n "$CC"; then
  2345. ac_cv_prog_CC="$CC" # Let the user override the test.
  2346. else
  2347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2348. for as_dir in $PATH
  2349. do
  2350. IFS=$as_save_IFS
  2351. test -z "$as_dir" && as_dir=.
  2352. for ac_exec_ext in '' $ac_executable_extensions; do
  2353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2354. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2356. break 2
  2357. fi
  2358. done
  2359. done
  2360. IFS=$as_save_IFS
  2361. fi
  2362. fi
  2363. CC=$ac_cv_prog_CC
  2364. if test -n "$CC"; then
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2366. $as_echo "$CC" >&6; }
  2367. else
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2369. $as_echo "no" >&6; }
  2370. fi
  2371. fi
  2372. if test -z "$ac_cv_prog_CC"; then
  2373. ac_ct_CC=$CC
  2374. # Extract the first word of "gcc", so it can be a program name with args.
  2375. set dummy gcc; ac_word=$2
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2377. $as_echo_n "checking for $ac_word... " >&6; }
  2378. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2379. $as_echo_n "(cached) " >&6
  2380. else
  2381. if test -n "$ac_ct_CC"; then
  2382. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2383. else
  2384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2385. for as_dir in $PATH
  2386. do
  2387. IFS=$as_save_IFS
  2388. test -z "$as_dir" && as_dir=.
  2389. for ac_exec_ext in '' $ac_executable_extensions; do
  2390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2391. ac_cv_prog_ac_ct_CC="gcc"
  2392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2393. break 2
  2394. fi
  2395. done
  2396. done
  2397. IFS=$as_save_IFS
  2398. fi
  2399. fi
  2400. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2401. if test -n "$ac_ct_CC"; then
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2403. $as_echo "$ac_ct_CC" >&6; }
  2404. else
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2406. $as_echo "no" >&6; }
  2407. fi
  2408. if test "x$ac_ct_CC" = x; then
  2409. CC=""
  2410. else
  2411. case $cross_compiling:$ac_tool_warned in
  2412. yes:)
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2414. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2415. ac_tool_warned=yes ;;
  2416. esac
  2417. CC=$ac_ct_CC
  2418. fi
  2419. else
  2420. CC="$ac_cv_prog_CC"
  2421. fi
  2422. if test -z "$CC"; then
  2423. if test -n "$ac_tool_prefix"; then
  2424. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2425. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2427. $as_echo_n "checking for $ac_word... " >&6; }
  2428. if ${ac_cv_prog_CC+:} false; then :
  2429. $as_echo_n "(cached) " >&6
  2430. else
  2431. if test -n "$CC"; then
  2432. ac_cv_prog_CC="$CC" # Let the user override the test.
  2433. else
  2434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2435. for as_dir in $PATH
  2436. do
  2437. IFS=$as_save_IFS
  2438. test -z "$as_dir" && as_dir=.
  2439. for ac_exec_ext in '' $ac_executable_extensions; do
  2440. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2441. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2443. break 2
  2444. fi
  2445. done
  2446. done
  2447. IFS=$as_save_IFS
  2448. fi
  2449. fi
  2450. CC=$ac_cv_prog_CC
  2451. if test -n "$CC"; then
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2453. $as_echo "$CC" >&6; }
  2454. else
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2456. $as_echo "no" >&6; }
  2457. fi
  2458. fi
  2459. fi
  2460. if test -z "$CC"; then
  2461. # Extract the first word of "cc", so it can be a program name with args.
  2462. set dummy cc; ac_word=$2
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2464. $as_echo_n "checking for $ac_word... " >&6; }
  2465. if ${ac_cv_prog_CC+:} false; then :
  2466. $as_echo_n "(cached) " >&6
  2467. else
  2468. if test -n "$CC"; then
  2469. ac_cv_prog_CC="$CC" # Let the user override the test.
  2470. else
  2471. ac_prog_rejected=no
  2472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2473. for as_dir in $PATH
  2474. do
  2475. IFS=$as_save_IFS
  2476. test -z "$as_dir" && as_dir=.
  2477. for ac_exec_ext in '' $ac_executable_extensions; do
  2478. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2479. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2480. ac_prog_rejected=yes
  2481. continue
  2482. fi
  2483. ac_cv_prog_CC="cc"
  2484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2485. break 2
  2486. fi
  2487. done
  2488. done
  2489. IFS=$as_save_IFS
  2490. if test $ac_prog_rejected = yes; then
  2491. # We found a bogon in the path, so make sure we never use it.
  2492. set dummy $ac_cv_prog_CC
  2493. shift
  2494. if test $# != 0; then
  2495. # We chose a different compiler from the bogus one.
  2496. # However, it has the same basename, so the bogon will be chosen
  2497. # first if we set CC to just the basename; use the full file name.
  2498. shift
  2499. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2500. fi
  2501. fi
  2502. fi
  2503. fi
  2504. CC=$ac_cv_prog_CC
  2505. if test -n "$CC"; then
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2507. $as_echo "$CC" >&6; }
  2508. else
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2510. $as_echo "no" >&6; }
  2511. fi
  2512. fi
  2513. if test -z "$CC"; then
  2514. if test -n "$ac_tool_prefix"; then
  2515. for ac_prog in cl.exe
  2516. do
  2517. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2518. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2520. $as_echo_n "checking for $ac_word... " >&6; }
  2521. if ${ac_cv_prog_CC+:} false; then :
  2522. $as_echo_n "(cached) " >&6
  2523. else
  2524. if test -n "$CC"; then
  2525. ac_cv_prog_CC="$CC" # Let the user override the test.
  2526. else
  2527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2528. for as_dir in $PATH
  2529. do
  2530. IFS=$as_save_IFS
  2531. test -z "$as_dir" && as_dir=.
  2532. for ac_exec_ext in '' $ac_executable_extensions; do
  2533. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2534. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2536. break 2
  2537. fi
  2538. done
  2539. done
  2540. IFS=$as_save_IFS
  2541. fi
  2542. fi
  2543. CC=$ac_cv_prog_CC
  2544. if test -n "$CC"; then
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2546. $as_echo "$CC" >&6; }
  2547. else
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2549. $as_echo "no" >&6; }
  2550. fi
  2551. test -n "$CC" && break
  2552. done
  2553. fi
  2554. if test -z "$CC"; then
  2555. ac_ct_CC=$CC
  2556. for ac_prog in cl.exe
  2557. do
  2558. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2559. set dummy $ac_prog; ac_word=$2
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2561. $as_echo_n "checking for $ac_word... " >&6; }
  2562. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2563. $as_echo_n "(cached) " >&6
  2564. else
  2565. if test -n "$ac_ct_CC"; then
  2566. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2567. else
  2568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2569. for as_dir in $PATH
  2570. do
  2571. IFS=$as_save_IFS
  2572. test -z "$as_dir" && as_dir=.
  2573. for ac_exec_ext in '' $ac_executable_extensions; do
  2574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2575. ac_cv_prog_ac_ct_CC="$ac_prog"
  2576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2577. break 2
  2578. fi
  2579. done
  2580. done
  2581. IFS=$as_save_IFS
  2582. fi
  2583. fi
  2584. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2585. if test -n "$ac_ct_CC"; then
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2587. $as_echo "$ac_ct_CC" >&6; }
  2588. else
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2590. $as_echo "no" >&6; }
  2591. fi
  2592. test -n "$ac_ct_CC" && break
  2593. done
  2594. if test "x$ac_ct_CC" = x; then
  2595. CC=""
  2596. else
  2597. case $cross_compiling:$ac_tool_warned in
  2598. yes:)
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2600. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2601. ac_tool_warned=yes ;;
  2602. esac
  2603. CC=$ac_ct_CC
  2604. fi
  2605. fi
  2606. fi
  2607. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2608. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2609. as_fn_error $? "no acceptable C compiler found in \$PATH
  2610. See \`config.log' for more details" "$LINENO" 5; }
  2611. # Provide some information about the compiler.
  2612. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2613. set X $ac_compile
  2614. ac_compiler=$2
  2615. for ac_option in --version -v -V -qversion; do
  2616. { { ac_try="$ac_compiler $ac_option >&5"
  2617. case "(($ac_try" in
  2618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2619. *) ac_try_echo=$ac_try;;
  2620. esac
  2621. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2622. $as_echo "$ac_try_echo"; } >&5
  2623. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2624. ac_status=$?
  2625. if test -s conftest.err; then
  2626. sed '10a\
  2627. ... rest of stderr output deleted ...
  2628. 10q' conftest.err >conftest.er1
  2629. cat conftest.er1 >&5
  2630. fi
  2631. rm -f conftest.er1 conftest.err
  2632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2633. test $ac_status = 0; }
  2634. done
  2635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2636. /* end confdefs.h. */
  2637. int
  2638. main ()
  2639. {
  2640. ;
  2641. return 0;
  2642. }
  2643. _ACEOF
  2644. ac_clean_files_save=$ac_clean_files
  2645. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2646. # Try to create an executable without -o first, disregard a.out.
  2647. # It will help us diagnose broken compilers, and finding out an intuition
  2648. # of exeext.
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2650. $as_echo_n "checking whether the C compiler works... " >&6; }
  2651. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2652. # The possible output files:
  2653. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2654. ac_rmfiles=
  2655. for ac_file in $ac_files
  2656. do
  2657. case $ac_file in
  2658. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2659. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2660. esac
  2661. done
  2662. rm -f $ac_rmfiles
  2663. if { { ac_try="$ac_link_default"
  2664. case "(($ac_try" in
  2665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2666. *) ac_try_echo=$ac_try;;
  2667. esac
  2668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2669. $as_echo "$ac_try_echo"; } >&5
  2670. (eval "$ac_link_default") 2>&5
  2671. ac_status=$?
  2672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2673. test $ac_status = 0; }; then :
  2674. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2675. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2676. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2677. # so that the user can short-circuit this test for compilers unknown to
  2678. # Autoconf.
  2679. for ac_file in $ac_files ''
  2680. do
  2681. test -f "$ac_file" || continue
  2682. case $ac_file in
  2683. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2684. ;;
  2685. [ab].out )
  2686. # We found the default executable, but exeext='' is most
  2687. # certainly right.
  2688. break;;
  2689. *.* )
  2690. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2691. then :; else
  2692. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2693. fi
  2694. # We set ac_cv_exeext here because the later test for it is not
  2695. # safe: cross compilers may not add the suffix if given an `-o'
  2696. # argument, so we may need to know it at that point already.
  2697. # Even if this section looks crufty: it has the advantage of
  2698. # actually working.
  2699. break;;
  2700. * )
  2701. break;;
  2702. esac
  2703. done
  2704. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2705. else
  2706. ac_file=''
  2707. fi
  2708. if test -z "$ac_file"; then :
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2710. $as_echo "no" >&6; }
  2711. $as_echo "$as_me: failed program was:" >&5
  2712. sed 's/^/| /' conftest.$ac_ext >&5
  2713. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2714. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2715. as_fn_error 77 "C compiler cannot create executables
  2716. See \`config.log' for more details" "$LINENO" 5; }
  2717. else
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2719. $as_echo "yes" >&6; }
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2722. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2724. $as_echo "$ac_file" >&6; }
  2725. ac_exeext=$ac_cv_exeext
  2726. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2727. ac_clean_files=$ac_clean_files_save
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2729. $as_echo_n "checking for suffix of executables... " >&6; }
  2730. if { { ac_try="$ac_link"
  2731. case "(($ac_try" in
  2732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2733. *) ac_try_echo=$ac_try;;
  2734. esac
  2735. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2736. $as_echo "$ac_try_echo"; } >&5
  2737. (eval "$ac_link") 2>&5
  2738. ac_status=$?
  2739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2740. test $ac_status = 0; }; then :
  2741. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2742. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2743. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2744. # `rm'.
  2745. for ac_file in conftest.exe conftest conftest.*; do
  2746. test -f "$ac_file" || continue
  2747. case $ac_file in
  2748. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2749. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2750. break;;
  2751. * ) break;;
  2752. esac
  2753. done
  2754. else
  2755. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2756. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2757. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2758. See \`config.log' for more details" "$LINENO" 5; }
  2759. fi
  2760. rm -f conftest conftest$ac_cv_exeext
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2762. $as_echo "$ac_cv_exeext" >&6; }
  2763. rm -f conftest.$ac_ext
  2764. EXEEXT=$ac_cv_exeext
  2765. ac_exeext=$EXEEXT
  2766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2767. /* end confdefs.h. */
  2768. #include <stdio.h>
  2769. int
  2770. main ()
  2771. {
  2772. FILE *f = fopen ("conftest.out", "w");
  2773. return ferror (f) || fclose (f) != 0;
  2774. ;
  2775. return 0;
  2776. }
  2777. _ACEOF
  2778. ac_clean_files="$ac_clean_files conftest.out"
  2779. # Check that the compiler produces executables we can run. If not, either
  2780. # the compiler is broken, or we cross compile.
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2782. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2783. if test "$cross_compiling" != yes; then
  2784. { { ac_try="$ac_link"
  2785. case "(($ac_try" in
  2786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2787. *) ac_try_echo=$ac_try;;
  2788. esac
  2789. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2790. $as_echo "$ac_try_echo"; } >&5
  2791. (eval "$ac_link") 2>&5
  2792. ac_status=$?
  2793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2794. test $ac_status = 0; }
  2795. if { ac_try='./conftest$ac_cv_exeext'
  2796. { { case "(($ac_try" in
  2797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2798. *) ac_try_echo=$ac_try;;
  2799. esac
  2800. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2801. $as_echo "$ac_try_echo"; } >&5
  2802. (eval "$ac_try") 2>&5
  2803. ac_status=$?
  2804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2805. test $ac_status = 0; }; }; then
  2806. cross_compiling=no
  2807. else
  2808. if test "$cross_compiling" = maybe; then
  2809. cross_compiling=yes
  2810. else
  2811. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2812. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2813. as_fn_error $? "cannot run C compiled programs.
  2814. If you meant to cross compile, use \`--host'.
  2815. See \`config.log' for more details" "$LINENO" 5; }
  2816. fi
  2817. fi
  2818. fi
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2820. $as_echo "$cross_compiling" >&6; }
  2821. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2822. ac_clean_files=$ac_clean_files_save
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2824. $as_echo_n "checking for suffix of object files... " >&6; }
  2825. if ${ac_cv_objext+:} false; then :
  2826. $as_echo_n "(cached) " >&6
  2827. else
  2828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2829. /* end confdefs.h. */
  2830. int
  2831. main ()
  2832. {
  2833. ;
  2834. return 0;
  2835. }
  2836. _ACEOF
  2837. rm -f conftest.o conftest.obj
  2838. if { { ac_try="$ac_compile"
  2839. case "(($ac_try" in
  2840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2841. *) ac_try_echo=$ac_try;;
  2842. esac
  2843. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2844. $as_echo "$ac_try_echo"; } >&5
  2845. (eval "$ac_compile") 2>&5
  2846. ac_status=$?
  2847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2848. test $ac_status = 0; }; then :
  2849. for ac_file in conftest.o conftest.obj conftest.*; do
  2850. test -f "$ac_file" || continue;
  2851. case $ac_file in
  2852. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2853. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2854. break;;
  2855. esac
  2856. done
  2857. else
  2858. $as_echo "$as_me: failed program was:" >&5
  2859. sed 's/^/| /' conftest.$ac_ext >&5
  2860. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2861. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2862. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2863. See \`config.log' for more details" "$LINENO" 5; }
  2864. fi
  2865. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2866. fi
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2868. $as_echo "$ac_cv_objext" >&6; }
  2869. OBJEXT=$ac_cv_objext
  2870. ac_objext=$OBJEXT
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2872. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2873. if ${ac_cv_c_compiler_gnu+:} false; then :
  2874. $as_echo_n "(cached) " >&6
  2875. else
  2876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2877. /* end confdefs.h. */
  2878. int
  2879. main ()
  2880. {
  2881. #ifndef __GNUC__
  2882. choke me
  2883. #endif
  2884. ;
  2885. return 0;
  2886. }
  2887. _ACEOF
  2888. if ac_fn_c_try_compile "$LINENO"; then :
  2889. ac_compiler_gnu=yes
  2890. else
  2891. ac_compiler_gnu=no
  2892. fi
  2893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2894. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2895. fi
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2897. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2898. if test $ac_compiler_gnu = yes; then
  2899. GCC=yes
  2900. else
  2901. GCC=
  2902. fi
  2903. ac_test_CFLAGS=${CFLAGS+set}
  2904. ac_save_CFLAGS=$CFLAGS
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2906. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2907. if ${ac_cv_prog_cc_g+:} false; then :
  2908. $as_echo_n "(cached) " >&6
  2909. else
  2910. ac_save_c_werror_flag=$ac_c_werror_flag
  2911. ac_c_werror_flag=yes
  2912. ac_cv_prog_cc_g=no
  2913. CFLAGS="-g"
  2914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2915. /* end confdefs.h. */
  2916. int
  2917. main ()
  2918. {
  2919. ;
  2920. return 0;
  2921. }
  2922. _ACEOF
  2923. if ac_fn_c_try_compile "$LINENO"; then :
  2924. ac_cv_prog_cc_g=yes
  2925. else
  2926. CFLAGS=""
  2927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2928. /* end confdefs.h. */
  2929. int
  2930. main ()
  2931. {
  2932. ;
  2933. return 0;
  2934. }
  2935. _ACEOF
  2936. if ac_fn_c_try_compile "$LINENO"; then :
  2937. else
  2938. ac_c_werror_flag=$ac_save_c_werror_flag
  2939. CFLAGS="-g"
  2940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2941. /* end confdefs.h. */
  2942. int
  2943. main ()
  2944. {
  2945. ;
  2946. return 0;
  2947. }
  2948. _ACEOF
  2949. if ac_fn_c_try_compile "$LINENO"; then :
  2950. ac_cv_prog_cc_g=yes
  2951. fi
  2952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2953. fi
  2954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2955. fi
  2956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2957. ac_c_werror_flag=$ac_save_c_werror_flag
  2958. fi
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2960. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2961. if test "$ac_test_CFLAGS" = set; then
  2962. CFLAGS=$ac_save_CFLAGS
  2963. elif test $ac_cv_prog_cc_g = yes; then
  2964. if test "$GCC" = yes; then
  2965. CFLAGS="-g -O2"
  2966. else
  2967. CFLAGS="-g"
  2968. fi
  2969. else
  2970. if test "$GCC" = yes; then
  2971. CFLAGS="-O2"
  2972. else
  2973. CFLAGS=
  2974. fi
  2975. fi
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2977. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2978. if ${ac_cv_prog_cc_c89+:} false; then :
  2979. $as_echo_n "(cached) " >&6
  2980. else
  2981. ac_cv_prog_cc_c89=no
  2982. ac_save_CC=$CC
  2983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2984. /* end confdefs.h. */
  2985. #include <stdarg.h>
  2986. #include <stdio.h>
  2987. #include <sys/types.h>
  2988. #include <sys/stat.h>
  2989. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2990. struct buf { int x; };
  2991. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2992. static char *e (p, i)
  2993. char **p;
  2994. int i;
  2995. {
  2996. return p[i];
  2997. }
  2998. static char *f (char * (*g) (char **, int), char **p, ...)
  2999. {
  3000. char *s;
  3001. va_list v;
  3002. va_start (v,p);
  3003. s = g (p, va_arg (v,int));
  3004. va_end (v);
  3005. return s;
  3006. }
  3007. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3008. function prototypes and stuff, but not '\xHH' hex character constants.
  3009. These don't provoke an error unfortunately, instead are silently treated
  3010. as 'x'. The following induces an error, until -std is added to get
  3011. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3012. array size at least. It's necessary to write '\x00'==0 to get something
  3013. that's true only with -std. */
  3014. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3015. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3016. inside strings and character constants. */
  3017. #define FOO(x) 'x'
  3018. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3019. int test (int i, double x);
  3020. struct s1 {int (*f) (int a);};
  3021. struct s2 {int (*f) (double a);};
  3022. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3023. int argc;
  3024. char **argv;
  3025. int
  3026. main ()
  3027. {
  3028. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3029. ;
  3030. return 0;
  3031. }
  3032. _ACEOF
  3033. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3034. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3035. do
  3036. CC="$ac_save_CC $ac_arg"
  3037. if ac_fn_c_try_compile "$LINENO"; then :
  3038. ac_cv_prog_cc_c89=$ac_arg
  3039. fi
  3040. rm -f core conftest.err conftest.$ac_objext
  3041. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3042. done
  3043. rm -f conftest.$ac_ext
  3044. CC=$ac_save_CC
  3045. fi
  3046. # AC_CACHE_VAL
  3047. case "x$ac_cv_prog_cc_c89" in
  3048. x)
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3050. $as_echo "none needed" >&6; } ;;
  3051. xno)
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3053. $as_echo "unsupported" >&6; } ;;
  3054. *)
  3055. CC="$CC $ac_cv_prog_cc_c89"
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3057. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3058. esac
  3059. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3060. fi
  3061. ac_ext=c
  3062. ac_cpp='$CPP $CPPFLAGS'
  3063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3066. ac_ext=c
  3067. ac_cpp='$CPP $CPPFLAGS'
  3068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3072. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3073. # On Suns, sometimes $CPP names a directory.
  3074. if test -n "$CPP" && test -d "$CPP"; then
  3075. CPP=
  3076. fi
  3077. if test -z "$CPP"; then
  3078. if ${ac_cv_prog_CPP+:} false; then :
  3079. $as_echo_n "(cached) " >&6
  3080. else
  3081. # Double quotes because CPP needs to be expanded
  3082. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3083. do
  3084. ac_preproc_ok=false
  3085. for ac_c_preproc_warn_flag in '' yes
  3086. do
  3087. # Use a header file that comes with gcc, so configuring glibc
  3088. # with a fresh cross-compiler works.
  3089. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3090. # <limits.h> exists even on freestanding compilers.
  3091. # On the NeXT, cc -E runs the code through the compiler's parser,
  3092. # not just through cpp. "Syntax error" is here to catch this case.
  3093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3094. /* end confdefs.h. */
  3095. #ifdef __STDC__
  3096. # include <limits.h>
  3097. #else
  3098. # include <assert.h>
  3099. #endif
  3100. Syntax error
  3101. _ACEOF
  3102. if ac_fn_c_try_cpp "$LINENO"; then :
  3103. else
  3104. # Broken: fails on valid input.
  3105. continue
  3106. fi
  3107. rm -f conftest.err conftest.i conftest.$ac_ext
  3108. # OK, works on sane cases. Now check whether nonexistent headers
  3109. # can be detected and how.
  3110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3111. /* end confdefs.h. */
  3112. #include <ac_nonexistent.h>
  3113. _ACEOF
  3114. if ac_fn_c_try_cpp "$LINENO"; then :
  3115. # Broken: success on invalid input.
  3116. continue
  3117. else
  3118. # Passes both tests.
  3119. ac_preproc_ok=:
  3120. break
  3121. fi
  3122. rm -f conftest.err conftest.i conftest.$ac_ext
  3123. done
  3124. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3125. rm -f conftest.i conftest.err conftest.$ac_ext
  3126. if $ac_preproc_ok; then :
  3127. break
  3128. fi
  3129. done
  3130. ac_cv_prog_CPP=$CPP
  3131. fi
  3132. CPP=$ac_cv_prog_CPP
  3133. else
  3134. ac_cv_prog_CPP=$CPP
  3135. fi
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3137. $as_echo "$CPP" >&6; }
  3138. ac_preproc_ok=false
  3139. for ac_c_preproc_warn_flag in '' yes
  3140. do
  3141. # Use a header file that comes with gcc, so configuring glibc
  3142. # with a fresh cross-compiler works.
  3143. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3144. # <limits.h> exists even on freestanding compilers.
  3145. # On the NeXT, cc -E runs the code through the compiler's parser,
  3146. # not just through cpp. "Syntax error" is here to catch this case.
  3147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end confdefs.h. */
  3149. #ifdef __STDC__
  3150. # include <limits.h>
  3151. #else
  3152. # include <assert.h>
  3153. #endif
  3154. Syntax error
  3155. _ACEOF
  3156. if ac_fn_c_try_cpp "$LINENO"; then :
  3157. else
  3158. # Broken: fails on valid input.
  3159. continue
  3160. fi
  3161. rm -f conftest.err conftest.i conftest.$ac_ext
  3162. # OK, works on sane cases. Now check whether nonexistent headers
  3163. # can be detected and how.
  3164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3165. /* end confdefs.h. */
  3166. #include <ac_nonexistent.h>
  3167. _ACEOF
  3168. if ac_fn_c_try_cpp "$LINENO"; then :
  3169. # Broken: success on invalid input.
  3170. continue
  3171. else
  3172. # Passes both tests.
  3173. ac_preproc_ok=:
  3174. break
  3175. fi
  3176. rm -f conftest.err conftest.i conftest.$ac_ext
  3177. done
  3178. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3179. rm -f conftest.i conftest.err conftest.$ac_ext
  3180. if $ac_preproc_ok; then :
  3181. else
  3182. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3183. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3184. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3185. See \`config.log' for more details" "$LINENO" 5; }
  3186. fi
  3187. ac_ext=c
  3188. ac_cpp='$CPP $CPPFLAGS'
  3189. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3190. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3191. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3193. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3194. if ${ac_cv_path_GREP+:} false; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. if test -z "$GREP"; then
  3198. ac_path_GREP_found=false
  3199. # Loop through the user's path and test for each of PROGNAME-LIST
  3200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3201. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3202. do
  3203. IFS=$as_save_IFS
  3204. test -z "$as_dir" && as_dir=.
  3205. for ac_prog in grep ggrep; do
  3206. for ac_exec_ext in '' $ac_executable_extensions; do
  3207. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3208. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3209. # Check for GNU ac_path_GREP and select it if it is found.
  3210. # Check for GNU $ac_path_GREP
  3211. case `"$ac_path_GREP" --version 2>&1` in
  3212. *GNU*)
  3213. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3214. *)
  3215. ac_count=0
  3216. $as_echo_n 0123456789 >"conftest.in"
  3217. while :
  3218. do
  3219. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3220. mv "conftest.tmp" "conftest.in"
  3221. cp "conftest.in" "conftest.nl"
  3222. $as_echo 'GREP' >> "conftest.nl"
  3223. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3224. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3225. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3226. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3227. # Best one so far, save it but keep looking for a better one
  3228. ac_cv_path_GREP="$ac_path_GREP"
  3229. ac_path_GREP_max=$ac_count
  3230. fi
  3231. # 10*(2^10) chars as input seems more than enough
  3232. test $ac_count -gt 10 && break
  3233. done
  3234. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3235. esac
  3236. $ac_path_GREP_found && break 3
  3237. done
  3238. done
  3239. done
  3240. IFS=$as_save_IFS
  3241. if test -z "$ac_cv_path_GREP"; then
  3242. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3243. fi
  3244. else
  3245. ac_cv_path_GREP=$GREP
  3246. fi
  3247. fi
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3249. $as_echo "$ac_cv_path_GREP" >&6; }
  3250. GREP="$ac_cv_path_GREP"
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3252. $as_echo_n "checking for egrep... " >&6; }
  3253. if ${ac_cv_path_EGREP+:} false; then :
  3254. $as_echo_n "(cached) " >&6
  3255. else
  3256. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3257. then ac_cv_path_EGREP="$GREP -E"
  3258. else
  3259. if test -z "$EGREP"; then
  3260. ac_path_EGREP_found=false
  3261. # Loop through the user's path and test for each of PROGNAME-LIST
  3262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3263. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3264. do
  3265. IFS=$as_save_IFS
  3266. test -z "$as_dir" && as_dir=.
  3267. for ac_prog in egrep; do
  3268. for ac_exec_ext in '' $ac_executable_extensions; do
  3269. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3270. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3271. # Check for GNU ac_path_EGREP and select it if it is found.
  3272. # Check for GNU $ac_path_EGREP
  3273. case `"$ac_path_EGREP" --version 2>&1` in
  3274. *GNU*)
  3275. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3276. *)
  3277. ac_count=0
  3278. $as_echo_n 0123456789 >"conftest.in"
  3279. while :
  3280. do
  3281. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3282. mv "conftest.tmp" "conftest.in"
  3283. cp "conftest.in" "conftest.nl"
  3284. $as_echo 'EGREP' >> "conftest.nl"
  3285. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3286. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3287. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3288. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3289. # Best one so far, save it but keep looking for a better one
  3290. ac_cv_path_EGREP="$ac_path_EGREP"
  3291. ac_path_EGREP_max=$ac_count
  3292. fi
  3293. # 10*(2^10) chars as input seems more than enough
  3294. test $ac_count -gt 10 && break
  3295. done
  3296. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3297. esac
  3298. $ac_path_EGREP_found && break 3
  3299. done
  3300. done
  3301. done
  3302. IFS=$as_save_IFS
  3303. if test -z "$ac_cv_path_EGREP"; then
  3304. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3305. fi
  3306. else
  3307. ac_cv_path_EGREP=$EGREP
  3308. fi
  3309. fi
  3310. fi
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3312. $as_echo "$ac_cv_path_EGREP" >&6; }
  3313. EGREP="$ac_cv_path_EGREP"
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3315. $as_echo_n "checking for ANSI C header files... " >&6; }
  3316. if ${ac_cv_header_stdc+:} false; then :
  3317. $as_echo_n "(cached) " >&6
  3318. else
  3319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3320. /* end confdefs.h. */
  3321. #include <stdlib.h>
  3322. #include <stdarg.h>
  3323. #include <string.h>
  3324. #include <float.h>
  3325. int
  3326. main ()
  3327. {
  3328. ;
  3329. return 0;
  3330. }
  3331. _ACEOF
  3332. if ac_fn_c_try_compile "$LINENO"; then :
  3333. ac_cv_header_stdc=yes
  3334. else
  3335. ac_cv_header_stdc=no
  3336. fi
  3337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3338. if test $ac_cv_header_stdc = yes; then
  3339. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. #include <string.h>
  3343. _ACEOF
  3344. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3345. $EGREP "memchr" >/dev/null 2>&1; then :
  3346. else
  3347. ac_cv_header_stdc=no
  3348. fi
  3349. rm -f conftest*
  3350. fi
  3351. if test $ac_cv_header_stdc = yes; then
  3352. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3354. /* end confdefs.h. */
  3355. #include <stdlib.h>
  3356. _ACEOF
  3357. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3358. $EGREP "free" >/dev/null 2>&1; then :
  3359. else
  3360. ac_cv_header_stdc=no
  3361. fi
  3362. rm -f conftest*
  3363. fi
  3364. if test $ac_cv_header_stdc = yes; then
  3365. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3366. if test "$cross_compiling" = yes; then :
  3367. :
  3368. else
  3369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3370. /* end confdefs.h. */
  3371. #include <ctype.h>
  3372. #include <stdlib.h>
  3373. #if ((' ' & 0x0FF) == 0x020)
  3374. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3375. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3376. #else
  3377. # define ISLOWER(c) \
  3378. (('a' <= (c) && (c) <= 'i') \
  3379. || ('j' <= (c) && (c) <= 'r') \
  3380. || ('s' <= (c) && (c) <= 'z'))
  3381. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3382. #endif
  3383. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3384. int
  3385. main ()
  3386. {
  3387. int i;
  3388. for (i = 0; i < 256; i++)
  3389. if (XOR (islower (i), ISLOWER (i))
  3390. || toupper (i) != TOUPPER (i))
  3391. return 2;
  3392. return 0;
  3393. }
  3394. _ACEOF
  3395. if ac_fn_c_try_run "$LINENO"; then :
  3396. else
  3397. ac_cv_header_stdc=no
  3398. fi
  3399. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3400. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3401. fi
  3402. fi
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3405. $as_echo "$ac_cv_header_stdc" >&6; }
  3406. if test $ac_cv_header_stdc = yes; then
  3407. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3408. fi
  3409. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3410. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3411. inttypes.h stdint.h unistd.h
  3412. do :
  3413. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3414. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3415. "
  3416. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3417. cat >>confdefs.h <<_ACEOF
  3418. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3419. _ACEOF
  3420. fi
  3421. done
  3422. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3423. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3424. MINIX=yes
  3425. else
  3426. MINIX=
  3427. fi
  3428. if test "$MINIX" = yes; then
  3429. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3430. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3431. $as_echo "#define _MINIX 1" >>confdefs.h
  3432. fi
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3434. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3435. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3436. $as_echo_n "(cached) " >&6
  3437. else
  3438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3439. /* end confdefs.h. */
  3440. # define __EXTENSIONS__ 1
  3441. $ac_includes_default
  3442. int
  3443. main ()
  3444. {
  3445. ;
  3446. return 0;
  3447. }
  3448. _ACEOF
  3449. if ac_fn_c_try_compile "$LINENO"; then :
  3450. ac_cv_safe_to_define___extensions__=yes
  3451. else
  3452. ac_cv_safe_to_define___extensions__=no
  3453. fi
  3454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3455. fi
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3457. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3458. test $ac_cv_safe_to_define___extensions__ = yes &&
  3459. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3460. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3461. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3462. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3463. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3464. # Checks for programs.
  3465. ac_ext=c
  3466. ac_cpp='$CPP $CPPFLAGS'
  3467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3470. if test -n "$ac_tool_prefix"; then
  3471. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3472. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3474. $as_echo_n "checking for $ac_word... " >&6; }
  3475. if ${ac_cv_prog_CC+:} false; then :
  3476. $as_echo_n "(cached) " >&6
  3477. else
  3478. if test -n "$CC"; then
  3479. ac_cv_prog_CC="$CC" # Let the user override the test.
  3480. else
  3481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3482. for as_dir in $PATH
  3483. do
  3484. IFS=$as_save_IFS
  3485. test -z "$as_dir" && as_dir=.
  3486. for ac_exec_ext in '' $ac_executable_extensions; do
  3487. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3488. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3490. break 2
  3491. fi
  3492. done
  3493. done
  3494. IFS=$as_save_IFS
  3495. fi
  3496. fi
  3497. CC=$ac_cv_prog_CC
  3498. if test -n "$CC"; then
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3500. $as_echo "$CC" >&6; }
  3501. else
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3503. $as_echo "no" >&6; }
  3504. fi
  3505. fi
  3506. if test -z "$ac_cv_prog_CC"; then
  3507. ac_ct_CC=$CC
  3508. # Extract the first word of "gcc", so it can be a program name with args.
  3509. set dummy gcc; ac_word=$2
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3511. $as_echo_n "checking for $ac_word... " >&6; }
  3512. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3513. $as_echo_n "(cached) " >&6
  3514. else
  3515. if test -n "$ac_ct_CC"; then
  3516. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3517. else
  3518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3519. for as_dir in $PATH
  3520. do
  3521. IFS=$as_save_IFS
  3522. test -z "$as_dir" && as_dir=.
  3523. for ac_exec_ext in '' $ac_executable_extensions; do
  3524. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3525. ac_cv_prog_ac_ct_CC="gcc"
  3526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3527. break 2
  3528. fi
  3529. done
  3530. done
  3531. IFS=$as_save_IFS
  3532. fi
  3533. fi
  3534. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3535. if test -n "$ac_ct_CC"; then
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3537. $as_echo "$ac_ct_CC" >&6; }
  3538. else
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3540. $as_echo "no" >&6; }
  3541. fi
  3542. if test "x$ac_ct_CC" = x; then
  3543. CC=""
  3544. else
  3545. case $cross_compiling:$ac_tool_warned in
  3546. yes:)
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3548. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3549. ac_tool_warned=yes ;;
  3550. esac
  3551. CC=$ac_ct_CC
  3552. fi
  3553. else
  3554. CC="$ac_cv_prog_CC"
  3555. fi
  3556. if test -z "$CC"; then
  3557. if test -n "$ac_tool_prefix"; then
  3558. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3559. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3561. $as_echo_n "checking for $ac_word... " >&6; }
  3562. if ${ac_cv_prog_CC+:} false; then :
  3563. $as_echo_n "(cached) " >&6
  3564. else
  3565. if test -n "$CC"; then
  3566. ac_cv_prog_CC="$CC" # Let the user override the test.
  3567. else
  3568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3569. for as_dir in $PATH
  3570. do
  3571. IFS=$as_save_IFS
  3572. test -z "$as_dir" && as_dir=.
  3573. for ac_exec_ext in '' $ac_executable_extensions; do
  3574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3575. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3577. break 2
  3578. fi
  3579. done
  3580. done
  3581. IFS=$as_save_IFS
  3582. fi
  3583. fi
  3584. CC=$ac_cv_prog_CC
  3585. if test -n "$CC"; then
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3587. $as_echo "$CC" >&6; }
  3588. else
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3590. $as_echo "no" >&6; }
  3591. fi
  3592. fi
  3593. fi
  3594. if test -z "$CC"; then
  3595. # Extract the first word of "cc", so it can be a program name with args.
  3596. set dummy cc; ac_word=$2
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3598. $as_echo_n "checking for $ac_word... " >&6; }
  3599. if ${ac_cv_prog_CC+:} false; then :
  3600. $as_echo_n "(cached) " >&6
  3601. else
  3602. if test -n "$CC"; then
  3603. ac_cv_prog_CC="$CC" # Let the user override the test.
  3604. else
  3605. ac_prog_rejected=no
  3606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3607. for as_dir in $PATH
  3608. do
  3609. IFS=$as_save_IFS
  3610. test -z "$as_dir" && as_dir=.
  3611. for ac_exec_ext in '' $ac_executable_extensions; do
  3612. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3613. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3614. ac_prog_rejected=yes
  3615. continue
  3616. fi
  3617. ac_cv_prog_CC="cc"
  3618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3619. break 2
  3620. fi
  3621. done
  3622. done
  3623. IFS=$as_save_IFS
  3624. if test $ac_prog_rejected = yes; then
  3625. # We found a bogon in the path, so make sure we never use it.
  3626. set dummy $ac_cv_prog_CC
  3627. shift
  3628. if test $# != 0; then
  3629. # We chose a different compiler from the bogus one.
  3630. # However, it has the same basename, so the bogon will be chosen
  3631. # first if we set CC to just the basename; use the full file name.
  3632. shift
  3633. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3634. fi
  3635. fi
  3636. fi
  3637. fi
  3638. CC=$ac_cv_prog_CC
  3639. if test -n "$CC"; then
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3641. $as_echo "$CC" >&6; }
  3642. else
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3644. $as_echo "no" >&6; }
  3645. fi
  3646. fi
  3647. if test -z "$CC"; then
  3648. if test -n "$ac_tool_prefix"; then
  3649. for ac_prog in cl.exe
  3650. do
  3651. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3652. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3654. $as_echo_n "checking for $ac_word... " >&6; }
  3655. if ${ac_cv_prog_CC+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. if test -n "$CC"; then
  3659. ac_cv_prog_CC="$CC" # Let the user override the test.
  3660. else
  3661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3662. for as_dir in $PATH
  3663. do
  3664. IFS=$as_save_IFS
  3665. test -z "$as_dir" && as_dir=.
  3666. for ac_exec_ext in '' $ac_executable_extensions; do
  3667. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3668. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3670. break 2
  3671. fi
  3672. done
  3673. done
  3674. IFS=$as_save_IFS
  3675. fi
  3676. fi
  3677. CC=$ac_cv_prog_CC
  3678. if test -n "$CC"; then
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3680. $as_echo "$CC" >&6; }
  3681. else
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3683. $as_echo "no" >&6; }
  3684. fi
  3685. test -n "$CC" && break
  3686. done
  3687. fi
  3688. if test -z "$CC"; then
  3689. ac_ct_CC=$CC
  3690. for ac_prog in cl.exe
  3691. do
  3692. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3693. set dummy $ac_prog; ac_word=$2
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3695. $as_echo_n "checking for $ac_word... " >&6; }
  3696. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3697. $as_echo_n "(cached) " >&6
  3698. else
  3699. if test -n "$ac_ct_CC"; then
  3700. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3701. else
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. test -z "$as_dir" && as_dir=.
  3707. for ac_exec_ext in '' $ac_executable_extensions; do
  3708. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3709. ac_cv_prog_ac_ct_CC="$ac_prog"
  3710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3711. break 2
  3712. fi
  3713. done
  3714. done
  3715. IFS=$as_save_IFS
  3716. fi
  3717. fi
  3718. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3719. if test -n "$ac_ct_CC"; then
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3721. $as_echo "$ac_ct_CC" >&6; }
  3722. else
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3724. $as_echo "no" >&6; }
  3725. fi
  3726. test -n "$ac_ct_CC" && break
  3727. done
  3728. if test "x$ac_ct_CC" = x; then
  3729. CC=""
  3730. else
  3731. case $cross_compiling:$ac_tool_warned in
  3732. yes:)
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3734. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3735. ac_tool_warned=yes ;;
  3736. esac
  3737. CC=$ac_ct_CC
  3738. fi
  3739. fi
  3740. fi
  3741. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3742. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3743. as_fn_error $? "no acceptable C compiler found in \$PATH
  3744. See \`config.log' for more details" "$LINENO" 5; }
  3745. # Provide some information about the compiler.
  3746. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3747. set X $ac_compile
  3748. ac_compiler=$2
  3749. for ac_option in --version -v -V -qversion; do
  3750. { { ac_try="$ac_compiler $ac_option >&5"
  3751. case "(($ac_try" in
  3752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3753. *) ac_try_echo=$ac_try;;
  3754. esac
  3755. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3756. $as_echo "$ac_try_echo"; } >&5
  3757. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3758. ac_status=$?
  3759. if test -s conftest.err; then
  3760. sed '10a\
  3761. ... rest of stderr output deleted ...
  3762. 10q' conftest.err >conftest.er1
  3763. cat conftest.er1 >&5
  3764. fi
  3765. rm -f conftest.er1 conftest.err
  3766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3767. test $ac_status = 0; }
  3768. done
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3770. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3771. if ${ac_cv_c_compiler_gnu+:} false; then :
  3772. $as_echo_n "(cached) " >&6
  3773. else
  3774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3775. /* end confdefs.h. */
  3776. int
  3777. main ()
  3778. {
  3779. #ifndef __GNUC__
  3780. choke me
  3781. #endif
  3782. ;
  3783. return 0;
  3784. }
  3785. _ACEOF
  3786. if ac_fn_c_try_compile "$LINENO"; then :
  3787. ac_compiler_gnu=yes
  3788. else
  3789. ac_compiler_gnu=no
  3790. fi
  3791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3792. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3793. fi
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3795. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3796. if test $ac_compiler_gnu = yes; then
  3797. GCC=yes
  3798. else
  3799. GCC=
  3800. fi
  3801. ac_test_CFLAGS=${CFLAGS+set}
  3802. ac_save_CFLAGS=$CFLAGS
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3804. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3805. if ${ac_cv_prog_cc_g+:} false; then :
  3806. $as_echo_n "(cached) " >&6
  3807. else
  3808. ac_save_c_werror_flag=$ac_c_werror_flag
  3809. ac_c_werror_flag=yes
  3810. ac_cv_prog_cc_g=no
  3811. CFLAGS="-g"
  3812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3813. /* end confdefs.h. */
  3814. int
  3815. main ()
  3816. {
  3817. ;
  3818. return 0;
  3819. }
  3820. _ACEOF
  3821. if ac_fn_c_try_compile "$LINENO"; then :
  3822. ac_cv_prog_cc_g=yes
  3823. else
  3824. CFLAGS=""
  3825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3826. /* end confdefs.h. */
  3827. int
  3828. main ()
  3829. {
  3830. ;
  3831. return 0;
  3832. }
  3833. _ACEOF
  3834. if ac_fn_c_try_compile "$LINENO"; then :
  3835. else
  3836. ac_c_werror_flag=$ac_save_c_werror_flag
  3837. CFLAGS="-g"
  3838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3839. /* end confdefs.h. */
  3840. int
  3841. main ()
  3842. {
  3843. ;
  3844. return 0;
  3845. }
  3846. _ACEOF
  3847. if ac_fn_c_try_compile "$LINENO"; then :
  3848. ac_cv_prog_cc_g=yes
  3849. fi
  3850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3851. fi
  3852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3853. fi
  3854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3855. ac_c_werror_flag=$ac_save_c_werror_flag
  3856. fi
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3858. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3859. if test "$ac_test_CFLAGS" = set; then
  3860. CFLAGS=$ac_save_CFLAGS
  3861. elif test $ac_cv_prog_cc_g = yes; then
  3862. if test "$GCC" = yes; then
  3863. CFLAGS="-g -O2"
  3864. else
  3865. CFLAGS="-g"
  3866. fi
  3867. else
  3868. if test "$GCC" = yes; then
  3869. CFLAGS="-O2"
  3870. else
  3871. CFLAGS=
  3872. fi
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3875. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3876. if ${ac_cv_prog_cc_c89+:} false; then :
  3877. $as_echo_n "(cached) " >&6
  3878. else
  3879. ac_cv_prog_cc_c89=no
  3880. ac_save_CC=$CC
  3881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3882. /* end confdefs.h. */
  3883. #include <stdarg.h>
  3884. #include <stdio.h>
  3885. #include <sys/types.h>
  3886. #include <sys/stat.h>
  3887. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3888. struct buf { int x; };
  3889. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3890. static char *e (p, i)
  3891. char **p;
  3892. int i;
  3893. {
  3894. return p[i];
  3895. }
  3896. static char *f (char * (*g) (char **, int), char **p, ...)
  3897. {
  3898. char *s;
  3899. va_list v;
  3900. va_start (v,p);
  3901. s = g (p, va_arg (v,int));
  3902. va_end (v);
  3903. return s;
  3904. }
  3905. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3906. function prototypes and stuff, but not '\xHH' hex character constants.
  3907. These don't provoke an error unfortunately, instead are silently treated
  3908. as 'x'. The following induces an error, until -std is added to get
  3909. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3910. array size at least. It's necessary to write '\x00'==0 to get something
  3911. that's true only with -std. */
  3912. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3913. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3914. inside strings and character constants. */
  3915. #define FOO(x) 'x'
  3916. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3917. int test (int i, double x);
  3918. struct s1 {int (*f) (int a);};
  3919. struct s2 {int (*f) (double a);};
  3920. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3921. int argc;
  3922. char **argv;
  3923. int
  3924. main ()
  3925. {
  3926. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3927. ;
  3928. return 0;
  3929. }
  3930. _ACEOF
  3931. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3932. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3933. do
  3934. CC="$ac_save_CC $ac_arg"
  3935. if ac_fn_c_try_compile "$LINENO"; then :
  3936. ac_cv_prog_cc_c89=$ac_arg
  3937. fi
  3938. rm -f core conftest.err conftest.$ac_objext
  3939. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3940. done
  3941. rm -f conftest.$ac_ext
  3942. CC=$ac_save_CC
  3943. fi
  3944. # AC_CACHE_VAL
  3945. case "x$ac_cv_prog_cc_c89" in
  3946. x)
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3948. $as_echo "none needed" >&6; } ;;
  3949. xno)
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3951. $as_echo "unsupported" >&6; } ;;
  3952. *)
  3953. CC="$CC $ac_cv_prog_cc_c89"
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3955. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3956. esac
  3957. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3958. fi
  3959. ac_ext=c
  3960. ac_cpp='$CPP $CPPFLAGS'
  3961. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3962. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3963. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3964. ac_ext=cpp
  3965. ac_cpp='$CXXCPP $CPPFLAGS'
  3966. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3967. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3968. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3969. if test -z "$CXX"; then
  3970. if test -n "$CCC"; then
  3971. CXX=$CCC
  3972. else
  3973. if test -n "$ac_tool_prefix"; then
  3974. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3975. do
  3976. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3977. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3979. $as_echo_n "checking for $ac_word... " >&6; }
  3980. if ${ac_cv_prog_CXX+:} false; then :
  3981. $as_echo_n "(cached) " >&6
  3982. else
  3983. if test -n "$CXX"; then
  3984. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3985. else
  3986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3987. for as_dir in $PATH
  3988. do
  3989. IFS=$as_save_IFS
  3990. test -z "$as_dir" && as_dir=.
  3991. for ac_exec_ext in '' $ac_executable_extensions; do
  3992. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3993. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3995. break 2
  3996. fi
  3997. done
  3998. done
  3999. IFS=$as_save_IFS
  4000. fi
  4001. fi
  4002. CXX=$ac_cv_prog_CXX
  4003. if test -n "$CXX"; then
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4005. $as_echo "$CXX" >&6; }
  4006. else
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4008. $as_echo "no" >&6; }
  4009. fi
  4010. test -n "$CXX" && break
  4011. done
  4012. fi
  4013. if test -z "$CXX"; then
  4014. ac_ct_CXX=$CXX
  4015. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4016. do
  4017. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4018. set dummy $ac_prog; ac_word=$2
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4020. $as_echo_n "checking for $ac_word... " >&6; }
  4021. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4022. $as_echo_n "(cached) " >&6
  4023. else
  4024. if test -n "$ac_ct_CXX"; then
  4025. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4026. else
  4027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4028. for as_dir in $PATH
  4029. do
  4030. IFS=$as_save_IFS
  4031. test -z "$as_dir" && as_dir=.
  4032. for ac_exec_ext in '' $ac_executable_extensions; do
  4033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4034. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4036. break 2
  4037. fi
  4038. done
  4039. done
  4040. IFS=$as_save_IFS
  4041. fi
  4042. fi
  4043. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4044. if test -n "$ac_ct_CXX"; then
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4046. $as_echo "$ac_ct_CXX" >&6; }
  4047. else
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4049. $as_echo "no" >&6; }
  4050. fi
  4051. test -n "$ac_ct_CXX" && break
  4052. done
  4053. if test "x$ac_ct_CXX" = x; then
  4054. CXX="g++"
  4055. else
  4056. case $cross_compiling:$ac_tool_warned in
  4057. yes:)
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4059. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4060. ac_tool_warned=yes ;;
  4061. esac
  4062. CXX=$ac_ct_CXX
  4063. fi
  4064. fi
  4065. fi
  4066. fi
  4067. # Provide some information about the compiler.
  4068. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4069. set X $ac_compile
  4070. ac_compiler=$2
  4071. for ac_option in --version -v -V -qversion; do
  4072. { { ac_try="$ac_compiler $ac_option >&5"
  4073. case "(($ac_try" in
  4074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4075. *) ac_try_echo=$ac_try;;
  4076. esac
  4077. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4078. $as_echo "$ac_try_echo"; } >&5
  4079. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4080. ac_status=$?
  4081. if test -s conftest.err; then
  4082. sed '10a\
  4083. ... rest of stderr output deleted ...
  4084. 10q' conftest.err >conftest.er1
  4085. cat conftest.er1 >&5
  4086. fi
  4087. rm -f conftest.er1 conftest.err
  4088. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4089. test $ac_status = 0; }
  4090. done
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4092. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4093. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4094. $as_echo_n "(cached) " >&6
  4095. else
  4096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4097. /* end confdefs.h. */
  4098. int
  4099. main ()
  4100. {
  4101. #ifndef __GNUC__
  4102. choke me
  4103. #endif
  4104. ;
  4105. return 0;
  4106. }
  4107. _ACEOF
  4108. if ac_fn_cxx_try_compile "$LINENO"; then :
  4109. ac_compiler_gnu=yes
  4110. else
  4111. ac_compiler_gnu=no
  4112. fi
  4113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4114. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4115. fi
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4117. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4118. if test $ac_compiler_gnu = yes; then
  4119. GXX=yes
  4120. else
  4121. GXX=
  4122. fi
  4123. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4124. ac_save_CXXFLAGS=$CXXFLAGS
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4126. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4127. if ${ac_cv_prog_cxx_g+:} false; then :
  4128. $as_echo_n "(cached) " >&6
  4129. else
  4130. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4131. ac_cxx_werror_flag=yes
  4132. ac_cv_prog_cxx_g=no
  4133. CXXFLAGS="-g"
  4134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4135. /* end confdefs.h. */
  4136. int
  4137. main ()
  4138. {
  4139. ;
  4140. return 0;
  4141. }
  4142. _ACEOF
  4143. if ac_fn_cxx_try_compile "$LINENO"; then :
  4144. ac_cv_prog_cxx_g=yes
  4145. else
  4146. CXXFLAGS=""
  4147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4148. /* end confdefs.h. */
  4149. int
  4150. main ()
  4151. {
  4152. ;
  4153. return 0;
  4154. }
  4155. _ACEOF
  4156. if ac_fn_cxx_try_compile "$LINENO"; then :
  4157. else
  4158. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4159. CXXFLAGS="-g"
  4160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4161. /* end confdefs.h. */
  4162. int
  4163. main ()
  4164. {
  4165. ;
  4166. return 0;
  4167. }
  4168. _ACEOF
  4169. if ac_fn_cxx_try_compile "$LINENO"; then :
  4170. ac_cv_prog_cxx_g=yes
  4171. fi
  4172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4173. fi
  4174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4175. fi
  4176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4177. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4178. fi
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4180. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4181. if test "$ac_test_CXXFLAGS" = set; then
  4182. CXXFLAGS=$ac_save_CXXFLAGS
  4183. elif test $ac_cv_prog_cxx_g = yes; then
  4184. if test "$GXX" = yes; then
  4185. CXXFLAGS="-g -O2"
  4186. else
  4187. CXXFLAGS="-g"
  4188. fi
  4189. else
  4190. if test "$GXX" = yes; then
  4191. CXXFLAGS="-O2"
  4192. else
  4193. CXXFLAGS=
  4194. fi
  4195. fi
  4196. ac_ext=c
  4197. ac_cpp='$CPP $CPPFLAGS'
  4198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4201. # Make sure we can run config.sub.
  4202. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4203. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4205. $as_echo_n "checking build system type... " >&6; }
  4206. if ${ac_cv_build+:} false; then :
  4207. $as_echo_n "(cached) " >&6
  4208. else
  4209. ac_build_alias=$build_alias
  4210. test "x$ac_build_alias" = x &&
  4211. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4212. test "x$ac_build_alias" = x &&
  4213. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4214. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4215. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4216. fi
  4217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4218. $as_echo "$ac_cv_build" >&6; }
  4219. case $ac_cv_build in
  4220. *-*-*) ;;
  4221. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4222. esac
  4223. build=$ac_cv_build
  4224. ac_save_IFS=$IFS; IFS='-'
  4225. set x $ac_cv_build
  4226. shift
  4227. build_cpu=$1
  4228. build_vendor=$2
  4229. shift; shift
  4230. # Remember, the first character of IFS is used to create $*,
  4231. # except with old shells:
  4232. build_os=$*
  4233. IFS=$ac_save_IFS
  4234. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4236. $as_echo_n "checking host system type... " >&6; }
  4237. if ${ac_cv_host+:} false; then :
  4238. $as_echo_n "(cached) " >&6
  4239. else
  4240. if test "x$host_alias" = x; then
  4241. ac_cv_host=$ac_cv_build
  4242. else
  4243. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4244. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4245. fi
  4246. fi
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4248. $as_echo "$ac_cv_host" >&6; }
  4249. case $ac_cv_host in
  4250. *-*-*) ;;
  4251. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4252. esac
  4253. host=$ac_cv_host
  4254. ac_save_IFS=$IFS; IFS='-'
  4255. set x $ac_cv_host
  4256. shift
  4257. host_cpu=$1
  4258. host_vendor=$2
  4259. shift; shift
  4260. # Remember, the first character of IFS is used to create $*,
  4261. # except with old shells:
  4262. host_os=$*
  4263. IFS=$ac_save_IFS
  4264. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4265. enable_win32_dll=yes
  4266. case $host in
  4267. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4268. if test -n "$ac_tool_prefix"; then
  4269. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4270. set dummy ${ac_tool_prefix}as; ac_word=$2
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4272. $as_echo_n "checking for $ac_word... " >&6; }
  4273. if ${ac_cv_prog_AS+:} false; then :
  4274. $as_echo_n "(cached) " >&6
  4275. else
  4276. if test -n "$AS"; then
  4277. ac_cv_prog_AS="$AS" # Let the user override the test.
  4278. else
  4279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4280. for as_dir in $PATH
  4281. do
  4282. IFS=$as_save_IFS
  4283. test -z "$as_dir" && as_dir=.
  4284. for ac_exec_ext in '' $ac_executable_extensions; do
  4285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4286. ac_cv_prog_AS="${ac_tool_prefix}as"
  4287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4288. break 2
  4289. fi
  4290. done
  4291. done
  4292. IFS=$as_save_IFS
  4293. fi
  4294. fi
  4295. AS=$ac_cv_prog_AS
  4296. if test -n "$AS"; then
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4298. $as_echo "$AS" >&6; }
  4299. else
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4301. $as_echo "no" >&6; }
  4302. fi
  4303. fi
  4304. if test -z "$ac_cv_prog_AS"; then
  4305. ac_ct_AS=$AS
  4306. # Extract the first word of "as", so it can be a program name with args.
  4307. set dummy as; ac_word=$2
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4309. $as_echo_n "checking for $ac_word... " >&6; }
  4310. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. if test -n "$ac_ct_AS"; then
  4314. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4315. else
  4316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4317. for as_dir in $PATH
  4318. do
  4319. IFS=$as_save_IFS
  4320. test -z "$as_dir" && as_dir=.
  4321. for ac_exec_ext in '' $ac_executable_extensions; do
  4322. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4323. ac_cv_prog_ac_ct_AS="as"
  4324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4325. break 2
  4326. fi
  4327. done
  4328. done
  4329. IFS=$as_save_IFS
  4330. fi
  4331. fi
  4332. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4333. if test -n "$ac_ct_AS"; then
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4335. $as_echo "$ac_ct_AS" >&6; }
  4336. else
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4338. $as_echo "no" >&6; }
  4339. fi
  4340. if test "x$ac_ct_AS" = x; then
  4341. AS="false"
  4342. else
  4343. case $cross_compiling:$ac_tool_warned in
  4344. yes:)
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4347. ac_tool_warned=yes ;;
  4348. esac
  4349. AS=$ac_ct_AS
  4350. fi
  4351. else
  4352. AS="$ac_cv_prog_AS"
  4353. fi
  4354. if test -n "$ac_tool_prefix"; then
  4355. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4356. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4358. $as_echo_n "checking for $ac_word... " >&6; }
  4359. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4360. $as_echo_n "(cached) " >&6
  4361. else
  4362. if test -n "$DLLTOOL"; then
  4363. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4364. else
  4365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4366. for as_dir in $PATH
  4367. do
  4368. IFS=$as_save_IFS
  4369. test -z "$as_dir" && as_dir=.
  4370. for ac_exec_ext in '' $ac_executable_extensions; do
  4371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4372. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4374. break 2
  4375. fi
  4376. done
  4377. done
  4378. IFS=$as_save_IFS
  4379. fi
  4380. fi
  4381. DLLTOOL=$ac_cv_prog_DLLTOOL
  4382. if test -n "$DLLTOOL"; then
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4384. $as_echo "$DLLTOOL" >&6; }
  4385. else
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4387. $as_echo "no" >&6; }
  4388. fi
  4389. fi
  4390. if test -z "$ac_cv_prog_DLLTOOL"; then
  4391. ac_ct_DLLTOOL=$DLLTOOL
  4392. # Extract the first word of "dlltool", so it can be a program name with args.
  4393. set dummy dlltool; ac_word=$2
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4395. $as_echo_n "checking for $ac_word... " >&6; }
  4396. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test -n "$ac_ct_DLLTOOL"; then
  4400. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4401. else
  4402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4403. for as_dir in $PATH
  4404. do
  4405. IFS=$as_save_IFS
  4406. test -z "$as_dir" && as_dir=.
  4407. for ac_exec_ext in '' $ac_executable_extensions; do
  4408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4409. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4411. break 2
  4412. fi
  4413. done
  4414. done
  4415. IFS=$as_save_IFS
  4416. fi
  4417. fi
  4418. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4419. if test -n "$ac_ct_DLLTOOL"; then
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4421. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4422. else
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4424. $as_echo "no" >&6; }
  4425. fi
  4426. if test "x$ac_ct_DLLTOOL" = x; then
  4427. DLLTOOL="false"
  4428. else
  4429. case $cross_compiling:$ac_tool_warned in
  4430. yes:)
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4432. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4433. ac_tool_warned=yes ;;
  4434. esac
  4435. DLLTOOL=$ac_ct_DLLTOOL
  4436. fi
  4437. else
  4438. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4439. fi
  4440. if test -n "$ac_tool_prefix"; then
  4441. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4442. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4444. $as_echo_n "checking for $ac_word... " >&6; }
  4445. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. if test -n "$OBJDUMP"; then
  4449. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4450. else
  4451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4452. for as_dir in $PATH
  4453. do
  4454. IFS=$as_save_IFS
  4455. test -z "$as_dir" && as_dir=.
  4456. for ac_exec_ext in '' $ac_executable_extensions; do
  4457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4458. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4460. break 2
  4461. fi
  4462. done
  4463. done
  4464. IFS=$as_save_IFS
  4465. fi
  4466. fi
  4467. OBJDUMP=$ac_cv_prog_OBJDUMP
  4468. if test -n "$OBJDUMP"; then
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4470. $as_echo "$OBJDUMP" >&6; }
  4471. else
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4473. $as_echo "no" >&6; }
  4474. fi
  4475. fi
  4476. if test -z "$ac_cv_prog_OBJDUMP"; then
  4477. ac_ct_OBJDUMP=$OBJDUMP
  4478. # Extract the first word of "objdump", so it can be a program name with args.
  4479. set dummy objdump; ac_word=$2
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4481. $as_echo_n "checking for $ac_word... " >&6; }
  4482. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. if test -n "$ac_ct_OBJDUMP"; then
  4486. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4487. else
  4488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4489. for as_dir in $PATH
  4490. do
  4491. IFS=$as_save_IFS
  4492. test -z "$as_dir" && as_dir=.
  4493. for ac_exec_ext in '' $ac_executable_extensions; do
  4494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4495. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4497. break 2
  4498. fi
  4499. done
  4500. done
  4501. IFS=$as_save_IFS
  4502. fi
  4503. fi
  4504. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4505. if test -n "$ac_ct_OBJDUMP"; then
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4507. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4508. else
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4510. $as_echo "no" >&6; }
  4511. fi
  4512. if test "x$ac_ct_OBJDUMP" = x; then
  4513. OBJDUMP="false"
  4514. else
  4515. case $cross_compiling:$ac_tool_warned in
  4516. yes:)
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4519. ac_tool_warned=yes ;;
  4520. esac
  4521. OBJDUMP=$ac_ct_OBJDUMP
  4522. fi
  4523. else
  4524. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4525. fi
  4526. ;;
  4527. esac
  4528. test -z "$AS" && AS=as
  4529. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4530. test -z "$OBJDUMP" && OBJDUMP=objdump
  4531. case `pwd` in
  4532. *\ * | *\ *)
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4534. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4535. esac
  4536. macro_version='2.4.2'
  4537. macro_revision='1.3337'
  4538. ltmain="$ac_aux_dir/ltmain.sh"
  4539. # Backslashify metacharacters that are still active within
  4540. # double-quoted strings.
  4541. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4542. # Same as above, but do not quote variable references.
  4543. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4544. # Sed substitution to delay expansion of an escaped shell variable in a
  4545. # double_quote_subst'ed string.
  4546. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4547. # Sed substitution to delay expansion of an escaped single quote.
  4548. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4549. # Sed substitution to avoid accidental globbing in evaled expressions
  4550. no_glob_subst='s/\*/\\\*/g'
  4551. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4552. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4553. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4555. $as_echo_n "checking how to print strings... " >&6; }
  4556. # Test print first, because it will be a builtin if present.
  4557. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4558. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4559. ECHO='print -r --'
  4560. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4561. ECHO='printf %s\n'
  4562. else
  4563. # Use this function as a fallback that always works.
  4564. func_fallback_echo ()
  4565. {
  4566. eval 'cat <<_LTECHO_EOF
  4567. $1
  4568. _LTECHO_EOF'
  4569. }
  4570. ECHO='func_fallback_echo'
  4571. fi
  4572. # func_echo_all arg...
  4573. # Invoke $ECHO with all args, space-separated.
  4574. func_echo_all ()
  4575. {
  4576. $ECHO ""
  4577. }
  4578. case "$ECHO" in
  4579. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4580. $as_echo "printf" >&6; } ;;
  4581. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4582. $as_echo "print -r" >&6; } ;;
  4583. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4584. $as_echo "cat" >&6; } ;;
  4585. esac
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4587. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4588. if ${ac_cv_path_SED+:} false; then :
  4589. $as_echo_n "(cached) " >&6
  4590. else
  4591. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4592. for ac_i in 1 2 3 4 5 6 7; do
  4593. ac_script="$ac_script$as_nl$ac_script"
  4594. done
  4595. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4596. { ac_script=; unset ac_script;}
  4597. if test -z "$SED"; then
  4598. ac_path_SED_found=false
  4599. # Loop through the user's path and test for each of PROGNAME-LIST
  4600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4601. for as_dir in $PATH
  4602. do
  4603. IFS=$as_save_IFS
  4604. test -z "$as_dir" && as_dir=.
  4605. for ac_prog in sed gsed; do
  4606. for ac_exec_ext in '' $ac_executable_extensions; do
  4607. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4608. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4609. # Check for GNU ac_path_SED and select it if it is found.
  4610. # Check for GNU $ac_path_SED
  4611. case `"$ac_path_SED" --version 2>&1` in
  4612. *GNU*)
  4613. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4614. *)
  4615. ac_count=0
  4616. $as_echo_n 0123456789 >"conftest.in"
  4617. while :
  4618. do
  4619. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4620. mv "conftest.tmp" "conftest.in"
  4621. cp "conftest.in" "conftest.nl"
  4622. $as_echo '' >> "conftest.nl"
  4623. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4624. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4625. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4626. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4627. # Best one so far, save it but keep looking for a better one
  4628. ac_cv_path_SED="$ac_path_SED"
  4629. ac_path_SED_max=$ac_count
  4630. fi
  4631. # 10*(2^10) chars as input seems more than enough
  4632. test $ac_count -gt 10 && break
  4633. done
  4634. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4635. esac
  4636. $ac_path_SED_found && break 3
  4637. done
  4638. done
  4639. done
  4640. IFS=$as_save_IFS
  4641. if test -z "$ac_cv_path_SED"; then
  4642. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4643. fi
  4644. else
  4645. ac_cv_path_SED=$SED
  4646. fi
  4647. fi
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4649. $as_echo "$ac_cv_path_SED" >&6; }
  4650. SED="$ac_cv_path_SED"
  4651. rm -f conftest.sed
  4652. test -z "$SED" && SED=sed
  4653. Xsed="$SED -e 1s/^X//"
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4655. $as_echo_n "checking for fgrep... " >&6; }
  4656. if ${ac_cv_path_FGREP+:} false; then :
  4657. $as_echo_n "(cached) " >&6
  4658. else
  4659. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4660. then ac_cv_path_FGREP="$GREP -F"
  4661. else
  4662. if test -z "$FGREP"; then
  4663. ac_path_FGREP_found=false
  4664. # Loop through the user's path and test for each of PROGNAME-LIST
  4665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4666. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4667. do
  4668. IFS=$as_save_IFS
  4669. test -z "$as_dir" && as_dir=.
  4670. for ac_prog in fgrep; do
  4671. for ac_exec_ext in '' $ac_executable_extensions; do
  4672. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4673. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4674. # Check for GNU ac_path_FGREP and select it if it is found.
  4675. # Check for GNU $ac_path_FGREP
  4676. case `"$ac_path_FGREP" --version 2>&1` in
  4677. *GNU*)
  4678. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4679. *)
  4680. ac_count=0
  4681. $as_echo_n 0123456789 >"conftest.in"
  4682. while :
  4683. do
  4684. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4685. mv "conftest.tmp" "conftest.in"
  4686. cp "conftest.in" "conftest.nl"
  4687. $as_echo 'FGREP' >> "conftest.nl"
  4688. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4689. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4690. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4691. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4692. # Best one so far, save it but keep looking for a better one
  4693. ac_cv_path_FGREP="$ac_path_FGREP"
  4694. ac_path_FGREP_max=$ac_count
  4695. fi
  4696. # 10*(2^10) chars as input seems more than enough
  4697. test $ac_count -gt 10 && break
  4698. done
  4699. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4700. esac
  4701. $ac_path_FGREP_found && break 3
  4702. done
  4703. done
  4704. done
  4705. IFS=$as_save_IFS
  4706. if test -z "$ac_cv_path_FGREP"; then
  4707. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4708. fi
  4709. else
  4710. ac_cv_path_FGREP=$FGREP
  4711. fi
  4712. fi
  4713. fi
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4715. $as_echo "$ac_cv_path_FGREP" >&6; }
  4716. FGREP="$ac_cv_path_FGREP"
  4717. test -z "$GREP" && GREP=grep
  4718. # Check whether --with-gnu-ld was given.
  4719. if test "${with_gnu_ld+set}" = set; then :
  4720. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4721. else
  4722. with_gnu_ld=no
  4723. fi
  4724. ac_prog=ld
  4725. if test "$GCC" = yes; then
  4726. # Check if gcc -print-prog-name=ld gives a path.
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4728. $as_echo_n "checking for ld used by $CC... " >&6; }
  4729. case $host in
  4730. *-*-mingw*)
  4731. # gcc leaves a trailing carriage return which upsets mingw
  4732. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4733. *)
  4734. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4735. esac
  4736. case $ac_prog in
  4737. # Accept absolute paths.
  4738. [\\/]* | ?:[\\/]*)
  4739. re_direlt='/[^/][^/]*/\.\./'
  4740. # Canonicalize the pathname of ld
  4741. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4742. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4743. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4744. done
  4745. test -z "$LD" && LD="$ac_prog"
  4746. ;;
  4747. "")
  4748. # If it fails, then pretend we aren't using GCC.
  4749. ac_prog=ld
  4750. ;;
  4751. *)
  4752. # If it is relative, then search for the first ld in PATH.
  4753. with_gnu_ld=unknown
  4754. ;;
  4755. esac
  4756. elif test "$with_gnu_ld" = yes; then
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4758. $as_echo_n "checking for GNU ld... " >&6; }
  4759. else
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4761. $as_echo_n "checking for non-GNU ld... " >&6; }
  4762. fi
  4763. if ${lt_cv_path_LD+:} false; then :
  4764. $as_echo_n "(cached) " >&6
  4765. else
  4766. if test -z "$LD"; then
  4767. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4768. for ac_dir in $PATH; do
  4769. IFS="$lt_save_ifs"
  4770. test -z "$ac_dir" && ac_dir=.
  4771. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4772. lt_cv_path_LD="$ac_dir/$ac_prog"
  4773. # Check to see if the program is GNU ld. I'd rather use --version,
  4774. # but apparently some variants of GNU ld only accept -v.
  4775. # Break only if it was the GNU/non-GNU ld that we prefer.
  4776. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4777. *GNU* | *'with BFD'*)
  4778. test "$with_gnu_ld" != no && break
  4779. ;;
  4780. *)
  4781. test "$with_gnu_ld" != yes && break
  4782. ;;
  4783. esac
  4784. fi
  4785. done
  4786. IFS="$lt_save_ifs"
  4787. else
  4788. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4789. fi
  4790. fi
  4791. LD="$lt_cv_path_LD"
  4792. if test -n "$LD"; then
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4794. $as_echo "$LD" >&6; }
  4795. else
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4797. $as_echo "no" >&6; }
  4798. fi
  4799. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4801. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4802. if ${lt_cv_prog_gnu_ld+:} false; then :
  4803. $as_echo_n "(cached) " >&6
  4804. else
  4805. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4806. case `$LD -v 2>&1 </dev/null` in
  4807. *GNU* | *'with BFD'*)
  4808. lt_cv_prog_gnu_ld=yes
  4809. ;;
  4810. *)
  4811. lt_cv_prog_gnu_ld=no
  4812. ;;
  4813. esac
  4814. fi
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4816. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4817. with_gnu_ld=$lt_cv_prog_gnu_ld
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4819. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4820. if ${lt_cv_path_NM+:} false; then :
  4821. $as_echo_n "(cached) " >&6
  4822. else
  4823. if test -n "$NM"; then
  4824. # Let the user override the test.
  4825. lt_cv_path_NM="$NM"
  4826. else
  4827. lt_nm_to_check="${ac_tool_prefix}nm"
  4828. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4829. lt_nm_to_check="$lt_nm_to_check nm"
  4830. fi
  4831. for lt_tmp_nm in $lt_nm_to_check; do
  4832. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4833. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4834. IFS="$lt_save_ifs"
  4835. test -z "$ac_dir" && ac_dir=.
  4836. tmp_nm="$ac_dir/$lt_tmp_nm"
  4837. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4838. # Check to see if the nm accepts a BSD-compat flag.
  4839. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4840. # nm: unknown option "B" ignored
  4841. # Tru64's nm complains that /dev/null is an invalid object file
  4842. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4843. */dev/null* | *'Invalid file or object type'*)
  4844. lt_cv_path_NM="$tmp_nm -B"
  4845. break
  4846. ;;
  4847. *)
  4848. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4849. */dev/null*)
  4850. lt_cv_path_NM="$tmp_nm -p"
  4851. break
  4852. ;;
  4853. *)
  4854. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4855. continue # so that we can try to find one that supports BSD flags
  4856. ;;
  4857. esac
  4858. ;;
  4859. esac
  4860. fi
  4861. done
  4862. IFS="$lt_save_ifs"
  4863. done
  4864. : ${lt_cv_path_NM=no}
  4865. fi
  4866. fi
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4868. $as_echo "$lt_cv_path_NM" >&6; }
  4869. if test "$lt_cv_path_NM" != "no"; then
  4870. NM="$lt_cv_path_NM"
  4871. else
  4872. # Didn't find any BSD compatible name lister, look for dumpbin.
  4873. if test -n "$DUMPBIN"; then :
  4874. # Let the user override the test.
  4875. else
  4876. if test -n "$ac_tool_prefix"; then
  4877. for ac_prog in dumpbin "link -dump"
  4878. do
  4879. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4880. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4882. $as_echo_n "checking for $ac_word... " >&6; }
  4883. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4884. $as_echo_n "(cached) " >&6
  4885. else
  4886. if test -n "$DUMPBIN"; then
  4887. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4888. else
  4889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4890. for as_dir in $PATH
  4891. do
  4892. IFS=$as_save_IFS
  4893. test -z "$as_dir" && as_dir=.
  4894. for ac_exec_ext in '' $ac_executable_extensions; do
  4895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4896. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4898. break 2
  4899. fi
  4900. done
  4901. done
  4902. IFS=$as_save_IFS
  4903. fi
  4904. fi
  4905. DUMPBIN=$ac_cv_prog_DUMPBIN
  4906. if test -n "$DUMPBIN"; then
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4908. $as_echo "$DUMPBIN" >&6; }
  4909. else
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4911. $as_echo "no" >&6; }
  4912. fi
  4913. test -n "$DUMPBIN" && break
  4914. done
  4915. fi
  4916. if test -z "$DUMPBIN"; then
  4917. ac_ct_DUMPBIN=$DUMPBIN
  4918. for ac_prog in dumpbin "link -dump"
  4919. do
  4920. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4921. set dummy $ac_prog; ac_word=$2
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4923. $as_echo_n "checking for $ac_word... " >&6; }
  4924. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4925. $as_echo_n "(cached) " >&6
  4926. else
  4927. if test -n "$ac_ct_DUMPBIN"; then
  4928. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4929. else
  4930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4931. for as_dir in $PATH
  4932. do
  4933. IFS=$as_save_IFS
  4934. test -z "$as_dir" && as_dir=.
  4935. for ac_exec_ext in '' $ac_executable_extensions; do
  4936. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4937. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4939. break 2
  4940. fi
  4941. done
  4942. done
  4943. IFS=$as_save_IFS
  4944. fi
  4945. fi
  4946. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4947. if test -n "$ac_ct_DUMPBIN"; then
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4949. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4950. else
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4952. $as_echo "no" >&6; }
  4953. fi
  4954. test -n "$ac_ct_DUMPBIN" && break
  4955. done
  4956. if test "x$ac_ct_DUMPBIN" = x; then
  4957. DUMPBIN=":"
  4958. else
  4959. case $cross_compiling:$ac_tool_warned in
  4960. yes:)
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4962. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4963. ac_tool_warned=yes ;;
  4964. esac
  4965. DUMPBIN=$ac_ct_DUMPBIN
  4966. fi
  4967. fi
  4968. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4969. *COFF*)
  4970. DUMPBIN="$DUMPBIN -symbols"
  4971. ;;
  4972. *)
  4973. DUMPBIN=:
  4974. ;;
  4975. esac
  4976. fi
  4977. if test "$DUMPBIN" != ":"; then
  4978. NM="$DUMPBIN"
  4979. fi
  4980. fi
  4981. test -z "$NM" && NM=nm
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4983. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4984. if ${lt_cv_nm_interface+:} false; then :
  4985. $as_echo_n "(cached) " >&6
  4986. else
  4987. lt_cv_nm_interface="BSD nm"
  4988. echo "int some_variable = 0;" > conftest.$ac_ext
  4989. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4990. (eval "$ac_compile" 2>conftest.err)
  4991. cat conftest.err >&5
  4992. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4993. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4994. cat conftest.err >&5
  4995. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4996. cat conftest.out >&5
  4997. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4998. lt_cv_nm_interface="MS dumpbin"
  4999. fi
  5000. rm -f conftest*
  5001. fi
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5003. $as_echo "$lt_cv_nm_interface" >&6; }
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5005. $as_echo_n "checking whether ln -s works... " >&6; }
  5006. LN_S=$as_ln_s
  5007. if test "$LN_S" = "ln -s"; then
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5009. $as_echo "yes" >&6; }
  5010. else
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5012. $as_echo "no, using $LN_S" >&6; }
  5013. fi
  5014. # find the maximum length of command line arguments
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5016. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5017. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5018. $as_echo_n "(cached) " >&6
  5019. else
  5020. i=0
  5021. teststring="ABCD"
  5022. case $build_os in
  5023. msdosdjgpp*)
  5024. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5025. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5026. # during glob expansion). Even if it were fixed, the result of this
  5027. # check would be larger than it should be.
  5028. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5029. ;;
  5030. gnu*)
  5031. # Under GNU Hurd, this test is not required because there is
  5032. # no limit to the length of command line arguments.
  5033. # Libtool will interpret -1 as no limit whatsoever
  5034. lt_cv_sys_max_cmd_len=-1;
  5035. ;;
  5036. cygwin* | mingw* | cegcc*)
  5037. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5038. # about 5 minutes as the teststring grows exponentially.
  5039. # Worse, since 9x/ME are not pre-emptively multitasking,
  5040. # you end up with a "frozen" computer, even though with patience
  5041. # the test eventually succeeds (with a max line length of 256k).
  5042. # Instead, let's just punt: use the minimum linelength reported by
  5043. # all of the supported platforms: 8192 (on NT/2K/XP).
  5044. lt_cv_sys_max_cmd_len=8192;
  5045. ;;
  5046. mint*)
  5047. # On MiNT this can take a long time and run out of memory.
  5048. lt_cv_sys_max_cmd_len=8192;
  5049. ;;
  5050. amigaos*)
  5051. # On AmigaOS with pdksh, this test takes hours, literally.
  5052. # So we just punt and use a minimum line length of 8192.
  5053. lt_cv_sys_max_cmd_len=8192;
  5054. ;;
  5055. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5056. # This has been around since 386BSD, at least. Likely further.
  5057. if test -x /sbin/sysctl; then
  5058. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5059. elif test -x /usr/sbin/sysctl; then
  5060. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5061. else
  5062. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5063. fi
  5064. # And add a safety zone
  5065. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5066. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5067. ;;
  5068. interix*)
  5069. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5070. lt_cv_sys_max_cmd_len=196608
  5071. ;;
  5072. os2*)
  5073. # The test takes a long time on OS/2.
  5074. lt_cv_sys_max_cmd_len=8192
  5075. ;;
  5076. osf*)
  5077. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5078. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5079. # nice to cause kernel panics so lets avoid the loop below.
  5080. # First set a reasonable default.
  5081. lt_cv_sys_max_cmd_len=16384
  5082. #
  5083. if test -x /sbin/sysconfig; then
  5084. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5085. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5086. esac
  5087. fi
  5088. ;;
  5089. sco3.2v5*)
  5090. lt_cv_sys_max_cmd_len=102400
  5091. ;;
  5092. sysv5* | sco5v6* | sysv4.2uw2*)
  5093. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5094. if test -n "$kargmax"; then
  5095. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5096. else
  5097. lt_cv_sys_max_cmd_len=32768
  5098. fi
  5099. ;;
  5100. *)
  5101. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5102. if test -n "$lt_cv_sys_max_cmd_len"; then
  5103. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5104. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5105. else
  5106. # Make teststring a little bigger before we do anything with it.
  5107. # a 1K string should be a reasonable start.
  5108. for i in 1 2 3 4 5 6 7 8 ; do
  5109. teststring=$teststring$teststring
  5110. done
  5111. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5112. # If test is not a shell built-in, we'll probably end up computing a
  5113. # maximum length that is only half of the actual maximum length, but
  5114. # we can't tell.
  5115. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5116. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5117. test $i != 17 # 1/2 MB should be enough
  5118. do
  5119. i=`expr $i + 1`
  5120. teststring=$teststring$teststring
  5121. done
  5122. # Only check the string length outside the loop.
  5123. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5124. teststring=
  5125. # Add a significant safety factor because C++ compilers can tack on
  5126. # massive amounts of additional arguments before passing them to the
  5127. # linker. It appears as though 1/2 is a usable value.
  5128. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5129. fi
  5130. ;;
  5131. esac
  5132. fi
  5133. if test -n $lt_cv_sys_max_cmd_len ; then
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5135. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5136. else
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5138. $as_echo "none" >&6; }
  5139. fi
  5140. max_cmd_len=$lt_cv_sys_max_cmd_len
  5141. : ${CP="cp -f"}
  5142. : ${MV="mv -f"}
  5143. : ${RM="rm -f"}
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5145. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5146. # Try some XSI features
  5147. xsi_shell=no
  5148. ( _lt_dummy="a/b/c"
  5149. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5150. = c,a/b,b/c, \
  5151. && eval 'test $(( 1 + 1 )) -eq 2 \
  5152. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5153. && xsi_shell=yes
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5155. $as_echo "$xsi_shell" >&6; }
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5157. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5158. lt_shell_append=no
  5159. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5160. >/dev/null 2>&1 \
  5161. && lt_shell_append=yes
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5163. $as_echo "$lt_shell_append" >&6; }
  5164. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5165. lt_unset=unset
  5166. else
  5167. lt_unset=false
  5168. fi
  5169. # test EBCDIC or ASCII
  5170. case `echo X|tr X '\101'` in
  5171. A) # ASCII based system
  5172. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5173. lt_SP2NL='tr \040 \012'
  5174. lt_NL2SP='tr \015\012 \040\040'
  5175. ;;
  5176. *) # EBCDIC based system
  5177. lt_SP2NL='tr \100 \n'
  5178. lt_NL2SP='tr \r\n \100\100'
  5179. ;;
  5180. esac
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5182. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5183. if ${lt_cv_to_host_file_cmd+:} false; then :
  5184. $as_echo_n "(cached) " >&6
  5185. else
  5186. case $host in
  5187. *-*-mingw* )
  5188. case $build in
  5189. *-*-mingw* ) # actually msys
  5190. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5191. ;;
  5192. *-*-cygwin* )
  5193. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5194. ;;
  5195. * ) # otherwise, assume *nix
  5196. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5197. ;;
  5198. esac
  5199. ;;
  5200. *-*-cygwin* )
  5201. case $build in
  5202. *-*-mingw* ) # actually msys
  5203. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5204. ;;
  5205. *-*-cygwin* )
  5206. lt_cv_to_host_file_cmd=func_convert_file_noop
  5207. ;;
  5208. * ) # otherwise, assume *nix
  5209. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5210. ;;
  5211. esac
  5212. ;;
  5213. * ) # unhandled hosts (and "normal" native builds)
  5214. lt_cv_to_host_file_cmd=func_convert_file_noop
  5215. ;;
  5216. esac
  5217. fi
  5218. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5220. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5222. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5223. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5224. $as_echo_n "(cached) " >&6
  5225. else
  5226. #assume ordinary cross tools, or native build.
  5227. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5228. case $host in
  5229. *-*-mingw* )
  5230. case $build in
  5231. *-*-mingw* ) # actually msys
  5232. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5233. ;;
  5234. esac
  5235. ;;
  5236. esac
  5237. fi
  5238. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5240. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5242. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5243. if ${lt_cv_ld_reload_flag+:} false; then :
  5244. $as_echo_n "(cached) " >&6
  5245. else
  5246. lt_cv_ld_reload_flag='-r'
  5247. fi
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5249. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5250. reload_flag=$lt_cv_ld_reload_flag
  5251. case $reload_flag in
  5252. "" | " "*) ;;
  5253. *) reload_flag=" $reload_flag" ;;
  5254. esac
  5255. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5256. case $host_os in
  5257. cygwin* | mingw* | pw32* | cegcc*)
  5258. if test "$GCC" != yes; then
  5259. reload_cmds=false
  5260. fi
  5261. ;;
  5262. darwin*)
  5263. if test "$GCC" = yes; then
  5264. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5265. else
  5266. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5267. fi
  5268. ;;
  5269. esac
  5270. if test -n "$ac_tool_prefix"; then
  5271. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5272. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5274. $as_echo_n "checking for $ac_word... " >&6; }
  5275. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5276. $as_echo_n "(cached) " >&6
  5277. else
  5278. if test -n "$OBJDUMP"; then
  5279. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5280. else
  5281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5282. for as_dir in $PATH
  5283. do
  5284. IFS=$as_save_IFS
  5285. test -z "$as_dir" && as_dir=.
  5286. for ac_exec_ext in '' $ac_executable_extensions; do
  5287. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5288. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5289. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5290. break 2
  5291. fi
  5292. done
  5293. done
  5294. IFS=$as_save_IFS
  5295. fi
  5296. fi
  5297. OBJDUMP=$ac_cv_prog_OBJDUMP
  5298. if test -n "$OBJDUMP"; then
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5300. $as_echo "$OBJDUMP" >&6; }
  5301. else
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5303. $as_echo "no" >&6; }
  5304. fi
  5305. fi
  5306. if test -z "$ac_cv_prog_OBJDUMP"; then
  5307. ac_ct_OBJDUMP=$OBJDUMP
  5308. # Extract the first word of "objdump", so it can be a program name with args.
  5309. set dummy objdump; ac_word=$2
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5311. $as_echo_n "checking for $ac_word... " >&6; }
  5312. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5313. $as_echo_n "(cached) " >&6
  5314. else
  5315. if test -n "$ac_ct_OBJDUMP"; then
  5316. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5317. else
  5318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5319. for as_dir in $PATH
  5320. do
  5321. IFS=$as_save_IFS
  5322. test -z "$as_dir" && as_dir=.
  5323. for ac_exec_ext in '' $ac_executable_extensions; do
  5324. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5325. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5327. break 2
  5328. fi
  5329. done
  5330. done
  5331. IFS=$as_save_IFS
  5332. fi
  5333. fi
  5334. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5335. if test -n "$ac_ct_OBJDUMP"; then
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5337. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5338. else
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5340. $as_echo "no" >&6; }
  5341. fi
  5342. if test "x$ac_ct_OBJDUMP" = x; then
  5343. OBJDUMP="false"
  5344. else
  5345. case $cross_compiling:$ac_tool_warned in
  5346. yes:)
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5348. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5349. ac_tool_warned=yes ;;
  5350. esac
  5351. OBJDUMP=$ac_ct_OBJDUMP
  5352. fi
  5353. else
  5354. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5355. fi
  5356. test -z "$OBJDUMP" && OBJDUMP=objdump
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5358. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5359. if ${lt_cv_deplibs_check_method+:} false; then :
  5360. $as_echo_n "(cached) " >&6
  5361. else
  5362. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5363. lt_cv_file_magic_test_file=
  5364. lt_cv_deplibs_check_method='unknown'
  5365. # Need to set the preceding variable on all platforms that support
  5366. # interlibrary dependencies.
  5367. # 'none' -- dependencies not supported.
  5368. # `unknown' -- same as none, but documents that we really don't know.
  5369. # 'pass_all' -- all dependencies passed with no checks.
  5370. # 'test_compile' -- check by making test program.
  5371. # 'file_magic [[regex]]' -- check by looking for files in library path
  5372. # which responds to the $file_magic_cmd with a given extended regex.
  5373. # If you have `file' or equivalent on your system and you're not sure
  5374. # whether `pass_all' will *always* work, you probably want this one.
  5375. case $host_os in
  5376. aix[4-9]*)
  5377. lt_cv_deplibs_check_method=pass_all
  5378. ;;
  5379. beos*)
  5380. lt_cv_deplibs_check_method=pass_all
  5381. ;;
  5382. bsdi[45]*)
  5383. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5384. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5385. lt_cv_file_magic_test_file=/shlib/libc.so
  5386. ;;
  5387. cygwin*)
  5388. # func_win32_libid is a shell function defined in ltmain.sh
  5389. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5390. lt_cv_file_magic_cmd='func_win32_libid'
  5391. ;;
  5392. mingw* | pw32*)
  5393. # Base MSYS/MinGW do not provide the 'file' command needed by
  5394. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5395. # unless we find 'file', for example because we are cross-compiling.
  5396. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5397. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5398. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5399. lt_cv_file_magic_cmd='func_win32_libid'
  5400. else
  5401. # Keep this pattern in sync with the one in func_win32_libid.
  5402. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5403. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5404. fi
  5405. ;;
  5406. cegcc*)
  5407. # use the weaker test based on 'objdump'. See mingw*.
  5408. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5409. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5410. ;;
  5411. darwin* | rhapsody*)
  5412. lt_cv_deplibs_check_method=pass_all
  5413. ;;
  5414. freebsd* | dragonfly*)
  5415. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5416. case $host_cpu in
  5417. i*86 )
  5418. # Not sure whether the presence of OpenBSD here was a mistake.
  5419. # Let's accept both of them until this is cleared up.
  5420. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5421. lt_cv_file_magic_cmd=/usr/bin/file
  5422. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5423. ;;
  5424. esac
  5425. else
  5426. lt_cv_deplibs_check_method=pass_all
  5427. fi
  5428. ;;
  5429. gnu*)
  5430. lt_cv_deplibs_check_method=pass_all
  5431. ;;
  5432. haiku*)
  5433. lt_cv_deplibs_check_method=pass_all
  5434. ;;
  5435. hpux10.20* | hpux11*)
  5436. lt_cv_file_magic_cmd=/usr/bin/file
  5437. case $host_cpu in
  5438. ia64*)
  5439. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5440. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5441. ;;
  5442. hppa*64*)
  5443. 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]'
  5444. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5445. ;;
  5446. *)
  5447. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5448. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5449. ;;
  5450. esac
  5451. ;;
  5452. interix[3-9]*)
  5453. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5454. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5455. ;;
  5456. irix5* | irix6* | nonstopux*)
  5457. case $LD in
  5458. *-32|*"-32 ") libmagic=32-bit;;
  5459. *-n32|*"-n32 ") libmagic=N32;;
  5460. *-64|*"-64 ") libmagic=64-bit;;
  5461. *) libmagic=never-match;;
  5462. esac
  5463. lt_cv_deplibs_check_method=pass_all
  5464. ;;
  5465. # This must be glibc/ELF.
  5466. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5467. lt_cv_deplibs_check_method=pass_all
  5468. ;;
  5469. netbsd*)
  5470. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5471. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5472. else
  5473. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5474. fi
  5475. ;;
  5476. newos6*)
  5477. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5478. lt_cv_file_magic_cmd=/usr/bin/file
  5479. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5480. ;;
  5481. *nto* | *qnx*)
  5482. lt_cv_deplibs_check_method=pass_all
  5483. ;;
  5484. openbsd*)
  5485. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5486. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5487. else
  5488. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5489. fi
  5490. ;;
  5491. osf3* | osf4* | osf5*)
  5492. lt_cv_deplibs_check_method=pass_all
  5493. ;;
  5494. rdos*)
  5495. lt_cv_deplibs_check_method=pass_all
  5496. ;;
  5497. solaris*)
  5498. lt_cv_deplibs_check_method=pass_all
  5499. ;;
  5500. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5501. lt_cv_deplibs_check_method=pass_all
  5502. ;;
  5503. sysv4 | sysv4.3*)
  5504. case $host_vendor in
  5505. motorola)
  5506. 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]'
  5507. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5508. ;;
  5509. ncr)
  5510. lt_cv_deplibs_check_method=pass_all
  5511. ;;
  5512. sequent)
  5513. lt_cv_file_magic_cmd='/bin/file'
  5514. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5515. ;;
  5516. sni)
  5517. lt_cv_file_magic_cmd='/bin/file'
  5518. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5519. lt_cv_file_magic_test_file=/lib/libc.so
  5520. ;;
  5521. siemens)
  5522. lt_cv_deplibs_check_method=pass_all
  5523. ;;
  5524. pc)
  5525. lt_cv_deplibs_check_method=pass_all
  5526. ;;
  5527. esac
  5528. ;;
  5529. tpf*)
  5530. lt_cv_deplibs_check_method=pass_all
  5531. ;;
  5532. esac
  5533. fi
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5535. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5536. file_magic_glob=
  5537. want_nocaseglob=no
  5538. if test "$build" = "$host"; then
  5539. case $host_os in
  5540. mingw* | pw32*)
  5541. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5542. want_nocaseglob=yes
  5543. else
  5544. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5545. fi
  5546. ;;
  5547. esac
  5548. fi
  5549. file_magic_cmd=$lt_cv_file_magic_cmd
  5550. deplibs_check_method=$lt_cv_deplibs_check_method
  5551. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5552. if test -n "$ac_tool_prefix"; then
  5553. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5554. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5556. $as_echo_n "checking for $ac_word... " >&6; }
  5557. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5558. $as_echo_n "(cached) " >&6
  5559. else
  5560. if test -n "$DLLTOOL"; then
  5561. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5562. else
  5563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5564. for as_dir in $PATH
  5565. do
  5566. IFS=$as_save_IFS
  5567. test -z "$as_dir" && as_dir=.
  5568. for ac_exec_ext in '' $ac_executable_extensions; do
  5569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5570. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5572. break 2
  5573. fi
  5574. done
  5575. done
  5576. IFS=$as_save_IFS
  5577. fi
  5578. fi
  5579. DLLTOOL=$ac_cv_prog_DLLTOOL
  5580. if test -n "$DLLTOOL"; then
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5582. $as_echo "$DLLTOOL" >&6; }
  5583. else
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5585. $as_echo "no" >&6; }
  5586. fi
  5587. fi
  5588. if test -z "$ac_cv_prog_DLLTOOL"; then
  5589. ac_ct_DLLTOOL=$DLLTOOL
  5590. # Extract the first word of "dlltool", so it can be a program name with args.
  5591. set dummy dlltool; ac_word=$2
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5593. $as_echo_n "checking for $ac_word... " >&6; }
  5594. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5595. $as_echo_n "(cached) " >&6
  5596. else
  5597. if test -n "$ac_ct_DLLTOOL"; then
  5598. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5599. else
  5600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5601. for as_dir in $PATH
  5602. do
  5603. IFS=$as_save_IFS
  5604. test -z "$as_dir" && as_dir=.
  5605. for ac_exec_ext in '' $ac_executable_extensions; do
  5606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5607. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5609. break 2
  5610. fi
  5611. done
  5612. done
  5613. IFS=$as_save_IFS
  5614. fi
  5615. fi
  5616. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5617. if test -n "$ac_ct_DLLTOOL"; then
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5619. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5620. else
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5622. $as_echo "no" >&6; }
  5623. fi
  5624. if test "x$ac_ct_DLLTOOL" = x; then
  5625. DLLTOOL="false"
  5626. else
  5627. case $cross_compiling:$ac_tool_warned in
  5628. yes:)
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5630. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5631. ac_tool_warned=yes ;;
  5632. esac
  5633. DLLTOOL=$ac_ct_DLLTOOL
  5634. fi
  5635. else
  5636. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5637. fi
  5638. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5640. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5641. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5642. $as_echo_n "(cached) " >&6
  5643. else
  5644. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5645. case $host_os in
  5646. cygwin* | mingw* | pw32* | cegcc*)
  5647. # two different shell functions defined in ltmain.sh
  5648. # decide which to use based on capabilities of $DLLTOOL
  5649. case `$DLLTOOL --help 2>&1` in
  5650. *--identify-strict*)
  5651. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5652. ;;
  5653. *)
  5654. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5655. ;;
  5656. esac
  5657. ;;
  5658. *)
  5659. # fallback: assume linklib IS sharedlib
  5660. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5661. ;;
  5662. esac
  5663. fi
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5665. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5666. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5667. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5668. if test -n "$ac_tool_prefix"; then
  5669. for ac_prog in ar
  5670. do
  5671. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5672. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5674. $as_echo_n "checking for $ac_word... " >&6; }
  5675. if ${ac_cv_prog_AR+:} false; then :
  5676. $as_echo_n "(cached) " >&6
  5677. else
  5678. if test -n "$AR"; then
  5679. ac_cv_prog_AR="$AR" # Let the user override the test.
  5680. else
  5681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5682. for as_dir in $PATH
  5683. do
  5684. IFS=$as_save_IFS
  5685. test -z "$as_dir" && as_dir=.
  5686. for ac_exec_ext in '' $ac_executable_extensions; do
  5687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5688. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5690. break 2
  5691. fi
  5692. done
  5693. done
  5694. IFS=$as_save_IFS
  5695. fi
  5696. fi
  5697. AR=$ac_cv_prog_AR
  5698. if test -n "$AR"; then
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5700. $as_echo "$AR" >&6; }
  5701. else
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5703. $as_echo "no" >&6; }
  5704. fi
  5705. test -n "$AR" && break
  5706. done
  5707. fi
  5708. if test -z "$AR"; then
  5709. ac_ct_AR=$AR
  5710. for ac_prog in ar
  5711. do
  5712. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5713. set dummy $ac_prog; ac_word=$2
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5715. $as_echo_n "checking for $ac_word... " >&6; }
  5716. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5717. $as_echo_n "(cached) " >&6
  5718. else
  5719. if test -n "$ac_ct_AR"; then
  5720. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5721. else
  5722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5723. for as_dir in $PATH
  5724. do
  5725. IFS=$as_save_IFS
  5726. test -z "$as_dir" && as_dir=.
  5727. for ac_exec_ext in '' $ac_executable_extensions; do
  5728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5729. ac_cv_prog_ac_ct_AR="$ac_prog"
  5730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5731. break 2
  5732. fi
  5733. done
  5734. done
  5735. IFS=$as_save_IFS
  5736. fi
  5737. fi
  5738. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5739. if test -n "$ac_ct_AR"; then
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5741. $as_echo "$ac_ct_AR" >&6; }
  5742. else
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5744. $as_echo "no" >&6; }
  5745. fi
  5746. test -n "$ac_ct_AR" && break
  5747. done
  5748. if test "x$ac_ct_AR" = x; then
  5749. AR="false"
  5750. else
  5751. case $cross_compiling:$ac_tool_warned in
  5752. yes:)
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5754. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5755. ac_tool_warned=yes ;;
  5756. esac
  5757. AR=$ac_ct_AR
  5758. fi
  5759. fi
  5760. : ${AR=ar}
  5761. : ${AR_FLAGS=cru}
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5763. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5764. if ${lt_cv_ar_at_file+:} false; then :
  5765. $as_echo_n "(cached) " >&6
  5766. else
  5767. lt_cv_ar_at_file=no
  5768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5769. /* end confdefs.h. */
  5770. int
  5771. main ()
  5772. {
  5773. ;
  5774. return 0;
  5775. }
  5776. _ACEOF
  5777. if ac_fn_c_try_compile "$LINENO"; then :
  5778. echo conftest.$ac_objext > conftest.lst
  5779. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5780. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5781. (eval $lt_ar_try) 2>&5
  5782. ac_status=$?
  5783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5784. test $ac_status = 0; }
  5785. if test "$ac_status" -eq 0; then
  5786. # Ensure the archiver fails upon bogus file names.
  5787. rm -f conftest.$ac_objext libconftest.a
  5788. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5789. (eval $lt_ar_try) 2>&5
  5790. ac_status=$?
  5791. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5792. test $ac_status = 0; }
  5793. if test "$ac_status" -ne 0; then
  5794. lt_cv_ar_at_file=@
  5795. fi
  5796. fi
  5797. rm -f conftest.* libconftest.a
  5798. fi
  5799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5800. fi
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5802. $as_echo "$lt_cv_ar_at_file" >&6; }
  5803. if test "x$lt_cv_ar_at_file" = xno; then
  5804. archiver_list_spec=
  5805. else
  5806. archiver_list_spec=$lt_cv_ar_at_file
  5807. fi
  5808. if test -n "$ac_tool_prefix"; then
  5809. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5810. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5812. $as_echo_n "checking for $ac_word... " >&6; }
  5813. if ${ac_cv_prog_STRIP+:} false; then :
  5814. $as_echo_n "(cached) " >&6
  5815. else
  5816. if test -n "$STRIP"; then
  5817. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5818. else
  5819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5820. for as_dir in $PATH
  5821. do
  5822. IFS=$as_save_IFS
  5823. test -z "$as_dir" && as_dir=.
  5824. for ac_exec_ext in '' $ac_executable_extensions; do
  5825. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5826. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5828. break 2
  5829. fi
  5830. done
  5831. done
  5832. IFS=$as_save_IFS
  5833. fi
  5834. fi
  5835. STRIP=$ac_cv_prog_STRIP
  5836. if test -n "$STRIP"; then
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5838. $as_echo "$STRIP" >&6; }
  5839. else
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5841. $as_echo "no" >&6; }
  5842. fi
  5843. fi
  5844. if test -z "$ac_cv_prog_STRIP"; then
  5845. ac_ct_STRIP=$STRIP
  5846. # Extract the first word of "strip", so it can be a program name with args.
  5847. set dummy strip; ac_word=$2
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5849. $as_echo_n "checking for $ac_word... " >&6; }
  5850. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5851. $as_echo_n "(cached) " >&6
  5852. else
  5853. if test -n "$ac_ct_STRIP"; then
  5854. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5855. else
  5856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5857. for as_dir in $PATH
  5858. do
  5859. IFS=$as_save_IFS
  5860. test -z "$as_dir" && as_dir=.
  5861. for ac_exec_ext in '' $ac_executable_extensions; do
  5862. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5863. ac_cv_prog_ac_ct_STRIP="strip"
  5864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5865. break 2
  5866. fi
  5867. done
  5868. done
  5869. IFS=$as_save_IFS
  5870. fi
  5871. fi
  5872. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5873. if test -n "$ac_ct_STRIP"; then
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5875. $as_echo "$ac_ct_STRIP" >&6; }
  5876. else
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5878. $as_echo "no" >&6; }
  5879. fi
  5880. if test "x$ac_ct_STRIP" = x; then
  5881. STRIP=":"
  5882. else
  5883. case $cross_compiling:$ac_tool_warned in
  5884. yes:)
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5886. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5887. ac_tool_warned=yes ;;
  5888. esac
  5889. STRIP=$ac_ct_STRIP
  5890. fi
  5891. else
  5892. STRIP="$ac_cv_prog_STRIP"
  5893. fi
  5894. test -z "$STRIP" && STRIP=:
  5895. if test -n "$ac_tool_prefix"; then
  5896. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5897. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5899. $as_echo_n "checking for $ac_word... " >&6; }
  5900. if ${ac_cv_prog_RANLIB+:} false; then :
  5901. $as_echo_n "(cached) " >&6
  5902. else
  5903. if test -n "$RANLIB"; then
  5904. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5905. else
  5906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5907. for as_dir in $PATH
  5908. do
  5909. IFS=$as_save_IFS
  5910. test -z "$as_dir" && as_dir=.
  5911. for ac_exec_ext in '' $ac_executable_extensions; do
  5912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5913. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5915. break 2
  5916. fi
  5917. done
  5918. done
  5919. IFS=$as_save_IFS
  5920. fi
  5921. fi
  5922. RANLIB=$ac_cv_prog_RANLIB
  5923. if test -n "$RANLIB"; then
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5925. $as_echo "$RANLIB" >&6; }
  5926. else
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5928. $as_echo "no" >&6; }
  5929. fi
  5930. fi
  5931. if test -z "$ac_cv_prog_RANLIB"; then
  5932. ac_ct_RANLIB=$RANLIB
  5933. # Extract the first word of "ranlib", so it can be a program name with args.
  5934. set dummy ranlib; ac_word=$2
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5936. $as_echo_n "checking for $ac_word... " >&6; }
  5937. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5938. $as_echo_n "(cached) " >&6
  5939. else
  5940. if test -n "$ac_ct_RANLIB"; then
  5941. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5942. else
  5943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5944. for as_dir in $PATH
  5945. do
  5946. IFS=$as_save_IFS
  5947. test -z "$as_dir" && as_dir=.
  5948. for ac_exec_ext in '' $ac_executable_extensions; do
  5949. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5950. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5952. break 2
  5953. fi
  5954. done
  5955. done
  5956. IFS=$as_save_IFS
  5957. fi
  5958. fi
  5959. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5960. if test -n "$ac_ct_RANLIB"; then
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5962. $as_echo "$ac_ct_RANLIB" >&6; }
  5963. else
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5965. $as_echo "no" >&6; }
  5966. fi
  5967. if test "x$ac_ct_RANLIB" = x; then
  5968. RANLIB=":"
  5969. else
  5970. case $cross_compiling:$ac_tool_warned in
  5971. yes:)
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5973. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5974. ac_tool_warned=yes ;;
  5975. esac
  5976. RANLIB=$ac_ct_RANLIB
  5977. fi
  5978. else
  5979. RANLIB="$ac_cv_prog_RANLIB"
  5980. fi
  5981. test -z "$RANLIB" && RANLIB=:
  5982. # Determine commands to create old-style static archives.
  5983. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5984. old_postinstall_cmds='chmod 644 $oldlib'
  5985. old_postuninstall_cmds=
  5986. if test -n "$RANLIB"; then
  5987. case $host_os in
  5988. openbsd*)
  5989. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5990. ;;
  5991. *)
  5992. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5993. ;;
  5994. esac
  5995. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5996. fi
  5997. case $host_os in
  5998. darwin*)
  5999. lock_old_archive_extraction=yes ;;
  6000. *)
  6001. lock_old_archive_extraction=no ;;
  6002. esac
  6003. for ac_prog in gawk mawk nawk awk
  6004. do
  6005. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6006. set dummy $ac_prog; ac_word=$2
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6008. $as_echo_n "checking for $ac_word... " >&6; }
  6009. if ${ac_cv_prog_AWK+:} false; then :
  6010. $as_echo_n "(cached) " >&6
  6011. else
  6012. if test -n "$AWK"; then
  6013. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  6014. else
  6015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6016. for as_dir in $PATH
  6017. do
  6018. IFS=$as_save_IFS
  6019. test -z "$as_dir" && as_dir=.
  6020. for ac_exec_ext in '' $ac_executable_extensions; do
  6021. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6022. ac_cv_prog_AWK="$ac_prog"
  6023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6024. break 2
  6025. fi
  6026. done
  6027. done
  6028. IFS=$as_save_IFS
  6029. fi
  6030. fi
  6031. AWK=$ac_cv_prog_AWK
  6032. if test -n "$AWK"; then
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6034. $as_echo "$AWK" >&6; }
  6035. else
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6037. $as_echo "no" >&6; }
  6038. fi
  6039. test -n "$AWK" && break
  6040. done
  6041. # If no C compiler was specified, use CC.
  6042. LTCC=${LTCC-"$CC"}
  6043. # If no C compiler flags were specified, use CFLAGS.
  6044. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6045. # Allow CC to be a program name with arguments.
  6046. compiler=$CC
  6047. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6049. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6050. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6051. $as_echo_n "(cached) " >&6
  6052. else
  6053. # These are sane defaults that work on at least a few old systems.
  6054. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6055. # Character class describing NM global symbol codes.
  6056. symcode='[BCDEGRST]'
  6057. # Regexp to match symbols that can be accessed directly from C.
  6058. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6059. # Define system-specific variables.
  6060. case $host_os in
  6061. aix*)
  6062. symcode='[BCDT]'
  6063. ;;
  6064. cygwin* | mingw* | pw32* | cegcc*)
  6065. symcode='[ABCDGISTW]'
  6066. ;;
  6067. hpux*)
  6068. if test "$host_cpu" = ia64; then
  6069. symcode='[ABCDEGRST]'
  6070. fi
  6071. ;;
  6072. irix* | nonstopux*)
  6073. symcode='[BCDEGRST]'
  6074. ;;
  6075. osf*)
  6076. symcode='[BCDEGQRST]'
  6077. ;;
  6078. solaris*)
  6079. symcode='[BDRT]'
  6080. ;;
  6081. sco3.2v5*)
  6082. symcode='[DT]'
  6083. ;;
  6084. sysv4.2uw2*)
  6085. symcode='[DT]'
  6086. ;;
  6087. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6088. symcode='[ABDT]'
  6089. ;;
  6090. sysv4)
  6091. symcode='[DFNSTU]'
  6092. ;;
  6093. esac
  6094. # If we're using GNU nm, then use its standard symbol codes.
  6095. case `$NM -V 2>&1` in
  6096. *GNU* | *'with BFD'*)
  6097. symcode='[ABCDGIRSTW]' ;;
  6098. esac
  6099. # Transform an extracted symbol line into a proper C declaration.
  6100. # Some systems (esp. on ia64) link data and code symbols differently,
  6101. # so use this general approach.
  6102. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6103. # Transform an extracted symbol line into symbol name and symbol address
  6104. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6105. 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'"
  6106. # Handle CRLF in mingw tool chain
  6107. opt_cr=
  6108. case $build_os in
  6109. mingw*)
  6110. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6111. ;;
  6112. esac
  6113. # Try without a prefix underscore, then with it.
  6114. for ac_symprfx in "" "_"; do
  6115. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6116. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6117. # Write the raw and C identifiers.
  6118. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6119. # Fake it for dumpbin and say T for any non-static function
  6120. # and D for any global variable.
  6121. # Also find C++ and __fastcall symbols from MSVC++,
  6122. # which start with @ or ?.
  6123. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6124. " {last_section=section; section=\$ 3};"\
  6125. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6126. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6127. " \$ 0!~/External *\|/{next};"\
  6128. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6129. " {if(hide[section]) next};"\
  6130. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6131. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6132. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6133. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6134. " ' prfx=^$ac_symprfx"
  6135. else
  6136. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6137. fi
  6138. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6139. # Check to see that the pipe works correctly.
  6140. pipe_works=no
  6141. rm -f conftest*
  6142. cat > conftest.$ac_ext <<_LT_EOF
  6143. #ifdef __cplusplus
  6144. extern "C" {
  6145. #endif
  6146. char nm_test_var;
  6147. void nm_test_func(void);
  6148. void nm_test_func(void){}
  6149. #ifdef __cplusplus
  6150. }
  6151. #endif
  6152. int main(){nm_test_var='a';nm_test_func();return(0);}
  6153. _LT_EOF
  6154. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6155. (eval $ac_compile) 2>&5
  6156. ac_status=$?
  6157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6158. test $ac_status = 0; }; then
  6159. # Now try to grab the symbols.
  6160. nlist=conftest.nm
  6161. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6162. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6163. ac_status=$?
  6164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6165. test $ac_status = 0; } && test -s "$nlist"; then
  6166. # Try sorting and uniquifying the output.
  6167. if sort "$nlist" | uniq > "$nlist"T; then
  6168. mv -f "$nlist"T "$nlist"
  6169. else
  6170. rm -f "$nlist"T
  6171. fi
  6172. # Make sure that we snagged all the symbols we need.
  6173. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6174. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6175. cat <<_LT_EOF > conftest.$ac_ext
  6176. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6177. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6178. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6179. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6180. # define LT_DLSYM_CONST
  6181. #elif defined(__osf__)
  6182. /* This system does not cope well with relocations in const data. */
  6183. # define LT_DLSYM_CONST
  6184. #else
  6185. # define LT_DLSYM_CONST const
  6186. #endif
  6187. #ifdef __cplusplus
  6188. extern "C" {
  6189. #endif
  6190. _LT_EOF
  6191. # Now generate the symbol file.
  6192. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6193. cat <<_LT_EOF >> conftest.$ac_ext
  6194. /* The mapping between symbol names and symbols. */
  6195. LT_DLSYM_CONST struct {
  6196. const char *name;
  6197. void *address;
  6198. }
  6199. lt__PROGRAM__LTX_preloaded_symbols[] =
  6200. {
  6201. { "@PROGRAM@", (void *) 0 },
  6202. _LT_EOF
  6203. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6204. cat <<\_LT_EOF >> conftest.$ac_ext
  6205. {0, (void *) 0}
  6206. };
  6207. /* This works around a problem in FreeBSD linker */
  6208. #ifdef FREEBSD_WORKAROUND
  6209. static const void *lt_preloaded_setup() {
  6210. return lt__PROGRAM__LTX_preloaded_symbols;
  6211. }
  6212. #endif
  6213. #ifdef __cplusplus
  6214. }
  6215. #endif
  6216. _LT_EOF
  6217. # Now try linking the two files.
  6218. mv conftest.$ac_objext conftstm.$ac_objext
  6219. lt_globsym_save_LIBS=$LIBS
  6220. lt_globsym_save_CFLAGS=$CFLAGS
  6221. LIBS="conftstm.$ac_objext"
  6222. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6223. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6224. (eval $ac_link) 2>&5
  6225. ac_status=$?
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6227. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6228. pipe_works=yes
  6229. fi
  6230. LIBS=$lt_globsym_save_LIBS
  6231. CFLAGS=$lt_globsym_save_CFLAGS
  6232. else
  6233. echo "cannot find nm_test_func in $nlist" >&5
  6234. fi
  6235. else
  6236. echo "cannot find nm_test_var in $nlist" >&5
  6237. fi
  6238. else
  6239. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6240. fi
  6241. else
  6242. echo "$progname: failed program was:" >&5
  6243. cat conftest.$ac_ext >&5
  6244. fi
  6245. rm -rf conftest* conftst*
  6246. # Do not use the global_symbol_pipe unless it works.
  6247. if test "$pipe_works" = yes; then
  6248. break
  6249. else
  6250. lt_cv_sys_global_symbol_pipe=
  6251. fi
  6252. done
  6253. fi
  6254. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6255. lt_cv_sys_global_symbol_to_cdecl=
  6256. fi
  6257. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6259. $as_echo "failed" >&6; }
  6260. else
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6262. $as_echo "ok" >&6; }
  6263. fi
  6264. # Response file support.
  6265. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6266. nm_file_list_spec='@'
  6267. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6268. nm_file_list_spec='@'
  6269. fi
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6271. $as_echo_n "checking for sysroot... " >&6; }
  6272. # Check whether --with-sysroot was given.
  6273. if test "${with_sysroot+set}" = set; then :
  6274. withval=$with_sysroot;
  6275. else
  6276. with_sysroot=no
  6277. fi
  6278. lt_sysroot=
  6279. case ${with_sysroot} in #(
  6280. yes)
  6281. if test "$GCC" = yes; then
  6282. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6283. fi
  6284. ;; #(
  6285. /*)
  6286. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6287. ;; #(
  6288. no|'')
  6289. ;; #(
  6290. *)
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6292. $as_echo "${with_sysroot}" >&6; }
  6293. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6294. ;;
  6295. esac
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6297. $as_echo "${lt_sysroot:-no}" >&6; }
  6298. # Check whether --enable-libtool-lock was given.
  6299. if test "${enable_libtool_lock+set}" = set; then :
  6300. enableval=$enable_libtool_lock;
  6301. fi
  6302. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6303. # Some flags need to be propagated to the compiler or linker for good
  6304. # libtool support.
  6305. case $host in
  6306. ia64-*-hpux*)
  6307. # Find out which ABI we are using.
  6308. echo 'int i;' > conftest.$ac_ext
  6309. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6310. (eval $ac_compile) 2>&5
  6311. ac_status=$?
  6312. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6313. test $ac_status = 0; }; then
  6314. case `/usr/bin/file conftest.$ac_objext` in
  6315. *ELF-32*)
  6316. HPUX_IA64_MODE="32"
  6317. ;;
  6318. *ELF-64*)
  6319. HPUX_IA64_MODE="64"
  6320. ;;
  6321. esac
  6322. fi
  6323. rm -rf conftest*
  6324. ;;
  6325. *-*-irix6*)
  6326. # Find out which ABI we are using.
  6327. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6328. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6329. (eval $ac_compile) 2>&5
  6330. ac_status=$?
  6331. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6332. test $ac_status = 0; }; then
  6333. if test "$lt_cv_prog_gnu_ld" = yes; then
  6334. case `/usr/bin/file conftest.$ac_objext` in
  6335. *32-bit*)
  6336. LD="${LD-ld} -melf32bsmip"
  6337. ;;
  6338. *N32*)
  6339. LD="${LD-ld} -melf32bmipn32"
  6340. ;;
  6341. *64-bit*)
  6342. LD="${LD-ld} -melf64bmip"
  6343. ;;
  6344. esac
  6345. else
  6346. case `/usr/bin/file conftest.$ac_objext` in
  6347. *32-bit*)
  6348. LD="${LD-ld} -32"
  6349. ;;
  6350. *N32*)
  6351. LD="${LD-ld} -n32"
  6352. ;;
  6353. *64-bit*)
  6354. LD="${LD-ld} -64"
  6355. ;;
  6356. esac
  6357. fi
  6358. fi
  6359. rm -rf conftest*
  6360. ;;
  6361. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6362. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6363. # Find out which ABI we are using.
  6364. echo 'int i;' > conftest.$ac_ext
  6365. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6366. (eval $ac_compile) 2>&5
  6367. ac_status=$?
  6368. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6369. test $ac_status = 0; }; then
  6370. case `/usr/bin/file conftest.o` in
  6371. *32-bit*)
  6372. case $host in
  6373. x86_64-*kfreebsd*-gnu)
  6374. LD="${LD-ld} -m elf_i386_fbsd"
  6375. ;;
  6376. x86_64-*linux*)
  6377. LD="${LD-ld} -m elf_i386"
  6378. ;;
  6379. ppc64-*linux*|powerpc64-*linux*)
  6380. LD="${LD-ld} -m elf32ppclinux"
  6381. ;;
  6382. s390x-*linux*)
  6383. LD="${LD-ld} -m elf_s390"
  6384. ;;
  6385. sparc64-*linux*)
  6386. LD="${LD-ld} -m elf32_sparc"
  6387. ;;
  6388. esac
  6389. ;;
  6390. *64-bit*)
  6391. case $host in
  6392. x86_64-*kfreebsd*-gnu)
  6393. LD="${LD-ld} -m elf_x86_64_fbsd"
  6394. ;;
  6395. x86_64-*linux*)
  6396. LD="${LD-ld} -m elf_x86_64"
  6397. ;;
  6398. ppc*-*linux*|powerpc*-*linux*)
  6399. LD="${LD-ld} -m elf64ppc"
  6400. ;;
  6401. s390*-*linux*|s390*-*tpf*)
  6402. LD="${LD-ld} -m elf64_s390"
  6403. ;;
  6404. sparc*-*linux*)
  6405. LD="${LD-ld} -m elf64_sparc"
  6406. ;;
  6407. esac
  6408. ;;
  6409. esac
  6410. fi
  6411. rm -rf conftest*
  6412. ;;
  6413. *-*-sco3.2v5*)
  6414. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6415. SAVE_CFLAGS="$CFLAGS"
  6416. CFLAGS="$CFLAGS -belf"
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6418. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6419. if ${lt_cv_cc_needs_belf+:} false; then :
  6420. $as_echo_n "(cached) " >&6
  6421. else
  6422. ac_ext=c
  6423. ac_cpp='$CPP $CPPFLAGS'
  6424. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6425. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6426. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6428. /* end confdefs.h. */
  6429. int
  6430. main ()
  6431. {
  6432. ;
  6433. return 0;
  6434. }
  6435. _ACEOF
  6436. if ac_fn_c_try_link "$LINENO"; then :
  6437. lt_cv_cc_needs_belf=yes
  6438. else
  6439. lt_cv_cc_needs_belf=no
  6440. fi
  6441. rm -f core conftest.err conftest.$ac_objext \
  6442. conftest$ac_exeext conftest.$ac_ext
  6443. ac_ext=c
  6444. ac_cpp='$CPP $CPPFLAGS'
  6445. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6446. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6447. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6448. fi
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6450. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6451. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6452. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6453. CFLAGS="$SAVE_CFLAGS"
  6454. fi
  6455. ;;
  6456. *-*solaris*)
  6457. # Find out which ABI we are using.
  6458. echo 'int i;' > conftest.$ac_ext
  6459. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6460. (eval $ac_compile) 2>&5
  6461. ac_status=$?
  6462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6463. test $ac_status = 0; }; then
  6464. case `/usr/bin/file conftest.o` in
  6465. *64-bit*)
  6466. case $lt_cv_prog_gnu_ld in
  6467. yes*)
  6468. case $host in
  6469. i?86-*-solaris*)
  6470. LD="${LD-ld} -m elf_x86_64"
  6471. ;;
  6472. sparc*-*-solaris*)
  6473. LD="${LD-ld} -m elf64_sparc"
  6474. ;;
  6475. esac
  6476. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6477. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6478. LD="${LD-ld}_sol2"
  6479. fi
  6480. ;;
  6481. *)
  6482. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6483. LD="${LD-ld} -64"
  6484. fi
  6485. ;;
  6486. esac
  6487. ;;
  6488. esac
  6489. fi
  6490. rm -rf conftest*
  6491. ;;
  6492. esac
  6493. need_locks="$enable_libtool_lock"
  6494. if test -n "$ac_tool_prefix"; then
  6495. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6496. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6498. $as_echo_n "checking for $ac_word... " >&6; }
  6499. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6500. $as_echo_n "(cached) " >&6
  6501. else
  6502. if test -n "$MANIFEST_TOOL"; then
  6503. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6504. else
  6505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6506. for as_dir in $PATH
  6507. do
  6508. IFS=$as_save_IFS
  6509. test -z "$as_dir" && as_dir=.
  6510. for ac_exec_ext in '' $ac_executable_extensions; do
  6511. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6512. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6514. break 2
  6515. fi
  6516. done
  6517. done
  6518. IFS=$as_save_IFS
  6519. fi
  6520. fi
  6521. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6522. if test -n "$MANIFEST_TOOL"; then
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6524. $as_echo "$MANIFEST_TOOL" >&6; }
  6525. else
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6527. $as_echo "no" >&6; }
  6528. fi
  6529. fi
  6530. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6531. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6532. # Extract the first word of "mt", so it can be a program name with args.
  6533. set dummy mt; ac_word=$2
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6535. $as_echo_n "checking for $ac_word... " >&6; }
  6536. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6537. $as_echo_n "(cached) " >&6
  6538. else
  6539. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6540. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6541. else
  6542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6543. for as_dir in $PATH
  6544. do
  6545. IFS=$as_save_IFS
  6546. test -z "$as_dir" && as_dir=.
  6547. for ac_exec_ext in '' $ac_executable_extensions; do
  6548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6549. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6551. break 2
  6552. fi
  6553. done
  6554. done
  6555. IFS=$as_save_IFS
  6556. fi
  6557. fi
  6558. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6559. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6561. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6562. else
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6564. $as_echo "no" >&6; }
  6565. fi
  6566. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6567. MANIFEST_TOOL=":"
  6568. else
  6569. case $cross_compiling:$ac_tool_warned in
  6570. yes:)
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6572. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6573. ac_tool_warned=yes ;;
  6574. esac
  6575. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6576. fi
  6577. else
  6578. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6579. fi
  6580. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6582. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6583. if ${lt_cv_path_mainfest_tool+:} false; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. lt_cv_path_mainfest_tool=no
  6587. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6588. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6589. cat conftest.err >&5
  6590. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6591. lt_cv_path_mainfest_tool=yes
  6592. fi
  6593. rm -f conftest*
  6594. fi
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6596. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6597. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6598. MANIFEST_TOOL=:
  6599. fi
  6600. case $host_os in
  6601. rhapsody* | darwin*)
  6602. if test -n "$ac_tool_prefix"; then
  6603. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6604. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6606. $as_echo_n "checking for $ac_word... " >&6; }
  6607. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. if test -n "$DSYMUTIL"; then
  6611. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6612. else
  6613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6614. for as_dir in $PATH
  6615. do
  6616. IFS=$as_save_IFS
  6617. test -z "$as_dir" && as_dir=.
  6618. for ac_exec_ext in '' $ac_executable_extensions; do
  6619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6620. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6622. break 2
  6623. fi
  6624. done
  6625. done
  6626. IFS=$as_save_IFS
  6627. fi
  6628. fi
  6629. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6630. if test -n "$DSYMUTIL"; then
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6632. $as_echo "$DSYMUTIL" >&6; }
  6633. else
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6635. $as_echo "no" >&6; }
  6636. fi
  6637. fi
  6638. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6639. ac_ct_DSYMUTIL=$DSYMUTIL
  6640. # Extract the first word of "dsymutil", so it can be a program name with args.
  6641. set dummy dsymutil; ac_word=$2
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6643. $as_echo_n "checking for $ac_word... " >&6; }
  6644. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. if test -n "$ac_ct_DSYMUTIL"; then
  6648. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6649. else
  6650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6651. for as_dir in $PATH
  6652. do
  6653. IFS=$as_save_IFS
  6654. test -z "$as_dir" && as_dir=.
  6655. for ac_exec_ext in '' $ac_executable_extensions; do
  6656. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6657. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6659. break 2
  6660. fi
  6661. done
  6662. done
  6663. IFS=$as_save_IFS
  6664. fi
  6665. fi
  6666. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6667. if test -n "$ac_ct_DSYMUTIL"; then
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6669. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6670. else
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6672. $as_echo "no" >&6; }
  6673. fi
  6674. if test "x$ac_ct_DSYMUTIL" = x; then
  6675. DSYMUTIL=":"
  6676. else
  6677. case $cross_compiling:$ac_tool_warned in
  6678. yes:)
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6680. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6681. ac_tool_warned=yes ;;
  6682. esac
  6683. DSYMUTIL=$ac_ct_DSYMUTIL
  6684. fi
  6685. else
  6686. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6687. fi
  6688. if test -n "$ac_tool_prefix"; then
  6689. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6690. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6692. $as_echo_n "checking for $ac_word... " >&6; }
  6693. if ${ac_cv_prog_NMEDIT+:} false; then :
  6694. $as_echo_n "(cached) " >&6
  6695. else
  6696. if test -n "$NMEDIT"; then
  6697. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6698. else
  6699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6700. for as_dir in $PATH
  6701. do
  6702. IFS=$as_save_IFS
  6703. test -z "$as_dir" && as_dir=.
  6704. for ac_exec_ext in '' $ac_executable_extensions; do
  6705. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6706. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6708. break 2
  6709. fi
  6710. done
  6711. done
  6712. IFS=$as_save_IFS
  6713. fi
  6714. fi
  6715. NMEDIT=$ac_cv_prog_NMEDIT
  6716. if test -n "$NMEDIT"; then
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6718. $as_echo "$NMEDIT" >&6; }
  6719. else
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6721. $as_echo "no" >&6; }
  6722. fi
  6723. fi
  6724. if test -z "$ac_cv_prog_NMEDIT"; then
  6725. ac_ct_NMEDIT=$NMEDIT
  6726. # Extract the first word of "nmedit", so it can be a program name with args.
  6727. set dummy nmedit; ac_word=$2
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6729. $as_echo_n "checking for $ac_word... " >&6; }
  6730. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. if test -n "$ac_ct_NMEDIT"; then
  6734. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6735. else
  6736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6737. for as_dir in $PATH
  6738. do
  6739. IFS=$as_save_IFS
  6740. test -z "$as_dir" && as_dir=.
  6741. for ac_exec_ext in '' $ac_executable_extensions; do
  6742. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6743. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6745. break 2
  6746. fi
  6747. done
  6748. done
  6749. IFS=$as_save_IFS
  6750. fi
  6751. fi
  6752. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6753. if test -n "$ac_ct_NMEDIT"; then
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6755. $as_echo "$ac_ct_NMEDIT" >&6; }
  6756. else
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6758. $as_echo "no" >&6; }
  6759. fi
  6760. if test "x$ac_ct_NMEDIT" = x; then
  6761. NMEDIT=":"
  6762. else
  6763. case $cross_compiling:$ac_tool_warned in
  6764. yes:)
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6767. ac_tool_warned=yes ;;
  6768. esac
  6769. NMEDIT=$ac_ct_NMEDIT
  6770. fi
  6771. else
  6772. NMEDIT="$ac_cv_prog_NMEDIT"
  6773. fi
  6774. if test -n "$ac_tool_prefix"; then
  6775. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6776. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6778. $as_echo_n "checking for $ac_word... " >&6; }
  6779. if ${ac_cv_prog_LIPO+:} false; then :
  6780. $as_echo_n "(cached) " >&6
  6781. else
  6782. if test -n "$LIPO"; then
  6783. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6784. else
  6785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6786. for as_dir in $PATH
  6787. do
  6788. IFS=$as_save_IFS
  6789. test -z "$as_dir" && as_dir=.
  6790. for ac_exec_ext in '' $ac_executable_extensions; do
  6791. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6792. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6794. break 2
  6795. fi
  6796. done
  6797. done
  6798. IFS=$as_save_IFS
  6799. fi
  6800. fi
  6801. LIPO=$ac_cv_prog_LIPO
  6802. if test -n "$LIPO"; then
  6803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6804. $as_echo "$LIPO" >&6; }
  6805. else
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6807. $as_echo "no" >&6; }
  6808. fi
  6809. fi
  6810. if test -z "$ac_cv_prog_LIPO"; then
  6811. ac_ct_LIPO=$LIPO
  6812. # Extract the first word of "lipo", so it can be a program name with args.
  6813. set dummy lipo; ac_word=$2
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6815. $as_echo_n "checking for $ac_word... " >&6; }
  6816. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6817. $as_echo_n "(cached) " >&6
  6818. else
  6819. if test -n "$ac_ct_LIPO"; then
  6820. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6821. else
  6822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6823. for as_dir in $PATH
  6824. do
  6825. IFS=$as_save_IFS
  6826. test -z "$as_dir" && as_dir=.
  6827. for ac_exec_ext in '' $ac_executable_extensions; do
  6828. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6829. ac_cv_prog_ac_ct_LIPO="lipo"
  6830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6831. break 2
  6832. fi
  6833. done
  6834. done
  6835. IFS=$as_save_IFS
  6836. fi
  6837. fi
  6838. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6839. if test -n "$ac_ct_LIPO"; then
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6841. $as_echo "$ac_ct_LIPO" >&6; }
  6842. else
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6844. $as_echo "no" >&6; }
  6845. fi
  6846. if test "x$ac_ct_LIPO" = x; then
  6847. LIPO=":"
  6848. else
  6849. case $cross_compiling:$ac_tool_warned in
  6850. yes:)
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6852. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6853. ac_tool_warned=yes ;;
  6854. esac
  6855. LIPO=$ac_ct_LIPO
  6856. fi
  6857. else
  6858. LIPO="$ac_cv_prog_LIPO"
  6859. fi
  6860. if test -n "$ac_tool_prefix"; then
  6861. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6862. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6864. $as_echo_n "checking for $ac_word... " >&6; }
  6865. if ${ac_cv_prog_OTOOL+:} false; then :
  6866. $as_echo_n "(cached) " >&6
  6867. else
  6868. if test -n "$OTOOL"; then
  6869. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6870. else
  6871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6872. for as_dir in $PATH
  6873. do
  6874. IFS=$as_save_IFS
  6875. test -z "$as_dir" && as_dir=.
  6876. for ac_exec_ext in '' $ac_executable_extensions; do
  6877. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6878. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6880. break 2
  6881. fi
  6882. done
  6883. done
  6884. IFS=$as_save_IFS
  6885. fi
  6886. fi
  6887. OTOOL=$ac_cv_prog_OTOOL
  6888. if test -n "$OTOOL"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6890. $as_echo "$OTOOL" >&6; }
  6891. else
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6893. $as_echo "no" >&6; }
  6894. fi
  6895. fi
  6896. if test -z "$ac_cv_prog_OTOOL"; then
  6897. ac_ct_OTOOL=$OTOOL
  6898. # Extract the first word of "otool", so it can be a program name with args.
  6899. set dummy otool; ac_word=$2
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6901. $as_echo_n "checking for $ac_word... " >&6; }
  6902. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6903. $as_echo_n "(cached) " >&6
  6904. else
  6905. if test -n "$ac_ct_OTOOL"; then
  6906. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6907. else
  6908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6909. for as_dir in $PATH
  6910. do
  6911. IFS=$as_save_IFS
  6912. test -z "$as_dir" && as_dir=.
  6913. for ac_exec_ext in '' $ac_executable_extensions; do
  6914. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6915. ac_cv_prog_ac_ct_OTOOL="otool"
  6916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6917. break 2
  6918. fi
  6919. done
  6920. done
  6921. IFS=$as_save_IFS
  6922. fi
  6923. fi
  6924. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6925. if test -n "$ac_ct_OTOOL"; then
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6927. $as_echo "$ac_ct_OTOOL" >&6; }
  6928. else
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6930. $as_echo "no" >&6; }
  6931. fi
  6932. if test "x$ac_ct_OTOOL" = x; then
  6933. OTOOL=":"
  6934. else
  6935. case $cross_compiling:$ac_tool_warned in
  6936. yes:)
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6939. ac_tool_warned=yes ;;
  6940. esac
  6941. OTOOL=$ac_ct_OTOOL
  6942. fi
  6943. else
  6944. OTOOL="$ac_cv_prog_OTOOL"
  6945. fi
  6946. if test -n "$ac_tool_prefix"; then
  6947. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6948. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6950. $as_echo_n "checking for $ac_word... " >&6; }
  6951. if ${ac_cv_prog_OTOOL64+:} false; then :
  6952. $as_echo_n "(cached) " >&6
  6953. else
  6954. if test -n "$OTOOL64"; then
  6955. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6956. else
  6957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6958. for as_dir in $PATH
  6959. do
  6960. IFS=$as_save_IFS
  6961. test -z "$as_dir" && as_dir=.
  6962. for ac_exec_ext in '' $ac_executable_extensions; do
  6963. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6964. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6966. break 2
  6967. fi
  6968. done
  6969. done
  6970. IFS=$as_save_IFS
  6971. fi
  6972. fi
  6973. OTOOL64=$ac_cv_prog_OTOOL64
  6974. if test -n "$OTOOL64"; then
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6976. $as_echo "$OTOOL64" >&6; }
  6977. else
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6979. $as_echo "no" >&6; }
  6980. fi
  6981. fi
  6982. if test -z "$ac_cv_prog_OTOOL64"; then
  6983. ac_ct_OTOOL64=$OTOOL64
  6984. # Extract the first word of "otool64", so it can be a program name with args.
  6985. set dummy otool64; ac_word=$2
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6987. $as_echo_n "checking for $ac_word... " >&6; }
  6988. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6989. $as_echo_n "(cached) " >&6
  6990. else
  6991. if test -n "$ac_ct_OTOOL64"; then
  6992. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6993. else
  6994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6995. for as_dir in $PATH
  6996. do
  6997. IFS=$as_save_IFS
  6998. test -z "$as_dir" && as_dir=.
  6999. for ac_exec_ext in '' $ac_executable_extensions; do
  7000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7001. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7003. break 2
  7004. fi
  7005. done
  7006. done
  7007. IFS=$as_save_IFS
  7008. fi
  7009. fi
  7010. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7011. if test -n "$ac_ct_OTOOL64"; then
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7013. $as_echo "$ac_ct_OTOOL64" >&6; }
  7014. else
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7016. $as_echo "no" >&6; }
  7017. fi
  7018. if test "x$ac_ct_OTOOL64" = x; then
  7019. OTOOL64=":"
  7020. else
  7021. case $cross_compiling:$ac_tool_warned in
  7022. yes:)
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7025. ac_tool_warned=yes ;;
  7026. esac
  7027. OTOOL64=$ac_ct_OTOOL64
  7028. fi
  7029. else
  7030. OTOOL64="$ac_cv_prog_OTOOL64"
  7031. fi
  7032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7033. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7034. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7035. $as_echo_n "(cached) " >&6
  7036. else
  7037. lt_cv_apple_cc_single_mod=no
  7038. if test -z "${LT_MULTI_MODULE}"; then
  7039. # By default we will add the -single_module flag. You can override
  7040. # by either setting the environment variable LT_MULTI_MODULE
  7041. # non-empty at configure time, or by adding -multi_module to the
  7042. # link flags.
  7043. rm -rf libconftest.dylib*
  7044. echo "int foo(void){return 1;}" > conftest.c
  7045. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7046. -dynamiclib -Wl,-single_module conftest.c" >&5
  7047. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7048. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7049. _lt_result=$?
  7050. # If there is a non-empty error log, and "single_module"
  7051. # appears in it, assume the flag caused a linker warning
  7052. if test -s conftest.err && $GREP single_module conftest.err; then
  7053. cat conftest.err >&5
  7054. # Otherwise, if the output was created with a 0 exit code from
  7055. # the compiler, it worked.
  7056. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7057. lt_cv_apple_cc_single_mod=yes
  7058. else
  7059. cat conftest.err >&5
  7060. fi
  7061. rm -rf libconftest.dylib*
  7062. rm -f conftest.*
  7063. fi
  7064. fi
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7066. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7068. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7069. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7070. $as_echo_n "(cached) " >&6
  7071. else
  7072. lt_cv_ld_exported_symbols_list=no
  7073. save_LDFLAGS=$LDFLAGS
  7074. echo "_main" > conftest.sym
  7075. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7077. /* end confdefs.h. */
  7078. int
  7079. main ()
  7080. {
  7081. ;
  7082. return 0;
  7083. }
  7084. _ACEOF
  7085. if ac_fn_c_try_link "$LINENO"; then :
  7086. lt_cv_ld_exported_symbols_list=yes
  7087. else
  7088. lt_cv_ld_exported_symbols_list=no
  7089. fi
  7090. rm -f core conftest.err conftest.$ac_objext \
  7091. conftest$ac_exeext conftest.$ac_ext
  7092. LDFLAGS="$save_LDFLAGS"
  7093. fi
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7095. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7097. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7098. if ${lt_cv_ld_force_load+:} false; then :
  7099. $as_echo_n "(cached) " >&6
  7100. else
  7101. lt_cv_ld_force_load=no
  7102. cat > conftest.c << _LT_EOF
  7103. int forced_loaded() { return 2;}
  7104. _LT_EOF
  7105. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7106. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7107. echo "$AR cru libconftest.a conftest.o" >&5
  7108. $AR cru libconftest.a conftest.o 2>&5
  7109. echo "$RANLIB libconftest.a" >&5
  7110. $RANLIB libconftest.a 2>&5
  7111. cat > conftest.c << _LT_EOF
  7112. int main() { return 0;}
  7113. _LT_EOF
  7114. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7115. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7116. _lt_result=$?
  7117. if test -s conftest.err && $GREP force_load conftest.err; then
  7118. cat conftest.err >&5
  7119. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7120. lt_cv_ld_force_load=yes
  7121. else
  7122. cat conftest.err >&5
  7123. fi
  7124. rm -f conftest.err libconftest.a conftest conftest.c
  7125. rm -rf conftest.dSYM
  7126. fi
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7128. $as_echo "$lt_cv_ld_force_load" >&6; }
  7129. case $host_os in
  7130. rhapsody* | darwin1.[012])
  7131. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7132. darwin1.*)
  7133. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7134. darwin*) # darwin 5.x on
  7135. # if running on 10.5 or later, the deployment target defaults
  7136. # to the OS version, if on x86, and 10.4, the deployment
  7137. # target defaults to 10.4. Don't you love it?
  7138. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7139. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7140. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7141. 10.[012]*)
  7142. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7143. 10.*)
  7144. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7145. esac
  7146. ;;
  7147. esac
  7148. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7149. _lt_dar_single_mod='$single_module'
  7150. fi
  7151. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7152. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7153. else
  7154. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7155. fi
  7156. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7157. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7158. else
  7159. _lt_dsymutil=
  7160. fi
  7161. ;;
  7162. esac
  7163. for ac_header in dlfcn.h
  7164. do :
  7165. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7166. "
  7167. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7168. cat >>confdefs.h <<_ACEOF
  7169. #define HAVE_DLFCN_H 1
  7170. _ACEOF
  7171. fi
  7172. done
  7173. func_stripname_cnf ()
  7174. {
  7175. case ${2} in
  7176. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7177. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7178. esac
  7179. } # func_stripname_cnf
  7180. # Set options
  7181. enable_dlopen=no
  7182. # Check whether --enable-shared was given.
  7183. if test "${enable_shared+set}" = set; then :
  7184. enableval=$enable_shared; p=${PACKAGE-default}
  7185. case $enableval in
  7186. yes) enable_shared=yes ;;
  7187. no) enable_shared=no ;;
  7188. *)
  7189. enable_shared=no
  7190. # Look at the argument we got. We use all the common list separators.
  7191. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7192. for pkg in $enableval; do
  7193. IFS="$lt_save_ifs"
  7194. if test "X$pkg" = "X$p"; then
  7195. enable_shared=yes
  7196. fi
  7197. done
  7198. IFS="$lt_save_ifs"
  7199. ;;
  7200. esac
  7201. else
  7202. enable_shared=yes
  7203. fi
  7204. # Check whether --enable-static was given.
  7205. if test "${enable_static+set}" = set; then :
  7206. enableval=$enable_static; p=${PACKAGE-default}
  7207. case $enableval in
  7208. yes) enable_static=yes ;;
  7209. no) enable_static=no ;;
  7210. *)
  7211. enable_static=no
  7212. # Look at the argument we got. We use all the common list separators.
  7213. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7214. for pkg in $enableval; do
  7215. IFS="$lt_save_ifs"
  7216. if test "X$pkg" = "X$p"; then
  7217. enable_static=yes
  7218. fi
  7219. done
  7220. IFS="$lt_save_ifs"
  7221. ;;
  7222. esac
  7223. else
  7224. enable_static=yes
  7225. fi
  7226. # Check whether --with-pic was given.
  7227. if test "${with_pic+set}" = set; then :
  7228. withval=$with_pic; lt_p=${PACKAGE-default}
  7229. case $withval in
  7230. yes|no) pic_mode=$withval ;;
  7231. *)
  7232. pic_mode=default
  7233. # Look at the argument we got. We use all the common list separators.
  7234. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7235. for lt_pkg in $withval; do
  7236. IFS="$lt_save_ifs"
  7237. if test "X$lt_pkg" = "X$lt_p"; then
  7238. pic_mode=yes
  7239. fi
  7240. done
  7241. IFS="$lt_save_ifs"
  7242. ;;
  7243. esac
  7244. else
  7245. pic_mode=default
  7246. fi
  7247. test -z "$pic_mode" && pic_mode=default
  7248. # Check whether --enable-fast-install was given.
  7249. if test "${enable_fast_install+set}" = set; then :
  7250. enableval=$enable_fast_install; p=${PACKAGE-default}
  7251. case $enableval in
  7252. yes) enable_fast_install=yes ;;
  7253. no) enable_fast_install=no ;;
  7254. *)
  7255. enable_fast_install=no
  7256. # Look at the argument we got. We use all the common list separators.
  7257. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7258. for pkg in $enableval; do
  7259. IFS="$lt_save_ifs"
  7260. if test "X$pkg" = "X$p"; then
  7261. enable_fast_install=yes
  7262. fi
  7263. done
  7264. IFS="$lt_save_ifs"
  7265. ;;
  7266. esac
  7267. else
  7268. enable_fast_install=yes
  7269. fi
  7270. # This can be used to rebuild libtool when needed
  7271. LIBTOOL_DEPS="$ltmain"
  7272. # Always use our own libtool.
  7273. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7274. test -z "$LN_S" && LN_S="ln -s"
  7275. if test -n "${ZSH_VERSION+set}" ; then
  7276. setopt NO_GLOB_SUBST
  7277. fi
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7279. $as_echo_n "checking for objdir... " >&6; }
  7280. if ${lt_cv_objdir+:} false; then :
  7281. $as_echo_n "(cached) " >&6
  7282. else
  7283. rm -f .libs 2>/dev/null
  7284. mkdir .libs 2>/dev/null
  7285. if test -d .libs; then
  7286. lt_cv_objdir=.libs
  7287. else
  7288. # MS-DOS does not allow filenames that begin with a dot.
  7289. lt_cv_objdir=_libs
  7290. fi
  7291. rmdir .libs 2>/dev/null
  7292. fi
  7293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7294. $as_echo "$lt_cv_objdir" >&6; }
  7295. objdir=$lt_cv_objdir
  7296. cat >>confdefs.h <<_ACEOF
  7297. #define LT_OBJDIR "$lt_cv_objdir/"
  7298. _ACEOF
  7299. case $host_os in
  7300. aix3*)
  7301. # AIX sometimes has problems with the GCC collect2 program. For some
  7302. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7303. # vanish in a puff of smoke.
  7304. if test "X${COLLECT_NAMES+set}" != Xset; then
  7305. COLLECT_NAMES=
  7306. export COLLECT_NAMES
  7307. fi
  7308. ;;
  7309. esac
  7310. # Global variables:
  7311. ofile=libtool
  7312. can_build_shared=yes
  7313. # All known linkers require a `.a' archive for static linking (except MSVC,
  7314. # which needs '.lib').
  7315. libext=a
  7316. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7317. old_CC="$CC"
  7318. old_CFLAGS="$CFLAGS"
  7319. # Set sane defaults for various variables
  7320. test -z "$CC" && CC=cc
  7321. test -z "$LTCC" && LTCC=$CC
  7322. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7323. test -z "$LD" && LD=ld
  7324. test -z "$ac_objext" && ac_objext=o
  7325. for cc_temp in $compiler""; do
  7326. case $cc_temp in
  7327. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7328. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7329. \-*) ;;
  7330. *) break;;
  7331. esac
  7332. done
  7333. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7334. # Only perform the check for file, if the check method requires it
  7335. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7336. case $deplibs_check_method in
  7337. file_magic*)
  7338. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7340. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7341. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7342. $as_echo_n "(cached) " >&6
  7343. else
  7344. case $MAGIC_CMD in
  7345. [\\/*] | ?:[\\/]*)
  7346. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7347. ;;
  7348. *)
  7349. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7350. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7351. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7352. for ac_dir in $ac_dummy; do
  7353. IFS="$lt_save_ifs"
  7354. test -z "$ac_dir" && ac_dir=.
  7355. if test -f $ac_dir/${ac_tool_prefix}file; then
  7356. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7357. if test -n "$file_magic_test_file"; then
  7358. case $deplibs_check_method in
  7359. "file_magic "*)
  7360. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7361. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7362. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7363. $EGREP "$file_magic_regex" > /dev/null; then
  7364. :
  7365. else
  7366. cat <<_LT_EOF 1>&2
  7367. *** Warning: the command libtool uses to detect shared libraries,
  7368. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7369. *** The result is that libtool may fail to recognize shared libraries
  7370. *** as such. This will affect the creation of libtool libraries that
  7371. *** depend on shared libraries, but programs linked with such libtool
  7372. *** libraries will work regardless of this problem. Nevertheless, you
  7373. *** may want to report the problem to your system manager and/or to
  7374. *** bug-libtool@gnu.org
  7375. _LT_EOF
  7376. fi ;;
  7377. esac
  7378. fi
  7379. break
  7380. fi
  7381. done
  7382. IFS="$lt_save_ifs"
  7383. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7384. ;;
  7385. esac
  7386. fi
  7387. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7388. if test -n "$MAGIC_CMD"; then
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7390. $as_echo "$MAGIC_CMD" >&6; }
  7391. else
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7393. $as_echo "no" >&6; }
  7394. fi
  7395. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7396. if test -n "$ac_tool_prefix"; then
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7398. $as_echo_n "checking for file... " >&6; }
  7399. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7400. $as_echo_n "(cached) " >&6
  7401. else
  7402. case $MAGIC_CMD in
  7403. [\\/*] | ?:[\\/]*)
  7404. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7405. ;;
  7406. *)
  7407. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7408. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7409. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7410. for ac_dir in $ac_dummy; do
  7411. IFS="$lt_save_ifs"
  7412. test -z "$ac_dir" && ac_dir=.
  7413. if test -f $ac_dir/file; then
  7414. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7415. if test -n "$file_magic_test_file"; then
  7416. case $deplibs_check_method in
  7417. "file_magic "*)
  7418. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7419. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7420. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7421. $EGREP "$file_magic_regex" > /dev/null; then
  7422. :
  7423. else
  7424. cat <<_LT_EOF 1>&2
  7425. *** Warning: the command libtool uses to detect shared libraries,
  7426. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7427. *** The result is that libtool may fail to recognize shared libraries
  7428. *** as such. This will affect the creation of libtool libraries that
  7429. *** depend on shared libraries, but programs linked with such libtool
  7430. *** libraries will work regardless of this problem. Nevertheless, you
  7431. *** may want to report the problem to your system manager and/or to
  7432. *** bug-libtool@gnu.org
  7433. _LT_EOF
  7434. fi ;;
  7435. esac
  7436. fi
  7437. break
  7438. fi
  7439. done
  7440. IFS="$lt_save_ifs"
  7441. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7442. ;;
  7443. esac
  7444. fi
  7445. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7446. if test -n "$MAGIC_CMD"; then
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7448. $as_echo "$MAGIC_CMD" >&6; }
  7449. else
  7450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7451. $as_echo "no" >&6; }
  7452. fi
  7453. else
  7454. MAGIC_CMD=:
  7455. fi
  7456. fi
  7457. fi
  7458. ;;
  7459. esac
  7460. # Use C for the default configuration in the libtool script
  7461. lt_save_CC="$CC"
  7462. ac_ext=c
  7463. ac_cpp='$CPP $CPPFLAGS'
  7464. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7465. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7466. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7467. # Source file extension for C test sources.
  7468. ac_ext=c
  7469. # Object file extension for compiled C test sources.
  7470. objext=o
  7471. objext=$objext
  7472. # Code to be used in simple compile tests
  7473. lt_simple_compile_test_code="int some_variable = 0;"
  7474. # Code to be used in simple link tests
  7475. lt_simple_link_test_code='int main(){return(0);}'
  7476. # If no C compiler was specified, use CC.
  7477. LTCC=${LTCC-"$CC"}
  7478. # If no C compiler flags were specified, use CFLAGS.
  7479. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7480. # Allow CC to be a program name with arguments.
  7481. compiler=$CC
  7482. # Save the default compiler, since it gets overwritten when the other
  7483. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7484. compiler_DEFAULT=$CC
  7485. # save warnings/boilerplate of simple test code
  7486. ac_outfile=conftest.$ac_objext
  7487. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7488. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7489. _lt_compiler_boilerplate=`cat conftest.err`
  7490. $RM conftest*
  7491. ac_outfile=conftest.$ac_objext
  7492. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7493. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7494. _lt_linker_boilerplate=`cat conftest.err`
  7495. $RM -r conftest*
  7496. if test -n "$compiler"; then
  7497. lt_prog_compiler_no_builtin_flag=
  7498. if test "$GCC" = yes; then
  7499. case $cc_basename in
  7500. nvcc*)
  7501. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7502. *)
  7503. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7504. esac
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7506. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7507. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7508. $as_echo_n "(cached) " >&6
  7509. else
  7510. lt_cv_prog_compiler_rtti_exceptions=no
  7511. ac_outfile=conftest.$ac_objext
  7512. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7513. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7514. # Insert the option either (1) after the last *FLAGS variable, or
  7515. # (2) before a word containing "conftest.", or (3) at the end.
  7516. # Note that $ac_compile itself does not contain backslashes and begins
  7517. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7518. # The option is referenced via a variable to avoid confusing sed.
  7519. lt_compile=`echo "$ac_compile" | $SED \
  7520. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7521. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7522. -e 's:$: $lt_compiler_flag:'`
  7523. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7524. (eval "$lt_compile" 2>conftest.err)
  7525. ac_status=$?
  7526. cat conftest.err >&5
  7527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7528. if (exit $ac_status) && test -s "$ac_outfile"; then
  7529. # The compiler can only warn and ignore the option if not recognized
  7530. # So say no if there are warnings other than the usual output.
  7531. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7532. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7533. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7534. lt_cv_prog_compiler_rtti_exceptions=yes
  7535. fi
  7536. fi
  7537. $RM conftest*
  7538. fi
  7539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7540. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7541. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7542. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7543. else
  7544. :
  7545. fi
  7546. fi
  7547. lt_prog_compiler_wl=
  7548. lt_prog_compiler_pic=
  7549. lt_prog_compiler_static=
  7550. if test "$GCC" = yes; then
  7551. lt_prog_compiler_wl='-Wl,'
  7552. lt_prog_compiler_static='-static'
  7553. case $host_os in
  7554. aix*)
  7555. # All AIX code is PIC.
  7556. if test "$host_cpu" = ia64; then
  7557. # AIX 5 now supports IA64 processor
  7558. lt_prog_compiler_static='-Bstatic'
  7559. fi
  7560. ;;
  7561. amigaos*)
  7562. case $host_cpu in
  7563. powerpc)
  7564. # see comment about AmigaOS4 .so support
  7565. lt_prog_compiler_pic='-fPIC'
  7566. ;;
  7567. m68k)
  7568. # FIXME: we need at least 68020 code to build shared libraries, but
  7569. # adding the `-m68020' flag to GCC prevents building anything better,
  7570. # like `-m68040'.
  7571. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7572. ;;
  7573. esac
  7574. ;;
  7575. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7576. # PIC is the default for these OSes.
  7577. ;;
  7578. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7579. # This hack is so that the source file can tell whether it is being
  7580. # built for inclusion in a dll (and should export symbols for example).
  7581. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7582. # (--disable-auto-import) libraries
  7583. lt_prog_compiler_pic='-DDLL_EXPORT'
  7584. ;;
  7585. darwin* | rhapsody*)
  7586. # PIC is the default on this platform
  7587. # Common symbols not allowed in MH_DYLIB files
  7588. lt_prog_compiler_pic='-fno-common'
  7589. ;;
  7590. haiku*)
  7591. # PIC is the default for Haiku.
  7592. # The "-static" flag exists, but is broken.
  7593. lt_prog_compiler_static=
  7594. ;;
  7595. hpux*)
  7596. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7597. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7598. # sets the default TLS model and affects inlining.
  7599. case $host_cpu in
  7600. hppa*64*)
  7601. # +Z the default
  7602. ;;
  7603. *)
  7604. lt_prog_compiler_pic='-fPIC'
  7605. ;;
  7606. esac
  7607. ;;
  7608. interix[3-9]*)
  7609. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7610. # Instead, we relocate shared libraries at runtime.
  7611. ;;
  7612. msdosdjgpp*)
  7613. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7614. # on systems that don't support them.
  7615. lt_prog_compiler_can_build_shared=no
  7616. enable_shared=no
  7617. ;;
  7618. *nto* | *qnx*)
  7619. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7620. # it will coredump.
  7621. lt_prog_compiler_pic='-fPIC -shared'
  7622. ;;
  7623. sysv4*MP*)
  7624. if test -d /usr/nec; then
  7625. lt_prog_compiler_pic=-Kconform_pic
  7626. fi
  7627. ;;
  7628. *)
  7629. lt_prog_compiler_pic='-fPIC'
  7630. ;;
  7631. esac
  7632. case $cc_basename in
  7633. nvcc*) # Cuda Compiler Driver 2.2
  7634. lt_prog_compiler_wl='-Xlinker '
  7635. if test -n "$lt_prog_compiler_pic"; then
  7636. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7637. fi
  7638. ;;
  7639. esac
  7640. else
  7641. # PORTME Check for flag to pass linker flags through the system compiler.
  7642. case $host_os in
  7643. aix*)
  7644. lt_prog_compiler_wl='-Wl,'
  7645. if test "$host_cpu" = ia64; then
  7646. # AIX 5 now supports IA64 processor
  7647. lt_prog_compiler_static='-Bstatic'
  7648. else
  7649. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7650. fi
  7651. ;;
  7652. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7653. # This hack is so that the source file can tell whether it is being
  7654. # built for inclusion in a dll (and should export symbols for example).
  7655. lt_prog_compiler_pic='-DDLL_EXPORT'
  7656. ;;
  7657. hpux9* | hpux10* | hpux11*)
  7658. lt_prog_compiler_wl='-Wl,'
  7659. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7660. # not for PA HP-UX.
  7661. case $host_cpu in
  7662. hppa*64*|ia64*)
  7663. # +Z the default
  7664. ;;
  7665. *)
  7666. lt_prog_compiler_pic='+Z'
  7667. ;;
  7668. esac
  7669. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7670. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7671. ;;
  7672. irix5* | irix6* | nonstopux*)
  7673. lt_prog_compiler_wl='-Wl,'
  7674. # PIC (with -KPIC) is the default.
  7675. lt_prog_compiler_static='-non_shared'
  7676. ;;
  7677. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7678. case $cc_basename in
  7679. # old Intel for x86_64 which still supported -KPIC.
  7680. ecc*)
  7681. lt_prog_compiler_wl='-Wl,'
  7682. lt_prog_compiler_pic='-KPIC'
  7683. lt_prog_compiler_static='-static'
  7684. ;;
  7685. # icc used to be incompatible with GCC.
  7686. # ICC 10 doesn't accept -KPIC any more.
  7687. icc* | ifort*)
  7688. lt_prog_compiler_wl='-Wl,'
  7689. lt_prog_compiler_pic='-fPIC'
  7690. lt_prog_compiler_static='-static'
  7691. ;;
  7692. # Lahey Fortran 8.1.
  7693. lf95*)
  7694. lt_prog_compiler_wl='-Wl,'
  7695. lt_prog_compiler_pic='--shared'
  7696. lt_prog_compiler_static='--static'
  7697. ;;
  7698. nagfor*)
  7699. # NAG Fortran compiler
  7700. lt_prog_compiler_wl='-Wl,-Wl,,'
  7701. lt_prog_compiler_pic='-PIC'
  7702. lt_prog_compiler_static='-Bstatic'
  7703. ;;
  7704. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7705. # Portland Group compilers (*not* the Pentium gcc compiler,
  7706. # which looks to be a dead project)
  7707. lt_prog_compiler_wl='-Wl,'
  7708. lt_prog_compiler_pic='-fpic'
  7709. lt_prog_compiler_static='-Bstatic'
  7710. ;;
  7711. ccc*)
  7712. lt_prog_compiler_wl='-Wl,'
  7713. # All Alpha code is PIC.
  7714. lt_prog_compiler_static='-non_shared'
  7715. ;;
  7716. xl* | bgxl* | bgf* | mpixl*)
  7717. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7718. lt_prog_compiler_wl='-Wl,'
  7719. lt_prog_compiler_pic='-qpic'
  7720. lt_prog_compiler_static='-qstaticlink'
  7721. ;;
  7722. *)
  7723. case `$CC -V 2>&1 | sed 5q` in
  7724. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7725. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7726. lt_prog_compiler_pic='-KPIC'
  7727. lt_prog_compiler_static='-Bstatic'
  7728. lt_prog_compiler_wl=''
  7729. ;;
  7730. *Sun\ F* | *Sun*Fortran*)
  7731. lt_prog_compiler_pic='-KPIC'
  7732. lt_prog_compiler_static='-Bstatic'
  7733. lt_prog_compiler_wl='-Qoption ld '
  7734. ;;
  7735. *Sun\ C*)
  7736. # Sun C 5.9
  7737. lt_prog_compiler_pic='-KPIC'
  7738. lt_prog_compiler_static='-Bstatic'
  7739. lt_prog_compiler_wl='-Wl,'
  7740. ;;
  7741. *Intel*\ [CF]*Compiler*)
  7742. lt_prog_compiler_wl='-Wl,'
  7743. lt_prog_compiler_pic='-fPIC'
  7744. lt_prog_compiler_static='-static'
  7745. ;;
  7746. *Portland\ Group*)
  7747. lt_prog_compiler_wl='-Wl,'
  7748. lt_prog_compiler_pic='-fpic'
  7749. lt_prog_compiler_static='-Bstatic'
  7750. ;;
  7751. esac
  7752. ;;
  7753. esac
  7754. ;;
  7755. newsos6)
  7756. lt_prog_compiler_pic='-KPIC'
  7757. lt_prog_compiler_static='-Bstatic'
  7758. ;;
  7759. *nto* | *qnx*)
  7760. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7761. # it will coredump.
  7762. lt_prog_compiler_pic='-fPIC -shared'
  7763. ;;
  7764. osf3* | osf4* | osf5*)
  7765. lt_prog_compiler_wl='-Wl,'
  7766. # All OSF/1 code is PIC.
  7767. lt_prog_compiler_static='-non_shared'
  7768. ;;
  7769. rdos*)
  7770. lt_prog_compiler_static='-non_shared'
  7771. ;;
  7772. solaris*)
  7773. lt_prog_compiler_pic='-KPIC'
  7774. lt_prog_compiler_static='-Bstatic'
  7775. case $cc_basename in
  7776. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7777. lt_prog_compiler_wl='-Qoption ld ';;
  7778. *)
  7779. lt_prog_compiler_wl='-Wl,';;
  7780. esac
  7781. ;;
  7782. sunos4*)
  7783. lt_prog_compiler_wl='-Qoption ld '
  7784. lt_prog_compiler_pic='-PIC'
  7785. lt_prog_compiler_static='-Bstatic'
  7786. ;;
  7787. sysv4 | sysv4.2uw2* | sysv4.3*)
  7788. lt_prog_compiler_wl='-Wl,'
  7789. lt_prog_compiler_pic='-KPIC'
  7790. lt_prog_compiler_static='-Bstatic'
  7791. ;;
  7792. sysv4*MP*)
  7793. if test -d /usr/nec ;then
  7794. lt_prog_compiler_pic='-Kconform_pic'
  7795. lt_prog_compiler_static='-Bstatic'
  7796. fi
  7797. ;;
  7798. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7799. lt_prog_compiler_wl='-Wl,'
  7800. lt_prog_compiler_pic='-KPIC'
  7801. lt_prog_compiler_static='-Bstatic'
  7802. ;;
  7803. unicos*)
  7804. lt_prog_compiler_wl='-Wl,'
  7805. lt_prog_compiler_can_build_shared=no
  7806. ;;
  7807. uts4*)
  7808. lt_prog_compiler_pic='-pic'
  7809. lt_prog_compiler_static='-Bstatic'
  7810. ;;
  7811. *)
  7812. lt_prog_compiler_can_build_shared=no
  7813. ;;
  7814. esac
  7815. fi
  7816. case $host_os in
  7817. # For platforms which do not support PIC, -DPIC is meaningless:
  7818. *djgpp*)
  7819. lt_prog_compiler_pic=
  7820. ;;
  7821. *)
  7822. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7823. ;;
  7824. esac
  7825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7826. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7827. if ${lt_cv_prog_compiler_pic+:} false; then :
  7828. $as_echo_n "(cached) " >&6
  7829. else
  7830. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7831. fi
  7832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7833. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7834. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7835. #
  7836. # Check to make sure the PIC flag actually works.
  7837. #
  7838. if test -n "$lt_prog_compiler_pic"; then
  7839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7840. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7841. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7842. $as_echo_n "(cached) " >&6
  7843. else
  7844. lt_cv_prog_compiler_pic_works=no
  7845. ac_outfile=conftest.$ac_objext
  7846. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7847. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7848. # Insert the option either (1) after the last *FLAGS variable, or
  7849. # (2) before a word containing "conftest.", or (3) at the end.
  7850. # Note that $ac_compile itself does not contain backslashes and begins
  7851. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7852. # The option is referenced via a variable to avoid confusing sed.
  7853. lt_compile=`echo "$ac_compile" | $SED \
  7854. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7855. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7856. -e 's:$: $lt_compiler_flag:'`
  7857. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7858. (eval "$lt_compile" 2>conftest.err)
  7859. ac_status=$?
  7860. cat conftest.err >&5
  7861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7862. if (exit $ac_status) && test -s "$ac_outfile"; then
  7863. # The compiler can only warn and ignore the option if not recognized
  7864. # So say no if there are warnings other than the usual output.
  7865. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7866. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7867. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7868. lt_cv_prog_compiler_pic_works=yes
  7869. fi
  7870. fi
  7871. $RM conftest*
  7872. fi
  7873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7874. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7875. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7876. case $lt_prog_compiler_pic in
  7877. "" | " "*) ;;
  7878. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7879. esac
  7880. else
  7881. lt_prog_compiler_pic=
  7882. lt_prog_compiler_can_build_shared=no
  7883. fi
  7884. fi
  7885. #
  7886. # Check to make sure the static flag actually works.
  7887. #
  7888. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7890. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7891. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7892. $as_echo_n "(cached) " >&6
  7893. else
  7894. lt_cv_prog_compiler_static_works=no
  7895. save_LDFLAGS="$LDFLAGS"
  7896. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7897. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7898. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7899. # The linker can only warn and ignore the option if not recognized
  7900. # So say no if there are warnings
  7901. if test -s conftest.err; then
  7902. # Append any errors to the config.log.
  7903. cat conftest.err 1>&5
  7904. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7905. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7906. if diff conftest.exp conftest.er2 >/dev/null; then
  7907. lt_cv_prog_compiler_static_works=yes
  7908. fi
  7909. else
  7910. lt_cv_prog_compiler_static_works=yes
  7911. fi
  7912. fi
  7913. $RM -r conftest*
  7914. LDFLAGS="$save_LDFLAGS"
  7915. fi
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7917. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7918. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7919. :
  7920. else
  7921. lt_prog_compiler_static=
  7922. fi
  7923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7924. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7925. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7926. $as_echo_n "(cached) " >&6
  7927. else
  7928. lt_cv_prog_compiler_c_o=no
  7929. $RM -r conftest 2>/dev/null
  7930. mkdir conftest
  7931. cd conftest
  7932. mkdir out
  7933. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7934. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7935. # Insert the option either (1) after the last *FLAGS variable, or
  7936. # (2) before a word containing "conftest.", or (3) at the end.
  7937. # Note that $ac_compile itself does not contain backslashes and begins
  7938. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7939. lt_compile=`echo "$ac_compile" | $SED \
  7940. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7941. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7942. -e 's:$: $lt_compiler_flag:'`
  7943. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7944. (eval "$lt_compile" 2>out/conftest.err)
  7945. ac_status=$?
  7946. cat out/conftest.err >&5
  7947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7948. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7949. then
  7950. # The compiler can only warn and ignore the option if not recognized
  7951. # So say no if there are warnings
  7952. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7953. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7954. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7955. lt_cv_prog_compiler_c_o=yes
  7956. fi
  7957. fi
  7958. chmod u+w . 2>&5
  7959. $RM conftest*
  7960. # SGI C++ compiler will create directory out/ii_files/ for
  7961. # template instantiation
  7962. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7963. $RM out/* && rmdir out
  7964. cd ..
  7965. $RM -r conftest
  7966. $RM conftest*
  7967. fi
  7968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7969. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7971. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7972. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7973. $as_echo_n "(cached) " >&6
  7974. else
  7975. lt_cv_prog_compiler_c_o=no
  7976. $RM -r conftest 2>/dev/null
  7977. mkdir conftest
  7978. cd conftest
  7979. mkdir out
  7980. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7981. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7982. # Insert the option either (1) after the last *FLAGS variable, or
  7983. # (2) before a word containing "conftest.", or (3) at the end.
  7984. # Note that $ac_compile itself does not contain backslashes and begins
  7985. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7986. lt_compile=`echo "$ac_compile" | $SED \
  7987. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7988. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7989. -e 's:$: $lt_compiler_flag:'`
  7990. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7991. (eval "$lt_compile" 2>out/conftest.err)
  7992. ac_status=$?
  7993. cat out/conftest.err >&5
  7994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7995. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7996. then
  7997. # The compiler can only warn and ignore the option if not recognized
  7998. # So say no if there are warnings
  7999. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8000. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8001. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8002. lt_cv_prog_compiler_c_o=yes
  8003. fi
  8004. fi
  8005. chmod u+w . 2>&5
  8006. $RM conftest*
  8007. # SGI C++ compiler will create directory out/ii_files/ for
  8008. # template instantiation
  8009. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8010. $RM out/* && rmdir out
  8011. cd ..
  8012. $RM -r conftest
  8013. $RM conftest*
  8014. fi
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8016. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8017. hard_links="nottested"
  8018. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8019. # do not overwrite the value of need_locks provided by the user
  8020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8021. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8022. hard_links=yes
  8023. $RM conftest*
  8024. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8025. touch conftest.a
  8026. ln conftest.a conftest.b 2>&5 || hard_links=no
  8027. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8029. $as_echo "$hard_links" >&6; }
  8030. if test "$hard_links" = no; then
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8032. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8033. need_locks=warn
  8034. fi
  8035. else
  8036. need_locks=no
  8037. fi
  8038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8039. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8040. runpath_var=
  8041. allow_undefined_flag=
  8042. always_export_symbols=no
  8043. archive_cmds=
  8044. archive_expsym_cmds=
  8045. compiler_needs_object=no
  8046. enable_shared_with_static_runtimes=no
  8047. export_dynamic_flag_spec=
  8048. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8049. hardcode_automatic=no
  8050. hardcode_direct=no
  8051. hardcode_direct_absolute=no
  8052. hardcode_libdir_flag_spec=
  8053. hardcode_libdir_separator=
  8054. hardcode_minus_L=no
  8055. hardcode_shlibpath_var=unsupported
  8056. inherit_rpath=no
  8057. link_all_deplibs=unknown
  8058. module_cmds=
  8059. module_expsym_cmds=
  8060. old_archive_from_new_cmds=
  8061. old_archive_from_expsyms_cmds=
  8062. thread_safe_flag_spec=
  8063. whole_archive_flag_spec=
  8064. # include_expsyms should be a list of space-separated symbols to be *always*
  8065. # included in the symbol list
  8066. include_expsyms=
  8067. # exclude_expsyms can be an extended regexp of symbols to exclude
  8068. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8069. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8070. # as well as any symbol that contains `d'.
  8071. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8072. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8073. # platforms (ab)use it in PIC code, but their linkers get confused if
  8074. # the symbol is explicitly referenced. Since portable code cannot
  8075. # rely on this symbol name, it's probably fine to never include it in
  8076. # preloaded symbol tables.
  8077. # Exclude shared library initialization/finalization symbols.
  8078. extract_expsyms_cmds=
  8079. case $host_os in
  8080. cygwin* | mingw* | pw32* | cegcc*)
  8081. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8082. # When not using gcc, we currently assume that we are using
  8083. # Microsoft Visual C++.
  8084. if test "$GCC" != yes; then
  8085. with_gnu_ld=no
  8086. fi
  8087. ;;
  8088. interix*)
  8089. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8090. with_gnu_ld=yes
  8091. ;;
  8092. openbsd*)
  8093. with_gnu_ld=no
  8094. ;;
  8095. esac
  8096. ld_shlibs=yes
  8097. # On some targets, GNU ld is compatible enough with the native linker
  8098. # that we're better off using the native interface for both.
  8099. lt_use_gnu_ld_interface=no
  8100. if test "$with_gnu_ld" = yes; then
  8101. case $host_os in
  8102. aix*)
  8103. # The AIX port of GNU ld has always aspired to compatibility
  8104. # with the native linker. However, as the warning in the GNU ld
  8105. # block says, versions before 2.19.5* couldn't really create working
  8106. # shared libraries, regardless of the interface used.
  8107. case `$LD -v 2>&1` in
  8108. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8109. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8110. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8111. *)
  8112. lt_use_gnu_ld_interface=yes
  8113. ;;
  8114. esac
  8115. ;;
  8116. *)
  8117. lt_use_gnu_ld_interface=yes
  8118. ;;
  8119. esac
  8120. fi
  8121. if test "$lt_use_gnu_ld_interface" = yes; then
  8122. # If archive_cmds runs LD, not CC, wlarc should be empty
  8123. wlarc='${wl}'
  8124. # Set some defaults for GNU ld with shared library support. These
  8125. # are reset later if shared libraries are not supported. Putting them
  8126. # here allows them to be overridden if necessary.
  8127. runpath_var=LD_RUN_PATH
  8128. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8129. export_dynamic_flag_spec='${wl}--export-dynamic'
  8130. # ancient GNU ld didn't support --whole-archive et. al.
  8131. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8132. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8133. else
  8134. whole_archive_flag_spec=
  8135. fi
  8136. supports_anon_versioning=no
  8137. case `$LD -v 2>&1` in
  8138. *GNU\ gold*) supports_anon_versioning=yes ;;
  8139. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8140. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8141. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8142. *\ 2.11.*) ;; # other 2.11 versions
  8143. *) supports_anon_versioning=yes ;;
  8144. esac
  8145. # See if GNU ld supports shared libraries.
  8146. case $host_os in
  8147. aix[3-9]*)
  8148. # On AIX/PPC, the GNU linker is very broken
  8149. if test "$host_cpu" != ia64; then
  8150. ld_shlibs=no
  8151. cat <<_LT_EOF 1>&2
  8152. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8153. *** to be unable to reliably create shared libraries on AIX.
  8154. *** Therefore, libtool is disabling shared libraries support. If you
  8155. *** really care for shared libraries, you may want to install binutils
  8156. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8157. *** You will then need to restart the configuration process.
  8158. _LT_EOF
  8159. fi
  8160. ;;
  8161. amigaos*)
  8162. case $host_cpu in
  8163. powerpc)
  8164. # see comment about AmigaOS4 .so support
  8165. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8166. archive_expsym_cmds=''
  8167. ;;
  8168. m68k)
  8169. 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)'
  8170. hardcode_libdir_flag_spec='-L$libdir'
  8171. hardcode_minus_L=yes
  8172. ;;
  8173. esac
  8174. ;;
  8175. beos*)
  8176. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8177. allow_undefined_flag=unsupported
  8178. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8179. # support --undefined. This deserves some investigation. FIXME
  8180. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8181. else
  8182. ld_shlibs=no
  8183. fi
  8184. ;;
  8185. cygwin* | mingw* | pw32* | cegcc*)
  8186. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8187. # as there is no search path for DLLs.
  8188. hardcode_libdir_flag_spec='-L$libdir'
  8189. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8190. allow_undefined_flag=unsupported
  8191. always_export_symbols=no
  8192. enable_shared_with_static_runtimes=yes
  8193. 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'
  8194. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8195. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8196. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8197. # If the export-symbols file already is a .def file (1st line
  8198. # is EXPORTS), use it as is; otherwise, prepend...
  8199. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8200. cp $export_symbols $output_objdir/$soname.def;
  8201. else
  8202. echo EXPORTS > $output_objdir/$soname.def;
  8203. cat $export_symbols >> $output_objdir/$soname.def;
  8204. fi~
  8205. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8206. else
  8207. ld_shlibs=no
  8208. fi
  8209. ;;
  8210. haiku*)
  8211. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8212. link_all_deplibs=yes
  8213. ;;
  8214. interix[3-9]*)
  8215. hardcode_direct=no
  8216. hardcode_shlibpath_var=no
  8217. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8218. export_dynamic_flag_spec='${wl}-E'
  8219. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8220. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8221. # default) and relocated if they conflict, which is a slow very memory
  8222. # consuming and fragmenting process. To avoid this, we pick a random,
  8223. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8224. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8225. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8226. 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'
  8227. ;;
  8228. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8229. tmp_diet=no
  8230. if test "$host_os" = linux-dietlibc; then
  8231. case $cc_basename in
  8232. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8233. esac
  8234. fi
  8235. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8236. && test "$tmp_diet" = no
  8237. then
  8238. tmp_addflag=' $pic_flag'
  8239. tmp_sharedflag='-shared'
  8240. case $cc_basename,$host_cpu in
  8241. pgcc*) # Portland Group C compiler
  8242. 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'
  8243. tmp_addflag=' $pic_flag'
  8244. ;;
  8245. pgf77* | pgf90* | pgf95* | pgfortran*)
  8246. # Portland Group f77 and f90 compilers
  8247. 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'
  8248. tmp_addflag=' $pic_flag -Mnomain' ;;
  8249. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8250. tmp_addflag=' -i_dynamic' ;;
  8251. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8252. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8253. ifc* | ifort*) # Intel Fortran compiler
  8254. tmp_addflag=' -nofor_main' ;;
  8255. lf95*) # Lahey Fortran 8.1
  8256. whole_archive_flag_spec=
  8257. tmp_sharedflag='--shared' ;;
  8258. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8259. tmp_sharedflag='-qmkshrobj'
  8260. tmp_addflag= ;;
  8261. nvcc*) # Cuda Compiler Driver 2.2
  8262. 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'
  8263. compiler_needs_object=yes
  8264. ;;
  8265. esac
  8266. case `$CC -V 2>&1 | sed 5q` in
  8267. *Sun\ C*) # Sun C 5.9
  8268. 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'
  8269. compiler_needs_object=yes
  8270. tmp_sharedflag='-G' ;;
  8271. *Sun\ F*) # Sun Fortran 8.3
  8272. tmp_sharedflag='-G' ;;
  8273. esac
  8274. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8275. if test "x$supports_anon_versioning" = xyes; then
  8276. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8277. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8278. echo "local: *; };" >> $output_objdir/$libname.ver~
  8279. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8280. fi
  8281. case $cc_basename in
  8282. xlf* | bgf* | bgxlf* | mpixlf*)
  8283. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8284. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8285. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8286. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8287. if test "x$supports_anon_versioning" = xyes; then
  8288. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8289. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8290. echo "local: *; };" >> $output_objdir/$libname.ver~
  8291. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8292. fi
  8293. ;;
  8294. esac
  8295. else
  8296. ld_shlibs=no
  8297. fi
  8298. ;;
  8299. netbsd*)
  8300. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8301. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8302. wlarc=
  8303. else
  8304. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8305. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8306. fi
  8307. ;;
  8308. solaris*)
  8309. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8310. ld_shlibs=no
  8311. cat <<_LT_EOF 1>&2
  8312. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8313. *** create shared libraries on Solaris systems. Therefore, libtool
  8314. *** is disabling shared libraries support. We urge you to upgrade GNU
  8315. *** binutils to release 2.9.1 or newer. Another option is to modify
  8316. *** your PATH or compiler configuration so that the native linker is
  8317. *** used, and then restart.
  8318. _LT_EOF
  8319. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8320. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8321. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8322. else
  8323. ld_shlibs=no
  8324. fi
  8325. ;;
  8326. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8327. case `$LD -v 2>&1` in
  8328. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8329. ld_shlibs=no
  8330. cat <<_LT_EOF 1>&2
  8331. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8332. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8333. *** is disabling shared libraries support. We urge you to upgrade GNU
  8334. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8335. *** your PATH or compiler configuration so that the native linker is
  8336. *** used, and then restart.
  8337. _LT_EOF
  8338. ;;
  8339. *)
  8340. # For security reasons, it is highly recommended that you always
  8341. # use absolute paths for naming shared libraries, and exclude the
  8342. # DT_RUNPATH tag from executables and libraries. But doing so
  8343. # requires that you compile everything twice, which is a pain.
  8344. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8345. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8346. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8347. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8348. else
  8349. ld_shlibs=no
  8350. fi
  8351. ;;
  8352. esac
  8353. ;;
  8354. sunos4*)
  8355. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8356. wlarc=
  8357. hardcode_direct=yes
  8358. hardcode_shlibpath_var=no
  8359. ;;
  8360. *)
  8361. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8362. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8363. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8364. else
  8365. ld_shlibs=no
  8366. fi
  8367. ;;
  8368. esac
  8369. if test "$ld_shlibs" = no; then
  8370. runpath_var=
  8371. hardcode_libdir_flag_spec=
  8372. export_dynamic_flag_spec=
  8373. whole_archive_flag_spec=
  8374. fi
  8375. else
  8376. # PORTME fill in a description of your system's linker (not GNU ld)
  8377. case $host_os in
  8378. aix3*)
  8379. allow_undefined_flag=unsupported
  8380. always_export_symbols=yes
  8381. 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'
  8382. # Note: this linker hardcodes the directories in LIBPATH if there
  8383. # are no directories specified by -L.
  8384. hardcode_minus_L=yes
  8385. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8386. # Neither direct hardcoding nor static linking is supported with a
  8387. # broken collect2.
  8388. hardcode_direct=unsupported
  8389. fi
  8390. ;;
  8391. aix[4-9]*)
  8392. if test "$host_cpu" = ia64; then
  8393. # On IA64, the linker does run time linking by default, so we don't
  8394. # have to do anything special.
  8395. aix_use_runtimelinking=no
  8396. exp_sym_flag='-Bexport'
  8397. no_entry_flag=""
  8398. else
  8399. # If we're using GNU nm, then we don't want the "-C" option.
  8400. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8401. # Also, AIX nm treats weak defined symbols like other global
  8402. # defined symbols, whereas GNU nm marks them as "W".
  8403. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8404. 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'
  8405. else
  8406. 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'
  8407. fi
  8408. aix_use_runtimelinking=no
  8409. # Test if we are trying to use run time linking or normal
  8410. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8411. # need to do runtime linking.
  8412. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8413. for ld_flag in $LDFLAGS; do
  8414. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8415. aix_use_runtimelinking=yes
  8416. break
  8417. fi
  8418. done
  8419. ;;
  8420. esac
  8421. exp_sym_flag='-bexport'
  8422. no_entry_flag='-bnoentry'
  8423. fi
  8424. # When large executables or shared objects are built, AIX ld can
  8425. # have problems creating the table of contents. If linking a library
  8426. # or program results in "error TOC overflow" add -mminimal-toc to
  8427. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8428. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8429. archive_cmds=''
  8430. hardcode_direct=yes
  8431. hardcode_direct_absolute=yes
  8432. hardcode_libdir_separator=':'
  8433. link_all_deplibs=yes
  8434. file_list_spec='${wl}-f,'
  8435. if test "$GCC" = yes; then
  8436. case $host_os in aix4.[012]|aix4.[012].*)
  8437. # We only want to do this on AIX 4.2 and lower, the check
  8438. # below for broken collect2 doesn't work under 4.3+
  8439. collect2name=`${CC} -print-prog-name=collect2`
  8440. if test -f "$collect2name" &&
  8441. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8442. then
  8443. # We have reworked collect2
  8444. :
  8445. else
  8446. # We have old collect2
  8447. hardcode_direct=unsupported
  8448. # It fails to find uninstalled libraries when the uninstalled
  8449. # path is not listed in the libpath. Setting hardcode_minus_L
  8450. # to unsupported forces relinking
  8451. hardcode_minus_L=yes
  8452. hardcode_libdir_flag_spec='-L$libdir'
  8453. hardcode_libdir_separator=
  8454. fi
  8455. ;;
  8456. esac
  8457. shared_flag='-shared'
  8458. if test "$aix_use_runtimelinking" = yes; then
  8459. shared_flag="$shared_flag "'${wl}-G'
  8460. fi
  8461. else
  8462. # not using gcc
  8463. if test "$host_cpu" = ia64; then
  8464. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8465. # chokes on -Wl,-G. The following line is correct:
  8466. shared_flag='-G'
  8467. else
  8468. if test "$aix_use_runtimelinking" = yes; then
  8469. shared_flag='${wl}-G'
  8470. else
  8471. shared_flag='${wl}-bM:SRE'
  8472. fi
  8473. fi
  8474. fi
  8475. export_dynamic_flag_spec='${wl}-bexpall'
  8476. # It seems that -bexpall does not export symbols beginning with
  8477. # underscore (_), so it is better to generate a list of symbols to export.
  8478. always_export_symbols=yes
  8479. if test "$aix_use_runtimelinking" = yes; then
  8480. # Warning - without using the other runtime loading flags (-brtl),
  8481. # -berok will link without error, but may produce a broken library.
  8482. allow_undefined_flag='-berok'
  8483. # Determine the default libpath from the value encoded in an
  8484. # empty executable.
  8485. if test "${lt_cv_aix_libpath+set}" = set; then
  8486. aix_libpath=$lt_cv_aix_libpath
  8487. else
  8488. if ${lt_cv_aix_libpath_+:} false; then :
  8489. $as_echo_n "(cached) " >&6
  8490. else
  8491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8492. /* end confdefs.h. */
  8493. int
  8494. main ()
  8495. {
  8496. ;
  8497. return 0;
  8498. }
  8499. _ACEOF
  8500. if ac_fn_c_try_link "$LINENO"; then :
  8501. lt_aix_libpath_sed='
  8502. /Import File Strings/,/^$/ {
  8503. /^0/ {
  8504. s/^0 *\([^ ]*\) *$/\1/
  8505. p
  8506. }
  8507. }'
  8508. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8509. # Check for a 64-bit object if we didn't find anything.
  8510. if test -z "$lt_cv_aix_libpath_"; then
  8511. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8512. fi
  8513. fi
  8514. rm -f core conftest.err conftest.$ac_objext \
  8515. conftest$ac_exeext conftest.$ac_ext
  8516. if test -z "$lt_cv_aix_libpath_"; then
  8517. lt_cv_aix_libpath_="/usr/lib:/lib"
  8518. fi
  8519. fi
  8520. aix_libpath=$lt_cv_aix_libpath_
  8521. fi
  8522. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8523. 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"
  8524. else
  8525. if test "$host_cpu" = ia64; then
  8526. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8527. allow_undefined_flag="-z nodefs"
  8528. 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"
  8529. else
  8530. # Determine the default libpath from the value encoded in an
  8531. # empty executable.
  8532. if test "${lt_cv_aix_libpath+set}" = set; then
  8533. aix_libpath=$lt_cv_aix_libpath
  8534. else
  8535. if ${lt_cv_aix_libpath_+:} false; then :
  8536. $as_echo_n "(cached) " >&6
  8537. else
  8538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8539. /* end confdefs.h. */
  8540. int
  8541. main ()
  8542. {
  8543. ;
  8544. return 0;
  8545. }
  8546. _ACEOF
  8547. if ac_fn_c_try_link "$LINENO"; then :
  8548. lt_aix_libpath_sed='
  8549. /Import File Strings/,/^$/ {
  8550. /^0/ {
  8551. s/^0 *\([^ ]*\) *$/\1/
  8552. p
  8553. }
  8554. }'
  8555. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8556. # Check for a 64-bit object if we didn't find anything.
  8557. if test -z "$lt_cv_aix_libpath_"; then
  8558. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8559. fi
  8560. fi
  8561. rm -f core conftest.err conftest.$ac_objext \
  8562. conftest$ac_exeext conftest.$ac_ext
  8563. if test -z "$lt_cv_aix_libpath_"; then
  8564. lt_cv_aix_libpath_="/usr/lib:/lib"
  8565. fi
  8566. fi
  8567. aix_libpath=$lt_cv_aix_libpath_
  8568. fi
  8569. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8570. # Warning - without using the other run time loading flags,
  8571. # -berok will link without error, but may produce a broken library.
  8572. no_undefined_flag=' ${wl}-bernotok'
  8573. allow_undefined_flag=' ${wl}-berok'
  8574. if test "$with_gnu_ld" = yes; then
  8575. # We only use this code for GNU lds that support --whole-archive.
  8576. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8577. else
  8578. # Exported symbols can be pulled into shared objects from archives
  8579. whole_archive_flag_spec='$convenience'
  8580. fi
  8581. archive_cmds_need_lc=yes
  8582. # This is similar to how AIX traditionally builds its shared libraries.
  8583. 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'
  8584. fi
  8585. fi
  8586. ;;
  8587. amigaos*)
  8588. case $host_cpu in
  8589. powerpc)
  8590. # see comment about AmigaOS4 .so support
  8591. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8592. archive_expsym_cmds=''
  8593. ;;
  8594. m68k)
  8595. 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)'
  8596. hardcode_libdir_flag_spec='-L$libdir'
  8597. hardcode_minus_L=yes
  8598. ;;
  8599. esac
  8600. ;;
  8601. bsdi[45]*)
  8602. export_dynamic_flag_spec=-rdynamic
  8603. ;;
  8604. cygwin* | mingw* | pw32* | cegcc*)
  8605. # When not using gcc, we currently assume that we are using
  8606. # Microsoft Visual C++.
  8607. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8608. # no search path for DLLs.
  8609. case $cc_basename in
  8610. cl*)
  8611. # Native MSVC
  8612. hardcode_libdir_flag_spec=' '
  8613. allow_undefined_flag=unsupported
  8614. always_export_symbols=yes
  8615. file_list_spec='@'
  8616. # Tell ltmain to make .lib files, not .a files.
  8617. libext=lib
  8618. # Tell ltmain to make .dll files, not .so files.
  8619. shrext_cmds=".dll"
  8620. # FIXME: Setting linknames here is a bad hack.
  8621. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8622. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8623. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8624. else
  8625. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8626. fi~
  8627. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8628. linknames='
  8629. # The linker will not automatically build a static lib if we build a DLL.
  8630. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8631. enable_shared_with_static_runtimes=yes
  8632. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8633. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8634. # Don't use ranlib
  8635. old_postinstall_cmds='chmod 644 $oldlib'
  8636. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8637. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8638. case $lt_outputfile in
  8639. *.exe|*.EXE) ;;
  8640. *)
  8641. lt_outputfile="$lt_outputfile.exe"
  8642. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8643. ;;
  8644. esac~
  8645. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8646. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8647. $RM "$lt_outputfile.manifest";
  8648. fi'
  8649. ;;
  8650. *)
  8651. # Assume MSVC wrapper
  8652. hardcode_libdir_flag_spec=' '
  8653. allow_undefined_flag=unsupported
  8654. # Tell ltmain to make .lib files, not .a files.
  8655. libext=lib
  8656. # Tell ltmain to make .dll files, not .so files.
  8657. shrext_cmds=".dll"
  8658. # FIXME: Setting linknames here is a bad hack.
  8659. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8660. # The linker will automatically build a .lib file if we build a DLL.
  8661. old_archive_from_new_cmds='true'
  8662. # FIXME: Should let the user specify the lib program.
  8663. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8664. enable_shared_with_static_runtimes=yes
  8665. ;;
  8666. esac
  8667. ;;
  8668. darwin* | rhapsody*)
  8669. archive_cmds_need_lc=no
  8670. hardcode_direct=no
  8671. hardcode_automatic=yes
  8672. hardcode_shlibpath_var=unsupported
  8673. if test "$lt_cv_ld_force_load" = "yes"; then
  8674. 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\"`'
  8675. else
  8676. whole_archive_flag_spec=''
  8677. fi
  8678. link_all_deplibs=yes
  8679. allow_undefined_flag="$_lt_dar_allow_undefined"
  8680. case $cc_basename in
  8681. ifort*) _lt_dar_can_shared=yes ;;
  8682. *) _lt_dar_can_shared=$GCC ;;
  8683. esac
  8684. if test "$_lt_dar_can_shared" = "yes"; then
  8685. output_verbose_link_cmd=func_echo_all
  8686. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8687. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8688. 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}"
  8689. 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}"
  8690. else
  8691. ld_shlibs=no
  8692. fi
  8693. ;;
  8694. dgux*)
  8695. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8696. hardcode_libdir_flag_spec='-L$libdir'
  8697. hardcode_shlibpath_var=no
  8698. ;;
  8699. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8700. # support. Future versions do this automatically, but an explicit c++rt0.o
  8701. # does not break anything, and helps significantly (at the cost of a little
  8702. # extra space).
  8703. freebsd2.2*)
  8704. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8705. hardcode_libdir_flag_spec='-R$libdir'
  8706. hardcode_direct=yes
  8707. hardcode_shlibpath_var=no
  8708. ;;
  8709. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8710. freebsd2.*)
  8711. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8712. hardcode_direct=yes
  8713. hardcode_minus_L=yes
  8714. hardcode_shlibpath_var=no
  8715. ;;
  8716. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8717. freebsd* | dragonfly*)
  8718. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8719. hardcode_libdir_flag_spec='-R$libdir'
  8720. hardcode_direct=yes
  8721. hardcode_shlibpath_var=no
  8722. ;;
  8723. hpux9*)
  8724. if test "$GCC" = yes; then
  8725. 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'
  8726. else
  8727. 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'
  8728. fi
  8729. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8730. hardcode_libdir_separator=:
  8731. hardcode_direct=yes
  8732. # hardcode_minus_L: Not really in the search PATH,
  8733. # but as the default location of the library.
  8734. hardcode_minus_L=yes
  8735. export_dynamic_flag_spec='${wl}-E'
  8736. ;;
  8737. hpux10*)
  8738. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8739. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8740. else
  8741. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8742. fi
  8743. if test "$with_gnu_ld" = no; then
  8744. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8745. hardcode_libdir_separator=:
  8746. hardcode_direct=yes
  8747. hardcode_direct_absolute=yes
  8748. export_dynamic_flag_spec='${wl}-E'
  8749. # hardcode_minus_L: Not really in the search PATH,
  8750. # but as the default location of the library.
  8751. hardcode_minus_L=yes
  8752. fi
  8753. ;;
  8754. hpux11*)
  8755. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8756. case $host_cpu in
  8757. hppa*64*)
  8758. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8759. ;;
  8760. ia64*)
  8761. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8762. ;;
  8763. *)
  8764. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8765. ;;
  8766. esac
  8767. else
  8768. case $host_cpu in
  8769. hppa*64*)
  8770. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8771. ;;
  8772. ia64*)
  8773. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8774. ;;
  8775. *)
  8776. # Older versions of the 11.00 compiler do not understand -b yet
  8777. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8779. $as_echo_n "checking if $CC understands -b... " >&6; }
  8780. if ${lt_cv_prog_compiler__b+:} false; then :
  8781. $as_echo_n "(cached) " >&6
  8782. else
  8783. lt_cv_prog_compiler__b=no
  8784. save_LDFLAGS="$LDFLAGS"
  8785. LDFLAGS="$LDFLAGS -b"
  8786. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8787. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8788. # The linker can only warn and ignore the option if not recognized
  8789. # So say no if there are warnings
  8790. if test -s conftest.err; then
  8791. # Append any errors to the config.log.
  8792. cat conftest.err 1>&5
  8793. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8794. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8795. if diff conftest.exp conftest.er2 >/dev/null; then
  8796. lt_cv_prog_compiler__b=yes
  8797. fi
  8798. else
  8799. lt_cv_prog_compiler__b=yes
  8800. fi
  8801. fi
  8802. $RM -r conftest*
  8803. LDFLAGS="$save_LDFLAGS"
  8804. fi
  8805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8806. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8807. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8808. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8809. else
  8810. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8811. fi
  8812. ;;
  8813. esac
  8814. fi
  8815. if test "$with_gnu_ld" = no; then
  8816. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8817. hardcode_libdir_separator=:
  8818. case $host_cpu in
  8819. hppa*64*|ia64*)
  8820. hardcode_direct=no
  8821. hardcode_shlibpath_var=no
  8822. ;;
  8823. *)
  8824. hardcode_direct=yes
  8825. hardcode_direct_absolute=yes
  8826. export_dynamic_flag_spec='${wl}-E'
  8827. # hardcode_minus_L: Not really in the search PATH,
  8828. # but as the default location of the library.
  8829. hardcode_minus_L=yes
  8830. ;;
  8831. esac
  8832. fi
  8833. ;;
  8834. irix5* | irix6* | nonstopux*)
  8835. if test "$GCC" = yes; then
  8836. 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'
  8837. # Try to use the -exported_symbol ld option, if it does not
  8838. # work, assume that -exports_file does not work either and
  8839. # implicitly export all symbols.
  8840. # This should be the same for all languages, so no per-tag cache variable.
  8841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8842. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8843. if ${lt_cv_irix_exported_symbol+:} false; then :
  8844. $as_echo_n "(cached) " >&6
  8845. else
  8846. save_LDFLAGS="$LDFLAGS"
  8847. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8849. /* end confdefs.h. */
  8850. int foo (void) { return 0; }
  8851. _ACEOF
  8852. if ac_fn_c_try_link "$LINENO"; then :
  8853. lt_cv_irix_exported_symbol=yes
  8854. else
  8855. lt_cv_irix_exported_symbol=no
  8856. fi
  8857. rm -f core conftest.err conftest.$ac_objext \
  8858. conftest$ac_exeext conftest.$ac_ext
  8859. LDFLAGS="$save_LDFLAGS"
  8860. fi
  8861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8862. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8863. if test "$lt_cv_irix_exported_symbol" = yes; then
  8864. 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'
  8865. fi
  8866. else
  8867. 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'
  8868. 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'
  8869. fi
  8870. archive_cmds_need_lc='no'
  8871. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8872. hardcode_libdir_separator=:
  8873. inherit_rpath=yes
  8874. link_all_deplibs=yes
  8875. ;;
  8876. netbsd*)
  8877. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8878. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8879. else
  8880. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8881. fi
  8882. hardcode_libdir_flag_spec='-R$libdir'
  8883. hardcode_direct=yes
  8884. hardcode_shlibpath_var=no
  8885. ;;
  8886. newsos6)
  8887. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8888. hardcode_direct=yes
  8889. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8890. hardcode_libdir_separator=:
  8891. hardcode_shlibpath_var=no
  8892. ;;
  8893. *nto* | *qnx*)
  8894. ;;
  8895. openbsd*)
  8896. if test -f /usr/libexec/ld.so; then
  8897. hardcode_direct=yes
  8898. hardcode_shlibpath_var=no
  8899. hardcode_direct_absolute=yes
  8900. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8901. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8902. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8903. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8904. export_dynamic_flag_spec='${wl}-E'
  8905. else
  8906. case $host_os in
  8907. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8908. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8909. hardcode_libdir_flag_spec='-R$libdir'
  8910. ;;
  8911. *)
  8912. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8913. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8914. ;;
  8915. esac
  8916. fi
  8917. else
  8918. ld_shlibs=no
  8919. fi
  8920. ;;
  8921. os2*)
  8922. hardcode_libdir_flag_spec='-L$libdir'
  8923. hardcode_minus_L=yes
  8924. allow_undefined_flag=unsupported
  8925. 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'
  8926. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8927. ;;
  8928. osf3*)
  8929. if test "$GCC" = yes; then
  8930. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8931. 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'
  8932. else
  8933. allow_undefined_flag=' -expect_unresolved \*'
  8934. 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'
  8935. fi
  8936. archive_cmds_need_lc='no'
  8937. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8938. hardcode_libdir_separator=:
  8939. ;;
  8940. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8941. if test "$GCC" = yes; then
  8942. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8943. 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'
  8944. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8945. else
  8946. allow_undefined_flag=' -expect_unresolved \*'
  8947. 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'
  8948. 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~
  8949. $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'
  8950. # Both c and cxx compiler support -rpath directly
  8951. hardcode_libdir_flag_spec='-rpath $libdir'
  8952. fi
  8953. archive_cmds_need_lc='no'
  8954. hardcode_libdir_separator=:
  8955. ;;
  8956. solaris*)
  8957. no_undefined_flag=' -z defs'
  8958. if test "$GCC" = yes; then
  8959. wlarc='${wl}'
  8960. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8961. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8962. $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'
  8963. else
  8964. case `$CC -V 2>&1` in
  8965. *"Compilers 5.0"*)
  8966. wlarc=''
  8967. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8968. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8969. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8970. ;;
  8971. *)
  8972. wlarc='${wl}'
  8973. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8974. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8975. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8976. ;;
  8977. esac
  8978. fi
  8979. hardcode_libdir_flag_spec='-R$libdir'
  8980. hardcode_shlibpath_var=no
  8981. case $host_os in
  8982. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8983. *)
  8984. # The compiler driver will combine and reorder linker options,
  8985. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8986. # but is careful enough not to reorder.
  8987. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8988. if test "$GCC" = yes; then
  8989. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8990. else
  8991. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8992. fi
  8993. ;;
  8994. esac
  8995. link_all_deplibs=yes
  8996. ;;
  8997. sunos4*)
  8998. if test "x$host_vendor" = xsequent; then
  8999. # Use $CC to link under sequent, because it throws in some extra .o
  9000. # files that make .init and .fini sections work.
  9001. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9002. else
  9003. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9004. fi
  9005. hardcode_libdir_flag_spec='-L$libdir'
  9006. hardcode_direct=yes
  9007. hardcode_minus_L=yes
  9008. hardcode_shlibpath_var=no
  9009. ;;
  9010. sysv4)
  9011. case $host_vendor in
  9012. sni)
  9013. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9014. hardcode_direct=yes # is this really true???
  9015. ;;
  9016. siemens)
  9017. ## LD is ld it makes a PLAMLIB
  9018. ## CC just makes a GrossModule.
  9019. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9020. reload_cmds='$CC -r -o $output$reload_objs'
  9021. hardcode_direct=no
  9022. ;;
  9023. motorola)
  9024. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9025. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9026. ;;
  9027. esac
  9028. runpath_var='LD_RUN_PATH'
  9029. hardcode_shlibpath_var=no
  9030. ;;
  9031. sysv4.3*)
  9032. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9033. hardcode_shlibpath_var=no
  9034. export_dynamic_flag_spec='-Bexport'
  9035. ;;
  9036. sysv4*MP*)
  9037. if test -d /usr/nec; then
  9038. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9039. hardcode_shlibpath_var=no
  9040. runpath_var=LD_RUN_PATH
  9041. hardcode_runpath_var=yes
  9042. ld_shlibs=yes
  9043. fi
  9044. ;;
  9045. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9046. no_undefined_flag='${wl}-z,text'
  9047. archive_cmds_need_lc=no
  9048. hardcode_shlibpath_var=no
  9049. runpath_var='LD_RUN_PATH'
  9050. if test "$GCC" = yes; then
  9051. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9052. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9053. else
  9054. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9055. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9056. fi
  9057. ;;
  9058. sysv5* | sco3.2v5* | sco5v6*)
  9059. # Note: We can NOT use -z defs as we might desire, because we do not
  9060. # link with -lc, and that would cause any symbols used from libc to
  9061. # always be unresolved, which means just about no library would
  9062. # ever link correctly. If we're not using GNU ld we use -z text
  9063. # though, which does catch some bad symbols but isn't as heavy-handed
  9064. # as -z defs.
  9065. no_undefined_flag='${wl}-z,text'
  9066. allow_undefined_flag='${wl}-z,nodefs'
  9067. archive_cmds_need_lc=no
  9068. hardcode_shlibpath_var=no
  9069. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9070. hardcode_libdir_separator=':'
  9071. link_all_deplibs=yes
  9072. export_dynamic_flag_spec='${wl}-Bexport'
  9073. runpath_var='LD_RUN_PATH'
  9074. if test "$GCC" = yes; then
  9075. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9076. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9077. else
  9078. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9079. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9080. fi
  9081. ;;
  9082. uts4*)
  9083. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9084. hardcode_libdir_flag_spec='-L$libdir'
  9085. hardcode_shlibpath_var=no
  9086. ;;
  9087. *)
  9088. ld_shlibs=no
  9089. ;;
  9090. esac
  9091. if test x$host_vendor = xsni; then
  9092. case $host in
  9093. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9094. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9095. ;;
  9096. esac
  9097. fi
  9098. fi
  9099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9100. $as_echo "$ld_shlibs" >&6; }
  9101. test "$ld_shlibs" = no && can_build_shared=no
  9102. with_gnu_ld=$with_gnu_ld
  9103. #
  9104. # Do we need to explicitly link libc?
  9105. #
  9106. case "x$archive_cmds_need_lc" in
  9107. x|xyes)
  9108. # Assume -lc should be added
  9109. archive_cmds_need_lc=yes
  9110. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9111. case $archive_cmds in
  9112. *'~'*)
  9113. # FIXME: we may have to deal with multi-command sequences.
  9114. ;;
  9115. '$CC '*)
  9116. # Test whether the compiler implicitly links with -lc since on some
  9117. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9118. # to ld, don't add -lc before -lgcc.
  9119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9120. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9121. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9122. $as_echo_n "(cached) " >&6
  9123. else
  9124. $RM conftest*
  9125. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9126. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9127. (eval $ac_compile) 2>&5
  9128. ac_status=$?
  9129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9130. test $ac_status = 0; } 2>conftest.err; then
  9131. soname=conftest
  9132. lib=conftest
  9133. libobjs=conftest.$ac_objext
  9134. deplibs=
  9135. wl=$lt_prog_compiler_wl
  9136. pic_flag=$lt_prog_compiler_pic
  9137. compiler_flags=-v
  9138. linker_flags=-v
  9139. verstring=
  9140. output_objdir=.
  9141. libname=conftest
  9142. lt_save_allow_undefined_flag=$allow_undefined_flag
  9143. allow_undefined_flag=
  9144. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9145. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9146. ac_status=$?
  9147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9148. test $ac_status = 0; }
  9149. then
  9150. lt_cv_archive_cmds_need_lc=no
  9151. else
  9152. lt_cv_archive_cmds_need_lc=yes
  9153. fi
  9154. allow_undefined_flag=$lt_save_allow_undefined_flag
  9155. else
  9156. cat conftest.err 1>&5
  9157. fi
  9158. $RM conftest*
  9159. fi
  9160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9161. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9162. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9163. ;;
  9164. esac
  9165. fi
  9166. ;;
  9167. esac
  9168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9169. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9170. if test "$GCC" = yes; then
  9171. case $host_os in
  9172. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9173. *) lt_awk_arg="/^libraries:/" ;;
  9174. esac
  9175. case $host_os in
  9176. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9177. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9178. esac
  9179. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9180. case $lt_search_path_spec in
  9181. *\;*)
  9182. # if the path contains ";" then we assume it to be the separator
  9183. # otherwise default to the standard path separator (i.e. ":") - it is
  9184. # assumed that no part of a normal pathname contains ";" but that should
  9185. # okay in the real world where ";" in dirpaths is itself problematic.
  9186. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9187. ;;
  9188. *)
  9189. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9190. ;;
  9191. esac
  9192. # Ok, now we have the path, separated by spaces, we can step through it
  9193. # and add multilib dir if necessary.
  9194. lt_tmp_lt_search_path_spec=
  9195. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9196. for lt_sys_path in $lt_search_path_spec; do
  9197. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9198. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9199. else
  9200. test -d "$lt_sys_path" && \
  9201. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9202. fi
  9203. done
  9204. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9205. BEGIN {RS=" "; FS="/|\n";} {
  9206. lt_foo="";
  9207. lt_count=0;
  9208. for (lt_i = NF; lt_i > 0; lt_i--) {
  9209. if ($lt_i != "" && $lt_i != ".") {
  9210. if ($lt_i == "..") {
  9211. lt_count++;
  9212. } else {
  9213. if (lt_count == 0) {
  9214. lt_foo="/" $lt_i lt_foo;
  9215. } else {
  9216. lt_count--;
  9217. }
  9218. }
  9219. }
  9220. }
  9221. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9222. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9223. }'`
  9224. # AWK program above erroneously prepends '/' to C:/dos/paths
  9225. # for these hosts.
  9226. case $host_os in
  9227. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9228. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9229. esac
  9230. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9231. else
  9232. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9233. fi
  9234. library_names_spec=
  9235. libname_spec='lib$name'
  9236. soname_spec=
  9237. shrext_cmds=".so"
  9238. postinstall_cmds=
  9239. postuninstall_cmds=
  9240. finish_cmds=
  9241. finish_eval=
  9242. shlibpath_var=
  9243. shlibpath_overrides_runpath=unknown
  9244. version_type=none
  9245. dynamic_linker="$host_os ld.so"
  9246. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9247. need_lib_prefix=unknown
  9248. hardcode_into_libs=no
  9249. # when you set need_version to no, make sure it does not cause -set_version
  9250. # flags to be left without arguments
  9251. need_version=unknown
  9252. case $host_os in
  9253. aix3*)
  9254. version_type=linux # correct to gnu/linux during the next big refactor
  9255. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9256. shlibpath_var=LIBPATH
  9257. # AIX 3 has no versioning support, so we append a major version to the name.
  9258. soname_spec='${libname}${release}${shared_ext}$major'
  9259. ;;
  9260. aix[4-9]*)
  9261. version_type=linux # correct to gnu/linux during the next big refactor
  9262. need_lib_prefix=no
  9263. need_version=no
  9264. hardcode_into_libs=yes
  9265. if test "$host_cpu" = ia64; then
  9266. # AIX 5 supports IA64
  9267. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9268. shlibpath_var=LD_LIBRARY_PATH
  9269. else
  9270. # With GCC up to 2.95.x, collect2 would create an import file
  9271. # for dependence libraries. The import file would start with
  9272. # the line `#! .'. This would cause the generated library to
  9273. # depend on `.', always an invalid library. This was fixed in
  9274. # development snapshots of GCC prior to 3.0.
  9275. case $host_os in
  9276. aix4 | aix4.[01] | aix4.[01].*)
  9277. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9278. echo ' yes '
  9279. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9280. :
  9281. else
  9282. can_build_shared=no
  9283. fi
  9284. ;;
  9285. esac
  9286. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9287. # soname into executable. Probably we can add versioning support to
  9288. # collect2, so additional links can be useful in future.
  9289. if test "$aix_use_runtimelinking" = yes; then
  9290. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9291. # instead of lib<name>.a to let people know that these are not
  9292. # typical AIX shared libraries.
  9293. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9294. else
  9295. # We preserve .a as extension for shared libraries through AIX4.2
  9296. # and later when we are not doing run time linking.
  9297. library_names_spec='${libname}${release}.a $libname.a'
  9298. soname_spec='${libname}${release}${shared_ext}$major'
  9299. fi
  9300. shlibpath_var=LIBPATH
  9301. fi
  9302. ;;
  9303. amigaos*)
  9304. case $host_cpu in
  9305. powerpc)
  9306. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9307. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9309. ;;
  9310. m68k)
  9311. library_names_spec='$libname.ixlibrary $libname.a'
  9312. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9313. 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'
  9314. ;;
  9315. esac
  9316. ;;
  9317. beos*)
  9318. library_names_spec='${libname}${shared_ext}'
  9319. dynamic_linker="$host_os ld.so"
  9320. shlibpath_var=LIBRARY_PATH
  9321. ;;
  9322. bsdi[45]*)
  9323. version_type=linux # correct to gnu/linux during the next big refactor
  9324. need_version=no
  9325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9326. soname_spec='${libname}${release}${shared_ext}$major'
  9327. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9328. shlibpath_var=LD_LIBRARY_PATH
  9329. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9330. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9331. # the default ld.so.conf also contains /usr/contrib/lib and
  9332. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9333. # libtool to hard-code these into programs
  9334. ;;
  9335. cygwin* | mingw* | pw32* | cegcc*)
  9336. version_type=windows
  9337. shrext_cmds=".dll"
  9338. need_version=no
  9339. need_lib_prefix=no
  9340. case $GCC,$cc_basename in
  9341. yes,*)
  9342. # gcc
  9343. library_names_spec='$libname.dll.a'
  9344. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9345. postinstall_cmds='base_file=`basename \${file}`~
  9346. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9347. dldir=$destdir/`dirname \$dlpath`~
  9348. test -d \$dldir || mkdir -p \$dldir~
  9349. $install_prog $dir/$dlname \$dldir/$dlname~
  9350. chmod a+x \$dldir/$dlname~
  9351. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9352. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9353. fi'
  9354. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9355. dlpath=$dir/\$dldll~
  9356. $RM \$dlpath'
  9357. shlibpath_overrides_runpath=yes
  9358. case $host_os in
  9359. cygwin*)
  9360. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9361. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9362. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9363. ;;
  9364. mingw* | cegcc*)
  9365. # MinGW DLLs use traditional 'lib' prefix
  9366. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9367. ;;
  9368. pw32*)
  9369. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9370. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9371. ;;
  9372. esac
  9373. dynamic_linker='Win32 ld.exe'
  9374. ;;
  9375. *,cl*)
  9376. # Native MSVC
  9377. libname_spec='$name'
  9378. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9379. library_names_spec='${libname}.dll.lib'
  9380. case $build_os in
  9381. mingw*)
  9382. sys_lib_search_path_spec=
  9383. lt_save_ifs=$IFS
  9384. IFS=';'
  9385. for lt_path in $LIB
  9386. do
  9387. IFS=$lt_save_ifs
  9388. # Let DOS variable expansion print the short 8.3 style file name.
  9389. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9390. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9391. done
  9392. IFS=$lt_save_ifs
  9393. # Convert to MSYS style.
  9394. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9395. ;;
  9396. cygwin*)
  9397. # Convert to unix form, then to dos form, then back to unix form
  9398. # but this time dos style (no spaces!) so that the unix form looks
  9399. # like /cygdrive/c/PROGRA~1:/cygdr...
  9400. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9401. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9402. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9403. ;;
  9404. *)
  9405. sys_lib_search_path_spec="$LIB"
  9406. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9407. # It is most probably a Windows format PATH.
  9408. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9409. else
  9410. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9411. fi
  9412. # FIXME: find the short name or the path components, as spaces are
  9413. # common. (e.g. "Program Files" -> "PROGRA~1")
  9414. ;;
  9415. esac
  9416. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9417. postinstall_cmds='base_file=`basename \${file}`~
  9418. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9419. dldir=$destdir/`dirname \$dlpath`~
  9420. test -d \$dldir || mkdir -p \$dldir~
  9421. $install_prog $dir/$dlname \$dldir/$dlname'
  9422. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9423. dlpath=$dir/\$dldll~
  9424. $RM \$dlpath'
  9425. shlibpath_overrides_runpath=yes
  9426. dynamic_linker='Win32 link.exe'
  9427. ;;
  9428. *)
  9429. # Assume MSVC wrapper
  9430. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9431. dynamic_linker='Win32 ld.exe'
  9432. ;;
  9433. esac
  9434. # FIXME: first we should search . and the directory the executable is in
  9435. shlibpath_var=PATH
  9436. ;;
  9437. darwin* | rhapsody*)
  9438. dynamic_linker="$host_os dyld"
  9439. version_type=darwin
  9440. need_lib_prefix=no
  9441. need_version=no
  9442. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9443. soname_spec='${libname}${release}${major}$shared_ext'
  9444. shlibpath_overrides_runpath=yes
  9445. shlibpath_var=DYLD_LIBRARY_PATH
  9446. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9447. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9448. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9449. ;;
  9450. dgux*)
  9451. version_type=linux # correct to gnu/linux during the next big refactor
  9452. need_lib_prefix=no
  9453. need_version=no
  9454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9455. soname_spec='${libname}${release}${shared_ext}$major'
  9456. shlibpath_var=LD_LIBRARY_PATH
  9457. ;;
  9458. freebsd* | dragonfly*)
  9459. # DragonFly does not have aout. When/if they implement a new
  9460. # versioning mechanism, adjust this.
  9461. if test -x /usr/bin/objformat; then
  9462. objformat=`/usr/bin/objformat`
  9463. else
  9464. case $host_os in
  9465. freebsd[23].*) objformat=aout ;;
  9466. *) objformat=elf ;;
  9467. esac
  9468. fi
  9469. version_type=freebsd-$objformat
  9470. case $version_type in
  9471. freebsd-elf*)
  9472. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9473. need_version=no
  9474. need_lib_prefix=no
  9475. ;;
  9476. freebsd-*)
  9477. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9478. need_version=yes
  9479. ;;
  9480. esac
  9481. shlibpath_var=LD_LIBRARY_PATH
  9482. case $host_os in
  9483. freebsd2.*)
  9484. shlibpath_overrides_runpath=yes
  9485. ;;
  9486. freebsd3.[01]* | freebsdelf3.[01]*)
  9487. shlibpath_overrides_runpath=yes
  9488. hardcode_into_libs=yes
  9489. ;;
  9490. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9491. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9492. shlibpath_overrides_runpath=no
  9493. hardcode_into_libs=yes
  9494. ;;
  9495. *) # from 4.6 on, and DragonFly
  9496. shlibpath_overrides_runpath=yes
  9497. hardcode_into_libs=yes
  9498. ;;
  9499. esac
  9500. ;;
  9501. gnu*)
  9502. version_type=linux # correct to gnu/linux during the next big refactor
  9503. need_lib_prefix=no
  9504. need_version=no
  9505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9506. soname_spec='${libname}${release}${shared_ext}$major'
  9507. shlibpath_var=LD_LIBRARY_PATH
  9508. shlibpath_overrides_runpath=no
  9509. hardcode_into_libs=yes
  9510. ;;
  9511. haiku*)
  9512. version_type=linux # correct to gnu/linux during the next big refactor
  9513. need_lib_prefix=no
  9514. need_version=no
  9515. dynamic_linker="$host_os runtime_loader"
  9516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9517. soname_spec='${libname}${release}${shared_ext}$major'
  9518. shlibpath_var=LIBRARY_PATH
  9519. shlibpath_overrides_runpath=yes
  9520. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9521. hardcode_into_libs=yes
  9522. ;;
  9523. hpux9* | hpux10* | hpux11*)
  9524. # Give a soname corresponding to the major version so that dld.sl refuses to
  9525. # link against other versions.
  9526. version_type=sunos
  9527. need_lib_prefix=no
  9528. need_version=no
  9529. case $host_cpu in
  9530. ia64*)
  9531. shrext_cmds='.so'
  9532. hardcode_into_libs=yes
  9533. dynamic_linker="$host_os dld.so"
  9534. shlibpath_var=LD_LIBRARY_PATH
  9535. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9537. soname_spec='${libname}${release}${shared_ext}$major'
  9538. if test "X$HPUX_IA64_MODE" = X32; then
  9539. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9540. else
  9541. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9542. fi
  9543. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9544. ;;
  9545. hppa*64*)
  9546. shrext_cmds='.sl'
  9547. hardcode_into_libs=yes
  9548. dynamic_linker="$host_os dld.sl"
  9549. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9550. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9552. soname_spec='${libname}${release}${shared_ext}$major'
  9553. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9554. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9555. ;;
  9556. *)
  9557. shrext_cmds='.sl'
  9558. dynamic_linker="$host_os dld.sl"
  9559. shlibpath_var=SHLIB_PATH
  9560. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9562. soname_spec='${libname}${release}${shared_ext}$major'
  9563. ;;
  9564. esac
  9565. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9566. postinstall_cmds='chmod 555 $lib'
  9567. # or fails outright, so override atomically:
  9568. install_override_mode=555
  9569. ;;
  9570. interix[3-9]*)
  9571. version_type=linux # correct to gnu/linux during the next big refactor
  9572. need_lib_prefix=no
  9573. need_version=no
  9574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9575. soname_spec='${libname}${release}${shared_ext}$major'
  9576. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9577. shlibpath_var=LD_LIBRARY_PATH
  9578. shlibpath_overrides_runpath=no
  9579. hardcode_into_libs=yes
  9580. ;;
  9581. irix5* | irix6* | nonstopux*)
  9582. case $host_os in
  9583. nonstopux*) version_type=nonstopux ;;
  9584. *)
  9585. if test "$lt_cv_prog_gnu_ld" = yes; then
  9586. version_type=linux # correct to gnu/linux during the next big refactor
  9587. else
  9588. version_type=irix
  9589. fi ;;
  9590. esac
  9591. need_lib_prefix=no
  9592. need_version=no
  9593. soname_spec='${libname}${release}${shared_ext}$major'
  9594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9595. case $host_os in
  9596. irix5* | nonstopux*)
  9597. libsuff= shlibsuff=
  9598. ;;
  9599. *)
  9600. case $LD in # libtool.m4 will add one of these switches to LD
  9601. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9602. libsuff= shlibsuff= libmagic=32-bit;;
  9603. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9604. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9605. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9606. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9607. *) libsuff= shlibsuff= libmagic=never-match;;
  9608. esac
  9609. ;;
  9610. esac
  9611. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9612. shlibpath_overrides_runpath=no
  9613. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9614. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9615. hardcode_into_libs=yes
  9616. ;;
  9617. # No shared lib support for Linux oldld, aout, or coff.
  9618. linux*oldld* | linux*aout* | linux*coff*)
  9619. dynamic_linker=no
  9620. ;;
  9621. # This must be glibc/ELF.
  9622. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9623. version_type=linux # correct to gnu/linux during the next big refactor
  9624. need_lib_prefix=no
  9625. need_version=no
  9626. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9627. soname_spec='${libname}${release}${shared_ext}$major'
  9628. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9629. shlibpath_var=LD_LIBRARY_PATH
  9630. shlibpath_overrides_runpath=no
  9631. # Some binutils ld are patched to set DT_RUNPATH
  9632. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9633. $as_echo_n "(cached) " >&6
  9634. else
  9635. lt_cv_shlibpath_overrides_runpath=no
  9636. save_LDFLAGS=$LDFLAGS
  9637. save_libdir=$libdir
  9638. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9639. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9641. /* end confdefs.h. */
  9642. int
  9643. main ()
  9644. {
  9645. ;
  9646. return 0;
  9647. }
  9648. _ACEOF
  9649. if ac_fn_c_try_link "$LINENO"; then :
  9650. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9651. lt_cv_shlibpath_overrides_runpath=yes
  9652. fi
  9653. fi
  9654. rm -f core conftest.err conftest.$ac_objext \
  9655. conftest$ac_exeext conftest.$ac_ext
  9656. LDFLAGS=$save_LDFLAGS
  9657. libdir=$save_libdir
  9658. fi
  9659. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9660. # This implies no fast_install, which is unacceptable.
  9661. # Some rework will be needed to allow for fast_install
  9662. # before this can be enabled.
  9663. hardcode_into_libs=yes
  9664. # Append ld.so.conf contents to the search path
  9665. if test -f /etc/ld.so.conf; then
  9666. 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' ' '`
  9667. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9668. fi
  9669. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9670. # powerpc, because MkLinux only supported shared libraries with the
  9671. # GNU dynamic linker. Since this was broken with cross compilers,
  9672. # most powerpc-linux boxes support dynamic linking these days and
  9673. # people can always --disable-shared, the test was removed, and we
  9674. # assume the GNU/Linux dynamic linker is in use.
  9675. dynamic_linker='GNU/Linux ld.so'
  9676. ;;
  9677. netbsd*)
  9678. version_type=sunos
  9679. need_lib_prefix=no
  9680. need_version=no
  9681. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9683. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9684. dynamic_linker='NetBSD (a.out) ld.so'
  9685. else
  9686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9687. soname_spec='${libname}${release}${shared_ext}$major'
  9688. dynamic_linker='NetBSD ld.elf_so'
  9689. fi
  9690. shlibpath_var=LD_LIBRARY_PATH
  9691. shlibpath_overrides_runpath=yes
  9692. hardcode_into_libs=yes
  9693. ;;
  9694. newsos6)
  9695. version_type=linux # correct to gnu/linux during the next big refactor
  9696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9697. shlibpath_var=LD_LIBRARY_PATH
  9698. shlibpath_overrides_runpath=yes
  9699. ;;
  9700. *nto* | *qnx*)
  9701. version_type=qnx
  9702. need_lib_prefix=no
  9703. need_version=no
  9704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9705. soname_spec='${libname}${release}${shared_ext}$major'
  9706. shlibpath_var=LD_LIBRARY_PATH
  9707. shlibpath_overrides_runpath=no
  9708. hardcode_into_libs=yes
  9709. dynamic_linker='ldqnx.so'
  9710. ;;
  9711. openbsd*)
  9712. version_type=sunos
  9713. sys_lib_dlsearch_path_spec="/usr/lib"
  9714. need_lib_prefix=no
  9715. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9716. case $host_os in
  9717. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9718. *) need_version=no ;;
  9719. esac
  9720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9721. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9722. shlibpath_var=LD_LIBRARY_PATH
  9723. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9724. case $host_os in
  9725. openbsd2.[89] | openbsd2.[89].*)
  9726. shlibpath_overrides_runpath=no
  9727. ;;
  9728. *)
  9729. shlibpath_overrides_runpath=yes
  9730. ;;
  9731. esac
  9732. else
  9733. shlibpath_overrides_runpath=yes
  9734. fi
  9735. ;;
  9736. os2*)
  9737. libname_spec='$name'
  9738. shrext_cmds=".dll"
  9739. need_lib_prefix=no
  9740. library_names_spec='$libname${shared_ext} $libname.a'
  9741. dynamic_linker='OS/2 ld.exe'
  9742. shlibpath_var=LIBPATH
  9743. ;;
  9744. osf3* | osf4* | osf5*)
  9745. version_type=osf
  9746. need_lib_prefix=no
  9747. need_version=no
  9748. soname_spec='${libname}${release}${shared_ext}$major'
  9749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9750. shlibpath_var=LD_LIBRARY_PATH
  9751. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9752. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9753. ;;
  9754. rdos*)
  9755. dynamic_linker=no
  9756. ;;
  9757. solaris*)
  9758. version_type=linux # correct to gnu/linux during the next big refactor
  9759. need_lib_prefix=no
  9760. need_version=no
  9761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9762. soname_spec='${libname}${release}${shared_ext}$major'
  9763. shlibpath_var=LD_LIBRARY_PATH
  9764. shlibpath_overrides_runpath=yes
  9765. hardcode_into_libs=yes
  9766. # ldd complains unless libraries are executable
  9767. postinstall_cmds='chmod +x $lib'
  9768. ;;
  9769. sunos4*)
  9770. version_type=sunos
  9771. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9772. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9773. shlibpath_var=LD_LIBRARY_PATH
  9774. shlibpath_overrides_runpath=yes
  9775. if test "$with_gnu_ld" = yes; then
  9776. need_lib_prefix=no
  9777. fi
  9778. need_version=yes
  9779. ;;
  9780. sysv4 | sysv4.3*)
  9781. version_type=linux # correct to gnu/linux during the next big refactor
  9782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9783. soname_spec='${libname}${release}${shared_ext}$major'
  9784. shlibpath_var=LD_LIBRARY_PATH
  9785. case $host_vendor in
  9786. sni)
  9787. shlibpath_overrides_runpath=no
  9788. need_lib_prefix=no
  9789. runpath_var=LD_RUN_PATH
  9790. ;;
  9791. siemens)
  9792. need_lib_prefix=no
  9793. ;;
  9794. motorola)
  9795. need_lib_prefix=no
  9796. need_version=no
  9797. shlibpath_overrides_runpath=no
  9798. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9799. ;;
  9800. esac
  9801. ;;
  9802. sysv4*MP*)
  9803. if test -d /usr/nec ;then
  9804. version_type=linux # correct to gnu/linux during the next big refactor
  9805. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9806. soname_spec='$libname${shared_ext}.$major'
  9807. shlibpath_var=LD_LIBRARY_PATH
  9808. fi
  9809. ;;
  9810. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9811. version_type=freebsd-elf
  9812. need_lib_prefix=no
  9813. need_version=no
  9814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9815. soname_spec='${libname}${release}${shared_ext}$major'
  9816. shlibpath_var=LD_LIBRARY_PATH
  9817. shlibpath_overrides_runpath=yes
  9818. hardcode_into_libs=yes
  9819. if test "$with_gnu_ld" = yes; then
  9820. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9821. else
  9822. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9823. case $host_os in
  9824. sco3.2v5*)
  9825. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9826. ;;
  9827. esac
  9828. fi
  9829. sys_lib_dlsearch_path_spec='/usr/lib'
  9830. ;;
  9831. tpf*)
  9832. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9833. version_type=linux # correct to gnu/linux during the next big refactor
  9834. need_lib_prefix=no
  9835. need_version=no
  9836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9837. shlibpath_var=LD_LIBRARY_PATH
  9838. shlibpath_overrides_runpath=no
  9839. hardcode_into_libs=yes
  9840. ;;
  9841. uts4*)
  9842. version_type=linux # correct to gnu/linux during the next big refactor
  9843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9844. soname_spec='${libname}${release}${shared_ext}$major'
  9845. shlibpath_var=LD_LIBRARY_PATH
  9846. ;;
  9847. *)
  9848. dynamic_linker=no
  9849. ;;
  9850. esac
  9851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9852. $as_echo "$dynamic_linker" >&6; }
  9853. test "$dynamic_linker" = no && can_build_shared=no
  9854. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9855. if test "$GCC" = yes; then
  9856. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9857. fi
  9858. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9859. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9860. fi
  9861. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9862. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9863. fi
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9865. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9866. hardcode_action=
  9867. if test -n "$hardcode_libdir_flag_spec" ||
  9868. test -n "$runpath_var" ||
  9869. test "X$hardcode_automatic" = "Xyes" ; then
  9870. # We can hardcode non-existent directories.
  9871. if test "$hardcode_direct" != no &&
  9872. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9873. # have to relink, otherwise we might link with an installed library
  9874. # when we should be linking with a yet-to-be-installed one
  9875. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9876. test "$hardcode_minus_L" != no; then
  9877. # Linking always hardcodes the temporary library directory.
  9878. hardcode_action=relink
  9879. else
  9880. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9881. hardcode_action=immediate
  9882. fi
  9883. else
  9884. # We cannot hardcode anything, or else we can only hardcode existing
  9885. # directories.
  9886. hardcode_action=unsupported
  9887. fi
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9889. $as_echo "$hardcode_action" >&6; }
  9890. if test "$hardcode_action" = relink ||
  9891. test "$inherit_rpath" = yes; then
  9892. # Fast installation is not supported
  9893. enable_fast_install=no
  9894. elif test "$shlibpath_overrides_runpath" = yes ||
  9895. test "$enable_shared" = no; then
  9896. # Fast installation is not necessary
  9897. enable_fast_install=needless
  9898. fi
  9899. if test "x$enable_dlopen" != xyes; then
  9900. enable_dlopen=unknown
  9901. enable_dlopen_self=unknown
  9902. enable_dlopen_self_static=unknown
  9903. else
  9904. lt_cv_dlopen=no
  9905. lt_cv_dlopen_libs=
  9906. case $host_os in
  9907. beos*)
  9908. lt_cv_dlopen="load_add_on"
  9909. lt_cv_dlopen_libs=
  9910. lt_cv_dlopen_self=yes
  9911. ;;
  9912. mingw* | pw32* | cegcc*)
  9913. lt_cv_dlopen="LoadLibrary"
  9914. lt_cv_dlopen_libs=
  9915. ;;
  9916. cygwin*)
  9917. lt_cv_dlopen="dlopen"
  9918. lt_cv_dlopen_libs=
  9919. ;;
  9920. darwin*)
  9921. # if libdl is installed we need to link against it
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9923. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9924. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9925. $as_echo_n "(cached) " >&6
  9926. else
  9927. ac_check_lib_save_LIBS=$LIBS
  9928. LIBS="-ldl $LIBS"
  9929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9930. /* end confdefs.h. */
  9931. /* Override any GCC internal prototype to avoid an error.
  9932. Use char because int might match the return type of a GCC
  9933. builtin and then its argument prototype would still apply. */
  9934. #ifdef __cplusplus
  9935. extern "C"
  9936. #endif
  9937. char dlopen ();
  9938. int
  9939. main ()
  9940. {
  9941. return dlopen ();
  9942. ;
  9943. return 0;
  9944. }
  9945. _ACEOF
  9946. if ac_fn_c_try_link "$LINENO"; then :
  9947. ac_cv_lib_dl_dlopen=yes
  9948. else
  9949. ac_cv_lib_dl_dlopen=no
  9950. fi
  9951. rm -f core conftest.err conftest.$ac_objext \
  9952. conftest$ac_exeext conftest.$ac_ext
  9953. LIBS=$ac_check_lib_save_LIBS
  9954. fi
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9956. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9957. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9958. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9959. else
  9960. lt_cv_dlopen="dyld"
  9961. lt_cv_dlopen_libs=
  9962. lt_cv_dlopen_self=yes
  9963. fi
  9964. ;;
  9965. *)
  9966. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9967. if test "x$ac_cv_func_shl_load" = xyes; then :
  9968. lt_cv_dlopen="shl_load"
  9969. else
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9971. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9972. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9973. $as_echo_n "(cached) " >&6
  9974. else
  9975. ac_check_lib_save_LIBS=$LIBS
  9976. LIBS="-ldld $LIBS"
  9977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9978. /* end confdefs.h. */
  9979. /* Override any GCC internal prototype to avoid an error.
  9980. Use char because int might match the return type of a GCC
  9981. builtin and then its argument prototype would still apply. */
  9982. #ifdef __cplusplus
  9983. extern "C"
  9984. #endif
  9985. char shl_load ();
  9986. int
  9987. main ()
  9988. {
  9989. return shl_load ();
  9990. ;
  9991. return 0;
  9992. }
  9993. _ACEOF
  9994. if ac_fn_c_try_link "$LINENO"; then :
  9995. ac_cv_lib_dld_shl_load=yes
  9996. else
  9997. ac_cv_lib_dld_shl_load=no
  9998. fi
  9999. rm -f core conftest.err conftest.$ac_objext \
  10000. conftest$ac_exeext conftest.$ac_ext
  10001. LIBS=$ac_check_lib_save_LIBS
  10002. fi
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10004. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10005. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10006. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10007. else
  10008. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10009. if test "x$ac_cv_func_dlopen" = xyes; then :
  10010. lt_cv_dlopen="dlopen"
  10011. else
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10013. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10014. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10015. $as_echo_n "(cached) " >&6
  10016. else
  10017. ac_check_lib_save_LIBS=$LIBS
  10018. LIBS="-ldl $LIBS"
  10019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10020. /* end confdefs.h. */
  10021. /* Override any GCC internal prototype to avoid an error.
  10022. Use char because int might match the return type of a GCC
  10023. builtin and then its argument prototype would still apply. */
  10024. #ifdef __cplusplus
  10025. extern "C"
  10026. #endif
  10027. char dlopen ();
  10028. int
  10029. main ()
  10030. {
  10031. return dlopen ();
  10032. ;
  10033. return 0;
  10034. }
  10035. _ACEOF
  10036. if ac_fn_c_try_link "$LINENO"; then :
  10037. ac_cv_lib_dl_dlopen=yes
  10038. else
  10039. ac_cv_lib_dl_dlopen=no
  10040. fi
  10041. rm -f core conftest.err conftest.$ac_objext \
  10042. conftest$ac_exeext conftest.$ac_ext
  10043. LIBS=$ac_check_lib_save_LIBS
  10044. fi
  10045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10046. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10047. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10048. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10049. else
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10051. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10052. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10053. $as_echo_n "(cached) " >&6
  10054. else
  10055. ac_check_lib_save_LIBS=$LIBS
  10056. LIBS="-lsvld $LIBS"
  10057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10058. /* end confdefs.h. */
  10059. /* Override any GCC internal prototype to avoid an error.
  10060. Use char because int might match the return type of a GCC
  10061. builtin and then its argument prototype would still apply. */
  10062. #ifdef __cplusplus
  10063. extern "C"
  10064. #endif
  10065. char dlopen ();
  10066. int
  10067. main ()
  10068. {
  10069. return dlopen ();
  10070. ;
  10071. return 0;
  10072. }
  10073. _ACEOF
  10074. if ac_fn_c_try_link "$LINENO"; then :
  10075. ac_cv_lib_svld_dlopen=yes
  10076. else
  10077. ac_cv_lib_svld_dlopen=no
  10078. fi
  10079. rm -f core conftest.err conftest.$ac_objext \
  10080. conftest$ac_exeext conftest.$ac_ext
  10081. LIBS=$ac_check_lib_save_LIBS
  10082. fi
  10083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10084. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10085. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10086. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10087. else
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10089. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10090. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10091. $as_echo_n "(cached) " >&6
  10092. else
  10093. ac_check_lib_save_LIBS=$LIBS
  10094. LIBS="-ldld $LIBS"
  10095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10096. /* end confdefs.h. */
  10097. /* Override any GCC internal prototype to avoid an error.
  10098. Use char because int might match the return type of a GCC
  10099. builtin and then its argument prototype would still apply. */
  10100. #ifdef __cplusplus
  10101. extern "C"
  10102. #endif
  10103. char dld_link ();
  10104. int
  10105. main ()
  10106. {
  10107. return dld_link ();
  10108. ;
  10109. return 0;
  10110. }
  10111. _ACEOF
  10112. if ac_fn_c_try_link "$LINENO"; then :
  10113. ac_cv_lib_dld_dld_link=yes
  10114. else
  10115. ac_cv_lib_dld_dld_link=no
  10116. fi
  10117. rm -f core conftest.err conftest.$ac_objext \
  10118. conftest$ac_exeext conftest.$ac_ext
  10119. LIBS=$ac_check_lib_save_LIBS
  10120. fi
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10122. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10123. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10124. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10125. fi
  10126. fi
  10127. fi
  10128. fi
  10129. fi
  10130. fi
  10131. ;;
  10132. esac
  10133. if test "x$lt_cv_dlopen" != xno; then
  10134. enable_dlopen=yes
  10135. else
  10136. enable_dlopen=no
  10137. fi
  10138. case $lt_cv_dlopen in
  10139. dlopen)
  10140. save_CPPFLAGS="$CPPFLAGS"
  10141. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10142. save_LDFLAGS="$LDFLAGS"
  10143. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10144. save_LIBS="$LIBS"
  10145. LIBS="$lt_cv_dlopen_libs $LIBS"
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10147. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10148. if ${lt_cv_dlopen_self+:} false; then :
  10149. $as_echo_n "(cached) " >&6
  10150. else
  10151. if test "$cross_compiling" = yes; then :
  10152. lt_cv_dlopen_self=cross
  10153. else
  10154. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10155. lt_status=$lt_dlunknown
  10156. cat > conftest.$ac_ext <<_LT_EOF
  10157. #line $LINENO "configure"
  10158. #include "confdefs.h"
  10159. #if HAVE_DLFCN_H
  10160. #include <dlfcn.h>
  10161. #endif
  10162. #include <stdio.h>
  10163. #ifdef RTLD_GLOBAL
  10164. # define LT_DLGLOBAL RTLD_GLOBAL
  10165. #else
  10166. # ifdef DL_GLOBAL
  10167. # define LT_DLGLOBAL DL_GLOBAL
  10168. # else
  10169. # define LT_DLGLOBAL 0
  10170. # endif
  10171. #endif
  10172. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10173. find out it does not work in some platform. */
  10174. #ifndef LT_DLLAZY_OR_NOW
  10175. # ifdef RTLD_LAZY
  10176. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10177. # else
  10178. # ifdef DL_LAZY
  10179. # define LT_DLLAZY_OR_NOW DL_LAZY
  10180. # else
  10181. # ifdef RTLD_NOW
  10182. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10183. # else
  10184. # ifdef DL_NOW
  10185. # define LT_DLLAZY_OR_NOW DL_NOW
  10186. # else
  10187. # define LT_DLLAZY_OR_NOW 0
  10188. # endif
  10189. # endif
  10190. # endif
  10191. # endif
  10192. #endif
  10193. /* When -fvisbility=hidden is used, assume the code has been annotated
  10194. correspondingly for the symbols needed. */
  10195. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10196. int fnord () __attribute__((visibility("default")));
  10197. #endif
  10198. int fnord () { return 42; }
  10199. int main ()
  10200. {
  10201. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10202. int status = $lt_dlunknown;
  10203. if (self)
  10204. {
  10205. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10206. else
  10207. {
  10208. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10209. else puts (dlerror ());
  10210. }
  10211. /* dlclose (self); */
  10212. }
  10213. else
  10214. puts (dlerror ());
  10215. return status;
  10216. }
  10217. _LT_EOF
  10218. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10219. (eval $ac_link) 2>&5
  10220. ac_status=$?
  10221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10222. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10223. (./conftest; exit; ) >&5 2>/dev/null
  10224. lt_status=$?
  10225. case x$lt_status in
  10226. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10227. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10228. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10229. esac
  10230. else :
  10231. # compilation failed
  10232. lt_cv_dlopen_self=no
  10233. fi
  10234. fi
  10235. rm -fr conftest*
  10236. fi
  10237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10238. $as_echo "$lt_cv_dlopen_self" >&6; }
  10239. if test "x$lt_cv_dlopen_self" = xyes; then
  10240. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10242. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10243. if ${lt_cv_dlopen_self_static+:} false; then :
  10244. $as_echo_n "(cached) " >&6
  10245. else
  10246. if test "$cross_compiling" = yes; then :
  10247. lt_cv_dlopen_self_static=cross
  10248. else
  10249. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10250. lt_status=$lt_dlunknown
  10251. cat > conftest.$ac_ext <<_LT_EOF
  10252. #line $LINENO "configure"
  10253. #include "confdefs.h"
  10254. #if HAVE_DLFCN_H
  10255. #include <dlfcn.h>
  10256. #endif
  10257. #include <stdio.h>
  10258. #ifdef RTLD_GLOBAL
  10259. # define LT_DLGLOBAL RTLD_GLOBAL
  10260. #else
  10261. # ifdef DL_GLOBAL
  10262. # define LT_DLGLOBAL DL_GLOBAL
  10263. # else
  10264. # define LT_DLGLOBAL 0
  10265. # endif
  10266. #endif
  10267. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10268. find out it does not work in some platform. */
  10269. #ifndef LT_DLLAZY_OR_NOW
  10270. # ifdef RTLD_LAZY
  10271. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10272. # else
  10273. # ifdef DL_LAZY
  10274. # define LT_DLLAZY_OR_NOW DL_LAZY
  10275. # else
  10276. # ifdef RTLD_NOW
  10277. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10278. # else
  10279. # ifdef DL_NOW
  10280. # define LT_DLLAZY_OR_NOW DL_NOW
  10281. # else
  10282. # define LT_DLLAZY_OR_NOW 0
  10283. # endif
  10284. # endif
  10285. # endif
  10286. # endif
  10287. #endif
  10288. /* When -fvisbility=hidden is used, assume the code has been annotated
  10289. correspondingly for the symbols needed. */
  10290. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10291. int fnord () __attribute__((visibility("default")));
  10292. #endif
  10293. int fnord () { return 42; }
  10294. int main ()
  10295. {
  10296. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10297. int status = $lt_dlunknown;
  10298. if (self)
  10299. {
  10300. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10301. else
  10302. {
  10303. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10304. else puts (dlerror ());
  10305. }
  10306. /* dlclose (self); */
  10307. }
  10308. else
  10309. puts (dlerror ());
  10310. return status;
  10311. }
  10312. _LT_EOF
  10313. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10314. (eval $ac_link) 2>&5
  10315. ac_status=$?
  10316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10317. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10318. (./conftest; exit; ) >&5 2>/dev/null
  10319. lt_status=$?
  10320. case x$lt_status in
  10321. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10322. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10323. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10324. esac
  10325. else :
  10326. # compilation failed
  10327. lt_cv_dlopen_self_static=no
  10328. fi
  10329. fi
  10330. rm -fr conftest*
  10331. fi
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10333. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10334. fi
  10335. CPPFLAGS="$save_CPPFLAGS"
  10336. LDFLAGS="$save_LDFLAGS"
  10337. LIBS="$save_LIBS"
  10338. ;;
  10339. esac
  10340. case $lt_cv_dlopen_self in
  10341. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10342. *) enable_dlopen_self=unknown ;;
  10343. esac
  10344. case $lt_cv_dlopen_self_static in
  10345. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10346. *) enable_dlopen_self_static=unknown ;;
  10347. esac
  10348. fi
  10349. striplib=
  10350. old_striplib=
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10352. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10353. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10354. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10355. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10357. $as_echo "yes" >&6; }
  10358. else
  10359. # FIXME - insert some real tests, host_os isn't really good enough
  10360. case $host_os in
  10361. darwin*)
  10362. if test -n "$STRIP" ; then
  10363. striplib="$STRIP -x"
  10364. old_striplib="$STRIP -S"
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10366. $as_echo "yes" >&6; }
  10367. else
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10369. $as_echo "no" >&6; }
  10370. fi
  10371. ;;
  10372. *)
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10374. $as_echo "no" >&6; }
  10375. ;;
  10376. esac
  10377. fi
  10378. # Report which library types will actually be built
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10380. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10382. $as_echo "$can_build_shared" >&6; }
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10384. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10385. test "$can_build_shared" = "no" && enable_shared=no
  10386. # On AIX, shared libraries and static libraries use the same namespace, and
  10387. # are all built from PIC.
  10388. case $host_os in
  10389. aix3*)
  10390. test "$enable_shared" = yes && enable_static=no
  10391. if test -n "$RANLIB"; then
  10392. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10393. postinstall_cmds='$RANLIB $lib'
  10394. fi
  10395. ;;
  10396. aix[4-9]*)
  10397. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10398. test "$enable_shared" = yes && enable_static=no
  10399. fi
  10400. ;;
  10401. esac
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10403. $as_echo "$enable_shared" >&6; }
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10405. $as_echo_n "checking whether to build static libraries... " >&6; }
  10406. # Make sure either enable_shared or enable_static is yes.
  10407. test "$enable_shared" = yes || enable_static=yes
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10409. $as_echo "$enable_static" >&6; }
  10410. fi
  10411. ac_ext=c
  10412. ac_cpp='$CPP $CPPFLAGS'
  10413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10416. CC="$lt_save_CC"
  10417. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10418. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10419. (test "X$CXX" != "Xg++"))) ; then
  10420. ac_ext=cpp
  10421. ac_cpp='$CXXCPP $CPPFLAGS'
  10422. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10423. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10424. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10426. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10427. if test -z "$CXXCPP"; then
  10428. if ${ac_cv_prog_CXXCPP+:} false; then :
  10429. $as_echo_n "(cached) " >&6
  10430. else
  10431. # Double quotes because CXXCPP needs to be expanded
  10432. for CXXCPP in "$CXX -E" "/lib/cpp"
  10433. do
  10434. ac_preproc_ok=false
  10435. for ac_cxx_preproc_warn_flag in '' yes
  10436. do
  10437. # Use a header file that comes with gcc, so configuring glibc
  10438. # with a fresh cross-compiler works.
  10439. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10440. # <limits.h> exists even on freestanding compilers.
  10441. # On the NeXT, cc -E runs the code through the compiler's parser,
  10442. # not just through cpp. "Syntax error" is here to catch this case.
  10443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10444. /* end confdefs.h. */
  10445. #ifdef __STDC__
  10446. # include <limits.h>
  10447. #else
  10448. # include <assert.h>
  10449. #endif
  10450. Syntax error
  10451. _ACEOF
  10452. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10453. else
  10454. # Broken: fails on valid input.
  10455. continue
  10456. fi
  10457. rm -f conftest.err conftest.i conftest.$ac_ext
  10458. # OK, works on sane cases. Now check whether nonexistent headers
  10459. # can be detected and how.
  10460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10461. /* end confdefs.h. */
  10462. #include <ac_nonexistent.h>
  10463. _ACEOF
  10464. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10465. # Broken: success on invalid input.
  10466. continue
  10467. else
  10468. # Passes both tests.
  10469. ac_preproc_ok=:
  10470. break
  10471. fi
  10472. rm -f conftest.err conftest.i conftest.$ac_ext
  10473. done
  10474. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10475. rm -f conftest.i conftest.err conftest.$ac_ext
  10476. if $ac_preproc_ok; then :
  10477. break
  10478. fi
  10479. done
  10480. ac_cv_prog_CXXCPP=$CXXCPP
  10481. fi
  10482. CXXCPP=$ac_cv_prog_CXXCPP
  10483. else
  10484. ac_cv_prog_CXXCPP=$CXXCPP
  10485. fi
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10487. $as_echo "$CXXCPP" >&6; }
  10488. ac_preproc_ok=false
  10489. for ac_cxx_preproc_warn_flag in '' yes
  10490. do
  10491. # Use a header file that comes with gcc, so configuring glibc
  10492. # with a fresh cross-compiler works.
  10493. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10494. # <limits.h> exists even on freestanding compilers.
  10495. # On the NeXT, cc -E runs the code through the compiler's parser,
  10496. # not just through cpp. "Syntax error" is here to catch this case.
  10497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10498. /* end confdefs.h. */
  10499. #ifdef __STDC__
  10500. # include <limits.h>
  10501. #else
  10502. # include <assert.h>
  10503. #endif
  10504. Syntax error
  10505. _ACEOF
  10506. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10507. else
  10508. # Broken: fails on valid input.
  10509. continue
  10510. fi
  10511. rm -f conftest.err conftest.i conftest.$ac_ext
  10512. # OK, works on sane cases. Now check whether nonexistent headers
  10513. # can be detected and how.
  10514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10515. /* end confdefs.h. */
  10516. #include <ac_nonexistent.h>
  10517. _ACEOF
  10518. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10519. # Broken: success on invalid input.
  10520. continue
  10521. else
  10522. # Passes both tests.
  10523. ac_preproc_ok=:
  10524. break
  10525. fi
  10526. rm -f conftest.err conftest.i conftest.$ac_ext
  10527. done
  10528. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10529. rm -f conftest.i conftest.err conftest.$ac_ext
  10530. if $ac_preproc_ok; then :
  10531. else
  10532. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10533. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10534. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10535. See \`config.log' for more details" "$LINENO" 5; }
  10536. fi
  10537. ac_ext=c
  10538. ac_cpp='$CPP $CPPFLAGS'
  10539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10542. else
  10543. _lt_caught_CXX_error=yes
  10544. fi
  10545. ac_ext=cpp
  10546. ac_cpp='$CXXCPP $CPPFLAGS'
  10547. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10548. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10549. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10550. archive_cmds_need_lc_CXX=no
  10551. allow_undefined_flag_CXX=
  10552. always_export_symbols_CXX=no
  10553. archive_expsym_cmds_CXX=
  10554. compiler_needs_object_CXX=no
  10555. export_dynamic_flag_spec_CXX=
  10556. hardcode_direct_CXX=no
  10557. hardcode_direct_absolute_CXX=no
  10558. hardcode_libdir_flag_spec_CXX=
  10559. hardcode_libdir_separator_CXX=
  10560. hardcode_minus_L_CXX=no
  10561. hardcode_shlibpath_var_CXX=unsupported
  10562. hardcode_automatic_CXX=no
  10563. inherit_rpath_CXX=no
  10564. module_cmds_CXX=
  10565. module_expsym_cmds_CXX=
  10566. link_all_deplibs_CXX=unknown
  10567. old_archive_cmds_CXX=$old_archive_cmds
  10568. reload_flag_CXX=$reload_flag
  10569. reload_cmds_CXX=$reload_cmds
  10570. no_undefined_flag_CXX=
  10571. whole_archive_flag_spec_CXX=
  10572. enable_shared_with_static_runtimes_CXX=no
  10573. # Source file extension for C++ test sources.
  10574. ac_ext=cpp
  10575. # Object file extension for compiled C++ test sources.
  10576. objext=o
  10577. objext_CXX=$objext
  10578. # No sense in running all these tests if we already determined that
  10579. # the CXX compiler isn't working. Some variables (like enable_shared)
  10580. # are currently assumed to apply to all compilers on this platform,
  10581. # and will be corrupted by setting them based on a non-working compiler.
  10582. if test "$_lt_caught_CXX_error" != yes; then
  10583. # Code to be used in simple compile tests
  10584. lt_simple_compile_test_code="int some_variable = 0;"
  10585. # Code to be used in simple link tests
  10586. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10587. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10588. # If no C compiler was specified, use CC.
  10589. LTCC=${LTCC-"$CC"}
  10590. # If no C compiler flags were specified, use CFLAGS.
  10591. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10592. # Allow CC to be a program name with arguments.
  10593. compiler=$CC
  10594. # save warnings/boilerplate of simple test code
  10595. ac_outfile=conftest.$ac_objext
  10596. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10597. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10598. _lt_compiler_boilerplate=`cat conftest.err`
  10599. $RM conftest*
  10600. ac_outfile=conftest.$ac_objext
  10601. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10602. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10603. _lt_linker_boilerplate=`cat conftest.err`
  10604. $RM -r conftest*
  10605. # Allow CC to be a program name with arguments.
  10606. lt_save_CC=$CC
  10607. lt_save_CFLAGS=$CFLAGS
  10608. lt_save_LD=$LD
  10609. lt_save_GCC=$GCC
  10610. GCC=$GXX
  10611. lt_save_with_gnu_ld=$with_gnu_ld
  10612. lt_save_path_LD=$lt_cv_path_LD
  10613. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10614. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10615. else
  10616. $as_unset lt_cv_prog_gnu_ld
  10617. fi
  10618. if test -n "${lt_cv_path_LDCXX+set}"; then
  10619. lt_cv_path_LD=$lt_cv_path_LDCXX
  10620. else
  10621. $as_unset lt_cv_path_LD
  10622. fi
  10623. test -z "${LDCXX+set}" || LD=$LDCXX
  10624. CC=${CXX-"c++"}
  10625. CFLAGS=$CXXFLAGS
  10626. compiler=$CC
  10627. compiler_CXX=$CC
  10628. for cc_temp in $compiler""; do
  10629. case $cc_temp in
  10630. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10631. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10632. \-*) ;;
  10633. *) break;;
  10634. esac
  10635. done
  10636. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10637. if test -n "$compiler"; then
  10638. # We don't want -fno-exception when compiling C++ code, so set the
  10639. # no_builtin_flag separately
  10640. if test "$GXX" = yes; then
  10641. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10642. else
  10643. lt_prog_compiler_no_builtin_flag_CXX=
  10644. fi
  10645. if test "$GXX" = yes; then
  10646. # Set up default GNU C++ configuration
  10647. # Check whether --with-gnu-ld was given.
  10648. if test "${with_gnu_ld+set}" = set; then :
  10649. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10650. else
  10651. with_gnu_ld=no
  10652. fi
  10653. ac_prog=ld
  10654. if test "$GCC" = yes; then
  10655. # Check if gcc -print-prog-name=ld gives a path.
  10656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10657. $as_echo_n "checking for ld used by $CC... " >&6; }
  10658. case $host in
  10659. *-*-mingw*)
  10660. # gcc leaves a trailing carriage return which upsets mingw
  10661. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10662. *)
  10663. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10664. esac
  10665. case $ac_prog in
  10666. # Accept absolute paths.
  10667. [\\/]* | ?:[\\/]*)
  10668. re_direlt='/[^/][^/]*/\.\./'
  10669. # Canonicalize the pathname of ld
  10670. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10671. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10672. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10673. done
  10674. test -z "$LD" && LD="$ac_prog"
  10675. ;;
  10676. "")
  10677. # If it fails, then pretend we aren't using GCC.
  10678. ac_prog=ld
  10679. ;;
  10680. *)
  10681. # If it is relative, then search for the first ld in PATH.
  10682. with_gnu_ld=unknown
  10683. ;;
  10684. esac
  10685. elif test "$with_gnu_ld" = yes; then
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10687. $as_echo_n "checking for GNU ld... " >&6; }
  10688. else
  10689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10690. $as_echo_n "checking for non-GNU ld... " >&6; }
  10691. fi
  10692. if ${lt_cv_path_LD+:} false; then :
  10693. $as_echo_n "(cached) " >&6
  10694. else
  10695. if test -z "$LD"; then
  10696. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10697. for ac_dir in $PATH; do
  10698. IFS="$lt_save_ifs"
  10699. test -z "$ac_dir" && ac_dir=.
  10700. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10701. lt_cv_path_LD="$ac_dir/$ac_prog"
  10702. # Check to see if the program is GNU ld. I'd rather use --version,
  10703. # but apparently some variants of GNU ld only accept -v.
  10704. # Break only if it was the GNU/non-GNU ld that we prefer.
  10705. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10706. *GNU* | *'with BFD'*)
  10707. test "$with_gnu_ld" != no && break
  10708. ;;
  10709. *)
  10710. test "$with_gnu_ld" != yes && break
  10711. ;;
  10712. esac
  10713. fi
  10714. done
  10715. IFS="$lt_save_ifs"
  10716. else
  10717. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10718. fi
  10719. fi
  10720. LD="$lt_cv_path_LD"
  10721. if test -n "$LD"; then
  10722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10723. $as_echo "$LD" >&6; }
  10724. else
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10726. $as_echo "no" >&6; }
  10727. fi
  10728. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10730. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10731. if ${lt_cv_prog_gnu_ld+:} false; then :
  10732. $as_echo_n "(cached) " >&6
  10733. else
  10734. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10735. case `$LD -v 2>&1 </dev/null` in
  10736. *GNU* | *'with BFD'*)
  10737. lt_cv_prog_gnu_ld=yes
  10738. ;;
  10739. *)
  10740. lt_cv_prog_gnu_ld=no
  10741. ;;
  10742. esac
  10743. fi
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10745. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10746. with_gnu_ld=$lt_cv_prog_gnu_ld
  10747. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10748. # archiving commands below assume that GNU ld is being used.
  10749. if test "$with_gnu_ld" = yes; then
  10750. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10751. 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'
  10752. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10753. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10754. # If archive_cmds runs LD, not CC, wlarc should be empty
  10755. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10756. # investigate it a little bit more. (MM)
  10757. wlarc='${wl}'
  10758. # ancient GNU ld didn't support --whole-archive et. al.
  10759. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10760. $GREP 'no-whole-archive' > /dev/null; then
  10761. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10762. else
  10763. whole_archive_flag_spec_CXX=
  10764. fi
  10765. else
  10766. with_gnu_ld=no
  10767. wlarc=
  10768. # A generic and very simple default shared library creation
  10769. # command for GNU C++ for the case where it uses the native
  10770. # linker, instead of GNU ld. If possible, this setting should
  10771. # overridden to take advantage of the native linker features on
  10772. # the platform it is being used on.
  10773. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10774. fi
  10775. # Commands to make compiler produce verbose output that lists
  10776. # what "hidden" libraries, object files and flags are used when
  10777. # linking a shared library.
  10778. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10779. else
  10780. GXX=no
  10781. with_gnu_ld=no
  10782. wlarc=
  10783. fi
  10784. # PORTME: fill in a description of your system's C++ link characteristics
  10785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10786. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10787. ld_shlibs_CXX=yes
  10788. case $host_os in
  10789. aix3*)
  10790. # FIXME: insert proper C++ library support
  10791. ld_shlibs_CXX=no
  10792. ;;
  10793. aix[4-9]*)
  10794. if test "$host_cpu" = ia64; then
  10795. # On IA64, the linker does run time linking by default, so we don't
  10796. # have to do anything special.
  10797. aix_use_runtimelinking=no
  10798. exp_sym_flag='-Bexport'
  10799. no_entry_flag=""
  10800. else
  10801. aix_use_runtimelinking=no
  10802. # Test if we are trying to use run time linking or normal
  10803. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10804. # need to do runtime linking.
  10805. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10806. for ld_flag in $LDFLAGS; do
  10807. case $ld_flag in
  10808. *-brtl*)
  10809. aix_use_runtimelinking=yes
  10810. break
  10811. ;;
  10812. esac
  10813. done
  10814. ;;
  10815. esac
  10816. exp_sym_flag='-bexport'
  10817. no_entry_flag='-bnoentry'
  10818. fi
  10819. # When large executables or shared objects are built, AIX ld can
  10820. # have problems creating the table of contents. If linking a library
  10821. # or program results in "error TOC overflow" add -mminimal-toc to
  10822. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10823. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10824. archive_cmds_CXX=''
  10825. hardcode_direct_CXX=yes
  10826. hardcode_direct_absolute_CXX=yes
  10827. hardcode_libdir_separator_CXX=':'
  10828. link_all_deplibs_CXX=yes
  10829. file_list_spec_CXX='${wl}-f,'
  10830. if test "$GXX" = yes; then
  10831. case $host_os in aix4.[012]|aix4.[012].*)
  10832. # We only want to do this on AIX 4.2 and lower, the check
  10833. # below for broken collect2 doesn't work under 4.3+
  10834. collect2name=`${CC} -print-prog-name=collect2`
  10835. if test -f "$collect2name" &&
  10836. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10837. then
  10838. # We have reworked collect2
  10839. :
  10840. else
  10841. # We have old collect2
  10842. hardcode_direct_CXX=unsupported
  10843. # It fails to find uninstalled libraries when the uninstalled
  10844. # path is not listed in the libpath. Setting hardcode_minus_L
  10845. # to unsupported forces relinking
  10846. hardcode_minus_L_CXX=yes
  10847. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10848. hardcode_libdir_separator_CXX=
  10849. fi
  10850. esac
  10851. shared_flag='-shared'
  10852. if test "$aix_use_runtimelinking" = yes; then
  10853. shared_flag="$shared_flag "'${wl}-G'
  10854. fi
  10855. else
  10856. # not using gcc
  10857. if test "$host_cpu" = ia64; then
  10858. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10859. # chokes on -Wl,-G. The following line is correct:
  10860. shared_flag='-G'
  10861. else
  10862. if test "$aix_use_runtimelinking" = yes; then
  10863. shared_flag='${wl}-G'
  10864. else
  10865. shared_flag='${wl}-bM:SRE'
  10866. fi
  10867. fi
  10868. fi
  10869. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10870. # It seems that -bexpall does not export symbols beginning with
  10871. # underscore (_), so it is better to generate a list of symbols to
  10872. # export.
  10873. always_export_symbols_CXX=yes
  10874. if test "$aix_use_runtimelinking" = yes; then
  10875. # Warning - without using the other runtime loading flags (-brtl),
  10876. # -berok will link without error, but may produce a broken library.
  10877. allow_undefined_flag_CXX='-berok'
  10878. # Determine the default libpath from the value encoded in an empty
  10879. # executable.
  10880. if test "${lt_cv_aix_libpath+set}" = set; then
  10881. aix_libpath=$lt_cv_aix_libpath
  10882. else
  10883. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10884. $as_echo_n "(cached) " >&6
  10885. else
  10886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10887. /* end confdefs.h. */
  10888. int
  10889. main ()
  10890. {
  10891. ;
  10892. return 0;
  10893. }
  10894. _ACEOF
  10895. if ac_fn_cxx_try_link "$LINENO"; then :
  10896. lt_aix_libpath_sed='
  10897. /Import File Strings/,/^$/ {
  10898. /^0/ {
  10899. s/^0 *\([^ ]*\) *$/\1/
  10900. p
  10901. }
  10902. }'
  10903. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10904. # Check for a 64-bit object if we didn't find anything.
  10905. if test -z "$lt_cv_aix_libpath__CXX"; then
  10906. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10907. fi
  10908. fi
  10909. rm -f core conftest.err conftest.$ac_objext \
  10910. conftest$ac_exeext conftest.$ac_ext
  10911. if test -z "$lt_cv_aix_libpath__CXX"; then
  10912. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10913. fi
  10914. fi
  10915. aix_libpath=$lt_cv_aix_libpath__CXX
  10916. fi
  10917. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10918. 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"
  10919. else
  10920. if test "$host_cpu" = ia64; then
  10921. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10922. allow_undefined_flag_CXX="-z nodefs"
  10923. 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"
  10924. else
  10925. # Determine the default libpath from the value encoded in an
  10926. # empty executable.
  10927. if test "${lt_cv_aix_libpath+set}" = set; then
  10928. aix_libpath=$lt_cv_aix_libpath
  10929. else
  10930. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10931. $as_echo_n "(cached) " >&6
  10932. else
  10933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10934. /* end confdefs.h. */
  10935. int
  10936. main ()
  10937. {
  10938. ;
  10939. return 0;
  10940. }
  10941. _ACEOF
  10942. if ac_fn_cxx_try_link "$LINENO"; then :
  10943. lt_aix_libpath_sed='
  10944. /Import File Strings/,/^$/ {
  10945. /^0/ {
  10946. s/^0 *\([^ ]*\) *$/\1/
  10947. p
  10948. }
  10949. }'
  10950. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10951. # Check for a 64-bit object if we didn't find anything.
  10952. if test -z "$lt_cv_aix_libpath__CXX"; then
  10953. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10954. fi
  10955. fi
  10956. rm -f core conftest.err conftest.$ac_objext \
  10957. conftest$ac_exeext conftest.$ac_ext
  10958. if test -z "$lt_cv_aix_libpath__CXX"; then
  10959. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10960. fi
  10961. fi
  10962. aix_libpath=$lt_cv_aix_libpath__CXX
  10963. fi
  10964. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10965. # Warning - without using the other run time loading flags,
  10966. # -berok will link without error, but may produce a broken library.
  10967. no_undefined_flag_CXX=' ${wl}-bernotok'
  10968. allow_undefined_flag_CXX=' ${wl}-berok'
  10969. if test "$with_gnu_ld" = yes; then
  10970. # We only use this code for GNU lds that support --whole-archive.
  10971. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10972. else
  10973. # Exported symbols can be pulled into shared objects from archives
  10974. whole_archive_flag_spec_CXX='$convenience'
  10975. fi
  10976. archive_cmds_need_lc_CXX=yes
  10977. # This is similar to how AIX traditionally builds its shared
  10978. # libraries.
  10979. 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'
  10980. fi
  10981. fi
  10982. ;;
  10983. beos*)
  10984. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10985. allow_undefined_flag_CXX=unsupported
  10986. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10987. # support --undefined. This deserves some investigation. FIXME
  10988. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10989. else
  10990. ld_shlibs_CXX=no
  10991. fi
  10992. ;;
  10993. chorus*)
  10994. case $cc_basename in
  10995. *)
  10996. # FIXME: insert proper C++ library support
  10997. ld_shlibs_CXX=no
  10998. ;;
  10999. esac
  11000. ;;
  11001. cygwin* | mingw* | pw32* | cegcc*)
  11002. case $GXX,$cc_basename in
  11003. ,cl* | no,cl*)
  11004. # Native MSVC
  11005. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11006. # no search path for DLLs.
  11007. hardcode_libdir_flag_spec_CXX=' '
  11008. allow_undefined_flag_CXX=unsupported
  11009. always_export_symbols_CXX=yes
  11010. file_list_spec_CXX='@'
  11011. # Tell ltmain to make .lib files, not .a files.
  11012. libext=lib
  11013. # Tell ltmain to make .dll files, not .so files.
  11014. shrext_cmds=".dll"
  11015. # FIXME: Setting linknames here is a bad hack.
  11016. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11017. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11018. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11019. else
  11020. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11021. fi~
  11022. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11023. linknames='
  11024. # The linker will not automatically build a static lib if we build a DLL.
  11025. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11026. enable_shared_with_static_runtimes_CXX=yes
  11027. # Don't use ranlib
  11028. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11029. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11030. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11031. case $lt_outputfile in
  11032. *.exe|*.EXE) ;;
  11033. *)
  11034. lt_outputfile="$lt_outputfile.exe"
  11035. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11036. ;;
  11037. esac~
  11038. func_to_tool_file "$lt_outputfile"~
  11039. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11040. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11041. $RM "$lt_outputfile.manifest";
  11042. fi'
  11043. ;;
  11044. *)
  11045. # g++
  11046. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11047. # as there is no search path for DLLs.
  11048. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11049. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11050. allow_undefined_flag_CXX=unsupported
  11051. always_export_symbols_CXX=no
  11052. enable_shared_with_static_runtimes_CXX=yes
  11053. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11054. 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'
  11055. # If the export-symbols file already is a .def file (1st line
  11056. # is EXPORTS), use it as is; otherwise, prepend...
  11057. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11058. cp $export_symbols $output_objdir/$soname.def;
  11059. else
  11060. echo EXPORTS > $output_objdir/$soname.def;
  11061. cat $export_symbols >> $output_objdir/$soname.def;
  11062. fi~
  11063. $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'
  11064. else
  11065. ld_shlibs_CXX=no
  11066. fi
  11067. ;;
  11068. esac
  11069. ;;
  11070. darwin* | rhapsody*)
  11071. archive_cmds_need_lc_CXX=no
  11072. hardcode_direct_CXX=no
  11073. hardcode_automatic_CXX=yes
  11074. hardcode_shlibpath_var_CXX=unsupported
  11075. if test "$lt_cv_ld_force_load" = "yes"; then
  11076. 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\"`'
  11077. else
  11078. whole_archive_flag_spec_CXX=''
  11079. fi
  11080. link_all_deplibs_CXX=yes
  11081. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11082. case $cc_basename in
  11083. ifort*) _lt_dar_can_shared=yes ;;
  11084. *) _lt_dar_can_shared=$GCC ;;
  11085. esac
  11086. if test "$_lt_dar_can_shared" = "yes"; then
  11087. output_verbose_link_cmd=func_echo_all
  11088. 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}"
  11089. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11090. 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}"
  11091. 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}"
  11092. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11093. 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}"
  11094. 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}"
  11095. fi
  11096. else
  11097. ld_shlibs_CXX=no
  11098. fi
  11099. ;;
  11100. dgux*)
  11101. case $cc_basename in
  11102. ec++*)
  11103. # FIXME: insert proper C++ library support
  11104. ld_shlibs_CXX=no
  11105. ;;
  11106. ghcx*)
  11107. # Green Hills C++ Compiler
  11108. # FIXME: insert proper C++ library support
  11109. ld_shlibs_CXX=no
  11110. ;;
  11111. *)
  11112. # FIXME: insert proper C++ library support
  11113. ld_shlibs_CXX=no
  11114. ;;
  11115. esac
  11116. ;;
  11117. freebsd2.*)
  11118. # C++ shared libraries reported to be fairly broken before
  11119. # switch to ELF
  11120. ld_shlibs_CXX=no
  11121. ;;
  11122. freebsd-elf*)
  11123. archive_cmds_need_lc_CXX=no
  11124. ;;
  11125. freebsd* | dragonfly*)
  11126. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11127. # conventions
  11128. ld_shlibs_CXX=yes
  11129. ;;
  11130. gnu*)
  11131. ;;
  11132. haiku*)
  11133. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11134. link_all_deplibs_CXX=yes
  11135. ;;
  11136. hpux9*)
  11137. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11138. hardcode_libdir_separator_CXX=:
  11139. export_dynamic_flag_spec_CXX='${wl}-E'
  11140. hardcode_direct_CXX=yes
  11141. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11142. # but as the default
  11143. # location of the library.
  11144. case $cc_basename in
  11145. CC*)
  11146. # FIXME: insert proper C++ library support
  11147. ld_shlibs_CXX=no
  11148. ;;
  11149. aCC*)
  11150. 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'
  11151. # Commands to make compiler produce verbose output that lists
  11152. # what "hidden" libraries, object files and flags are used when
  11153. # linking a shared library.
  11154. #
  11155. # There doesn't appear to be a way to prevent this compiler from
  11156. # explicitly linking system object files so we need to strip them
  11157. # from the output so that they don't get included in the library
  11158. # dependencies.
  11159. 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"'
  11160. ;;
  11161. *)
  11162. if test "$GXX" = yes; then
  11163. 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'
  11164. else
  11165. # FIXME: insert proper C++ library support
  11166. ld_shlibs_CXX=no
  11167. fi
  11168. ;;
  11169. esac
  11170. ;;
  11171. hpux10*|hpux11*)
  11172. if test $with_gnu_ld = no; then
  11173. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11174. hardcode_libdir_separator_CXX=:
  11175. case $host_cpu in
  11176. hppa*64*|ia64*)
  11177. ;;
  11178. *)
  11179. export_dynamic_flag_spec_CXX='${wl}-E'
  11180. ;;
  11181. esac
  11182. fi
  11183. case $host_cpu in
  11184. hppa*64*|ia64*)
  11185. hardcode_direct_CXX=no
  11186. hardcode_shlibpath_var_CXX=no
  11187. ;;
  11188. *)
  11189. hardcode_direct_CXX=yes
  11190. hardcode_direct_absolute_CXX=yes
  11191. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11192. # but as the default
  11193. # location of the library.
  11194. ;;
  11195. esac
  11196. case $cc_basename in
  11197. CC*)
  11198. # FIXME: insert proper C++ library support
  11199. ld_shlibs_CXX=no
  11200. ;;
  11201. aCC*)
  11202. case $host_cpu in
  11203. hppa*64*)
  11204. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11205. ;;
  11206. ia64*)
  11207. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11208. ;;
  11209. *)
  11210. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11211. ;;
  11212. esac
  11213. # Commands to make compiler produce verbose output that lists
  11214. # what "hidden" libraries, object files and flags are used when
  11215. # linking a shared library.
  11216. #
  11217. # There doesn't appear to be a way to prevent this compiler from
  11218. # explicitly linking system object files so we need to strip them
  11219. # from the output so that they don't get included in the library
  11220. # dependencies.
  11221. 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"'
  11222. ;;
  11223. *)
  11224. if test "$GXX" = yes; then
  11225. if test $with_gnu_ld = no; then
  11226. case $host_cpu in
  11227. hppa*64*)
  11228. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11229. ;;
  11230. ia64*)
  11231. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11232. ;;
  11233. *)
  11234. 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'
  11235. ;;
  11236. esac
  11237. fi
  11238. else
  11239. # FIXME: insert proper C++ library support
  11240. ld_shlibs_CXX=no
  11241. fi
  11242. ;;
  11243. esac
  11244. ;;
  11245. interix[3-9]*)
  11246. hardcode_direct_CXX=no
  11247. hardcode_shlibpath_var_CXX=no
  11248. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11249. export_dynamic_flag_spec_CXX='${wl}-E'
  11250. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11251. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11252. # default) and relocated if they conflict, which is a slow very memory
  11253. # consuming and fragmenting process. To avoid this, we pick a random,
  11254. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11255. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11256. 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'
  11257. 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'
  11258. ;;
  11259. irix5* | irix6*)
  11260. case $cc_basename in
  11261. CC*)
  11262. # SGI C++
  11263. 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'
  11264. # Archives containing C++ object files must be created using
  11265. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11266. # necessary to make sure instantiated templates are included
  11267. # in the archive.
  11268. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11269. ;;
  11270. *)
  11271. if test "$GXX" = yes; then
  11272. if test "$with_gnu_ld" = no; then
  11273. 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'
  11274. else
  11275. 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'
  11276. fi
  11277. fi
  11278. link_all_deplibs_CXX=yes
  11279. ;;
  11280. esac
  11281. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11282. hardcode_libdir_separator_CXX=:
  11283. inherit_rpath_CXX=yes
  11284. ;;
  11285. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11286. case $cc_basename in
  11287. KCC*)
  11288. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11289. # KCC will only create a shared library if the output file
  11290. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11291. # to its proper name (with version) after linking.
  11292. 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'
  11293. 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'
  11294. # Commands to make compiler produce verbose output that lists
  11295. # what "hidden" libraries, object files and flags are used when
  11296. # linking a shared library.
  11297. #
  11298. # There doesn't appear to be a way to prevent this compiler from
  11299. # explicitly linking system object files so we need to strip them
  11300. # from the output so that they don't get included in the library
  11301. # dependencies.
  11302. 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"'
  11303. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11304. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11305. # Archives containing C++ object files must be created using
  11306. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11307. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11308. ;;
  11309. icpc* | ecpc* )
  11310. # Intel C++
  11311. with_gnu_ld=yes
  11312. # version 8.0 and above of icpc choke on multiply defined symbols
  11313. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11314. # earlier do not add the objects themselves.
  11315. case `$CC -V 2>&1` in
  11316. *"Version 7."*)
  11317. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11318. 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'
  11319. ;;
  11320. *) # Version 8.0 or newer
  11321. tmp_idyn=
  11322. case $host_cpu in
  11323. ia64*) tmp_idyn=' -i_dynamic';;
  11324. esac
  11325. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11326. 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'
  11327. ;;
  11328. esac
  11329. archive_cmds_need_lc_CXX=no
  11330. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11331. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11332. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11333. ;;
  11334. pgCC* | pgcpp*)
  11335. # Portland Group C++ compiler
  11336. case `$CC -V` in
  11337. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11338. prelink_cmds_CXX='tpldir=Template.dir~
  11339. rm -rf $tpldir~
  11340. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11341. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11342. old_archive_cmds_CXX='tpldir=Template.dir~
  11343. rm -rf $tpldir~
  11344. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11345. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11346. $RANLIB $oldlib'
  11347. archive_cmds_CXX='tpldir=Template.dir~
  11348. rm -rf $tpldir~
  11349. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11350. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11351. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11352. rm -rf $tpldir~
  11353. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11354. $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'
  11355. ;;
  11356. *) # Version 6 and above use weak symbols
  11357. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11358. 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'
  11359. ;;
  11360. esac
  11361. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11362. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11363. 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'
  11364. ;;
  11365. cxx*)
  11366. # Compaq C++
  11367. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11368. 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'
  11369. runpath_var=LD_RUN_PATH
  11370. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11371. hardcode_libdir_separator_CXX=:
  11372. # Commands to make compiler produce verbose output that lists
  11373. # what "hidden" libraries, object files and flags are used when
  11374. # linking a shared library.
  11375. #
  11376. # There doesn't appear to be a way to prevent this compiler from
  11377. # explicitly linking system object files so we need to strip them
  11378. # from the output so that they don't get included in the library
  11379. # dependencies.
  11380. 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'
  11381. ;;
  11382. xl* | mpixl* | bgxl*)
  11383. # IBM XL 8.0 on PPC, with GNU ld
  11384. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11385. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11386. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11387. if test "x$supports_anon_versioning" = xyes; then
  11388. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11389. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11390. echo "local: *; };" >> $output_objdir/$libname.ver~
  11391. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11392. fi
  11393. ;;
  11394. *)
  11395. case `$CC -V 2>&1 | sed 5q` in
  11396. *Sun\ C*)
  11397. # Sun C++ 5.9
  11398. no_undefined_flag_CXX=' -zdefs'
  11399. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11400. 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'
  11401. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11402. 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'
  11403. compiler_needs_object_CXX=yes
  11404. # Not sure whether something based on
  11405. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11406. # would be better.
  11407. output_verbose_link_cmd='func_echo_all'
  11408. # Archives containing C++ object files must be created using
  11409. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11410. # necessary to make sure instantiated templates are included
  11411. # in the archive.
  11412. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11413. ;;
  11414. esac
  11415. ;;
  11416. esac
  11417. ;;
  11418. lynxos*)
  11419. # FIXME: insert proper C++ library support
  11420. ld_shlibs_CXX=no
  11421. ;;
  11422. m88k*)
  11423. # FIXME: insert proper C++ library support
  11424. ld_shlibs_CXX=no
  11425. ;;
  11426. mvs*)
  11427. case $cc_basename in
  11428. cxx*)
  11429. # FIXME: insert proper C++ library support
  11430. ld_shlibs_CXX=no
  11431. ;;
  11432. *)
  11433. # FIXME: insert proper C++ library support
  11434. ld_shlibs_CXX=no
  11435. ;;
  11436. esac
  11437. ;;
  11438. netbsd*)
  11439. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11440. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11441. wlarc=
  11442. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11443. hardcode_direct_CXX=yes
  11444. hardcode_shlibpath_var_CXX=no
  11445. fi
  11446. # Workaround some broken pre-1.5 toolchains
  11447. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11448. ;;
  11449. *nto* | *qnx*)
  11450. ld_shlibs_CXX=yes
  11451. ;;
  11452. openbsd2*)
  11453. # C++ shared libraries are fairly broken
  11454. ld_shlibs_CXX=no
  11455. ;;
  11456. openbsd*)
  11457. if test -f /usr/libexec/ld.so; then
  11458. hardcode_direct_CXX=yes
  11459. hardcode_shlibpath_var_CXX=no
  11460. hardcode_direct_absolute_CXX=yes
  11461. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11462. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11463. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11464. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11465. export_dynamic_flag_spec_CXX='${wl}-E'
  11466. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11467. fi
  11468. output_verbose_link_cmd=func_echo_all
  11469. else
  11470. ld_shlibs_CXX=no
  11471. fi
  11472. ;;
  11473. osf3* | osf4* | osf5*)
  11474. case $cc_basename in
  11475. KCC*)
  11476. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11477. # KCC will only create a shared library if the output file
  11478. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11479. # to its proper name (with version) after linking.
  11480. 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'
  11481. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11482. hardcode_libdir_separator_CXX=:
  11483. # Archives containing C++ object files must be created using
  11484. # the KAI C++ compiler.
  11485. case $host in
  11486. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11487. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11488. esac
  11489. ;;
  11490. RCC*)
  11491. # Rational C++ 2.4.1
  11492. # FIXME: insert proper C++ library support
  11493. ld_shlibs_CXX=no
  11494. ;;
  11495. cxx*)
  11496. case $host in
  11497. osf3*)
  11498. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11499. 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'
  11500. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11501. ;;
  11502. *)
  11503. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11504. 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'
  11505. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11506. echo "-hidden">> $lib.exp~
  11507. $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~
  11508. $RM $lib.exp'
  11509. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11510. ;;
  11511. esac
  11512. hardcode_libdir_separator_CXX=:
  11513. # Commands to make compiler produce verbose output that lists
  11514. # what "hidden" libraries, object files and flags are used when
  11515. # linking a shared library.
  11516. #
  11517. # There doesn't appear to be a way to prevent this compiler from
  11518. # explicitly linking system object files so we need to strip them
  11519. # from the output so that they don't get included in the library
  11520. # dependencies.
  11521. 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"'
  11522. ;;
  11523. *)
  11524. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11525. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11526. case $host in
  11527. osf3*)
  11528. 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'
  11529. ;;
  11530. *)
  11531. 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'
  11532. ;;
  11533. esac
  11534. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11535. hardcode_libdir_separator_CXX=:
  11536. # Commands to make compiler produce verbose output that lists
  11537. # what "hidden" libraries, object files and flags are used when
  11538. # linking a shared library.
  11539. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11540. else
  11541. # FIXME: insert proper C++ library support
  11542. ld_shlibs_CXX=no
  11543. fi
  11544. ;;
  11545. esac
  11546. ;;
  11547. psos*)
  11548. # FIXME: insert proper C++ library support
  11549. ld_shlibs_CXX=no
  11550. ;;
  11551. sunos4*)
  11552. case $cc_basename in
  11553. CC*)
  11554. # Sun C++ 4.x
  11555. # FIXME: insert proper C++ library support
  11556. ld_shlibs_CXX=no
  11557. ;;
  11558. lcc*)
  11559. # Lucid
  11560. # FIXME: insert proper C++ library support
  11561. ld_shlibs_CXX=no
  11562. ;;
  11563. *)
  11564. # FIXME: insert proper C++ library support
  11565. ld_shlibs_CXX=no
  11566. ;;
  11567. esac
  11568. ;;
  11569. solaris*)
  11570. case $cc_basename in
  11571. CC* | sunCC*)
  11572. # Sun C++ 4.2, 5.x and Centerline C++
  11573. archive_cmds_need_lc_CXX=yes
  11574. no_undefined_flag_CXX=' -zdefs'
  11575. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11576. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11577. $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'
  11578. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11579. hardcode_shlibpath_var_CXX=no
  11580. case $host_os in
  11581. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11582. *)
  11583. # The compiler driver will combine and reorder linker options,
  11584. # but understands `-z linker_flag'.
  11585. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11586. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11587. ;;
  11588. esac
  11589. link_all_deplibs_CXX=yes
  11590. output_verbose_link_cmd='func_echo_all'
  11591. # Archives containing C++ object files must be created using
  11592. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11593. # necessary to make sure instantiated templates are included
  11594. # in the archive.
  11595. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11596. ;;
  11597. gcx*)
  11598. # Green Hills C++ Compiler
  11599. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11600. # The C++ compiler must be used to create the archive.
  11601. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11602. ;;
  11603. *)
  11604. # GNU C++ compiler with Solaris linker
  11605. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11606. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11607. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11608. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11609. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11610. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11611. # Commands to make compiler produce verbose output that lists
  11612. # what "hidden" libraries, object files and flags are used when
  11613. # linking a shared library.
  11614. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11615. else
  11616. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11617. # platform.
  11618. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11619. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11620. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11621. # Commands to make compiler produce verbose output that lists
  11622. # what "hidden" libraries, object files and flags are used when
  11623. # linking a shared library.
  11624. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11625. fi
  11626. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11627. case $host_os in
  11628. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11629. *)
  11630. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11631. ;;
  11632. esac
  11633. fi
  11634. ;;
  11635. esac
  11636. ;;
  11637. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11638. no_undefined_flag_CXX='${wl}-z,text'
  11639. archive_cmds_need_lc_CXX=no
  11640. hardcode_shlibpath_var_CXX=no
  11641. runpath_var='LD_RUN_PATH'
  11642. case $cc_basename in
  11643. CC*)
  11644. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11645. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11646. ;;
  11647. *)
  11648. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11649. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11650. ;;
  11651. esac
  11652. ;;
  11653. sysv5* | sco3.2v5* | sco5v6*)
  11654. # Note: We can NOT use -z defs as we might desire, because we do not
  11655. # link with -lc, and that would cause any symbols used from libc to
  11656. # always be unresolved, which means just about no library would
  11657. # ever link correctly. If we're not using GNU ld we use -z text
  11658. # though, which does catch some bad symbols but isn't as heavy-handed
  11659. # as -z defs.
  11660. no_undefined_flag_CXX='${wl}-z,text'
  11661. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11662. archive_cmds_need_lc_CXX=no
  11663. hardcode_shlibpath_var_CXX=no
  11664. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11665. hardcode_libdir_separator_CXX=':'
  11666. link_all_deplibs_CXX=yes
  11667. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11668. runpath_var='LD_RUN_PATH'
  11669. case $cc_basename in
  11670. CC*)
  11671. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11672. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11673. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11674. '"$old_archive_cmds_CXX"
  11675. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11676. '"$reload_cmds_CXX"
  11677. ;;
  11678. *)
  11679. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11680. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11681. ;;
  11682. esac
  11683. ;;
  11684. tandem*)
  11685. case $cc_basename in
  11686. NCC*)
  11687. # NonStop-UX NCC 3.20
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. ;;
  11691. *)
  11692. # FIXME: insert proper C++ library support
  11693. ld_shlibs_CXX=no
  11694. ;;
  11695. esac
  11696. ;;
  11697. vxworks*)
  11698. # FIXME: insert proper C++ library support
  11699. ld_shlibs_CXX=no
  11700. ;;
  11701. *)
  11702. # FIXME: insert proper C++ library support
  11703. ld_shlibs_CXX=no
  11704. ;;
  11705. esac
  11706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11707. $as_echo "$ld_shlibs_CXX" >&6; }
  11708. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11709. GCC_CXX="$GXX"
  11710. LD_CXX="$LD"
  11711. ## CAVEAT EMPTOR:
  11712. ## There is no encapsulation within the following macros, do not change
  11713. ## the running order or otherwise move them around unless you know exactly
  11714. ## what you are doing...
  11715. # Dependencies to place before and after the object being linked:
  11716. predep_objects_CXX=
  11717. postdep_objects_CXX=
  11718. predeps_CXX=
  11719. postdeps_CXX=
  11720. compiler_lib_search_path_CXX=
  11721. cat > conftest.$ac_ext <<_LT_EOF
  11722. class Foo
  11723. {
  11724. public:
  11725. Foo (void) { a = 0; }
  11726. private:
  11727. int a;
  11728. };
  11729. _LT_EOF
  11730. _lt_libdeps_save_CFLAGS=$CFLAGS
  11731. case "$CC $CFLAGS " in #(
  11732. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11733. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11734. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11735. esac
  11736. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11737. (eval $ac_compile) 2>&5
  11738. ac_status=$?
  11739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11740. test $ac_status = 0; }; then
  11741. # Parse the compiler output and extract the necessary
  11742. # objects, libraries and library flags.
  11743. # Sentinel used to keep track of whether or not we are before
  11744. # the conftest object file.
  11745. pre_test_object_deps_done=no
  11746. for p in `eval "$output_verbose_link_cmd"`; do
  11747. case ${prev}${p} in
  11748. -L* | -R* | -l*)
  11749. # Some compilers place space between "-{L,R}" and the path.
  11750. # Remove the space.
  11751. if test $p = "-L" ||
  11752. test $p = "-R"; then
  11753. prev=$p
  11754. continue
  11755. fi
  11756. # Expand the sysroot to ease extracting the directories later.
  11757. if test -z "$prev"; then
  11758. case $p in
  11759. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11760. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11761. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11762. esac
  11763. fi
  11764. case $p in
  11765. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11766. esac
  11767. if test "$pre_test_object_deps_done" = no; then
  11768. case ${prev} in
  11769. -L | -R)
  11770. # Internal compiler library paths should come after those
  11771. # provided the user. The postdeps already come after the
  11772. # user supplied libs so there is no need to process them.
  11773. if test -z "$compiler_lib_search_path_CXX"; then
  11774. compiler_lib_search_path_CXX="${prev}${p}"
  11775. else
  11776. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11777. fi
  11778. ;;
  11779. # The "-l" case would never come before the object being
  11780. # linked, so don't bother handling this case.
  11781. esac
  11782. else
  11783. if test -z "$postdeps_CXX"; then
  11784. postdeps_CXX="${prev}${p}"
  11785. else
  11786. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11787. fi
  11788. fi
  11789. prev=
  11790. ;;
  11791. *.lto.$objext) ;; # Ignore GCC LTO objects
  11792. *.$objext)
  11793. # This assumes that the test object file only shows up
  11794. # once in the compiler output.
  11795. if test "$p" = "conftest.$objext"; then
  11796. pre_test_object_deps_done=yes
  11797. continue
  11798. fi
  11799. if test "$pre_test_object_deps_done" = no; then
  11800. if test -z "$predep_objects_CXX"; then
  11801. predep_objects_CXX="$p"
  11802. else
  11803. predep_objects_CXX="$predep_objects_CXX $p"
  11804. fi
  11805. else
  11806. if test -z "$postdep_objects_CXX"; then
  11807. postdep_objects_CXX="$p"
  11808. else
  11809. postdep_objects_CXX="$postdep_objects_CXX $p"
  11810. fi
  11811. fi
  11812. ;;
  11813. *) ;; # Ignore the rest.
  11814. esac
  11815. done
  11816. # Clean up.
  11817. rm -f a.out a.exe
  11818. else
  11819. echo "libtool.m4: error: problem compiling CXX test program"
  11820. fi
  11821. $RM -f confest.$objext
  11822. CFLAGS=$_lt_libdeps_save_CFLAGS
  11823. # PORTME: override above test on systems where it is broken
  11824. case $host_os in
  11825. interix[3-9]*)
  11826. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11827. # hack all around it, let's just trust "g++" to DTRT.
  11828. predep_objects_CXX=
  11829. postdep_objects_CXX=
  11830. postdeps_CXX=
  11831. ;;
  11832. linux*)
  11833. case `$CC -V 2>&1 | sed 5q` in
  11834. *Sun\ C*)
  11835. # Sun C++ 5.9
  11836. # The more standards-conforming stlport4 library is
  11837. # incompatible with the Cstd library. Avoid specifying
  11838. # it if it's in CXXFLAGS. Ignore libCrun as
  11839. # -library=stlport4 depends on it.
  11840. case " $CXX $CXXFLAGS " in
  11841. *" -library=stlport4 "*)
  11842. solaris_use_stlport4=yes
  11843. ;;
  11844. esac
  11845. if test "$solaris_use_stlport4" != yes; then
  11846. postdeps_CXX='-library=Cstd -library=Crun'
  11847. fi
  11848. ;;
  11849. esac
  11850. ;;
  11851. solaris*)
  11852. case $cc_basename in
  11853. CC* | sunCC*)
  11854. # The more standards-conforming stlport4 library is
  11855. # incompatible with the Cstd library. Avoid specifying
  11856. # it if it's in CXXFLAGS. Ignore libCrun as
  11857. # -library=stlport4 depends on it.
  11858. case " $CXX $CXXFLAGS " in
  11859. *" -library=stlport4 "*)
  11860. solaris_use_stlport4=yes
  11861. ;;
  11862. esac
  11863. # Adding this requires a known-good setup of shared libraries for
  11864. # Sun compiler versions before 5.6, else PIC objects from an old
  11865. # archive will be linked into the output, leading to subtle bugs.
  11866. if test "$solaris_use_stlport4" != yes; then
  11867. postdeps_CXX='-library=Cstd -library=Crun'
  11868. fi
  11869. ;;
  11870. esac
  11871. ;;
  11872. esac
  11873. case " $postdeps_CXX " in
  11874. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11875. esac
  11876. compiler_lib_search_dirs_CXX=
  11877. if test -n "${compiler_lib_search_path_CXX}"; then
  11878. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11879. fi
  11880. lt_prog_compiler_wl_CXX=
  11881. lt_prog_compiler_pic_CXX=
  11882. lt_prog_compiler_static_CXX=
  11883. # C++ specific cases for pic, static, wl, etc.
  11884. if test "$GXX" = yes; then
  11885. lt_prog_compiler_wl_CXX='-Wl,'
  11886. lt_prog_compiler_static_CXX='-static'
  11887. case $host_os in
  11888. aix*)
  11889. # All AIX code is PIC.
  11890. if test "$host_cpu" = ia64; then
  11891. # AIX 5 now supports IA64 processor
  11892. lt_prog_compiler_static_CXX='-Bstatic'
  11893. fi
  11894. ;;
  11895. amigaos*)
  11896. case $host_cpu in
  11897. powerpc)
  11898. # see comment about AmigaOS4 .so support
  11899. lt_prog_compiler_pic_CXX='-fPIC'
  11900. ;;
  11901. m68k)
  11902. # FIXME: we need at least 68020 code to build shared libraries, but
  11903. # adding the `-m68020' flag to GCC prevents building anything better,
  11904. # like `-m68040'.
  11905. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11906. ;;
  11907. esac
  11908. ;;
  11909. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11910. # PIC is the default for these OSes.
  11911. ;;
  11912. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11913. # This hack is so that the source file can tell whether it is being
  11914. # built for inclusion in a dll (and should export symbols for example).
  11915. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11916. # (--disable-auto-import) libraries
  11917. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11918. ;;
  11919. darwin* | rhapsody*)
  11920. # PIC is the default on this platform
  11921. # Common symbols not allowed in MH_DYLIB files
  11922. lt_prog_compiler_pic_CXX='-fno-common'
  11923. ;;
  11924. *djgpp*)
  11925. # DJGPP does not support shared libraries at all
  11926. lt_prog_compiler_pic_CXX=
  11927. ;;
  11928. haiku*)
  11929. # PIC is the default for Haiku.
  11930. # The "-static" flag exists, but is broken.
  11931. lt_prog_compiler_static_CXX=
  11932. ;;
  11933. interix[3-9]*)
  11934. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11935. # Instead, we relocate shared libraries at runtime.
  11936. ;;
  11937. sysv4*MP*)
  11938. if test -d /usr/nec; then
  11939. lt_prog_compiler_pic_CXX=-Kconform_pic
  11940. fi
  11941. ;;
  11942. hpux*)
  11943. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11944. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11945. # sets the default TLS model and affects inlining.
  11946. case $host_cpu in
  11947. hppa*64*)
  11948. ;;
  11949. *)
  11950. lt_prog_compiler_pic_CXX='-fPIC'
  11951. ;;
  11952. esac
  11953. ;;
  11954. *qnx* | *nto*)
  11955. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11956. # it will coredump.
  11957. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11958. ;;
  11959. *)
  11960. lt_prog_compiler_pic_CXX='-fPIC'
  11961. ;;
  11962. esac
  11963. else
  11964. case $host_os in
  11965. aix[4-9]*)
  11966. # All AIX code is PIC.
  11967. if test "$host_cpu" = ia64; then
  11968. # AIX 5 now supports IA64 processor
  11969. lt_prog_compiler_static_CXX='-Bstatic'
  11970. else
  11971. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11972. fi
  11973. ;;
  11974. chorus*)
  11975. case $cc_basename in
  11976. cxch68*)
  11977. # Green Hills C++ Compiler
  11978. # _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"
  11979. ;;
  11980. esac
  11981. ;;
  11982. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11983. # This hack is so that the source file can tell whether it is being
  11984. # built for inclusion in a dll (and should export symbols for example).
  11985. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11986. ;;
  11987. dgux*)
  11988. case $cc_basename in
  11989. ec++*)
  11990. lt_prog_compiler_pic_CXX='-KPIC'
  11991. ;;
  11992. ghcx*)
  11993. # Green Hills C++ Compiler
  11994. lt_prog_compiler_pic_CXX='-pic'
  11995. ;;
  11996. *)
  11997. ;;
  11998. esac
  11999. ;;
  12000. freebsd* | dragonfly*)
  12001. # FreeBSD uses GNU C++
  12002. ;;
  12003. hpux9* | hpux10* | hpux11*)
  12004. case $cc_basename in
  12005. CC*)
  12006. lt_prog_compiler_wl_CXX='-Wl,'
  12007. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12008. if test "$host_cpu" != ia64; then
  12009. lt_prog_compiler_pic_CXX='+Z'
  12010. fi
  12011. ;;
  12012. aCC*)
  12013. lt_prog_compiler_wl_CXX='-Wl,'
  12014. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12015. case $host_cpu in
  12016. hppa*64*|ia64*)
  12017. # +Z the default
  12018. ;;
  12019. *)
  12020. lt_prog_compiler_pic_CXX='+Z'
  12021. ;;
  12022. esac
  12023. ;;
  12024. *)
  12025. ;;
  12026. esac
  12027. ;;
  12028. interix*)
  12029. # This is c89, which is MS Visual C++ (no shared libs)
  12030. # Anyone wants to do a port?
  12031. ;;
  12032. irix5* | irix6* | nonstopux*)
  12033. case $cc_basename in
  12034. CC*)
  12035. lt_prog_compiler_wl_CXX='-Wl,'
  12036. lt_prog_compiler_static_CXX='-non_shared'
  12037. # CC pic flag -KPIC is the default.
  12038. ;;
  12039. *)
  12040. ;;
  12041. esac
  12042. ;;
  12043. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12044. case $cc_basename in
  12045. KCC*)
  12046. # KAI C++ Compiler
  12047. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12048. lt_prog_compiler_pic_CXX='-fPIC'
  12049. ;;
  12050. ecpc* )
  12051. # old Intel C++ for x86_64 which still supported -KPIC.
  12052. lt_prog_compiler_wl_CXX='-Wl,'
  12053. lt_prog_compiler_pic_CXX='-KPIC'
  12054. lt_prog_compiler_static_CXX='-static'
  12055. ;;
  12056. icpc* )
  12057. # Intel C++, used to be incompatible with GCC.
  12058. # ICC 10 doesn't accept -KPIC any more.
  12059. lt_prog_compiler_wl_CXX='-Wl,'
  12060. lt_prog_compiler_pic_CXX='-fPIC'
  12061. lt_prog_compiler_static_CXX='-static'
  12062. ;;
  12063. pgCC* | pgcpp*)
  12064. # Portland Group C++ compiler
  12065. lt_prog_compiler_wl_CXX='-Wl,'
  12066. lt_prog_compiler_pic_CXX='-fpic'
  12067. lt_prog_compiler_static_CXX='-Bstatic'
  12068. ;;
  12069. cxx*)
  12070. # Compaq C++
  12071. # Make sure the PIC flag is empty. It appears that all Alpha
  12072. # Linux and Compaq Tru64 Unix objects are PIC.
  12073. lt_prog_compiler_pic_CXX=
  12074. lt_prog_compiler_static_CXX='-non_shared'
  12075. ;;
  12076. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12077. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12078. lt_prog_compiler_wl_CXX='-Wl,'
  12079. lt_prog_compiler_pic_CXX='-qpic'
  12080. lt_prog_compiler_static_CXX='-qstaticlink'
  12081. ;;
  12082. *)
  12083. case `$CC -V 2>&1 | sed 5q` in
  12084. *Sun\ C*)
  12085. # Sun C++ 5.9
  12086. lt_prog_compiler_pic_CXX='-KPIC'
  12087. lt_prog_compiler_static_CXX='-Bstatic'
  12088. lt_prog_compiler_wl_CXX='-Qoption ld '
  12089. ;;
  12090. esac
  12091. ;;
  12092. esac
  12093. ;;
  12094. lynxos*)
  12095. ;;
  12096. m88k*)
  12097. ;;
  12098. mvs*)
  12099. case $cc_basename in
  12100. cxx*)
  12101. lt_prog_compiler_pic_CXX='-W c,exportall'
  12102. ;;
  12103. *)
  12104. ;;
  12105. esac
  12106. ;;
  12107. netbsd*)
  12108. ;;
  12109. *qnx* | *nto*)
  12110. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12111. # it will coredump.
  12112. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12113. ;;
  12114. osf3* | osf4* | osf5*)
  12115. case $cc_basename in
  12116. KCC*)
  12117. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12118. ;;
  12119. RCC*)
  12120. # Rational C++ 2.4.1
  12121. lt_prog_compiler_pic_CXX='-pic'
  12122. ;;
  12123. cxx*)
  12124. # Digital/Compaq C++
  12125. lt_prog_compiler_wl_CXX='-Wl,'
  12126. # Make sure the PIC flag is empty. It appears that all Alpha
  12127. # Linux and Compaq Tru64 Unix objects are PIC.
  12128. lt_prog_compiler_pic_CXX=
  12129. lt_prog_compiler_static_CXX='-non_shared'
  12130. ;;
  12131. *)
  12132. ;;
  12133. esac
  12134. ;;
  12135. psos*)
  12136. ;;
  12137. solaris*)
  12138. case $cc_basename in
  12139. CC* | sunCC*)
  12140. # Sun C++ 4.2, 5.x and Centerline C++
  12141. lt_prog_compiler_pic_CXX='-KPIC'
  12142. lt_prog_compiler_static_CXX='-Bstatic'
  12143. lt_prog_compiler_wl_CXX='-Qoption ld '
  12144. ;;
  12145. gcx*)
  12146. # Green Hills C++ Compiler
  12147. lt_prog_compiler_pic_CXX='-PIC'
  12148. ;;
  12149. *)
  12150. ;;
  12151. esac
  12152. ;;
  12153. sunos4*)
  12154. case $cc_basename in
  12155. CC*)
  12156. # Sun C++ 4.x
  12157. lt_prog_compiler_pic_CXX='-pic'
  12158. lt_prog_compiler_static_CXX='-Bstatic'
  12159. ;;
  12160. lcc*)
  12161. # Lucid
  12162. lt_prog_compiler_pic_CXX='-pic'
  12163. ;;
  12164. *)
  12165. ;;
  12166. esac
  12167. ;;
  12168. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12169. case $cc_basename in
  12170. CC*)
  12171. lt_prog_compiler_wl_CXX='-Wl,'
  12172. lt_prog_compiler_pic_CXX='-KPIC'
  12173. lt_prog_compiler_static_CXX='-Bstatic'
  12174. ;;
  12175. esac
  12176. ;;
  12177. tandem*)
  12178. case $cc_basename in
  12179. NCC*)
  12180. # NonStop-UX NCC 3.20
  12181. lt_prog_compiler_pic_CXX='-KPIC'
  12182. ;;
  12183. *)
  12184. ;;
  12185. esac
  12186. ;;
  12187. vxworks*)
  12188. ;;
  12189. *)
  12190. lt_prog_compiler_can_build_shared_CXX=no
  12191. ;;
  12192. esac
  12193. fi
  12194. case $host_os in
  12195. # For platforms which do not support PIC, -DPIC is meaningless:
  12196. *djgpp*)
  12197. lt_prog_compiler_pic_CXX=
  12198. ;;
  12199. *)
  12200. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12201. ;;
  12202. esac
  12203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12204. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12205. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12206. $as_echo_n "(cached) " >&6
  12207. else
  12208. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12209. fi
  12210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12211. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12212. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12213. #
  12214. # Check to make sure the PIC flag actually works.
  12215. #
  12216. if test -n "$lt_prog_compiler_pic_CXX"; then
  12217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12218. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12219. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12220. $as_echo_n "(cached) " >&6
  12221. else
  12222. lt_cv_prog_compiler_pic_works_CXX=no
  12223. ac_outfile=conftest.$ac_objext
  12224. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12225. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12226. # Insert the option either (1) after the last *FLAGS variable, or
  12227. # (2) before a word containing "conftest.", or (3) at the end.
  12228. # Note that $ac_compile itself does not contain backslashes and begins
  12229. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12230. # The option is referenced via a variable to avoid confusing sed.
  12231. lt_compile=`echo "$ac_compile" | $SED \
  12232. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12233. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12234. -e 's:$: $lt_compiler_flag:'`
  12235. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12236. (eval "$lt_compile" 2>conftest.err)
  12237. ac_status=$?
  12238. cat conftest.err >&5
  12239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12240. if (exit $ac_status) && test -s "$ac_outfile"; then
  12241. # The compiler can only warn and ignore the option if not recognized
  12242. # So say no if there are warnings other than the usual output.
  12243. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12244. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12245. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12246. lt_cv_prog_compiler_pic_works_CXX=yes
  12247. fi
  12248. fi
  12249. $RM conftest*
  12250. fi
  12251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12252. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12253. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12254. case $lt_prog_compiler_pic_CXX in
  12255. "" | " "*) ;;
  12256. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12257. esac
  12258. else
  12259. lt_prog_compiler_pic_CXX=
  12260. lt_prog_compiler_can_build_shared_CXX=no
  12261. fi
  12262. fi
  12263. #
  12264. # Check to make sure the static flag actually works.
  12265. #
  12266. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12268. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12269. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12270. $as_echo_n "(cached) " >&6
  12271. else
  12272. lt_cv_prog_compiler_static_works_CXX=no
  12273. save_LDFLAGS="$LDFLAGS"
  12274. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12275. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12276. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12277. # The linker can only warn and ignore the option if not recognized
  12278. # So say no if there are warnings
  12279. if test -s conftest.err; then
  12280. # Append any errors to the config.log.
  12281. cat conftest.err 1>&5
  12282. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12283. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12284. if diff conftest.exp conftest.er2 >/dev/null; then
  12285. lt_cv_prog_compiler_static_works_CXX=yes
  12286. fi
  12287. else
  12288. lt_cv_prog_compiler_static_works_CXX=yes
  12289. fi
  12290. fi
  12291. $RM -r conftest*
  12292. LDFLAGS="$save_LDFLAGS"
  12293. fi
  12294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12295. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12296. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12297. :
  12298. else
  12299. lt_prog_compiler_static_CXX=
  12300. fi
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12302. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12303. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12304. $as_echo_n "(cached) " >&6
  12305. else
  12306. lt_cv_prog_compiler_c_o_CXX=no
  12307. $RM -r conftest 2>/dev/null
  12308. mkdir conftest
  12309. cd conftest
  12310. mkdir out
  12311. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12312. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12313. # Insert the option either (1) after the last *FLAGS variable, or
  12314. # (2) before a word containing "conftest.", or (3) at the end.
  12315. # Note that $ac_compile itself does not contain backslashes and begins
  12316. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12317. lt_compile=`echo "$ac_compile" | $SED \
  12318. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12319. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12320. -e 's:$: $lt_compiler_flag:'`
  12321. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12322. (eval "$lt_compile" 2>out/conftest.err)
  12323. ac_status=$?
  12324. cat out/conftest.err >&5
  12325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12326. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12327. then
  12328. # The compiler can only warn and ignore the option if not recognized
  12329. # So say no if there are warnings
  12330. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12331. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12332. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12333. lt_cv_prog_compiler_c_o_CXX=yes
  12334. fi
  12335. fi
  12336. chmod u+w . 2>&5
  12337. $RM conftest*
  12338. # SGI C++ compiler will create directory out/ii_files/ for
  12339. # template instantiation
  12340. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12341. $RM out/* && rmdir out
  12342. cd ..
  12343. $RM -r conftest
  12344. $RM conftest*
  12345. fi
  12346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12347. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12349. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12350. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12351. $as_echo_n "(cached) " >&6
  12352. else
  12353. lt_cv_prog_compiler_c_o_CXX=no
  12354. $RM -r conftest 2>/dev/null
  12355. mkdir conftest
  12356. cd conftest
  12357. mkdir out
  12358. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12359. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12360. # Insert the option either (1) after the last *FLAGS variable, or
  12361. # (2) before a word containing "conftest.", or (3) at the end.
  12362. # Note that $ac_compile itself does not contain backslashes and begins
  12363. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12364. lt_compile=`echo "$ac_compile" | $SED \
  12365. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12366. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12367. -e 's:$: $lt_compiler_flag:'`
  12368. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12369. (eval "$lt_compile" 2>out/conftest.err)
  12370. ac_status=$?
  12371. cat out/conftest.err >&5
  12372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12373. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12374. then
  12375. # The compiler can only warn and ignore the option if not recognized
  12376. # So say no if there are warnings
  12377. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12378. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12379. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12380. lt_cv_prog_compiler_c_o_CXX=yes
  12381. fi
  12382. fi
  12383. chmod u+w . 2>&5
  12384. $RM conftest*
  12385. # SGI C++ compiler will create directory out/ii_files/ for
  12386. # template instantiation
  12387. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12388. $RM out/* && rmdir out
  12389. cd ..
  12390. $RM -r conftest
  12391. $RM conftest*
  12392. fi
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12394. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12395. hard_links="nottested"
  12396. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12397. # do not overwrite the value of need_locks provided by the user
  12398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12399. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12400. hard_links=yes
  12401. $RM conftest*
  12402. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12403. touch conftest.a
  12404. ln conftest.a conftest.b 2>&5 || hard_links=no
  12405. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12407. $as_echo "$hard_links" >&6; }
  12408. if test "$hard_links" = no; then
  12409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12410. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12411. need_locks=warn
  12412. fi
  12413. else
  12414. need_locks=no
  12415. fi
  12416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12417. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12418. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12419. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12420. case $host_os in
  12421. aix[4-9]*)
  12422. # If we're using GNU nm, then we don't want the "-C" option.
  12423. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12424. # Also, AIX nm treats weak defined symbols like other global defined
  12425. # symbols, whereas GNU nm marks them as "W".
  12426. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12427. 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'
  12428. else
  12429. 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'
  12430. fi
  12431. ;;
  12432. pw32*)
  12433. export_symbols_cmds_CXX="$ltdll_cmds"
  12434. ;;
  12435. cygwin* | mingw* | cegcc*)
  12436. case $cc_basename in
  12437. cl*)
  12438. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12439. ;;
  12440. *)
  12441. 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'
  12442. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12443. ;;
  12444. esac
  12445. ;;
  12446. *)
  12447. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12448. ;;
  12449. esac
  12450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12451. $as_echo "$ld_shlibs_CXX" >&6; }
  12452. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12453. with_gnu_ld_CXX=$with_gnu_ld
  12454. #
  12455. # Do we need to explicitly link libc?
  12456. #
  12457. case "x$archive_cmds_need_lc_CXX" in
  12458. x|xyes)
  12459. # Assume -lc should be added
  12460. archive_cmds_need_lc_CXX=yes
  12461. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12462. case $archive_cmds_CXX in
  12463. *'~'*)
  12464. # FIXME: we may have to deal with multi-command sequences.
  12465. ;;
  12466. '$CC '*)
  12467. # Test whether the compiler implicitly links with -lc since on some
  12468. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12469. # to ld, don't add -lc before -lgcc.
  12470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12471. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12472. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12473. $as_echo_n "(cached) " >&6
  12474. else
  12475. $RM conftest*
  12476. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12477. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12478. (eval $ac_compile) 2>&5
  12479. ac_status=$?
  12480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12481. test $ac_status = 0; } 2>conftest.err; then
  12482. soname=conftest
  12483. lib=conftest
  12484. libobjs=conftest.$ac_objext
  12485. deplibs=
  12486. wl=$lt_prog_compiler_wl_CXX
  12487. pic_flag=$lt_prog_compiler_pic_CXX
  12488. compiler_flags=-v
  12489. linker_flags=-v
  12490. verstring=
  12491. output_objdir=.
  12492. libname=conftest
  12493. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12494. allow_undefined_flag_CXX=
  12495. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12496. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12497. ac_status=$?
  12498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12499. test $ac_status = 0; }
  12500. then
  12501. lt_cv_archive_cmds_need_lc_CXX=no
  12502. else
  12503. lt_cv_archive_cmds_need_lc_CXX=yes
  12504. fi
  12505. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12506. else
  12507. cat conftest.err 1>&5
  12508. fi
  12509. $RM conftest*
  12510. fi
  12511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12512. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12513. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12514. ;;
  12515. esac
  12516. fi
  12517. ;;
  12518. esac
  12519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12520. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12521. library_names_spec=
  12522. libname_spec='lib$name'
  12523. soname_spec=
  12524. shrext_cmds=".so"
  12525. postinstall_cmds=
  12526. postuninstall_cmds=
  12527. finish_cmds=
  12528. finish_eval=
  12529. shlibpath_var=
  12530. shlibpath_overrides_runpath=unknown
  12531. version_type=none
  12532. dynamic_linker="$host_os ld.so"
  12533. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12534. need_lib_prefix=unknown
  12535. hardcode_into_libs=no
  12536. # when you set need_version to no, make sure it does not cause -set_version
  12537. # flags to be left without arguments
  12538. need_version=unknown
  12539. case $host_os in
  12540. aix3*)
  12541. version_type=linux # correct to gnu/linux during the next big refactor
  12542. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12543. shlibpath_var=LIBPATH
  12544. # AIX 3 has no versioning support, so we append a major version to the name.
  12545. soname_spec='${libname}${release}${shared_ext}$major'
  12546. ;;
  12547. aix[4-9]*)
  12548. version_type=linux # correct to gnu/linux during the next big refactor
  12549. need_lib_prefix=no
  12550. need_version=no
  12551. hardcode_into_libs=yes
  12552. if test "$host_cpu" = ia64; then
  12553. # AIX 5 supports IA64
  12554. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12555. shlibpath_var=LD_LIBRARY_PATH
  12556. else
  12557. # With GCC up to 2.95.x, collect2 would create an import file
  12558. # for dependence libraries. The import file would start with
  12559. # the line `#! .'. This would cause the generated library to
  12560. # depend on `.', always an invalid library. This was fixed in
  12561. # development snapshots of GCC prior to 3.0.
  12562. case $host_os in
  12563. aix4 | aix4.[01] | aix4.[01].*)
  12564. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12565. echo ' yes '
  12566. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12567. :
  12568. else
  12569. can_build_shared=no
  12570. fi
  12571. ;;
  12572. esac
  12573. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12574. # soname into executable. Probably we can add versioning support to
  12575. # collect2, so additional links can be useful in future.
  12576. if test "$aix_use_runtimelinking" = yes; then
  12577. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12578. # instead of lib<name>.a to let people know that these are not
  12579. # typical AIX shared libraries.
  12580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12581. else
  12582. # We preserve .a as extension for shared libraries through AIX4.2
  12583. # and later when we are not doing run time linking.
  12584. library_names_spec='${libname}${release}.a $libname.a'
  12585. soname_spec='${libname}${release}${shared_ext}$major'
  12586. fi
  12587. shlibpath_var=LIBPATH
  12588. fi
  12589. ;;
  12590. amigaos*)
  12591. case $host_cpu in
  12592. powerpc)
  12593. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12594. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12596. ;;
  12597. m68k)
  12598. library_names_spec='$libname.ixlibrary $libname.a'
  12599. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12600. 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'
  12601. ;;
  12602. esac
  12603. ;;
  12604. beos*)
  12605. library_names_spec='${libname}${shared_ext}'
  12606. dynamic_linker="$host_os ld.so"
  12607. shlibpath_var=LIBRARY_PATH
  12608. ;;
  12609. bsdi[45]*)
  12610. version_type=linux # correct to gnu/linux during the next big refactor
  12611. need_version=no
  12612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12613. soname_spec='${libname}${release}${shared_ext}$major'
  12614. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12615. shlibpath_var=LD_LIBRARY_PATH
  12616. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12617. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12618. # the default ld.so.conf also contains /usr/contrib/lib and
  12619. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12620. # libtool to hard-code these into programs
  12621. ;;
  12622. cygwin* | mingw* | pw32* | cegcc*)
  12623. version_type=windows
  12624. shrext_cmds=".dll"
  12625. need_version=no
  12626. need_lib_prefix=no
  12627. case $GCC,$cc_basename in
  12628. yes,*)
  12629. # gcc
  12630. library_names_spec='$libname.dll.a'
  12631. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12632. postinstall_cmds='base_file=`basename \${file}`~
  12633. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12634. dldir=$destdir/`dirname \$dlpath`~
  12635. test -d \$dldir || mkdir -p \$dldir~
  12636. $install_prog $dir/$dlname \$dldir/$dlname~
  12637. chmod a+x \$dldir/$dlname~
  12638. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12639. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12640. fi'
  12641. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12642. dlpath=$dir/\$dldll~
  12643. $RM \$dlpath'
  12644. shlibpath_overrides_runpath=yes
  12645. case $host_os in
  12646. cygwin*)
  12647. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12648. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12649. ;;
  12650. mingw* | cegcc*)
  12651. # MinGW DLLs use traditional 'lib' prefix
  12652. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12653. ;;
  12654. pw32*)
  12655. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12656. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12657. ;;
  12658. esac
  12659. dynamic_linker='Win32 ld.exe'
  12660. ;;
  12661. *,cl*)
  12662. # Native MSVC
  12663. libname_spec='$name'
  12664. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12665. library_names_spec='${libname}.dll.lib'
  12666. case $build_os in
  12667. mingw*)
  12668. sys_lib_search_path_spec=
  12669. lt_save_ifs=$IFS
  12670. IFS=';'
  12671. for lt_path in $LIB
  12672. do
  12673. IFS=$lt_save_ifs
  12674. # Let DOS variable expansion print the short 8.3 style file name.
  12675. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12676. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12677. done
  12678. IFS=$lt_save_ifs
  12679. # Convert to MSYS style.
  12680. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12681. ;;
  12682. cygwin*)
  12683. # Convert to unix form, then to dos form, then back to unix form
  12684. # but this time dos style (no spaces!) so that the unix form looks
  12685. # like /cygdrive/c/PROGRA~1:/cygdr...
  12686. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12687. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12688. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12689. ;;
  12690. *)
  12691. sys_lib_search_path_spec="$LIB"
  12692. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12693. # It is most probably a Windows format PATH.
  12694. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12695. else
  12696. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12697. fi
  12698. # FIXME: find the short name or the path components, as spaces are
  12699. # common. (e.g. "Program Files" -> "PROGRA~1")
  12700. ;;
  12701. esac
  12702. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12703. postinstall_cmds='base_file=`basename \${file}`~
  12704. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12705. dldir=$destdir/`dirname \$dlpath`~
  12706. test -d \$dldir || mkdir -p \$dldir~
  12707. $install_prog $dir/$dlname \$dldir/$dlname'
  12708. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12709. dlpath=$dir/\$dldll~
  12710. $RM \$dlpath'
  12711. shlibpath_overrides_runpath=yes
  12712. dynamic_linker='Win32 link.exe'
  12713. ;;
  12714. *)
  12715. # Assume MSVC wrapper
  12716. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12717. dynamic_linker='Win32 ld.exe'
  12718. ;;
  12719. esac
  12720. # FIXME: first we should search . and the directory the executable is in
  12721. shlibpath_var=PATH
  12722. ;;
  12723. darwin* | rhapsody*)
  12724. dynamic_linker="$host_os dyld"
  12725. version_type=darwin
  12726. need_lib_prefix=no
  12727. need_version=no
  12728. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12729. soname_spec='${libname}${release}${major}$shared_ext'
  12730. shlibpath_overrides_runpath=yes
  12731. shlibpath_var=DYLD_LIBRARY_PATH
  12732. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12733. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12734. ;;
  12735. dgux*)
  12736. version_type=linux # correct to gnu/linux during the next big refactor
  12737. need_lib_prefix=no
  12738. need_version=no
  12739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12740. soname_spec='${libname}${release}${shared_ext}$major'
  12741. shlibpath_var=LD_LIBRARY_PATH
  12742. ;;
  12743. freebsd* | dragonfly*)
  12744. # DragonFly does not have aout. When/if they implement a new
  12745. # versioning mechanism, adjust this.
  12746. if test -x /usr/bin/objformat; then
  12747. objformat=`/usr/bin/objformat`
  12748. else
  12749. case $host_os in
  12750. freebsd[23].*) objformat=aout ;;
  12751. *) objformat=elf ;;
  12752. esac
  12753. fi
  12754. version_type=freebsd-$objformat
  12755. case $version_type in
  12756. freebsd-elf*)
  12757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12758. need_version=no
  12759. need_lib_prefix=no
  12760. ;;
  12761. freebsd-*)
  12762. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12763. need_version=yes
  12764. ;;
  12765. esac
  12766. shlibpath_var=LD_LIBRARY_PATH
  12767. case $host_os in
  12768. freebsd2.*)
  12769. shlibpath_overrides_runpath=yes
  12770. ;;
  12771. freebsd3.[01]* | freebsdelf3.[01]*)
  12772. shlibpath_overrides_runpath=yes
  12773. hardcode_into_libs=yes
  12774. ;;
  12775. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12776. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12777. shlibpath_overrides_runpath=no
  12778. hardcode_into_libs=yes
  12779. ;;
  12780. *) # from 4.6 on, and DragonFly
  12781. shlibpath_overrides_runpath=yes
  12782. hardcode_into_libs=yes
  12783. ;;
  12784. esac
  12785. ;;
  12786. gnu*)
  12787. version_type=linux # correct to gnu/linux during the next big refactor
  12788. need_lib_prefix=no
  12789. need_version=no
  12790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12791. soname_spec='${libname}${release}${shared_ext}$major'
  12792. shlibpath_var=LD_LIBRARY_PATH
  12793. shlibpath_overrides_runpath=no
  12794. hardcode_into_libs=yes
  12795. ;;
  12796. haiku*)
  12797. version_type=linux # correct to gnu/linux during the next big refactor
  12798. need_lib_prefix=no
  12799. need_version=no
  12800. dynamic_linker="$host_os runtime_loader"
  12801. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12802. soname_spec='${libname}${release}${shared_ext}$major'
  12803. shlibpath_var=LIBRARY_PATH
  12804. shlibpath_overrides_runpath=yes
  12805. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12806. hardcode_into_libs=yes
  12807. ;;
  12808. hpux9* | hpux10* | hpux11*)
  12809. # Give a soname corresponding to the major version so that dld.sl refuses to
  12810. # link against other versions.
  12811. version_type=sunos
  12812. need_lib_prefix=no
  12813. need_version=no
  12814. case $host_cpu in
  12815. ia64*)
  12816. shrext_cmds='.so'
  12817. hardcode_into_libs=yes
  12818. dynamic_linker="$host_os dld.so"
  12819. shlibpath_var=LD_LIBRARY_PATH
  12820. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12822. soname_spec='${libname}${release}${shared_ext}$major'
  12823. if test "X$HPUX_IA64_MODE" = X32; then
  12824. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12825. else
  12826. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12827. fi
  12828. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12829. ;;
  12830. hppa*64*)
  12831. shrext_cmds='.sl'
  12832. hardcode_into_libs=yes
  12833. dynamic_linker="$host_os dld.sl"
  12834. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12835. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12837. soname_spec='${libname}${release}${shared_ext}$major'
  12838. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12839. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12840. ;;
  12841. *)
  12842. shrext_cmds='.sl'
  12843. dynamic_linker="$host_os dld.sl"
  12844. shlibpath_var=SHLIB_PATH
  12845. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12847. soname_spec='${libname}${release}${shared_ext}$major'
  12848. ;;
  12849. esac
  12850. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12851. postinstall_cmds='chmod 555 $lib'
  12852. # or fails outright, so override atomically:
  12853. install_override_mode=555
  12854. ;;
  12855. interix[3-9]*)
  12856. version_type=linux # correct to gnu/linux during the next big refactor
  12857. need_lib_prefix=no
  12858. need_version=no
  12859. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12860. soname_spec='${libname}${release}${shared_ext}$major'
  12861. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12862. shlibpath_var=LD_LIBRARY_PATH
  12863. shlibpath_overrides_runpath=no
  12864. hardcode_into_libs=yes
  12865. ;;
  12866. irix5* | irix6* | nonstopux*)
  12867. case $host_os in
  12868. nonstopux*) version_type=nonstopux ;;
  12869. *)
  12870. if test "$lt_cv_prog_gnu_ld" = yes; then
  12871. version_type=linux # correct to gnu/linux during the next big refactor
  12872. else
  12873. version_type=irix
  12874. fi ;;
  12875. esac
  12876. need_lib_prefix=no
  12877. need_version=no
  12878. soname_spec='${libname}${release}${shared_ext}$major'
  12879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12880. case $host_os in
  12881. irix5* | nonstopux*)
  12882. libsuff= shlibsuff=
  12883. ;;
  12884. *)
  12885. case $LD in # libtool.m4 will add one of these switches to LD
  12886. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12887. libsuff= shlibsuff= libmagic=32-bit;;
  12888. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12889. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12890. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12891. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12892. *) libsuff= shlibsuff= libmagic=never-match;;
  12893. esac
  12894. ;;
  12895. esac
  12896. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12897. shlibpath_overrides_runpath=no
  12898. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12899. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12900. hardcode_into_libs=yes
  12901. ;;
  12902. # No shared lib support for Linux oldld, aout, or coff.
  12903. linux*oldld* | linux*aout* | linux*coff*)
  12904. dynamic_linker=no
  12905. ;;
  12906. # This must be glibc/ELF.
  12907. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12908. version_type=linux # correct to gnu/linux during the next big refactor
  12909. need_lib_prefix=no
  12910. need_version=no
  12911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12912. soname_spec='${libname}${release}${shared_ext}$major'
  12913. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12914. shlibpath_var=LD_LIBRARY_PATH
  12915. shlibpath_overrides_runpath=no
  12916. # Some binutils ld are patched to set DT_RUNPATH
  12917. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12918. $as_echo_n "(cached) " >&6
  12919. else
  12920. lt_cv_shlibpath_overrides_runpath=no
  12921. save_LDFLAGS=$LDFLAGS
  12922. save_libdir=$libdir
  12923. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12924. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12926. /* end confdefs.h. */
  12927. int
  12928. main ()
  12929. {
  12930. ;
  12931. return 0;
  12932. }
  12933. _ACEOF
  12934. if ac_fn_cxx_try_link "$LINENO"; then :
  12935. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12936. lt_cv_shlibpath_overrides_runpath=yes
  12937. fi
  12938. fi
  12939. rm -f core conftest.err conftest.$ac_objext \
  12940. conftest$ac_exeext conftest.$ac_ext
  12941. LDFLAGS=$save_LDFLAGS
  12942. libdir=$save_libdir
  12943. fi
  12944. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12945. # This implies no fast_install, which is unacceptable.
  12946. # Some rework will be needed to allow for fast_install
  12947. # before this can be enabled.
  12948. hardcode_into_libs=yes
  12949. # Append ld.so.conf contents to the search path
  12950. if test -f /etc/ld.so.conf; then
  12951. 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' ' '`
  12952. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12953. fi
  12954. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12955. # powerpc, because MkLinux only supported shared libraries with the
  12956. # GNU dynamic linker. Since this was broken with cross compilers,
  12957. # most powerpc-linux boxes support dynamic linking these days and
  12958. # people can always --disable-shared, the test was removed, and we
  12959. # assume the GNU/Linux dynamic linker is in use.
  12960. dynamic_linker='GNU/Linux ld.so'
  12961. ;;
  12962. netbsd*)
  12963. version_type=sunos
  12964. need_lib_prefix=no
  12965. need_version=no
  12966. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12968. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12969. dynamic_linker='NetBSD (a.out) ld.so'
  12970. else
  12971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12972. soname_spec='${libname}${release}${shared_ext}$major'
  12973. dynamic_linker='NetBSD ld.elf_so'
  12974. fi
  12975. shlibpath_var=LD_LIBRARY_PATH
  12976. shlibpath_overrides_runpath=yes
  12977. hardcode_into_libs=yes
  12978. ;;
  12979. newsos6)
  12980. version_type=linux # correct to gnu/linux during the next big refactor
  12981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12982. shlibpath_var=LD_LIBRARY_PATH
  12983. shlibpath_overrides_runpath=yes
  12984. ;;
  12985. *nto* | *qnx*)
  12986. version_type=qnx
  12987. need_lib_prefix=no
  12988. need_version=no
  12989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12990. soname_spec='${libname}${release}${shared_ext}$major'
  12991. shlibpath_var=LD_LIBRARY_PATH
  12992. shlibpath_overrides_runpath=no
  12993. hardcode_into_libs=yes
  12994. dynamic_linker='ldqnx.so'
  12995. ;;
  12996. openbsd*)
  12997. version_type=sunos
  12998. sys_lib_dlsearch_path_spec="/usr/lib"
  12999. need_lib_prefix=no
  13000. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13001. case $host_os in
  13002. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13003. *) need_version=no ;;
  13004. esac
  13005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13006. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13007. shlibpath_var=LD_LIBRARY_PATH
  13008. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13009. case $host_os in
  13010. openbsd2.[89] | openbsd2.[89].*)
  13011. shlibpath_overrides_runpath=no
  13012. ;;
  13013. *)
  13014. shlibpath_overrides_runpath=yes
  13015. ;;
  13016. esac
  13017. else
  13018. shlibpath_overrides_runpath=yes
  13019. fi
  13020. ;;
  13021. os2*)
  13022. libname_spec='$name'
  13023. shrext_cmds=".dll"
  13024. need_lib_prefix=no
  13025. library_names_spec='$libname${shared_ext} $libname.a'
  13026. dynamic_linker='OS/2 ld.exe'
  13027. shlibpath_var=LIBPATH
  13028. ;;
  13029. osf3* | osf4* | osf5*)
  13030. version_type=osf
  13031. need_lib_prefix=no
  13032. need_version=no
  13033. soname_spec='${libname}${release}${shared_ext}$major'
  13034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13035. shlibpath_var=LD_LIBRARY_PATH
  13036. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13037. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13038. ;;
  13039. rdos*)
  13040. dynamic_linker=no
  13041. ;;
  13042. solaris*)
  13043. version_type=linux # correct to gnu/linux during the next big refactor
  13044. need_lib_prefix=no
  13045. need_version=no
  13046. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13047. soname_spec='${libname}${release}${shared_ext}$major'
  13048. shlibpath_var=LD_LIBRARY_PATH
  13049. shlibpath_overrides_runpath=yes
  13050. hardcode_into_libs=yes
  13051. # ldd complains unless libraries are executable
  13052. postinstall_cmds='chmod +x $lib'
  13053. ;;
  13054. sunos4*)
  13055. version_type=sunos
  13056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13057. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13058. shlibpath_var=LD_LIBRARY_PATH
  13059. shlibpath_overrides_runpath=yes
  13060. if test "$with_gnu_ld" = yes; then
  13061. need_lib_prefix=no
  13062. fi
  13063. need_version=yes
  13064. ;;
  13065. sysv4 | sysv4.3*)
  13066. version_type=linux # correct to gnu/linux during the next big refactor
  13067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13068. soname_spec='${libname}${release}${shared_ext}$major'
  13069. shlibpath_var=LD_LIBRARY_PATH
  13070. case $host_vendor in
  13071. sni)
  13072. shlibpath_overrides_runpath=no
  13073. need_lib_prefix=no
  13074. runpath_var=LD_RUN_PATH
  13075. ;;
  13076. siemens)
  13077. need_lib_prefix=no
  13078. ;;
  13079. motorola)
  13080. need_lib_prefix=no
  13081. need_version=no
  13082. shlibpath_overrides_runpath=no
  13083. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13084. ;;
  13085. esac
  13086. ;;
  13087. sysv4*MP*)
  13088. if test -d /usr/nec ;then
  13089. version_type=linux # correct to gnu/linux during the next big refactor
  13090. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13091. soname_spec='$libname${shared_ext}.$major'
  13092. shlibpath_var=LD_LIBRARY_PATH
  13093. fi
  13094. ;;
  13095. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13096. version_type=freebsd-elf
  13097. need_lib_prefix=no
  13098. need_version=no
  13099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13100. soname_spec='${libname}${release}${shared_ext}$major'
  13101. shlibpath_var=LD_LIBRARY_PATH
  13102. shlibpath_overrides_runpath=yes
  13103. hardcode_into_libs=yes
  13104. if test "$with_gnu_ld" = yes; then
  13105. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13106. else
  13107. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13108. case $host_os in
  13109. sco3.2v5*)
  13110. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13111. ;;
  13112. esac
  13113. fi
  13114. sys_lib_dlsearch_path_spec='/usr/lib'
  13115. ;;
  13116. tpf*)
  13117. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13118. version_type=linux # correct to gnu/linux during the next big refactor
  13119. need_lib_prefix=no
  13120. need_version=no
  13121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13122. shlibpath_var=LD_LIBRARY_PATH
  13123. shlibpath_overrides_runpath=no
  13124. hardcode_into_libs=yes
  13125. ;;
  13126. uts4*)
  13127. version_type=linux # correct to gnu/linux during the next big refactor
  13128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13129. soname_spec='${libname}${release}${shared_ext}$major'
  13130. shlibpath_var=LD_LIBRARY_PATH
  13131. ;;
  13132. *)
  13133. dynamic_linker=no
  13134. ;;
  13135. esac
  13136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13137. $as_echo "$dynamic_linker" >&6; }
  13138. test "$dynamic_linker" = no && can_build_shared=no
  13139. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13140. if test "$GCC" = yes; then
  13141. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13142. fi
  13143. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13144. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13145. fi
  13146. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13147. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13148. fi
  13149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13150. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13151. hardcode_action_CXX=
  13152. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13153. test -n "$runpath_var_CXX" ||
  13154. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13155. # We can hardcode non-existent directories.
  13156. if test "$hardcode_direct_CXX" != no &&
  13157. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13158. # have to relink, otherwise we might link with an installed library
  13159. # when we should be linking with a yet-to-be-installed one
  13160. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13161. test "$hardcode_minus_L_CXX" != no; then
  13162. # Linking always hardcodes the temporary library directory.
  13163. hardcode_action_CXX=relink
  13164. else
  13165. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13166. hardcode_action_CXX=immediate
  13167. fi
  13168. else
  13169. # We cannot hardcode anything, or else we can only hardcode existing
  13170. # directories.
  13171. hardcode_action_CXX=unsupported
  13172. fi
  13173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13174. $as_echo "$hardcode_action_CXX" >&6; }
  13175. if test "$hardcode_action_CXX" = relink ||
  13176. test "$inherit_rpath_CXX" = yes; then
  13177. # Fast installation is not supported
  13178. enable_fast_install=no
  13179. elif test "$shlibpath_overrides_runpath" = yes ||
  13180. test "$enable_shared" = no; then
  13181. # Fast installation is not necessary
  13182. enable_fast_install=needless
  13183. fi
  13184. fi # test -n "$compiler"
  13185. CC=$lt_save_CC
  13186. CFLAGS=$lt_save_CFLAGS
  13187. LDCXX=$LD
  13188. LD=$lt_save_LD
  13189. GCC=$lt_save_GCC
  13190. with_gnu_ld=$lt_save_with_gnu_ld
  13191. lt_cv_path_LDCXX=$lt_cv_path_LD
  13192. lt_cv_path_LD=$lt_save_path_LD
  13193. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13194. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13195. fi # test "$_lt_caught_CXX_error" != yes
  13196. ac_ext=c
  13197. ac_cpp='$CPP $CPPFLAGS'
  13198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13201. ac_config_commands="$ac_config_commands libtool"
  13202. # Only expand once:
  13203. ac_config_headers="$ac_config_headers config.h"
  13204. am__api_version='1.11'
  13205. # Find a good install program. We prefer a C program (faster),
  13206. # so one script is as good as another. But avoid the broken or
  13207. # incompatible versions:
  13208. # SysV /etc/install, /usr/sbin/install
  13209. # SunOS /usr/etc/install
  13210. # IRIX /sbin/install
  13211. # AIX /bin/install
  13212. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13213. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13214. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13215. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13216. # OS/2's system install, which has a completely different semantic
  13217. # ./install, which can be erroneously created by make from ./install.sh.
  13218. # Reject install programs that cannot install multiple files.
  13219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13220. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13221. if test -z "$INSTALL"; then
  13222. if ${ac_cv_path_install+:} false; then :
  13223. $as_echo_n "(cached) " >&6
  13224. else
  13225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13226. for as_dir in $PATH
  13227. do
  13228. IFS=$as_save_IFS
  13229. test -z "$as_dir" && as_dir=.
  13230. # Account for people who put trailing slashes in PATH elements.
  13231. case $as_dir/ in #((
  13232. ./ | .// | /[cC]/* | \
  13233. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13234. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13235. /usr/ucb/* ) ;;
  13236. *)
  13237. # OSF1 and SCO ODT 3.0 have their own names for install.
  13238. # Don't use installbsd from OSF since it installs stuff as root
  13239. # by default.
  13240. for ac_prog in ginstall scoinst install; do
  13241. for ac_exec_ext in '' $ac_executable_extensions; do
  13242. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  13243. if test $ac_prog = install &&
  13244. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13245. # AIX install. It has an incompatible calling convention.
  13246. :
  13247. elif test $ac_prog = install &&
  13248. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13249. # program-specific install script used by HP pwplus--don't use.
  13250. :
  13251. else
  13252. rm -rf conftest.one conftest.two conftest.dir
  13253. echo one > conftest.one
  13254. echo two > conftest.two
  13255. mkdir conftest.dir
  13256. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13257. test -s conftest.one && test -s conftest.two &&
  13258. test -s conftest.dir/conftest.one &&
  13259. test -s conftest.dir/conftest.two
  13260. then
  13261. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13262. break 3
  13263. fi
  13264. fi
  13265. fi
  13266. done
  13267. done
  13268. ;;
  13269. esac
  13270. done
  13271. IFS=$as_save_IFS
  13272. rm -rf conftest.one conftest.two conftest.dir
  13273. fi
  13274. if test "${ac_cv_path_install+set}" = set; then
  13275. INSTALL=$ac_cv_path_install
  13276. else
  13277. # As a last resort, use the slow shell script. Don't cache a
  13278. # value for INSTALL within a source directory, because that will
  13279. # break other packages using the cache if that directory is
  13280. # removed, or if the value is a relative name.
  13281. INSTALL=$ac_install_sh
  13282. fi
  13283. fi
  13284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13285. $as_echo "$INSTALL" >&6; }
  13286. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13287. # It thinks the first close brace ends the variable substitution.
  13288. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13289. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13290. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  13292. $as_echo_n "checking whether build environment is sane... " >&6; }
  13293. # Just in case
  13294. sleep 1
  13295. echo timestamp > conftest.file
  13296. # Reject unsafe characters in $srcdir or the absolute working directory
  13297. # name. Accept space and tab only in the latter.
  13298. am_lf='
  13299. '
  13300. case `pwd` in
  13301. *[\\\"\#\$\&\'\`$am_lf]*)
  13302. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  13303. esac
  13304. case $srcdir in
  13305. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  13306. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  13307. esac
  13308. # Do `set' in a subshell so we don't clobber the current shell's
  13309. # arguments. Must try -L first in case configure is actually a
  13310. # symlink; some systems play weird games with the mod time of symlinks
  13311. # (eg FreeBSD returns the mod time of the symlink's containing
  13312. # directory).
  13313. if (
  13314. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13315. if test "$*" = "X"; then
  13316. # -L didn't work.
  13317. set X `ls -t "$srcdir/configure" conftest.file`
  13318. fi
  13319. rm -f conftest.file
  13320. if test "$*" != "X $srcdir/configure conftest.file" \
  13321. && test "$*" != "X conftest.file $srcdir/configure"; then
  13322. # If neither matched, then we have a broken ls. This can happen
  13323. # if, for instance, CONFIG_SHELL is bash and it inherits a
  13324. # broken ls alias from the environment. This has actually
  13325. # happened. Such a system could not be considered "sane".
  13326. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  13327. alias in your environment" "$LINENO" 5
  13328. fi
  13329. test "$2" = conftest.file
  13330. )
  13331. then
  13332. # Ok.
  13333. :
  13334. else
  13335. as_fn_error $? "newly created file is older than distributed files!
  13336. Check your system clock" "$LINENO" 5
  13337. fi
  13338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13339. $as_echo "yes" >&6; }
  13340. test "$program_prefix" != NONE &&
  13341. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  13342. # Use a double $ so make ignores it.
  13343. test "$program_suffix" != NONE &&
  13344. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  13345. # Double any \ or $.
  13346. # By default was `s,x,x', remove it if useless.
  13347. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  13348. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  13349. # expand $ac_aux_dir to an absolute path
  13350. am_aux_dir=`cd $ac_aux_dir && pwd`
  13351. if test x"${MISSING+set}" != xset; then
  13352. case $am_aux_dir in
  13353. *\ * | *\ *)
  13354. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13355. *)
  13356. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13357. esac
  13358. fi
  13359. # Use eval to expand $SHELL
  13360. if eval "$MISSING --run true"; then
  13361. am_missing_run="$MISSING --run "
  13362. else
  13363. am_missing_run=
  13364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  13365. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  13366. fi
  13367. if test x"${install_sh}" != xset; then
  13368. case $am_aux_dir in
  13369. *\ * | *\ *)
  13370. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13371. *)
  13372. install_sh="\${SHELL} $am_aux_dir/install-sh"
  13373. esac
  13374. fi
  13375. # Installed binaries are usually stripped using `strip' when the user
  13376. # run `make install-strip'. However `strip' might not be the right
  13377. # tool to use in cross-compilation environments, therefore Automake
  13378. # will honor the `STRIP' environment variable to overrule this program.
  13379. if test "$cross_compiling" != no; then
  13380. if test -n "$ac_tool_prefix"; then
  13381. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  13382. set dummy ${ac_tool_prefix}strip; ac_word=$2
  13383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13384. $as_echo_n "checking for $ac_word... " >&6; }
  13385. if ${ac_cv_prog_STRIP+:} false; then :
  13386. $as_echo_n "(cached) " >&6
  13387. else
  13388. if test -n "$STRIP"; then
  13389. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  13390. else
  13391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13392. for as_dir in $PATH
  13393. do
  13394. IFS=$as_save_IFS
  13395. test -z "$as_dir" && as_dir=.
  13396. for ac_exec_ext in '' $ac_executable_extensions; do
  13397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13398. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  13399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13400. break 2
  13401. fi
  13402. done
  13403. done
  13404. IFS=$as_save_IFS
  13405. fi
  13406. fi
  13407. STRIP=$ac_cv_prog_STRIP
  13408. if test -n "$STRIP"; then
  13409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  13410. $as_echo "$STRIP" >&6; }
  13411. else
  13412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13413. $as_echo "no" >&6; }
  13414. fi
  13415. fi
  13416. if test -z "$ac_cv_prog_STRIP"; then
  13417. ac_ct_STRIP=$STRIP
  13418. # Extract the first word of "strip", so it can be a program name with args.
  13419. set dummy strip; ac_word=$2
  13420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13421. $as_echo_n "checking for $ac_word... " >&6; }
  13422. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  13423. $as_echo_n "(cached) " >&6
  13424. else
  13425. if test -n "$ac_ct_STRIP"; then
  13426. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  13427. else
  13428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13429. for as_dir in $PATH
  13430. do
  13431. IFS=$as_save_IFS
  13432. test -z "$as_dir" && as_dir=.
  13433. for ac_exec_ext in '' $ac_executable_extensions; do
  13434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13435. ac_cv_prog_ac_ct_STRIP="strip"
  13436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13437. break 2
  13438. fi
  13439. done
  13440. done
  13441. IFS=$as_save_IFS
  13442. fi
  13443. fi
  13444. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  13445. if test -n "$ac_ct_STRIP"; then
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  13447. $as_echo "$ac_ct_STRIP" >&6; }
  13448. else
  13449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13450. $as_echo "no" >&6; }
  13451. fi
  13452. if test "x$ac_ct_STRIP" = x; then
  13453. STRIP=":"
  13454. else
  13455. case $cross_compiling:$ac_tool_warned in
  13456. yes:)
  13457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13459. ac_tool_warned=yes ;;
  13460. esac
  13461. STRIP=$ac_ct_STRIP
  13462. fi
  13463. else
  13464. STRIP="$ac_cv_prog_STRIP"
  13465. fi
  13466. fi
  13467. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  13469. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  13470. if test -z "$MKDIR_P"; then
  13471. if ${ac_cv_path_mkdir+:} false; then :
  13472. $as_echo_n "(cached) " >&6
  13473. else
  13474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13475. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  13476. do
  13477. IFS=$as_save_IFS
  13478. test -z "$as_dir" && as_dir=.
  13479. for ac_prog in mkdir gmkdir; do
  13480. for ac_exec_ext in '' $ac_executable_extensions; do
  13481. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  13482. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  13483. 'mkdir (GNU coreutils) '* | \
  13484. 'mkdir (coreutils) '* | \
  13485. 'mkdir (fileutils) '4.1*)
  13486. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  13487. break 3;;
  13488. esac
  13489. done
  13490. done
  13491. done
  13492. IFS=$as_save_IFS
  13493. fi
  13494. test -d ./--version && rmdir ./--version
  13495. if test "${ac_cv_path_mkdir+set}" = set; then
  13496. MKDIR_P="$ac_cv_path_mkdir -p"
  13497. else
  13498. # As a last resort, use the slow shell script. Don't cache a
  13499. # value for MKDIR_P within a source directory, because that will
  13500. # break other packages using the cache if that directory is
  13501. # removed, or if the value is a relative name.
  13502. MKDIR_P="$ac_install_sh -d"
  13503. fi
  13504. fi
  13505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  13506. $as_echo "$MKDIR_P" >&6; }
  13507. mkdir_p="$MKDIR_P"
  13508. case $mkdir_p in
  13509. [\\/$]* | ?:[\\/]*) ;;
  13510. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13511. esac
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13513. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13514. set x ${MAKE-make}
  13515. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13516. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13517. $as_echo_n "(cached) " >&6
  13518. else
  13519. cat >conftest.make <<\_ACEOF
  13520. SHELL = /bin/sh
  13521. all:
  13522. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13523. _ACEOF
  13524. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13525. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13526. *@@@%%%=?*=@@@%%%*)
  13527. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13528. *)
  13529. eval ac_cv_prog_make_${ac_make}_set=no;;
  13530. esac
  13531. rm -f conftest.make
  13532. fi
  13533. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13535. $as_echo "yes" >&6; }
  13536. SET_MAKE=
  13537. else
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13539. $as_echo "no" >&6; }
  13540. SET_MAKE="MAKE=${MAKE-make}"
  13541. fi
  13542. rm -rf .tst 2>/dev/null
  13543. mkdir .tst 2>/dev/null
  13544. if test -d .tst; then
  13545. am__leading_dot=.
  13546. else
  13547. am__leading_dot=_
  13548. fi
  13549. rmdir .tst 2>/dev/null
  13550. DEPDIR="${am__leading_dot}deps"
  13551. ac_config_commands="$ac_config_commands depfiles"
  13552. am_make=${MAKE-make}
  13553. cat > confinc << 'END'
  13554. am__doit:
  13555. @echo this is the am__doit target
  13556. .PHONY: am__doit
  13557. END
  13558. # If we don't find an include directive, just comment out the code.
  13559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  13560. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  13561. am__include="#"
  13562. am__quote=
  13563. _am_result=none
  13564. # First try GNU make style include.
  13565. echo "include confinc" > confmf
  13566. # Ignore all kinds of additional output from `make'.
  13567. case `$am_make -s -f confmf 2> /dev/null` in #(
  13568. *the\ am__doit\ target*)
  13569. am__include=include
  13570. am__quote=
  13571. _am_result=GNU
  13572. ;;
  13573. esac
  13574. # Now try BSD make style include.
  13575. if test "$am__include" = "#"; then
  13576. echo '.include "confinc"' > confmf
  13577. case `$am_make -s -f confmf 2> /dev/null` in #(
  13578. *the\ am__doit\ target*)
  13579. am__include=.include
  13580. am__quote="\""
  13581. _am_result=BSD
  13582. ;;
  13583. esac
  13584. fi
  13585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  13586. $as_echo "$_am_result" >&6; }
  13587. rm -f confinc confmf
  13588. # Check whether --enable-dependency-tracking was given.
  13589. if test "${enable_dependency_tracking+set}" = set; then :
  13590. enableval=$enable_dependency_tracking;
  13591. fi
  13592. if test "x$enable_dependency_tracking" != xno; then
  13593. am_depcomp="$ac_aux_dir/depcomp"
  13594. AMDEPBACKSLASH='\'
  13595. am__nodep='_no'
  13596. fi
  13597. if test "x$enable_dependency_tracking" != xno; then
  13598. AMDEP_TRUE=
  13599. AMDEP_FALSE='#'
  13600. else
  13601. AMDEP_TRUE='#'
  13602. AMDEP_FALSE=
  13603. fi
  13604. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13605. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13606. # is not polluted with repeated "-I."
  13607. am__isrc=' -I$(srcdir)'
  13608. # test to see if srcdir already configured
  13609. if test -f $srcdir/config.status; then
  13610. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  13611. fi
  13612. fi
  13613. # test whether we have cygpath
  13614. if test -z "$CYGPATH_W"; then
  13615. if (cygpath --version) >/dev/null 2>/dev/null; then
  13616. CYGPATH_W='cygpath -w'
  13617. else
  13618. CYGPATH_W=echo
  13619. fi
  13620. fi
  13621. # Define the identity of the package.
  13622. PACKAGE='klish'
  13623. VERSION='1.5.3'
  13624. cat >>confdefs.h <<_ACEOF
  13625. #define PACKAGE "$PACKAGE"
  13626. _ACEOF
  13627. cat >>confdefs.h <<_ACEOF
  13628. #define VERSION "$VERSION"
  13629. _ACEOF
  13630. # Some tools Automake needs.
  13631. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  13632. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  13633. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  13634. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  13635. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13636. # We need awk for the "check" target. The system "awk" is bad on
  13637. # some platforms.
  13638. # Always define AMTAR for backward compatibility. Yes, it's still used
  13639. # in the wild :-( We should find a proper way to deprecate it ...
  13640. AMTAR='$${TAR-tar}'
  13641. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  13642. depcc="$CC" am_compiler_list=
  13643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13644. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13645. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  13646. $as_echo_n "(cached) " >&6
  13647. else
  13648. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13649. # We make a subdir and do the tests there. Otherwise we can end up
  13650. # making bogus files that we don't know about and never remove. For
  13651. # instance it was reported that on HP-UX the gcc test will end up
  13652. # making a dummy file named `D' -- because `-MD' means `put the output
  13653. # in D'.
  13654. rm -rf conftest.dir
  13655. mkdir conftest.dir
  13656. # Copy depcomp to subdir because otherwise we won't find it if we're
  13657. # using a relative directory.
  13658. cp "$am_depcomp" conftest.dir
  13659. cd conftest.dir
  13660. # We will build objects and dependencies in a subdirectory because
  13661. # it helps to detect inapplicable dependency modes. For instance
  13662. # both Tru64's cc and ICC support -MD to output dependencies as a
  13663. # side effect of compilation, but ICC will put the dependencies in
  13664. # the current directory while Tru64 will put them in the object
  13665. # directory.
  13666. mkdir sub
  13667. am_cv_CC_dependencies_compiler_type=none
  13668. if test "$am_compiler_list" = ""; then
  13669. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13670. fi
  13671. am__universal=false
  13672. case " $depcc " in #(
  13673. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13674. esac
  13675. for depmode in $am_compiler_list; do
  13676. # Setup a source with many dependencies, because some compilers
  13677. # like to wrap large dependency lists on column 80 (with \), and
  13678. # we should not choose a depcomp mode which is confused by this.
  13679. #
  13680. # We need to recreate these files for each test, as the compiler may
  13681. # overwrite some of them when testing with obscure command lines.
  13682. # This happens at least with the AIX C compiler.
  13683. : > sub/conftest.c
  13684. for i in 1 2 3 4 5 6; do
  13685. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13686. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13687. # Solaris 8's {/usr,}/bin/sh.
  13688. touch sub/conftst$i.h
  13689. done
  13690. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13691. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13692. # mode. It turns out that the SunPro C++ compiler does not properly
  13693. # handle `-M -o', and we need to detect this. Also, some Intel
  13694. # versions had trouble with output in subdirs
  13695. am__obj=sub/conftest.${OBJEXT-o}
  13696. am__minus_obj="-o $am__obj"
  13697. case $depmode in
  13698. gcc)
  13699. # This depmode causes a compiler race in universal mode.
  13700. test "$am__universal" = false || continue
  13701. ;;
  13702. nosideeffect)
  13703. # after this tag, mechanisms are not by side-effect, so they'll
  13704. # only be used when explicitly requested
  13705. if test "x$enable_dependency_tracking" = xyes; then
  13706. continue
  13707. else
  13708. break
  13709. fi
  13710. ;;
  13711. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13712. # This compiler won't grok `-c -o', but also, the minuso test has
  13713. # not run yet. These depmodes are late enough in the game, and
  13714. # so weak that their functioning should not be impacted.
  13715. am__obj=conftest.${OBJEXT-o}
  13716. am__minus_obj=
  13717. ;;
  13718. none) break ;;
  13719. esac
  13720. if depmode=$depmode \
  13721. source=sub/conftest.c object=$am__obj \
  13722. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13723. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13724. >/dev/null 2>conftest.err &&
  13725. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13726. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13727. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13728. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13729. # icc doesn't choke on unknown options, it will just issue warnings
  13730. # or remarks (even with -Werror). So we grep stderr for any message
  13731. # that says an option was ignored or not supported.
  13732. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13733. # icc: Command line warning: ignoring option '-M'; no argument required
  13734. # The diagnosis changed in icc 8.0:
  13735. # icc: Command line remark: option '-MP' not supported
  13736. if (grep 'ignoring option' conftest.err ||
  13737. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13738. am_cv_CC_dependencies_compiler_type=$depmode
  13739. break
  13740. fi
  13741. fi
  13742. done
  13743. cd ..
  13744. rm -rf conftest.dir
  13745. else
  13746. am_cv_CC_dependencies_compiler_type=none
  13747. fi
  13748. fi
  13749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13750. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13751. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13752. if
  13753. test "x$enable_dependency_tracking" != xno \
  13754. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13755. am__fastdepCC_TRUE=
  13756. am__fastdepCC_FALSE='#'
  13757. else
  13758. am__fastdepCC_TRUE='#'
  13759. am__fastdepCC_FALSE=
  13760. fi
  13761. depcc="$CXX" am_compiler_list=
  13762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13763. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13764. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13765. $as_echo_n "(cached) " >&6
  13766. else
  13767. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13768. # We make a subdir and do the tests there. Otherwise we can end up
  13769. # making bogus files that we don't know about and never remove. For
  13770. # instance it was reported that on HP-UX the gcc test will end up
  13771. # making a dummy file named `D' -- because `-MD' means `put the output
  13772. # in D'.
  13773. rm -rf conftest.dir
  13774. mkdir conftest.dir
  13775. # Copy depcomp to subdir because otherwise we won't find it if we're
  13776. # using a relative directory.
  13777. cp "$am_depcomp" conftest.dir
  13778. cd conftest.dir
  13779. # We will build objects and dependencies in a subdirectory because
  13780. # it helps to detect inapplicable dependency modes. For instance
  13781. # both Tru64's cc and ICC support -MD to output dependencies as a
  13782. # side effect of compilation, but ICC will put the dependencies in
  13783. # the current directory while Tru64 will put them in the object
  13784. # directory.
  13785. mkdir sub
  13786. am_cv_CXX_dependencies_compiler_type=none
  13787. if test "$am_compiler_list" = ""; then
  13788. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13789. fi
  13790. am__universal=false
  13791. case " $depcc " in #(
  13792. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13793. esac
  13794. for depmode in $am_compiler_list; do
  13795. # Setup a source with many dependencies, because some compilers
  13796. # like to wrap large dependency lists on column 80 (with \), and
  13797. # we should not choose a depcomp mode which is confused by this.
  13798. #
  13799. # We need to recreate these files for each test, as the compiler may
  13800. # overwrite some of them when testing with obscure command lines.
  13801. # This happens at least with the AIX C compiler.
  13802. : > sub/conftest.c
  13803. for i in 1 2 3 4 5 6; do
  13804. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13805. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13806. # Solaris 8's {/usr,}/bin/sh.
  13807. touch sub/conftst$i.h
  13808. done
  13809. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13810. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13811. # mode. It turns out that the SunPro C++ compiler does not properly
  13812. # handle `-M -o', and we need to detect this. Also, some Intel
  13813. # versions had trouble with output in subdirs
  13814. am__obj=sub/conftest.${OBJEXT-o}
  13815. am__minus_obj="-o $am__obj"
  13816. case $depmode in
  13817. gcc)
  13818. # This depmode causes a compiler race in universal mode.
  13819. test "$am__universal" = false || continue
  13820. ;;
  13821. nosideeffect)
  13822. # after this tag, mechanisms are not by side-effect, so they'll
  13823. # only be used when explicitly requested
  13824. if test "x$enable_dependency_tracking" = xyes; then
  13825. continue
  13826. else
  13827. break
  13828. fi
  13829. ;;
  13830. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13831. # This compiler won't grok `-c -o', but also, the minuso test has
  13832. # not run yet. These depmodes are late enough in the game, and
  13833. # so weak that their functioning should not be impacted.
  13834. am__obj=conftest.${OBJEXT-o}
  13835. am__minus_obj=
  13836. ;;
  13837. none) break ;;
  13838. esac
  13839. if depmode=$depmode \
  13840. source=sub/conftest.c object=$am__obj \
  13841. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13842. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13843. >/dev/null 2>conftest.err &&
  13844. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13845. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13846. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13847. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13848. # icc doesn't choke on unknown options, it will just issue warnings
  13849. # or remarks (even with -Werror). So we grep stderr for any message
  13850. # that says an option was ignored or not supported.
  13851. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13852. # icc: Command line warning: ignoring option '-M'; no argument required
  13853. # The diagnosis changed in icc 8.0:
  13854. # icc: Command line remark: option '-MP' not supported
  13855. if (grep 'ignoring option' conftest.err ||
  13856. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13857. am_cv_CXX_dependencies_compiler_type=$depmode
  13858. break
  13859. fi
  13860. fi
  13861. done
  13862. cd ..
  13863. rm -rf conftest.dir
  13864. else
  13865. am_cv_CXX_dependencies_compiler_type=none
  13866. fi
  13867. fi
  13868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13869. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13870. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13871. if
  13872. test "x$enable_dependency_tracking" != xno \
  13873. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13874. am__fastdepCXX_TRUE=
  13875. am__fastdepCXX_FALSE='#'
  13876. else
  13877. am__fastdepCXX_TRUE='#'
  13878. am__fastdepCXX_FALSE=
  13879. fi
  13880. if test "x$CC" != xcc; then
  13881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  13882. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  13883. else
  13884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  13885. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  13886. fi
  13887. set dummy $CC; ac_cc=`$as_echo "$2" |
  13888. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13889. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  13890. $as_echo_n "(cached) " >&6
  13891. else
  13892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13893. /* end confdefs.h. */
  13894. int
  13895. main ()
  13896. {
  13897. ;
  13898. return 0;
  13899. }
  13900. _ACEOF
  13901. # Make sure it works both with $CC and with simple cc.
  13902. # We do the test twice because some compilers refuse to overwrite an
  13903. # existing .o file with -o, though they will create one.
  13904. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13905. rm -f conftest2.*
  13906. if { { case "(($ac_try" in
  13907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13908. *) ac_try_echo=$ac_try;;
  13909. esac
  13910. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13911. $as_echo "$ac_try_echo"; } >&5
  13912. (eval "$ac_try") 2>&5
  13913. ac_status=$?
  13914. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13915. test $ac_status = 0; } &&
  13916. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13918. *) ac_try_echo=$ac_try;;
  13919. esac
  13920. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13921. $as_echo "$ac_try_echo"; } >&5
  13922. (eval "$ac_try") 2>&5
  13923. ac_status=$?
  13924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13925. test $ac_status = 0; };
  13926. then
  13927. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  13928. if test "x$CC" != xcc; then
  13929. # Test first that cc exists at all.
  13930. if { ac_try='cc -c conftest.$ac_ext >&5'
  13931. { { case "(($ac_try" in
  13932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13933. *) ac_try_echo=$ac_try;;
  13934. esac
  13935. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13936. $as_echo "$ac_try_echo"; } >&5
  13937. (eval "$ac_try") 2>&5
  13938. ac_status=$?
  13939. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13940. test $ac_status = 0; }; }; then
  13941. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13942. rm -f conftest2.*
  13943. if { { case "(($ac_try" in
  13944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13945. *) ac_try_echo=$ac_try;;
  13946. esac
  13947. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13948. $as_echo "$ac_try_echo"; } >&5
  13949. (eval "$ac_try") 2>&5
  13950. ac_status=$?
  13951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13952. test $ac_status = 0; } &&
  13953. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13955. *) ac_try_echo=$ac_try;;
  13956. esac
  13957. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13958. $as_echo "$ac_try_echo"; } >&5
  13959. (eval "$ac_try") 2>&5
  13960. ac_status=$?
  13961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13962. test $ac_status = 0; };
  13963. then
  13964. # cc works too.
  13965. :
  13966. else
  13967. # cc exists but doesn't like -o.
  13968. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13969. fi
  13970. fi
  13971. fi
  13972. else
  13973. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13974. fi
  13975. rm -f core conftest*
  13976. fi
  13977. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  13978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13979. $as_echo "yes" >&6; }
  13980. else
  13981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13982. $as_echo "no" >&6; }
  13983. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  13984. fi
  13985. # FIXME: we rely on the cache variable name because
  13986. # there is no other way.
  13987. set dummy $CC
  13988. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13989. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13990. if test "$am_t" != yes; then
  13991. # Losing compiler, so override with the script.
  13992. # FIXME: It is wrong to rewrite CC.
  13993. # But if we don't then we get into trouble of one sort or another.
  13994. # A longer-term fix would be to have automake use am__CC in this case,
  13995. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13996. CC="$am_aux_dir/compile $CC"
  13997. fi
  13998. # needed to handle 64-bit architecture
  13999. # The cast to long int works around a bug in the HP C Compiler
  14000. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14001. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14002. # This bug is HP SR number 8606223364.
  14003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  14004. $as_echo_n "checking size of int... " >&6; }
  14005. if ${ac_cv_sizeof_int+:} false; then :
  14006. $as_echo_n "(cached) " >&6
  14007. else
  14008. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  14009. else
  14010. if test "$ac_cv_type_int" = yes; then
  14011. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14012. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14013. as_fn_error 77 "cannot compute sizeof (int)
  14014. See \`config.log' for more details" "$LINENO" 5; }
  14015. else
  14016. ac_cv_sizeof_int=0
  14017. fi
  14018. fi
  14019. fi
  14020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14021. $as_echo "$ac_cv_sizeof_int" >&6; }
  14022. cat >>confdefs.h <<_ACEOF
  14023. #define SIZEOF_INT $ac_cv_sizeof_int
  14024. _ACEOF
  14025. # The cast to long int works around a bug in the HP C Compiler
  14026. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14027. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14028. # This bug is HP SR number 8606223364.
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14030. $as_echo_n "checking size of long... " >&6; }
  14031. if ${ac_cv_sizeof_long+:} false; then :
  14032. $as_echo_n "(cached) " >&6
  14033. else
  14034. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14035. else
  14036. if test "$ac_cv_type_long" = yes; then
  14037. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14038. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14039. as_fn_error 77 "cannot compute sizeof (long)
  14040. See \`config.log' for more details" "$LINENO" 5; }
  14041. else
  14042. ac_cv_sizeof_long=0
  14043. fi
  14044. fi
  14045. fi
  14046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14047. $as_echo "$ac_cv_sizeof_long" >&6; }
  14048. cat >>confdefs.h <<_ACEOF
  14049. #define SIZEOF_LONG $ac_cv_sizeof_long
  14050. _ACEOF
  14051. # The cast to long int works around a bug in the HP C Compiler
  14052. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14053. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14054. # This bug is HP SR number 8606223364.
  14055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  14056. $as_echo_n "checking size of size_t... " >&6; }
  14057. if ${ac_cv_sizeof_size_t+:} false; then :
  14058. $as_echo_n "(cached) " >&6
  14059. else
  14060. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  14061. else
  14062. if test "$ac_cv_type_size_t" = yes; then
  14063. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14064. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14065. as_fn_error 77 "cannot compute sizeof (size_t)
  14066. See \`config.log' for more details" "$LINENO" 5; }
  14067. else
  14068. ac_cv_sizeof_size_t=0
  14069. fi
  14070. fi
  14071. fi
  14072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  14073. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  14074. cat >>confdefs.h <<_ACEOF
  14075. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  14076. _ACEOF
  14077. #------------------------------------------------------------------------
  14078. # Handle the --prefix=... option
  14079. #------------------------------------------------------------------------
  14080. if test "${prefix}" = "NONE"; then
  14081. prefix=/usr/local
  14082. fi
  14083. if test "${exec_prefix}" = "NONE"; then
  14084. exec_prefix=$prefix
  14085. fi
  14086. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  14087. eval libdir="$libdir"
  14088. ################################
  14089. # Deal with debugging options
  14090. ################################
  14091. # Check whether --enable-debug was given.
  14092. if test "${enable_debug+set}" = set; then :
  14093. enableval=$enable_debug;
  14094. else
  14095. enable_debug=no
  14096. fi
  14097. if test x$enable_debug = xyes; then
  14098. DEBUG_TRUE=
  14099. DEBUG_FALSE='#'
  14100. else
  14101. DEBUG_TRUE='#'
  14102. DEBUG_FALSE=
  14103. fi
  14104. ################################
  14105. # Check for the LUB library
  14106. ################################
  14107. LUB_LIBS="-llub"
  14108. LUB_CFLAGS=""
  14109. if test "x$LUB_LIBS" = "x"; then
  14110. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  14111. fi
  14112. ################################
  14113. # Check for the KONF library
  14114. ################################
  14115. KONF_LIBS="-lkonf"
  14116. KONF_CFLAGS=""
  14117. if test "x$KONF_LIBS" = "x"; then
  14118. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  14119. fi
  14120. ################################
  14121. # Check for the TINYRL library
  14122. ################################
  14123. TINYRL_LIBS="-ltinyrl"
  14124. TINYRL_CFLAGS=""
  14125. if test "x$TINYRL_LIBS" = "x"; then
  14126. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  14127. fi
  14128. ################################
  14129. # Check for the TINYXML library
  14130. ################################
  14131. TINYXML_LIBS="-ltinyxml"
  14132. TINYXML_CXXFLAGS="-std=gnu++98"
  14133. if test "x$TINYXML_LIBS" = "x"; then
  14134. as_fn_error $? "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  14135. fi
  14136. ################################
  14137. # Check for the PTHREAD library
  14138. ################################
  14139. # Check whether --with-pthread was given.
  14140. if test "${with_pthread+set}" = set; then :
  14141. withval=$with_pthread;
  14142. fi
  14143. for ac_header in pthread.h
  14144. do :
  14145. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  14146. if test "x$ac_cv_header_pthread_h" = xyes; then :
  14147. cat >>confdefs.h <<_ACEOF
  14148. #define HAVE_PTHREAD_H 1
  14149. _ACEOF
  14150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  14151. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  14152. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  14153. $as_echo_n "(cached) " >&6
  14154. else
  14155. ac_check_lib_save_LIBS=$LIBS
  14156. LIBS="-lpthread $LIBS"
  14157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14158. /* end confdefs.h. */
  14159. /* Override any GCC internal prototype to avoid an error.
  14160. Use char because int might match the return type of a GCC
  14161. builtin and then its argument prototype would still apply. */
  14162. #ifdef __cplusplus
  14163. extern "C"
  14164. #endif
  14165. char pthread_create ();
  14166. int
  14167. main ()
  14168. {
  14169. return pthread_create ();
  14170. ;
  14171. return 0;
  14172. }
  14173. _ACEOF
  14174. if ac_fn_c_try_link "$LINENO"; then :
  14175. ac_cv_lib_pthread_pthread_create=yes
  14176. else
  14177. ac_cv_lib_pthread_pthread_create=no
  14178. fi
  14179. rm -f core conftest.err conftest.$ac_objext \
  14180. conftest$ac_exeext conftest.$ac_ext
  14181. LIBS=$ac_check_lib_save_LIBS
  14182. fi
  14183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  14184. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  14185. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  14186. $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
  14187. if test "x$with_pthread" = "x"; then
  14188. PTHREAD_LIBS="-lpthread"
  14189. else
  14190. PTHREAD_CFLAGS="-I$with_pthread/include"
  14191. PTHREAD_LIBS="-L$with_pthread/lib -lpthread"
  14192. fi
  14193. fi
  14194. fi
  14195. done
  14196. if test "x$PTHREAD_LIBS" = "x"; then
  14197. as_fn_error $? "Cannot find the POSIX threads library" "$LINENO" 5
  14198. fi
  14199. ################################
  14200. # Check for the RT library
  14201. ################################
  14202. # Check whether --with-rt was given.
  14203. if test "${with_rt+set}" = set; then :
  14204. withval=$with_rt;
  14205. fi
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  14207. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  14208. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  14209. $as_echo_n "(cached) " >&6
  14210. else
  14211. ac_check_lib_save_LIBS=$LIBS
  14212. LIBS="-lrt $LIBS"
  14213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14214. /* end confdefs.h. */
  14215. /* Override any GCC internal prototype to avoid an error.
  14216. Use char because int might match the return type of a GCC
  14217. builtin and then its argument prototype would still apply. */
  14218. #ifdef __cplusplus
  14219. extern "C"
  14220. #endif
  14221. char clock_gettime ();
  14222. int
  14223. main ()
  14224. {
  14225. return clock_gettime ();
  14226. ;
  14227. return 0;
  14228. }
  14229. _ACEOF
  14230. if ac_fn_c_try_link "$LINENO"; then :
  14231. ac_cv_lib_rt_clock_gettime=yes
  14232. else
  14233. ac_cv_lib_rt_clock_gettime=no
  14234. fi
  14235. rm -f core conftest.err conftest.$ac_objext \
  14236. conftest$ac_exeext conftest.$ac_ext
  14237. LIBS=$ac_check_lib_save_LIBS
  14238. fi
  14239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  14240. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  14241. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  14242. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  14243. if test "x$with_rt" = "x"; then
  14244. RT_LIBS="-lrt"
  14245. else
  14246. RT_CFLAGS="-I$with_rt/include"
  14247. RT_LIBS="-L$with_rt/lib -lrt"
  14248. fi
  14249. fi
  14250. ################################
  14251. # Check for the TCL library
  14252. ################################
  14253. TCL_CONFIG=${libdir}/tclConfig.sh
  14254. # Check whether --with-tcl was given.
  14255. if test "${with_tcl+set}" = set; then :
  14256. withval=$with_tcl; if test -e $TCL_CONFIG; then
  14257. source ${TCL_CONFIG} # get TCL_VERSION
  14258. if test "${with_tcl}" = "yes"; then
  14259. TCL_CFLAGS="${TCL_INCLUDE_SPEC}"
  14260. TCL_LIBS="${TCL_LIB_SPEC}"
  14261. else
  14262. TCL_CFLAGS="-I${with_tcl}/include"
  14263. TCL_LIBS="-L${with_tcl}/lib -ltcl"
  14264. fi
  14265. CPPFLAGS="$CPPFLAGS $TCL_CFLAGS"
  14266. for ac_header in tcl.h
  14267. do :
  14268. ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
  14269. if test "x$ac_cv_header_tcl_h" = xyes; then :
  14270. cat >>confdefs.h <<_ACEOF
  14271. #define HAVE_TCL_H 1
  14272. _ACEOF
  14273. as_ac_Lib=`$as_echo "ac_cv_lib_tcl${TCL_VERSION}''_Tcl_CreateInterp" | $as_tr_sh`
  14274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}" >&5
  14275. $as_echo_n "checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}... " >&6; }
  14276. if eval \${$as_ac_Lib+:} false; then :
  14277. $as_echo_n "(cached) " >&6
  14278. else
  14279. ac_check_lib_save_LIBS=$LIBS
  14280. LIBS="-ltcl${TCL_VERSION} $LIBS"
  14281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14282. /* end confdefs.h. */
  14283. /* Override any GCC internal prototype to avoid an error.
  14284. Use char because int might match the return type of a GCC
  14285. builtin and then its argument prototype would still apply. */
  14286. #ifdef __cplusplus
  14287. extern "C"
  14288. #endif
  14289. char Tcl_CreateInterp ();
  14290. int
  14291. main ()
  14292. {
  14293. return Tcl_CreateInterp ();
  14294. ;
  14295. return 0;
  14296. }
  14297. _ACEOF
  14298. if ac_fn_c_try_link "$LINENO"; then :
  14299. eval "$as_ac_Lib=yes"
  14300. else
  14301. eval "$as_ac_Lib=no"
  14302. fi
  14303. rm -f core conftest.err conftest.$ac_objext \
  14304. conftest$ac_exeext conftest.$ac_ext
  14305. LIBS=$ac_check_lib_save_LIBS
  14306. fi
  14307. eval ac_res=\$$as_ac_Lib
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14309. $as_echo "$ac_res" >&6; }
  14310. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14311. $as_echo "#define HAVE_LIBTCL /**/" >>confdefs.h
  14312. have_tcl="yes"
  14313. fi
  14314. fi
  14315. done
  14316. fi
  14317. fi
  14318. if test "x${have_tcl}" = "xyes"; then
  14319. TCL_TRUE=
  14320. TCL_FALSE='#'
  14321. else
  14322. TCL_TRUE='#'
  14323. TCL_FALSE=
  14324. fi
  14325. ################################
  14326. # Check for inclusion of lub_heap
  14327. ################################
  14328. # Check whether --enable-lubheap was given.
  14329. if test "${enable_lubheap+set}" = set; then :
  14330. enableval=$enable_lubheap;
  14331. else
  14332. enable_lubheap=no
  14333. fi
  14334. if test "x$enable_lubheap" = "xyes"; then
  14335. LUBHEAP_TRUE=
  14336. LUBHEAP_FALSE='#'
  14337. else
  14338. LUBHEAP_TRUE='#'
  14339. LUBHEAP_FALSE=
  14340. fi
  14341. if test "x$enable_lubheap" = "xyes"; then
  14342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing standard memory libraries with lubheap" >&5
  14343. $as_echo "$as_me: WARNING: Replacing standard memory libraries with lubheap" >&2;}
  14344. LUBHEAP_LIBS="-llubheap"
  14345. LUBHEAP_CFLAGS=""
  14346. if test "x$LUBHEAP_LIBS" = "x"; then
  14347. as_fn_error $? "Cannot find the \"Little Useful Bits Heap\" library" "$LINENO" 5
  14348. fi
  14349. fi
  14350. ################################
  14351. # Check for linkage with GPL libraries
  14352. ################################
  14353. # Check whether --enable-gpl was given.
  14354. if test "${enable_gpl+set}" = set; then :
  14355. enableval=$enable_gpl;
  14356. else
  14357. enable_gpl=yes
  14358. fi
  14359. if test "x$enable_gpl" = "xyes"; then
  14360. ################################
  14361. # Check for BFD library
  14362. ################################
  14363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking with GPL licence libraries" >&5
  14364. $as_echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  14365. for ac_header in bfd.h
  14366. do :
  14367. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  14368. if test "x$ac_cv_header_bfd_h" = xyes; then :
  14369. cat >>confdefs.h <<_ACEOF
  14370. #define HAVE_BFD_H 1
  14371. _ACEOF
  14372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
  14373. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  14374. if ${ac_cv_lib_bfd_bfd_init+:} false; then :
  14375. $as_echo_n "(cached) " >&6
  14376. else
  14377. ac_check_lib_save_LIBS=$LIBS
  14378. LIBS="-lbfd $LIBS"
  14379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14380. /* end confdefs.h. */
  14381. /* Override any GCC internal prototype to avoid an error.
  14382. Use char because int might match the return type of a GCC
  14383. builtin and then its argument prototype would still apply. */
  14384. #ifdef __cplusplus
  14385. extern "C"
  14386. #endif
  14387. char bfd_init ();
  14388. int
  14389. main ()
  14390. {
  14391. return bfd_init ();
  14392. ;
  14393. return 0;
  14394. }
  14395. _ACEOF
  14396. if ac_fn_c_try_link "$LINENO"; then :
  14397. ac_cv_lib_bfd_bfd_init=yes
  14398. else
  14399. ac_cv_lib_bfd_bfd_init=no
  14400. fi
  14401. rm -f core conftest.err conftest.$ac_objext \
  14402. conftest$ac_exeext conftest.$ac_ext
  14403. LIBS=$ac_check_lib_save_LIBS
  14404. fi
  14405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
  14406. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  14407. if test "x$ac_cv_lib_bfd_bfd_init" = xyes; then :
  14408. $as_echo "#define HAVE_LIBBFD /**/" >>confdefs.h
  14409. BFD_LIBS="-lbfd -liberty"
  14410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_dgettext in -lintl" >&5
  14411. $as_echo_n "checking for libintl_dgettext in -lintl... " >&6; }
  14412. if ${ac_cv_lib_intl_libintl_dgettext+:} false; then :
  14413. $as_echo_n "(cached) " >&6
  14414. else
  14415. ac_check_lib_save_LIBS=$LIBS
  14416. LIBS="-lintl $LIBS"
  14417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14418. /* end confdefs.h. */
  14419. /* Override any GCC internal prototype to avoid an error.
  14420. Use char because int might match the return type of a GCC
  14421. builtin and then its argument prototype would still apply. */
  14422. #ifdef __cplusplus
  14423. extern "C"
  14424. #endif
  14425. char libintl_dgettext ();
  14426. int
  14427. main ()
  14428. {
  14429. return libintl_dgettext ();
  14430. ;
  14431. return 0;
  14432. }
  14433. _ACEOF
  14434. if ac_fn_c_try_link "$LINENO"; then :
  14435. ac_cv_lib_intl_libintl_dgettext=yes
  14436. else
  14437. ac_cv_lib_intl_libintl_dgettext=no
  14438. fi
  14439. rm -f core conftest.err conftest.$ac_objext \
  14440. conftest$ac_exeext conftest.$ac_ext
  14441. LIBS=$ac_check_lib_save_LIBS
  14442. fi
  14443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  14444. $as_echo "$ac_cv_lib_intl_libintl_dgettext" >&6; }
  14445. if test "x$ac_cv_lib_intl_libintl_dgettext" = xyes; then :
  14446. $as_echo "#define HAVE_LIBINTL /**/" >>confdefs.h
  14447. BFD_LIBS="$BFD_LIBS -lintl"
  14448. fi
  14449. fi
  14450. fi
  14451. done
  14452. else
  14453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  14454. $as_echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  14455. fi
  14456. ################################
  14457. # Search for network functions (like connect())
  14458. ################################
  14459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  14460. $as_echo_n "checking for library containing socket... " >&6; }
  14461. if ${ac_cv_search_socket+:} false; then :
  14462. $as_echo_n "(cached) " >&6
  14463. else
  14464. ac_func_search_save_LIBS=$LIBS
  14465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14466. /* end confdefs.h. */
  14467. /* Override any GCC internal prototype to avoid an error.
  14468. Use char because int might match the return type of a GCC
  14469. builtin and then its argument prototype would still apply. */
  14470. #ifdef __cplusplus
  14471. extern "C"
  14472. #endif
  14473. char socket ();
  14474. int
  14475. main ()
  14476. {
  14477. return socket ();
  14478. ;
  14479. return 0;
  14480. }
  14481. _ACEOF
  14482. for ac_lib in '' socket; do
  14483. if test -z "$ac_lib"; then
  14484. ac_res="none required"
  14485. else
  14486. ac_res=-l$ac_lib
  14487. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14488. fi
  14489. if ac_fn_c_try_link "$LINENO"; then :
  14490. ac_cv_search_socket=$ac_res
  14491. fi
  14492. rm -f core conftest.err conftest.$ac_objext \
  14493. conftest$ac_exeext
  14494. if ${ac_cv_search_socket+:} false; then :
  14495. break
  14496. fi
  14497. done
  14498. if ${ac_cv_search_socket+:} false; then :
  14499. else
  14500. ac_cv_search_socket=no
  14501. fi
  14502. rm conftest.$ac_ext
  14503. LIBS=$ac_func_search_save_LIBS
  14504. fi
  14505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  14506. $as_echo "$ac_cv_search_socket" >&6; }
  14507. ac_res=$ac_cv_search_socket
  14508. if test "$ac_res" != no; then :
  14509. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14510. fi
  14511. ################################
  14512. # Check for regex.h
  14513. ################################
  14514. for ac_header in regex.h
  14515. do :
  14516. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  14517. if test "x$ac_cv_header_regex_h" = xyes; then :
  14518. cat >>confdefs.h <<_ACEOF
  14519. #define HAVE_REGEX_H 1
  14520. _ACEOF
  14521. else
  14522. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  14523. fi
  14524. done
  14525. ################################
  14526. # Check for getopt_long()
  14527. ################################
  14528. for ac_header in getopt.h
  14529. do :
  14530. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  14531. if test "x$ac_cv_header_getopt_h" = xyes; then :
  14532. cat >>confdefs.h <<_ACEOF
  14533. #define HAVE_GETOPT_H 1
  14534. _ACEOF
  14535. else
  14536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  14537. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  14538. fi
  14539. done
  14540. ################################
  14541. # Check for locale.h
  14542. ################################
  14543. for ac_header in locale.h
  14544. do :
  14545. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  14546. if test "x$ac_cv_header_locale_h" = xyes; then :
  14547. cat >>confdefs.h <<_ACEOF
  14548. #define HAVE_LOCALE_H 1
  14549. _ACEOF
  14550. else
  14551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  14552. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  14553. fi
  14554. done
  14555. ################################
  14556. # Check for CODESET within nl_langinfo
  14557. ################################
  14558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  14559. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  14560. if ${am_cv_langinfo_codeset+:} false; then :
  14561. $as_echo_n "(cached) " >&6
  14562. else
  14563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14564. /* end confdefs.h. */
  14565. #include <langinfo.h>
  14566. int
  14567. main ()
  14568. {
  14569. char* cs = nl_langinfo(CODESET); return !cs;
  14570. ;
  14571. return 0;
  14572. }
  14573. _ACEOF
  14574. if ac_fn_c_try_link "$LINENO"; then :
  14575. am_cv_langinfo_codeset=yes
  14576. else
  14577. am_cv_langinfo_codeset=no
  14578. fi
  14579. rm -f core conftest.err conftest.$ac_objext \
  14580. conftest$ac_exeext conftest.$ac_ext
  14581. fi
  14582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  14583. $as_echo "$am_cv_langinfo_codeset" >&6; }
  14584. if test $am_cv_langinfo_codeset = yes; then
  14585. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  14586. fi
  14587. ################################
  14588. # Check for pwd.h and grp.h
  14589. ################################
  14590. for ac_header in pwd.h
  14591. do :
  14592. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  14593. if test "x$ac_cv_header_pwd_h" = xyes; then :
  14594. cat >>confdefs.h <<_ACEOF
  14595. #define HAVE_PWD_H 1
  14596. _ACEOF
  14597. else
  14598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  14599. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  14600. fi
  14601. done
  14602. for ac_header in grp.h
  14603. do :
  14604. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  14605. if test "x$ac_cv_header_grp_h" = xyes; then :
  14606. cat >>confdefs.h <<_ACEOF
  14607. #define HAVE_GRP_H 1
  14608. _ACEOF
  14609. else
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  14611. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  14612. fi
  14613. done
  14614. ################################
  14615. # Check for chroot
  14616. ################################
  14617. for ac_func in chroot
  14618. do :
  14619. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  14620. if test "x$ac_cv_func_chroot" = xyes; then :
  14621. cat >>confdefs.h <<_ACEOF
  14622. #define HAVE_CHROOT 1
  14623. _ACEOF
  14624. else
  14625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  14626. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  14627. fi
  14628. done
  14629. ac_config_files="$ac_config_files Makefile"
  14630. cat >confcache <<\_ACEOF
  14631. # This file is a shell script that caches the results of configure
  14632. # tests run on this system so they can be shared between configure
  14633. # scripts and configure runs, see configure's option --config-cache.
  14634. # It is not useful on other systems. If it contains results you don't
  14635. # want to keep, you may remove or edit it.
  14636. #
  14637. # config.status only pays attention to the cache file if you give it
  14638. # the --recheck option to rerun configure.
  14639. #
  14640. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14641. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14642. # following values.
  14643. _ACEOF
  14644. # The following way of writing the cache mishandles newlines in values,
  14645. # but we know of no workaround that is simple, portable, and efficient.
  14646. # So, we kill variables containing newlines.
  14647. # Ultrix sh set writes to stderr and can't be redirected directly,
  14648. # and sets the high bit in the cache file unless we assign to the vars.
  14649. (
  14650. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14651. eval ac_val=\$$ac_var
  14652. case $ac_val in #(
  14653. *${as_nl}*)
  14654. case $ac_var in #(
  14655. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14656. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14657. esac
  14658. case $ac_var in #(
  14659. _ | IFS | as_nl) ;; #(
  14660. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14661. *) { eval $ac_var=; unset $ac_var;} ;;
  14662. esac ;;
  14663. esac
  14664. done
  14665. (set) 2>&1 |
  14666. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14667. *${as_nl}ac_space=\ *)
  14668. # `set' does not quote correctly, so add quotes: double-quote
  14669. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14670. sed -n \
  14671. "s/'/'\\\\''/g;
  14672. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14673. ;; #(
  14674. *)
  14675. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14676. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14677. ;;
  14678. esac |
  14679. sort
  14680. ) |
  14681. sed '
  14682. /^ac_cv_env_/b end
  14683. t clear
  14684. :clear
  14685. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14686. t end
  14687. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14688. :end' >>confcache
  14689. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14690. if test -w "$cache_file"; then
  14691. if test "x$cache_file" != "x/dev/null"; then
  14692. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14693. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14694. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14695. cat confcache >"$cache_file"
  14696. else
  14697. case $cache_file in #(
  14698. */* | ?:*)
  14699. mv -f confcache "$cache_file"$$ &&
  14700. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14701. *)
  14702. mv -f confcache "$cache_file" ;;
  14703. esac
  14704. fi
  14705. fi
  14706. else
  14707. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14708. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14709. fi
  14710. fi
  14711. rm -f confcache
  14712. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14713. # Let make expand exec_prefix.
  14714. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14715. DEFS=-DHAVE_CONFIG_H
  14716. ac_libobjs=
  14717. ac_ltlibobjs=
  14718. U=
  14719. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14720. # 1. Remove the extension, and $U if already installed.
  14721. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14722. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14723. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14724. # will be set to the directory where LIBOBJS objects are built.
  14725. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14726. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14727. done
  14728. LIBOBJS=$ac_libobjs
  14729. LTLIBOBJS=$ac_ltlibobjs
  14730. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14731. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14732. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14733. fi
  14734. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14735. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14736. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14737. fi
  14738. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14739. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14740. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14741. fi
  14742. if test -n "$EXEEXT"; then
  14743. am__EXEEXT_TRUE=
  14744. am__EXEEXT_FALSE='#'
  14745. else
  14746. am__EXEEXT_TRUE='#'
  14747. am__EXEEXT_FALSE=
  14748. fi
  14749. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  14750. as_fn_error $? "conditional \"DEBUG\" was never defined.
  14751. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14752. fi
  14753. if test -z "${TCL_TRUE}" && test -z "${TCL_FALSE}"; then
  14754. as_fn_error $? "conditional \"TCL\" was never defined.
  14755. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14756. fi
  14757. if test -z "${LUBHEAP_TRUE}" && test -z "${LUBHEAP_FALSE}"; then
  14758. as_fn_error $? "conditional \"LUBHEAP\" was never defined.
  14759. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14760. fi
  14761. : "${CONFIG_STATUS=./config.status}"
  14762. ac_write_fail=0
  14763. ac_clean_files_save=$ac_clean_files
  14764. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14765. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14766. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14767. as_write_fail=0
  14768. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14769. #! $SHELL
  14770. # Generated by $as_me.
  14771. # Run this file to recreate the current configuration.
  14772. # Compiler output produced by configure, useful for debugging
  14773. # configure, is in config.log if it exists.
  14774. debug=false
  14775. ac_cs_recheck=false
  14776. ac_cs_silent=false
  14777. SHELL=\${CONFIG_SHELL-$SHELL}
  14778. export SHELL
  14779. _ASEOF
  14780. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14781. ## -------------------- ##
  14782. ## M4sh Initialization. ##
  14783. ## -------------------- ##
  14784. # Be more Bourne compatible
  14785. DUALCASE=1; export DUALCASE # for MKS sh
  14786. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14787. emulate sh
  14788. NULLCMD=:
  14789. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14790. # is contrary to our usage. Disable this feature.
  14791. alias -g '${1+"$@"}'='"$@"'
  14792. setopt NO_GLOB_SUBST
  14793. else
  14794. case `(set -o) 2>/dev/null` in #(
  14795. *posix*) :
  14796. set -o posix ;; #(
  14797. *) :
  14798. ;;
  14799. esac
  14800. fi
  14801. as_nl='
  14802. '
  14803. export as_nl
  14804. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14805. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14806. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14807. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14808. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14809. # but without wasting forks for bash or zsh.
  14810. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14811. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14812. as_echo='print -r --'
  14813. as_echo_n='print -rn --'
  14814. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14815. as_echo='printf %s\n'
  14816. as_echo_n='printf %s'
  14817. else
  14818. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14819. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14820. as_echo_n='/usr/ucb/echo -n'
  14821. else
  14822. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14823. as_echo_n_body='eval
  14824. arg=$1;
  14825. case $arg in #(
  14826. *"$as_nl"*)
  14827. expr "X$arg" : "X\\(.*\\)$as_nl";
  14828. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14829. esac;
  14830. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14831. '
  14832. export as_echo_n_body
  14833. as_echo_n='sh -c $as_echo_n_body as_echo'
  14834. fi
  14835. export as_echo_body
  14836. as_echo='sh -c $as_echo_body as_echo'
  14837. fi
  14838. # The user is always right.
  14839. if test "${PATH_SEPARATOR+set}" != set; then
  14840. PATH_SEPARATOR=:
  14841. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14842. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14843. PATH_SEPARATOR=';'
  14844. }
  14845. fi
  14846. # IFS
  14847. # We need space, tab and new line, in precisely that order. Quoting is
  14848. # there to prevent editors from complaining about space-tab.
  14849. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14850. # splitting by setting IFS to empty value.)
  14851. IFS=" "" $as_nl"
  14852. # Find who we are. Look in the path if we contain no directory separator.
  14853. as_myself=
  14854. case $0 in #((
  14855. *[\\/]* ) as_myself=$0 ;;
  14856. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14857. for as_dir in $PATH
  14858. do
  14859. IFS=$as_save_IFS
  14860. test -z "$as_dir" && as_dir=.
  14861. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14862. done
  14863. IFS=$as_save_IFS
  14864. ;;
  14865. esac
  14866. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14867. # in which case we are not to be found in the path.
  14868. if test "x$as_myself" = x; then
  14869. as_myself=$0
  14870. fi
  14871. if test ! -f "$as_myself"; then
  14872. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14873. exit 1
  14874. fi
  14875. # Unset variables that we do not need and which cause bugs (e.g. in
  14876. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14877. # suppresses any "Segmentation fault" message there. '((' could
  14878. # trigger a bug in pdksh 5.2.14.
  14879. for as_var in BASH_ENV ENV MAIL MAILPATH
  14880. do eval test x\${$as_var+set} = xset \
  14881. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14882. done
  14883. PS1='$ '
  14884. PS2='> '
  14885. PS4='+ '
  14886. # NLS nuisances.
  14887. LC_ALL=C
  14888. export LC_ALL
  14889. LANGUAGE=C
  14890. export LANGUAGE
  14891. # CDPATH.
  14892. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14893. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14894. # ----------------------------------------
  14895. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14896. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14897. # script with STATUS, using 1 if that was 0.
  14898. as_fn_error ()
  14899. {
  14900. as_status=$1; test $as_status -eq 0 && as_status=1
  14901. if test "$4"; then
  14902. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14903. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14904. fi
  14905. $as_echo "$as_me: error: $2" >&2
  14906. as_fn_exit $as_status
  14907. } # as_fn_error
  14908. # as_fn_set_status STATUS
  14909. # -----------------------
  14910. # Set $? to STATUS, without forking.
  14911. as_fn_set_status ()
  14912. {
  14913. return $1
  14914. } # as_fn_set_status
  14915. # as_fn_exit STATUS
  14916. # -----------------
  14917. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14918. as_fn_exit ()
  14919. {
  14920. set +e
  14921. as_fn_set_status $1
  14922. exit $1
  14923. } # as_fn_exit
  14924. # as_fn_unset VAR
  14925. # ---------------
  14926. # Portably unset VAR.
  14927. as_fn_unset ()
  14928. {
  14929. { eval $1=; unset $1;}
  14930. }
  14931. as_unset=as_fn_unset
  14932. # as_fn_append VAR VALUE
  14933. # ----------------------
  14934. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14935. # advantage of any shell optimizations that allow amortized linear growth over
  14936. # repeated appends, instead of the typical quadratic growth present in naive
  14937. # implementations.
  14938. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14939. eval 'as_fn_append ()
  14940. {
  14941. eval $1+=\$2
  14942. }'
  14943. else
  14944. as_fn_append ()
  14945. {
  14946. eval $1=\$$1\$2
  14947. }
  14948. fi # as_fn_append
  14949. # as_fn_arith ARG...
  14950. # ------------------
  14951. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14952. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14953. # must be portable across $(()) and expr.
  14954. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14955. eval 'as_fn_arith ()
  14956. {
  14957. as_val=$(( $* ))
  14958. }'
  14959. else
  14960. as_fn_arith ()
  14961. {
  14962. as_val=`expr "$@" || test $? -eq 1`
  14963. }
  14964. fi # as_fn_arith
  14965. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14966. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14967. as_expr=expr
  14968. else
  14969. as_expr=false
  14970. fi
  14971. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14972. as_basename=basename
  14973. else
  14974. as_basename=false
  14975. fi
  14976. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14977. as_dirname=dirname
  14978. else
  14979. as_dirname=false
  14980. fi
  14981. as_me=`$as_basename -- "$0" ||
  14982. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14983. X"$0" : 'X\(//\)$' \| \
  14984. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14985. $as_echo X/"$0" |
  14986. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14987. s//\1/
  14988. q
  14989. }
  14990. /^X\/\(\/\/\)$/{
  14991. s//\1/
  14992. q
  14993. }
  14994. /^X\/\(\/\).*/{
  14995. s//\1/
  14996. q
  14997. }
  14998. s/.*/./; q'`
  14999. # Avoid depending upon Character Ranges.
  15000. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15001. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15002. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15003. as_cr_digits='0123456789'
  15004. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15005. ECHO_C= ECHO_N= ECHO_T=
  15006. case `echo -n x` in #(((((
  15007. -n*)
  15008. case `echo 'xy\c'` in
  15009. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15010. xy) ECHO_C='\c';;
  15011. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15012. ECHO_T=' ';;
  15013. esac;;
  15014. *)
  15015. ECHO_N='-n';;
  15016. esac
  15017. rm -f conf$$ conf$$.exe conf$$.file
  15018. if test -d conf$$.dir; then
  15019. rm -f conf$$.dir/conf$$.file
  15020. else
  15021. rm -f conf$$.dir
  15022. mkdir conf$$.dir 2>/dev/null
  15023. fi
  15024. if (echo >conf$$.file) 2>/dev/null; then
  15025. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15026. as_ln_s='ln -s'
  15027. # ... but there are two gotchas:
  15028. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15029. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15030. # In both cases, we have to default to `cp -p'.
  15031. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15032. as_ln_s='cp -p'
  15033. elif ln conf$$.file conf$$ 2>/dev/null; then
  15034. as_ln_s=ln
  15035. else
  15036. as_ln_s='cp -p'
  15037. fi
  15038. else
  15039. as_ln_s='cp -p'
  15040. fi
  15041. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15042. rmdir conf$$.dir 2>/dev/null
  15043. # as_fn_mkdir_p
  15044. # -------------
  15045. # Create "$as_dir" as a directory, including parents if necessary.
  15046. as_fn_mkdir_p ()
  15047. {
  15048. case $as_dir in #(
  15049. -*) as_dir=./$as_dir;;
  15050. esac
  15051. test -d "$as_dir" || eval $as_mkdir_p || {
  15052. as_dirs=
  15053. while :; do
  15054. case $as_dir in #(
  15055. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15056. *) as_qdir=$as_dir;;
  15057. esac
  15058. as_dirs="'$as_qdir' $as_dirs"
  15059. as_dir=`$as_dirname -- "$as_dir" ||
  15060. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15061. X"$as_dir" : 'X\(//\)[^/]' \| \
  15062. X"$as_dir" : 'X\(//\)$' \| \
  15063. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15064. $as_echo X"$as_dir" |
  15065. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15066. s//\1/
  15067. q
  15068. }
  15069. /^X\(\/\/\)[^/].*/{
  15070. s//\1/
  15071. q
  15072. }
  15073. /^X\(\/\/\)$/{
  15074. s//\1/
  15075. q
  15076. }
  15077. /^X\(\/\).*/{
  15078. s//\1/
  15079. q
  15080. }
  15081. s/.*/./; q'`
  15082. test -d "$as_dir" && break
  15083. done
  15084. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15085. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15086. } # as_fn_mkdir_p
  15087. if mkdir -p . 2>/dev/null; then
  15088. as_mkdir_p='mkdir -p "$as_dir"'
  15089. else
  15090. test -d ./-p && rmdir ./-p
  15091. as_mkdir_p=false
  15092. fi
  15093. if test -x / >/dev/null 2>&1; then
  15094. as_test_x='test -x'
  15095. else
  15096. if ls -dL / >/dev/null 2>&1; then
  15097. as_ls_L_option=L
  15098. else
  15099. as_ls_L_option=
  15100. fi
  15101. as_test_x='
  15102. eval sh -c '\''
  15103. if test -d "$1"; then
  15104. test -d "$1/.";
  15105. else
  15106. case $1 in #(
  15107. -*)set "./$1";;
  15108. esac;
  15109. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15110. ???[sx]*):;;*)false;;esac;fi
  15111. '\'' sh
  15112. '
  15113. fi
  15114. as_executable_p=$as_test_x
  15115. # Sed expression to map a string onto a valid CPP name.
  15116. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15117. # Sed expression to map a string onto a valid variable name.
  15118. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15119. exec 6>&1
  15120. ## ----------------------------------- ##
  15121. ## Main body of $CONFIG_STATUS script. ##
  15122. ## ----------------------------------- ##
  15123. _ASEOF
  15124. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15125. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15126. # Save the log message, to keep $0 and so on meaningful, and to
  15127. # report actual input values of CONFIG_FILES etc. instead of their
  15128. # values after options handling.
  15129. ac_log="
  15130. This file was extended by klish $as_me 1.5.3, which was
  15131. generated by GNU Autoconf 2.68. Invocation command line was
  15132. CONFIG_FILES = $CONFIG_FILES
  15133. CONFIG_HEADERS = $CONFIG_HEADERS
  15134. CONFIG_LINKS = $CONFIG_LINKS
  15135. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15136. $ $0 $@
  15137. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15138. "
  15139. _ACEOF
  15140. case $ac_config_files in *"
  15141. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15142. esac
  15143. case $ac_config_headers in *"
  15144. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15145. esac
  15146. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15147. # Files that config.status was made for.
  15148. config_files="$ac_config_files"
  15149. config_headers="$ac_config_headers"
  15150. config_commands="$ac_config_commands"
  15151. _ACEOF
  15152. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15153. ac_cs_usage="\
  15154. \`$as_me' instantiates files and other configuration actions
  15155. from templates according to the current configuration. Unless the files
  15156. and actions are specified as TAGs, all are instantiated by default.
  15157. Usage: $0 [OPTION]... [TAG]...
  15158. -h, --help print this help, then exit
  15159. -V, --version print version number and configuration settings, then exit
  15160. --config print configuration, then exit
  15161. -q, --quiet, --silent
  15162. do not print progress messages
  15163. -d, --debug don't remove temporary files
  15164. --recheck update $as_me by reconfiguring in the same conditions
  15165. --file=FILE[:TEMPLATE]
  15166. instantiate the configuration file FILE
  15167. --header=FILE[:TEMPLATE]
  15168. instantiate the configuration header FILE
  15169. Configuration files:
  15170. $config_files
  15171. Configuration headers:
  15172. $config_headers
  15173. Configuration commands:
  15174. $config_commands
  15175. Report bugs to <serj.kalichev at gmail dot com>."
  15176. _ACEOF
  15177. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15178. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15179. ac_cs_version="\\
  15180. klish config.status 1.5.3
  15181. configured by $0, generated by GNU Autoconf 2.68,
  15182. with options \\"\$ac_cs_config\\"
  15183. Copyright (C) 2010 Free Software Foundation, Inc.
  15184. This config.status script is free software; the Free Software Foundation
  15185. gives unlimited permission to copy, distribute and modify it."
  15186. ac_pwd='$ac_pwd'
  15187. srcdir='$srcdir'
  15188. INSTALL='$INSTALL'
  15189. MKDIR_P='$MKDIR_P'
  15190. AWK='$AWK'
  15191. test -n "\$AWK" || AWK=awk
  15192. _ACEOF
  15193. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15194. # The default lists apply if the user does not specify any file.
  15195. ac_need_defaults=:
  15196. while test $# != 0
  15197. do
  15198. case $1 in
  15199. --*=?*)
  15200. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15201. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15202. ac_shift=:
  15203. ;;
  15204. --*=)
  15205. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15206. ac_optarg=
  15207. ac_shift=:
  15208. ;;
  15209. *)
  15210. ac_option=$1
  15211. ac_optarg=$2
  15212. ac_shift=shift
  15213. ;;
  15214. esac
  15215. case $ac_option in
  15216. # Handling of the options.
  15217. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15218. ac_cs_recheck=: ;;
  15219. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15220. $as_echo "$ac_cs_version"; exit ;;
  15221. --config | --confi | --conf | --con | --co | --c )
  15222. $as_echo "$ac_cs_config"; exit ;;
  15223. --debug | --debu | --deb | --de | --d | -d )
  15224. debug=: ;;
  15225. --file | --fil | --fi | --f )
  15226. $ac_shift
  15227. case $ac_optarg in
  15228. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15229. '') as_fn_error $? "missing file argument" ;;
  15230. esac
  15231. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15232. ac_need_defaults=false;;
  15233. --header | --heade | --head | --hea )
  15234. $ac_shift
  15235. case $ac_optarg in
  15236. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15237. esac
  15238. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15239. ac_need_defaults=false;;
  15240. --he | --h)
  15241. # Conflict between --help and --header
  15242. as_fn_error $? "ambiguous option: \`$1'
  15243. Try \`$0 --help' for more information.";;
  15244. --help | --hel | -h )
  15245. $as_echo "$ac_cs_usage"; exit ;;
  15246. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15247. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15248. ac_cs_silent=: ;;
  15249. # This is an error.
  15250. -*) as_fn_error $? "unrecognized option: \`$1'
  15251. Try \`$0 --help' for more information." ;;
  15252. *) as_fn_append ac_config_targets " $1"
  15253. ac_need_defaults=false ;;
  15254. esac
  15255. shift
  15256. done
  15257. ac_configure_extra_args=
  15258. if $ac_cs_silent; then
  15259. exec 6>/dev/null
  15260. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15261. fi
  15262. _ACEOF
  15263. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15264. if \$ac_cs_recheck; then
  15265. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15266. shift
  15267. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15268. CONFIG_SHELL='$SHELL'
  15269. export CONFIG_SHELL
  15270. exec "\$@"
  15271. fi
  15272. _ACEOF
  15273. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15274. exec 5>>config.log
  15275. {
  15276. echo
  15277. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15278. ## Running $as_me. ##
  15279. _ASBOX
  15280. $as_echo "$ac_log"
  15281. } >&5
  15282. _ACEOF
  15283. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15284. #
  15285. # INIT-COMMANDS
  15286. #
  15287. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15288. # if CDPATH is set.
  15289. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15290. sed_quote_subst='$sed_quote_subst'
  15291. double_quote_subst='$double_quote_subst'
  15292. delay_variable_subst='$delay_variable_subst'
  15293. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  15294. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15295. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15296. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15297. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15298. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15299. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15300. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15301. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15302. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15303. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15304. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15305. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15306. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15307. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15308. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15309. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15310. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15311. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15312. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15313. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15314. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15315. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15316. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15317. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15318. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15319. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15320. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15321. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15322. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15323. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15324. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15325. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15326. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15327. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15328. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15329. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15330. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15331. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15332. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15333. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15334. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15335. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15336. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15337. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15338. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15339. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15340. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15341. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15342. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15343. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15344. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15345. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15346. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15347. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15348. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15349. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15350. 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"`'
  15351. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15352. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15353. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15354. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15355. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15356. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15357. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15358. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15359. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15360. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15361. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15362. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15363. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15364. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15365. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15366. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15367. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15368. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15369. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15370. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15371. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15372. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15373. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15374. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15375. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15376. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15377. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15378. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15379. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15380. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15381. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15382. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15383. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15384. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15385. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15386. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15387. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15388. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15389. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15390. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15391. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15392. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15393. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15394. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15395. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15396. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15397. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15398. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15399. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15400. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15401. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15402. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15403. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15404. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15405. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15406. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15407. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15408. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15409. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15410. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15411. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15412. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15413. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15414. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15415. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15416. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15417. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15418. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15419. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15420. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15421. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15422. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15423. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15424. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15425. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15426. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15427. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15428. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15429. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15430. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15431. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15432. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15433. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15434. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15435. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15436. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15437. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15438. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15439. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15440. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15441. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15442. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15443. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15444. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15445. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15446. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15447. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15448. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15449. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15450. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15451. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15452. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15453. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15454. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15455. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15456. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15457. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15458. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15459. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15460. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15461. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15462. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15463. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15464. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15465. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15466. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15467. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15468. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15469. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15470. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15471. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15472. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15473. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15474. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15475. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15476. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15477. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15478. LTCC='$LTCC'
  15479. LTCFLAGS='$LTCFLAGS'
  15480. compiler='$compiler_DEFAULT'
  15481. # A function that is used when there is no print builtin or printf.
  15482. func_fallback_echo ()
  15483. {
  15484. eval 'cat <<_LTECHO_EOF
  15485. \$1
  15486. _LTECHO_EOF'
  15487. }
  15488. # Quote evaled strings.
  15489. for var in AS \
  15490. DLLTOOL \
  15491. OBJDUMP \
  15492. SHELL \
  15493. ECHO \
  15494. PATH_SEPARATOR \
  15495. SED \
  15496. GREP \
  15497. EGREP \
  15498. FGREP \
  15499. LD \
  15500. NM \
  15501. LN_S \
  15502. lt_SP2NL \
  15503. lt_NL2SP \
  15504. reload_flag \
  15505. deplibs_check_method \
  15506. file_magic_cmd \
  15507. file_magic_glob \
  15508. want_nocaseglob \
  15509. sharedlib_from_linklib_cmd \
  15510. AR \
  15511. AR_FLAGS \
  15512. archiver_list_spec \
  15513. STRIP \
  15514. RANLIB \
  15515. CC \
  15516. CFLAGS \
  15517. compiler \
  15518. lt_cv_sys_global_symbol_pipe \
  15519. lt_cv_sys_global_symbol_to_cdecl \
  15520. lt_cv_sys_global_symbol_to_c_name_address \
  15521. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15522. nm_file_list_spec \
  15523. lt_prog_compiler_no_builtin_flag \
  15524. lt_prog_compiler_pic \
  15525. lt_prog_compiler_wl \
  15526. lt_prog_compiler_static \
  15527. lt_cv_prog_compiler_c_o \
  15528. need_locks \
  15529. MANIFEST_TOOL \
  15530. DSYMUTIL \
  15531. NMEDIT \
  15532. LIPO \
  15533. OTOOL \
  15534. OTOOL64 \
  15535. shrext_cmds \
  15536. export_dynamic_flag_spec \
  15537. whole_archive_flag_spec \
  15538. compiler_needs_object \
  15539. with_gnu_ld \
  15540. allow_undefined_flag \
  15541. no_undefined_flag \
  15542. hardcode_libdir_flag_spec \
  15543. hardcode_libdir_separator \
  15544. exclude_expsyms \
  15545. include_expsyms \
  15546. file_list_spec \
  15547. variables_saved_for_relink \
  15548. libname_spec \
  15549. library_names_spec \
  15550. soname_spec \
  15551. install_override_mode \
  15552. finish_eval \
  15553. old_striplib \
  15554. striplib \
  15555. compiler_lib_search_dirs \
  15556. predep_objects \
  15557. postdep_objects \
  15558. predeps \
  15559. postdeps \
  15560. compiler_lib_search_path \
  15561. LD_CXX \
  15562. reload_flag_CXX \
  15563. compiler_CXX \
  15564. lt_prog_compiler_no_builtin_flag_CXX \
  15565. lt_prog_compiler_pic_CXX \
  15566. lt_prog_compiler_wl_CXX \
  15567. lt_prog_compiler_static_CXX \
  15568. lt_cv_prog_compiler_c_o_CXX \
  15569. export_dynamic_flag_spec_CXX \
  15570. whole_archive_flag_spec_CXX \
  15571. compiler_needs_object_CXX \
  15572. with_gnu_ld_CXX \
  15573. allow_undefined_flag_CXX \
  15574. no_undefined_flag_CXX \
  15575. hardcode_libdir_flag_spec_CXX \
  15576. hardcode_libdir_separator_CXX \
  15577. exclude_expsyms_CXX \
  15578. include_expsyms_CXX \
  15579. file_list_spec_CXX \
  15580. compiler_lib_search_dirs_CXX \
  15581. predep_objects_CXX \
  15582. postdep_objects_CXX \
  15583. predeps_CXX \
  15584. postdeps_CXX \
  15585. compiler_lib_search_path_CXX; do
  15586. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15587. *[\\\\\\\`\\"\\\$]*)
  15588. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15589. ;;
  15590. *)
  15591. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15592. ;;
  15593. esac
  15594. done
  15595. # Double-quote double-evaled strings.
  15596. for var in reload_cmds \
  15597. old_postinstall_cmds \
  15598. old_postuninstall_cmds \
  15599. old_archive_cmds \
  15600. extract_expsyms_cmds \
  15601. old_archive_from_new_cmds \
  15602. old_archive_from_expsyms_cmds \
  15603. archive_cmds \
  15604. archive_expsym_cmds \
  15605. module_cmds \
  15606. module_expsym_cmds \
  15607. export_symbols_cmds \
  15608. prelink_cmds \
  15609. postlink_cmds \
  15610. postinstall_cmds \
  15611. postuninstall_cmds \
  15612. finish_cmds \
  15613. sys_lib_search_path_spec \
  15614. sys_lib_dlsearch_path_spec \
  15615. reload_cmds_CXX \
  15616. old_archive_cmds_CXX \
  15617. old_archive_from_new_cmds_CXX \
  15618. old_archive_from_expsyms_cmds_CXX \
  15619. archive_cmds_CXX \
  15620. archive_expsym_cmds_CXX \
  15621. module_cmds_CXX \
  15622. module_expsym_cmds_CXX \
  15623. export_symbols_cmds_CXX \
  15624. prelink_cmds_CXX \
  15625. postlink_cmds_CXX; do
  15626. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15627. *[\\\\\\\`\\"\\\$]*)
  15628. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15629. ;;
  15630. *)
  15631. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15632. ;;
  15633. esac
  15634. done
  15635. ac_aux_dir='$ac_aux_dir'
  15636. xsi_shell='$xsi_shell'
  15637. lt_shell_append='$lt_shell_append'
  15638. # See if we are running on zsh, and set the options which allow our
  15639. # commands through without removal of \ escapes INIT.
  15640. if test -n "\${ZSH_VERSION+set}" ; then
  15641. setopt NO_GLOB_SUBST
  15642. fi
  15643. PACKAGE='$PACKAGE'
  15644. VERSION='$VERSION'
  15645. TIMESTAMP='$TIMESTAMP'
  15646. RM='$RM'
  15647. ofile='$ofile'
  15648. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15649. _ACEOF
  15650. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15651. # Handling of arguments.
  15652. for ac_config_target in $ac_config_targets
  15653. do
  15654. case $ac_config_target in
  15655. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15656. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15657. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15658. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15659. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15660. esac
  15661. done
  15662. # If the user did not use the arguments to specify the items to instantiate,
  15663. # then the envvar interface is used. Set only those that are not.
  15664. # We use the long form for the default assignment because of an extremely
  15665. # bizarre bug on SunOS 4.1.3.
  15666. if $ac_need_defaults; then
  15667. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15668. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15669. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15670. fi
  15671. # Have a temporary directory for convenience. Make it in the build tree
  15672. # simply because there is no reason against having it here, and in addition,
  15673. # creating and moving files from /tmp can sometimes cause problems.
  15674. # Hook for its removal unless debugging.
  15675. # Note that there is a small window in which the directory will not be cleaned:
  15676. # after its creation but before its name has been assigned to `$tmp'.
  15677. $debug ||
  15678. {
  15679. tmp= ac_tmp=
  15680. trap 'exit_status=$?
  15681. : "${ac_tmp:=$tmp}"
  15682. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15683. ' 0
  15684. trap 'as_fn_exit 1' 1 2 13 15
  15685. }
  15686. # Create a (secure) tmp directory for tmp files.
  15687. {
  15688. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15689. test -d "$tmp"
  15690. } ||
  15691. {
  15692. tmp=./conf$$-$RANDOM
  15693. (umask 077 && mkdir "$tmp")
  15694. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15695. ac_tmp=$tmp
  15696. # Set up the scripts for CONFIG_FILES section.
  15697. # No need to generate them if there are no CONFIG_FILES.
  15698. # This happens for instance with `./config.status config.h'.
  15699. if test -n "$CONFIG_FILES"; then
  15700. ac_cr=`echo X | tr X '\015'`
  15701. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15702. # But we know of no other shell where ac_cr would be empty at this
  15703. # point, so we can use a bashism as a fallback.
  15704. if test "x$ac_cr" = x; then
  15705. eval ac_cr=\$\'\\r\'
  15706. fi
  15707. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15708. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15709. ac_cs_awk_cr='\\r'
  15710. else
  15711. ac_cs_awk_cr=$ac_cr
  15712. fi
  15713. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15714. _ACEOF
  15715. {
  15716. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15717. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15718. echo "_ACEOF"
  15719. } >conf$$subs.sh ||
  15720. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15721. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15722. ac_delim='%!_!# '
  15723. for ac_last_try in false false false false false :; do
  15724. . ./conf$$subs.sh ||
  15725. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15726. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15727. if test $ac_delim_n = $ac_delim_num; then
  15728. break
  15729. elif $ac_last_try; then
  15730. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15731. else
  15732. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15733. fi
  15734. done
  15735. rm -f conf$$subs.sh
  15736. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15737. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15738. _ACEOF
  15739. sed -n '
  15740. h
  15741. s/^/S["/; s/!.*/"]=/
  15742. p
  15743. g
  15744. s/^[^!]*!//
  15745. :repl
  15746. t repl
  15747. s/'"$ac_delim"'$//
  15748. t delim
  15749. :nl
  15750. h
  15751. s/\(.\{148\}\)..*/\1/
  15752. t more1
  15753. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15754. p
  15755. n
  15756. b repl
  15757. :more1
  15758. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15759. p
  15760. g
  15761. s/.\{148\}//
  15762. t nl
  15763. :delim
  15764. h
  15765. s/\(.\{148\}\)..*/\1/
  15766. t more2
  15767. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15768. p
  15769. b
  15770. :more2
  15771. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15772. p
  15773. g
  15774. s/.\{148\}//
  15775. t delim
  15776. ' <conf$$subs.awk | sed '
  15777. /^[^""]/{
  15778. N
  15779. s/\n//
  15780. }
  15781. ' >>$CONFIG_STATUS || ac_write_fail=1
  15782. rm -f conf$$subs.awk
  15783. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15784. _ACAWK
  15785. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15786. for (key in S) S_is_set[key] = 1
  15787. FS = ""
  15788. }
  15789. {
  15790. line = $ 0
  15791. nfields = split(line, field, "@")
  15792. substed = 0
  15793. len = length(field[1])
  15794. for (i = 2; i < nfields; i++) {
  15795. key = field[i]
  15796. keylen = length(key)
  15797. if (S_is_set[key]) {
  15798. value = S[key]
  15799. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15800. len += length(value) + length(field[++i])
  15801. substed = 1
  15802. } else
  15803. len += 1 + keylen
  15804. }
  15805. print line
  15806. }
  15807. _ACAWK
  15808. _ACEOF
  15809. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15810. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15811. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15812. else
  15813. cat
  15814. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15815. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15816. _ACEOF
  15817. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15818. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15819. # trailing colons and then remove the whole line if VPATH becomes empty
  15820. # (actually we leave an empty line to preserve line numbers).
  15821. if test "x$srcdir" = x.; then
  15822. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15823. h
  15824. s///
  15825. s/^/:/
  15826. s/[ ]*$/:/
  15827. s/:\$(srcdir):/:/g
  15828. s/:\${srcdir}:/:/g
  15829. s/:@srcdir@:/:/g
  15830. s/^:*//
  15831. s/:*$//
  15832. x
  15833. s/\(=[ ]*\).*/\1/
  15834. G
  15835. s/\n//
  15836. s/^[^=]*=[ ]*$//
  15837. }'
  15838. fi
  15839. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15840. fi # test -n "$CONFIG_FILES"
  15841. # Set up the scripts for CONFIG_HEADERS section.
  15842. # No need to generate them if there are no CONFIG_HEADERS.
  15843. # This happens for instance with `./config.status Makefile'.
  15844. if test -n "$CONFIG_HEADERS"; then
  15845. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15846. BEGIN {
  15847. _ACEOF
  15848. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15849. # here-document in config.status, that substitutes the proper values into
  15850. # config.h.in to produce config.h.
  15851. # Create a delimiter string that does not exist in confdefs.h, to ease
  15852. # handling of long lines.
  15853. ac_delim='%!_!# '
  15854. for ac_last_try in false false :; do
  15855. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15856. if test -z "$ac_tt"; then
  15857. break
  15858. elif $ac_last_try; then
  15859. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15860. else
  15861. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15862. fi
  15863. done
  15864. # For the awk script, D is an array of macro values keyed by name,
  15865. # likewise P contains macro parameters if any. Preserve backslash
  15866. # newline sequences.
  15867. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15868. sed -n '
  15869. s/.\{148\}/&'"$ac_delim"'/g
  15870. t rset
  15871. :rset
  15872. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15873. t def
  15874. d
  15875. :def
  15876. s/\\$//
  15877. t bsnl
  15878. s/["\\]/\\&/g
  15879. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15880. D["\1"]=" \3"/p
  15881. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15882. d
  15883. :bsnl
  15884. s/["\\]/\\&/g
  15885. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15886. D["\1"]=" \3\\\\\\n"\\/p
  15887. t cont
  15888. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15889. t cont
  15890. d
  15891. :cont
  15892. n
  15893. s/.\{148\}/&'"$ac_delim"'/g
  15894. t clear
  15895. :clear
  15896. s/\\$//
  15897. t bsnlc
  15898. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15899. d
  15900. :bsnlc
  15901. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15902. b cont
  15903. ' <confdefs.h | sed '
  15904. s/'"$ac_delim"'/"\\\
  15905. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15906. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15907. for (key in D) D_is_set[key] = 1
  15908. FS = ""
  15909. }
  15910. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15911. line = \$ 0
  15912. split(line, arg, " ")
  15913. if (arg[1] == "#") {
  15914. defundef = arg[2]
  15915. mac1 = arg[3]
  15916. } else {
  15917. defundef = substr(arg[1], 2)
  15918. mac1 = arg[2]
  15919. }
  15920. split(mac1, mac2, "(") #)
  15921. macro = mac2[1]
  15922. prefix = substr(line, 1, index(line, defundef) - 1)
  15923. if (D_is_set[macro]) {
  15924. # Preserve the white space surrounding the "#".
  15925. print prefix "define", macro P[macro] D[macro]
  15926. next
  15927. } else {
  15928. # Replace #undef with comments. This is necessary, for example,
  15929. # in the case of _POSIX_SOURCE, which is predefined and required
  15930. # on some systems where configure will not decide to define it.
  15931. if (defundef == "undef") {
  15932. print "/*", prefix defundef, macro, "*/"
  15933. next
  15934. }
  15935. }
  15936. }
  15937. { print }
  15938. _ACAWK
  15939. _ACEOF
  15940. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15941. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15942. fi # test -n "$CONFIG_HEADERS"
  15943. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15944. shift
  15945. for ac_tag
  15946. do
  15947. case $ac_tag in
  15948. :[FHLC]) ac_mode=$ac_tag; continue;;
  15949. esac
  15950. case $ac_mode$ac_tag in
  15951. :[FHL]*:*);;
  15952. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15953. :[FH]-) ac_tag=-:-;;
  15954. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15955. esac
  15956. ac_save_IFS=$IFS
  15957. IFS=:
  15958. set x $ac_tag
  15959. IFS=$ac_save_IFS
  15960. shift
  15961. ac_file=$1
  15962. shift
  15963. case $ac_mode in
  15964. :L) ac_source=$1;;
  15965. :[FH])
  15966. ac_file_inputs=
  15967. for ac_f
  15968. do
  15969. case $ac_f in
  15970. -) ac_f="$ac_tmp/stdin";;
  15971. *) # Look for the file first in the build tree, then in the source tree
  15972. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15973. # because $ac_f cannot contain `:'.
  15974. test -f "$ac_f" ||
  15975. case $ac_f in
  15976. [\\/$]*) false;;
  15977. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15978. esac ||
  15979. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15980. esac
  15981. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15982. as_fn_append ac_file_inputs " '$ac_f'"
  15983. done
  15984. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15985. # use $as_me), people would be surprised to read:
  15986. # /* config.h. Generated by config.status. */
  15987. configure_input='Generated from '`
  15988. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15989. `' by configure.'
  15990. if test x"$ac_file" != x-; then
  15991. configure_input="$ac_file. $configure_input"
  15992. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15993. $as_echo "$as_me: creating $ac_file" >&6;}
  15994. fi
  15995. # Neutralize special characters interpreted by sed in replacement strings.
  15996. case $configure_input in #(
  15997. *\&* | *\|* | *\\* )
  15998. ac_sed_conf_input=`$as_echo "$configure_input" |
  15999. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16000. *) ac_sed_conf_input=$configure_input;;
  16001. esac
  16002. case $ac_tag in
  16003. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16004. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16005. esac
  16006. ;;
  16007. esac
  16008. ac_dir=`$as_dirname -- "$ac_file" ||
  16009. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16010. X"$ac_file" : 'X\(//\)[^/]' \| \
  16011. X"$ac_file" : 'X\(//\)$' \| \
  16012. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16013. $as_echo X"$ac_file" |
  16014. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16015. s//\1/
  16016. q
  16017. }
  16018. /^X\(\/\/\)[^/].*/{
  16019. s//\1/
  16020. q
  16021. }
  16022. /^X\(\/\/\)$/{
  16023. s//\1/
  16024. q
  16025. }
  16026. /^X\(\/\).*/{
  16027. s//\1/
  16028. q
  16029. }
  16030. s/.*/./; q'`
  16031. as_dir="$ac_dir"; as_fn_mkdir_p
  16032. ac_builddir=.
  16033. case "$ac_dir" in
  16034. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16035. *)
  16036. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16037. # A ".." for each directory in $ac_dir_suffix.
  16038. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16039. case $ac_top_builddir_sub in
  16040. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16041. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16042. esac ;;
  16043. esac
  16044. ac_abs_top_builddir=$ac_pwd
  16045. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16046. # for backward compatibility:
  16047. ac_top_builddir=$ac_top_build_prefix
  16048. case $srcdir in
  16049. .) # We are building in place.
  16050. ac_srcdir=.
  16051. ac_top_srcdir=$ac_top_builddir_sub
  16052. ac_abs_top_srcdir=$ac_pwd ;;
  16053. [\\/]* | ?:[\\/]* ) # Absolute name.
  16054. ac_srcdir=$srcdir$ac_dir_suffix;
  16055. ac_top_srcdir=$srcdir
  16056. ac_abs_top_srcdir=$srcdir ;;
  16057. *) # Relative name.
  16058. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16059. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16060. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16061. esac
  16062. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16063. case $ac_mode in
  16064. :F)
  16065. #
  16066. # CONFIG_FILE
  16067. #
  16068. case $INSTALL in
  16069. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16070. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16071. esac
  16072. ac_MKDIR_P=$MKDIR_P
  16073. case $MKDIR_P in
  16074. [\\/$]* | ?:[\\/]* ) ;;
  16075. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16076. esac
  16077. _ACEOF
  16078. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16079. # If the template does not know about datarootdir, expand it.
  16080. # FIXME: This hack should be removed a few years after 2.60.
  16081. ac_datarootdir_hack=; ac_datarootdir_seen=
  16082. ac_sed_dataroot='
  16083. /datarootdir/ {
  16084. p
  16085. q
  16086. }
  16087. /@datadir@/p
  16088. /@docdir@/p
  16089. /@infodir@/p
  16090. /@localedir@/p
  16091. /@mandir@/p'
  16092. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16093. *datarootdir*) ac_datarootdir_seen=yes;;
  16094. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16095. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16096. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16097. _ACEOF
  16098. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16099. ac_datarootdir_hack='
  16100. s&@datadir@&$datadir&g
  16101. s&@docdir@&$docdir&g
  16102. s&@infodir@&$infodir&g
  16103. s&@localedir@&$localedir&g
  16104. s&@mandir@&$mandir&g
  16105. s&\\\${datarootdir}&$datarootdir&g' ;;
  16106. esac
  16107. _ACEOF
  16108. # Neutralize VPATH when `$srcdir' = `.'.
  16109. # Shell code in configure.ac might set extrasub.
  16110. # FIXME: do we really want to maintain this feature?
  16111. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16112. ac_sed_extra="$ac_vpsub
  16113. $extrasub
  16114. _ACEOF
  16115. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16116. :t
  16117. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16118. s|@configure_input@|$ac_sed_conf_input|;t t
  16119. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16120. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16121. s&@srcdir@&$ac_srcdir&;t t
  16122. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16123. s&@top_srcdir@&$ac_top_srcdir&;t t
  16124. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16125. s&@builddir@&$ac_builddir&;t t
  16126. s&@abs_builddir@&$ac_abs_builddir&;t t
  16127. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16128. s&@INSTALL@&$ac_INSTALL&;t t
  16129. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16130. $ac_datarootdir_hack
  16131. "
  16132. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16133. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16134. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16135. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16136. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16137. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16139. which seems to be undefined. Please make sure it is defined" >&5
  16140. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16141. which seems to be undefined. Please make sure it is defined" >&2;}
  16142. rm -f "$ac_tmp/stdin"
  16143. case $ac_file in
  16144. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16145. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16146. esac \
  16147. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16148. ;;
  16149. :H)
  16150. #
  16151. # CONFIG_HEADER
  16152. #
  16153. if test x"$ac_file" != x-; then
  16154. {
  16155. $as_echo "/* $configure_input */" \
  16156. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16157. } >"$ac_tmp/config.h" \
  16158. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16159. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16160. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16161. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16162. else
  16163. rm -f "$ac_file"
  16164. mv "$ac_tmp/config.h" "$ac_file" \
  16165. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16166. fi
  16167. else
  16168. $as_echo "/* $configure_input */" \
  16169. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16170. || as_fn_error $? "could not create -" "$LINENO" 5
  16171. fi
  16172. # Compute "$ac_file"'s index in $config_headers.
  16173. _am_arg="$ac_file"
  16174. _am_stamp_count=1
  16175. for _am_header in $config_headers :; do
  16176. case $_am_header in
  16177. $_am_arg | $_am_arg:* )
  16178. break ;;
  16179. * )
  16180. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16181. esac
  16182. done
  16183. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16184. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16185. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16186. X"$_am_arg" : 'X\(//\)$' \| \
  16187. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16188. $as_echo X"$_am_arg" |
  16189. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16190. s//\1/
  16191. q
  16192. }
  16193. /^X\(\/\/\)[^/].*/{
  16194. s//\1/
  16195. q
  16196. }
  16197. /^X\(\/\/\)$/{
  16198. s//\1/
  16199. q
  16200. }
  16201. /^X\(\/\).*/{
  16202. s//\1/
  16203. q
  16204. }
  16205. s/.*/./; q'`/stamp-h$_am_stamp_count
  16206. ;;
  16207. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16208. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16209. ;;
  16210. esac
  16211. case $ac_file$ac_mode in
  16212. "libtool":C)
  16213. # See if we are running on zsh, and set the options which allow our
  16214. # commands through without removal of \ escapes.
  16215. if test -n "${ZSH_VERSION+set}" ; then
  16216. setopt NO_GLOB_SUBST
  16217. fi
  16218. cfgfile="${ofile}T"
  16219. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16220. $RM "$cfgfile"
  16221. cat <<_LT_EOF >> "$cfgfile"
  16222. #! $SHELL
  16223. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16224. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16225. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16226. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16227. #
  16228. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16229. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  16230. # Foundation, Inc.
  16231. # Written by Gordon Matzigkeit, 1996
  16232. #
  16233. # This file is part of GNU Libtool.
  16234. #
  16235. # GNU Libtool is free software; you can redistribute it and/or
  16236. # modify it under the terms of the GNU General Public License as
  16237. # published by the Free Software Foundation; either version 2 of
  16238. # the License, or (at your option) any later version.
  16239. #
  16240. # As a special exception to the GNU General Public License,
  16241. # if you distribute this file as part of a program or library that
  16242. # is built using GNU Libtool, you may include this file under the
  16243. # same distribution terms that you use for the rest of that program.
  16244. #
  16245. # GNU Libtool is distributed in the hope that it will be useful,
  16246. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16247. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16248. # GNU General Public License for more details.
  16249. #
  16250. # You should have received a copy of the GNU General Public License
  16251. # along with GNU Libtool; see the file COPYING. If not, a copy
  16252. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16253. # obtained by writing to the Free Software Foundation, Inc.,
  16254. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16255. # The names of the tagged configurations supported by this script.
  16256. available_tags="CXX "
  16257. # ### BEGIN LIBTOOL CONFIG
  16258. # Assembler program.
  16259. AS=$lt_AS
  16260. # DLL creation program.
  16261. DLLTOOL=$lt_DLLTOOL
  16262. # Object dumper program.
  16263. OBJDUMP=$lt_OBJDUMP
  16264. # Which release of libtool.m4 was used?
  16265. macro_version=$macro_version
  16266. macro_revision=$macro_revision
  16267. # Whether or not to build shared libraries.
  16268. build_libtool_libs=$enable_shared
  16269. # Whether or not to build static libraries.
  16270. build_old_libs=$enable_static
  16271. # What type of objects to build.
  16272. pic_mode=$pic_mode
  16273. # Whether or not to optimize for fast installation.
  16274. fast_install=$enable_fast_install
  16275. # Shell to use when invoking shell scripts.
  16276. SHELL=$lt_SHELL
  16277. # An echo program that protects backslashes.
  16278. ECHO=$lt_ECHO
  16279. # The PATH separator for the build system.
  16280. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16281. # The host system.
  16282. host_alias=$host_alias
  16283. host=$host
  16284. host_os=$host_os
  16285. # The build system.
  16286. build_alias=$build_alias
  16287. build=$build
  16288. build_os=$build_os
  16289. # A sed program that does not truncate output.
  16290. SED=$lt_SED
  16291. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16292. Xsed="\$SED -e 1s/^X//"
  16293. # A grep program that handles long lines.
  16294. GREP=$lt_GREP
  16295. # An ERE matcher.
  16296. EGREP=$lt_EGREP
  16297. # A literal string matcher.
  16298. FGREP=$lt_FGREP
  16299. # A BSD- or MS-compatible name lister.
  16300. NM=$lt_NM
  16301. # Whether we need soft or hard links.
  16302. LN_S=$lt_LN_S
  16303. # What is the maximum length of a command?
  16304. max_cmd_len=$max_cmd_len
  16305. # Object file suffix (normally "o").
  16306. objext=$ac_objext
  16307. # Executable file suffix (normally "").
  16308. exeext=$exeext
  16309. # whether the shell understands "unset".
  16310. lt_unset=$lt_unset
  16311. # turn spaces into newlines.
  16312. SP2NL=$lt_lt_SP2NL
  16313. # turn newlines into spaces.
  16314. NL2SP=$lt_lt_NL2SP
  16315. # convert \$build file names to \$host format.
  16316. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16317. # convert \$build files to toolchain format.
  16318. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16319. # Method to check whether dependent libraries are shared objects.
  16320. deplibs_check_method=$lt_deplibs_check_method
  16321. # Command to use when deplibs_check_method = "file_magic".
  16322. file_magic_cmd=$lt_file_magic_cmd
  16323. # How to find potential files when deplibs_check_method = "file_magic".
  16324. file_magic_glob=$lt_file_magic_glob
  16325. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16326. want_nocaseglob=$lt_want_nocaseglob
  16327. # Command to associate shared and link libraries.
  16328. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16329. # The archiver.
  16330. AR=$lt_AR
  16331. # Flags to create an archive.
  16332. AR_FLAGS=$lt_AR_FLAGS
  16333. # How to feed a file listing to the archiver.
  16334. archiver_list_spec=$lt_archiver_list_spec
  16335. # A symbol stripping program.
  16336. STRIP=$lt_STRIP
  16337. # Commands used to install an old-style archive.
  16338. RANLIB=$lt_RANLIB
  16339. old_postinstall_cmds=$lt_old_postinstall_cmds
  16340. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16341. # Whether to use a lock for old archive extraction.
  16342. lock_old_archive_extraction=$lock_old_archive_extraction
  16343. # A C compiler.
  16344. LTCC=$lt_CC
  16345. # LTCC compiler flags.
  16346. LTCFLAGS=$lt_CFLAGS
  16347. # Take the output of nm and produce a listing of raw symbols and C names.
  16348. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16349. # Transform the output of nm in a proper C declaration.
  16350. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16351. # Transform the output of nm in a C name address pair.
  16352. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16353. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16354. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16355. # Specify filename containing input files for \$NM.
  16356. nm_file_list_spec=$lt_nm_file_list_spec
  16357. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16358. lt_sysroot=$lt_sysroot
  16359. # The name of the directory that contains temporary libtool files.
  16360. objdir=$objdir
  16361. # Used to examine libraries when file_magic_cmd begins with "file".
  16362. MAGIC_CMD=$MAGIC_CMD
  16363. # Must we lock files when doing compilation?
  16364. need_locks=$lt_need_locks
  16365. # Manifest tool.
  16366. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16367. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16368. DSYMUTIL=$lt_DSYMUTIL
  16369. # Tool to change global to local symbols on Mac OS X.
  16370. NMEDIT=$lt_NMEDIT
  16371. # Tool to manipulate fat objects and archives on Mac OS X.
  16372. LIPO=$lt_LIPO
  16373. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16374. OTOOL=$lt_OTOOL
  16375. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16376. OTOOL64=$lt_OTOOL64
  16377. # Old archive suffix (normally "a").
  16378. libext=$libext
  16379. # Shared library suffix (normally ".so").
  16380. shrext_cmds=$lt_shrext_cmds
  16381. # The commands to extract the exported symbol list from a shared archive.
  16382. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16383. # Variables whose values should be saved in libtool wrapper scripts and
  16384. # restored at link time.
  16385. variables_saved_for_relink=$lt_variables_saved_for_relink
  16386. # Do we need the "lib" prefix for modules?
  16387. need_lib_prefix=$need_lib_prefix
  16388. # Do we need a version for libraries?
  16389. need_version=$need_version
  16390. # Library versioning type.
  16391. version_type=$version_type
  16392. # Shared library runtime path variable.
  16393. runpath_var=$runpath_var
  16394. # Shared library path variable.
  16395. shlibpath_var=$shlibpath_var
  16396. # Is shlibpath searched before the hard-coded library search path?
  16397. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16398. # Format of library name prefix.
  16399. libname_spec=$lt_libname_spec
  16400. # List of archive names. First name is the real one, the rest are links.
  16401. # The last name is the one that the linker finds with -lNAME
  16402. library_names_spec=$lt_library_names_spec
  16403. # The coded name of the library, if different from the real name.
  16404. soname_spec=$lt_soname_spec
  16405. # Permission mode override for installation of shared libraries.
  16406. install_override_mode=$lt_install_override_mode
  16407. # Command to use after installation of a shared archive.
  16408. postinstall_cmds=$lt_postinstall_cmds
  16409. # Command to use after uninstallation of a shared archive.
  16410. postuninstall_cmds=$lt_postuninstall_cmds
  16411. # Commands used to finish a libtool library installation in a directory.
  16412. finish_cmds=$lt_finish_cmds
  16413. # As "finish_cmds", except a single script fragment to be evaled but
  16414. # not shown.
  16415. finish_eval=$lt_finish_eval
  16416. # Whether we should hardcode library paths into libraries.
  16417. hardcode_into_libs=$hardcode_into_libs
  16418. # Compile-time system search path for libraries.
  16419. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16420. # Run-time system search path for libraries.
  16421. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16422. # Whether dlopen is supported.
  16423. dlopen_support=$enable_dlopen
  16424. # Whether dlopen of programs is supported.
  16425. dlopen_self=$enable_dlopen_self
  16426. # Whether dlopen of statically linked programs is supported.
  16427. dlopen_self_static=$enable_dlopen_self_static
  16428. # Commands to strip libraries.
  16429. old_striplib=$lt_old_striplib
  16430. striplib=$lt_striplib
  16431. # The linker used to build libraries.
  16432. LD=$lt_LD
  16433. # How to create reloadable object files.
  16434. reload_flag=$lt_reload_flag
  16435. reload_cmds=$lt_reload_cmds
  16436. # Commands used to build an old-style archive.
  16437. old_archive_cmds=$lt_old_archive_cmds
  16438. # A language specific compiler.
  16439. CC=$lt_compiler
  16440. # Is the compiler the GNU compiler?
  16441. with_gcc=$GCC
  16442. # Compiler flag to turn off builtin functions.
  16443. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16444. # Additional compiler flags for building library objects.
  16445. pic_flag=$lt_lt_prog_compiler_pic
  16446. # How to pass a linker flag through the compiler.
  16447. wl=$lt_lt_prog_compiler_wl
  16448. # Compiler flag to prevent dynamic linking.
  16449. link_static_flag=$lt_lt_prog_compiler_static
  16450. # Does compiler simultaneously support -c and -o options?
  16451. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16452. # Whether or not to add -lc for building shared libraries.
  16453. build_libtool_need_lc=$archive_cmds_need_lc
  16454. # Whether or not to disallow shared libs when runtime libs are static.
  16455. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16456. # Compiler flag to allow reflexive dlopens.
  16457. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16458. # Compiler flag to generate shared objects directly from archives.
  16459. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16460. # Whether the compiler copes with passing no objects directly.
  16461. compiler_needs_object=$lt_compiler_needs_object
  16462. # Create an old-style archive from a shared archive.
  16463. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16464. # Create a temporary old-style archive to link instead of a shared archive.
  16465. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16466. # Commands used to build a shared archive.
  16467. archive_cmds=$lt_archive_cmds
  16468. archive_expsym_cmds=$lt_archive_expsym_cmds
  16469. # Commands used to build a loadable module if different from building
  16470. # a shared archive.
  16471. module_cmds=$lt_module_cmds
  16472. module_expsym_cmds=$lt_module_expsym_cmds
  16473. # Whether we are building with GNU ld or not.
  16474. with_gnu_ld=$lt_with_gnu_ld
  16475. # Flag that allows shared libraries with undefined symbols to be built.
  16476. allow_undefined_flag=$lt_allow_undefined_flag
  16477. # Flag that enforces no undefined symbols.
  16478. no_undefined_flag=$lt_no_undefined_flag
  16479. # Flag to hardcode \$libdir into a binary during linking.
  16480. # This must work even if \$libdir does not exist
  16481. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16482. # Whether we need a single "-rpath" flag with a separated argument.
  16483. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16484. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16485. # DIR into the resulting binary.
  16486. hardcode_direct=$hardcode_direct
  16487. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16488. # DIR into the resulting binary and the resulting library dependency is
  16489. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16490. # library is relocated.
  16491. hardcode_direct_absolute=$hardcode_direct_absolute
  16492. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16493. # into the resulting binary.
  16494. hardcode_minus_L=$hardcode_minus_L
  16495. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16496. # into the resulting binary.
  16497. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16498. # Set to "yes" if building a shared library automatically hardcodes DIR
  16499. # into the library and all subsequent libraries and executables linked
  16500. # against it.
  16501. hardcode_automatic=$hardcode_automatic
  16502. # Set to yes if linker adds runtime paths of dependent libraries
  16503. # to runtime path list.
  16504. inherit_rpath=$inherit_rpath
  16505. # Whether libtool must link a program against all its dependency libraries.
  16506. link_all_deplibs=$link_all_deplibs
  16507. # Set to "yes" if exported symbols are required.
  16508. always_export_symbols=$always_export_symbols
  16509. # The commands to list exported symbols.
  16510. export_symbols_cmds=$lt_export_symbols_cmds
  16511. # Symbols that should not be listed in the preloaded symbols.
  16512. exclude_expsyms=$lt_exclude_expsyms
  16513. # Symbols that must always be exported.
  16514. include_expsyms=$lt_include_expsyms
  16515. # Commands necessary for linking programs (against libraries) with templates.
  16516. prelink_cmds=$lt_prelink_cmds
  16517. # Commands necessary for finishing linking programs.
  16518. postlink_cmds=$lt_postlink_cmds
  16519. # Specify filename containing input files.
  16520. file_list_spec=$lt_file_list_spec
  16521. # How to hardcode a shared library path into an executable.
  16522. hardcode_action=$hardcode_action
  16523. # The directories searched by this compiler when creating a shared library.
  16524. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16525. # Dependencies to place before and after the objects being linked to
  16526. # create a shared library.
  16527. predep_objects=$lt_predep_objects
  16528. postdep_objects=$lt_postdep_objects
  16529. predeps=$lt_predeps
  16530. postdeps=$lt_postdeps
  16531. # The library search path used internally by the compiler when linking
  16532. # a shared library.
  16533. compiler_lib_search_path=$lt_compiler_lib_search_path
  16534. # ### END LIBTOOL CONFIG
  16535. _LT_EOF
  16536. case $host_os in
  16537. aix3*)
  16538. cat <<\_LT_EOF >> "$cfgfile"
  16539. # AIX sometimes has problems with the GCC collect2 program. For some
  16540. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16541. # vanish in a puff of smoke.
  16542. if test "X${COLLECT_NAMES+set}" != Xset; then
  16543. COLLECT_NAMES=
  16544. export COLLECT_NAMES
  16545. fi
  16546. _LT_EOF
  16547. ;;
  16548. esac
  16549. ltmain="$ac_aux_dir/ltmain.sh"
  16550. # We use sed instead of cat because bash on DJGPP gets confused if
  16551. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16552. # text mode, it properly converts lines to CR/LF. This bash problem
  16553. # is reportedly fixed, but why not run on old versions too?
  16554. sed '$q' "$ltmain" >> "$cfgfile" \
  16555. || (rm -f "$cfgfile"; exit 1)
  16556. if test x"$xsi_shell" = xyes; then
  16557. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16558. func_dirname ()\
  16559. {\
  16560. \ case ${1} in\
  16561. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16562. \ * ) func_dirname_result="${3}" ;;\
  16563. \ esac\
  16564. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16565. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16566. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16567. test 0 -eq $? || _lt_function_replace_fail=:
  16568. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16569. func_basename ()\
  16570. {\
  16571. \ func_basename_result="${1##*/}"\
  16572. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16573. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16574. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16575. test 0 -eq $? || _lt_function_replace_fail=:
  16576. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16577. func_dirname_and_basename ()\
  16578. {\
  16579. \ case ${1} in\
  16580. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16581. \ * ) func_dirname_result="${3}" ;;\
  16582. \ esac\
  16583. \ func_basename_result="${1##*/}"\
  16584. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16585. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16586. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16587. test 0 -eq $? || _lt_function_replace_fail=:
  16588. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16589. func_stripname ()\
  16590. {\
  16591. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16592. \ # positional parameters, so assign one to ordinary parameter first.\
  16593. \ func_stripname_result=${3}\
  16594. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16595. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16596. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16597. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16598. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16599. test 0 -eq $? || _lt_function_replace_fail=:
  16600. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16601. func_split_long_opt ()\
  16602. {\
  16603. \ func_split_long_opt_name=${1%%=*}\
  16604. \ func_split_long_opt_arg=${1#*=}\
  16605. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16606. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16607. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16608. test 0 -eq $? || _lt_function_replace_fail=:
  16609. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16610. func_split_short_opt ()\
  16611. {\
  16612. \ func_split_short_opt_arg=${1#??}\
  16613. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16614. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16615. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16616. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16617. test 0 -eq $? || _lt_function_replace_fail=:
  16618. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16619. func_lo2o ()\
  16620. {\
  16621. \ case ${1} in\
  16622. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16623. \ *) func_lo2o_result=${1} ;;\
  16624. \ esac\
  16625. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16626. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16627. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16628. test 0 -eq $? || _lt_function_replace_fail=:
  16629. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16630. func_xform ()\
  16631. {\
  16632. func_xform_result=${1%.*}.lo\
  16633. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16634. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16635. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16636. test 0 -eq $? || _lt_function_replace_fail=:
  16637. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16638. func_arith ()\
  16639. {\
  16640. func_arith_result=$(( $* ))\
  16641. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16642. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16643. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16644. test 0 -eq $? || _lt_function_replace_fail=:
  16645. sed -e '/^func_len ()$/,/^} # func_len /c\
  16646. func_len ()\
  16647. {\
  16648. func_len_result=${#1}\
  16649. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16650. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16651. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16652. test 0 -eq $? || _lt_function_replace_fail=:
  16653. fi
  16654. if test x"$lt_shell_append" = xyes; then
  16655. sed -e '/^func_append ()$/,/^} # func_append /c\
  16656. func_append ()\
  16657. {\
  16658. eval "${1}+=\\${2}"\
  16659. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16660. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16661. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16662. test 0 -eq $? || _lt_function_replace_fail=:
  16663. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16664. func_append_quoted ()\
  16665. {\
  16666. \ func_quote_for_eval "${2}"\
  16667. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16668. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16669. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16670. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16671. test 0 -eq $? || _lt_function_replace_fail=:
  16672. # Save a `func_append' function call where possible by direct use of '+='
  16673. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16674. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16675. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16676. test 0 -eq $? || _lt_function_replace_fail=:
  16677. else
  16678. # Save a `func_append' function call even when '+=' is not available
  16679. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16680. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16681. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16682. test 0 -eq $? || _lt_function_replace_fail=:
  16683. fi
  16684. if test x"$_lt_function_replace_fail" = x":"; then
  16685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16686. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16687. fi
  16688. mv -f "$cfgfile" "$ofile" ||
  16689. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16690. chmod +x "$ofile"
  16691. cat <<_LT_EOF >> "$ofile"
  16692. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16693. # The linker used to build libraries.
  16694. LD=$lt_LD_CXX
  16695. # How to create reloadable object files.
  16696. reload_flag=$lt_reload_flag_CXX
  16697. reload_cmds=$lt_reload_cmds_CXX
  16698. # Commands used to build an old-style archive.
  16699. old_archive_cmds=$lt_old_archive_cmds_CXX
  16700. # A language specific compiler.
  16701. CC=$lt_compiler_CXX
  16702. # Is the compiler the GNU compiler?
  16703. with_gcc=$GCC_CXX
  16704. # Compiler flag to turn off builtin functions.
  16705. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16706. # Additional compiler flags for building library objects.
  16707. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16708. # How to pass a linker flag through the compiler.
  16709. wl=$lt_lt_prog_compiler_wl_CXX
  16710. # Compiler flag to prevent dynamic linking.
  16711. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16712. # Does compiler simultaneously support -c and -o options?
  16713. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16714. # Whether or not to add -lc for building shared libraries.
  16715. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16716. # Whether or not to disallow shared libs when runtime libs are static.
  16717. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16718. # Compiler flag to allow reflexive dlopens.
  16719. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16720. # Compiler flag to generate shared objects directly from archives.
  16721. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16722. # Whether the compiler copes with passing no objects directly.
  16723. compiler_needs_object=$lt_compiler_needs_object_CXX
  16724. # Create an old-style archive from a shared archive.
  16725. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16726. # Create a temporary old-style archive to link instead of a shared archive.
  16727. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16728. # Commands used to build a shared archive.
  16729. archive_cmds=$lt_archive_cmds_CXX
  16730. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16731. # Commands used to build a loadable module if different from building
  16732. # a shared archive.
  16733. module_cmds=$lt_module_cmds_CXX
  16734. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16735. # Whether we are building with GNU ld or not.
  16736. with_gnu_ld=$lt_with_gnu_ld_CXX
  16737. # Flag that allows shared libraries with undefined symbols to be built.
  16738. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16739. # Flag that enforces no undefined symbols.
  16740. no_undefined_flag=$lt_no_undefined_flag_CXX
  16741. # Flag to hardcode \$libdir into a binary during linking.
  16742. # This must work even if \$libdir does not exist
  16743. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16744. # Whether we need a single "-rpath" flag with a separated argument.
  16745. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16746. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16747. # DIR into the resulting binary.
  16748. hardcode_direct=$hardcode_direct_CXX
  16749. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16750. # DIR into the resulting binary and the resulting library dependency is
  16751. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16752. # library is relocated.
  16753. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16754. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16755. # into the resulting binary.
  16756. hardcode_minus_L=$hardcode_minus_L_CXX
  16757. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16758. # into the resulting binary.
  16759. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16760. # Set to "yes" if building a shared library automatically hardcodes DIR
  16761. # into the library and all subsequent libraries and executables linked
  16762. # against it.
  16763. hardcode_automatic=$hardcode_automatic_CXX
  16764. # Set to yes if linker adds runtime paths of dependent libraries
  16765. # to runtime path list.
  16766. inherit_rpath=$inherit_rpath_CXX
  16767. # Whether libtool must link a program against all its dependency libraries.
  16768. link_all_deplibs=$link_all_deplibs_CXX
  16769. # Set to "yes" if exported symbols are required.
  16770. always_export_symbols=$always_export_symbols_CXX
  16771. # The commands to list exported symbols.
  16772. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16773. # Symbols that should not be listed in the preloaded symbols.
  16774. exclude_expsyms=$lt_exclude_expsyms_CXX
  16775. # Symbols that must always be exported.
  16776. include_expsyms=$lt_include_expsyms_CXX
  16777. # Commands necessary for linking programs (against libraries) with templates.
  16778. prelink_cmds=$lt_prelink_cmds_CXX
  16779. # Commands necessary for finishing linking programs.
  16780. postlink_cmds=$lt_postlink_cmds_CXX
  16781. # Specify filename containing input files.
  16782. file_list_spec=$lt_file_list_spec_CXX
  16783. # How to hardcode a shared library path into an executable.
  16784. hardcode_action=$hardcode_action_CXX
  16785. # The directories searched by this compiler when creating a shared library.
  16786. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16787. # Dependencies to place before and after the objects being linked to
  16788. # create a shared library.
  16789. predep_objects=$lt_predep_objects_CXX
  16790. postdep_objects=$lt_postdep_objects_CXX
  16791. predeps=$lt_predeps_CXX
  16792. postdeps=$lt_postdeps_CXX
  16793. # The library search path used internally by the compiler when linking
  16794. # a shared library.
  16795. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16796. # ### END LIBTOOL TAG CONFIG: CXX
  16797. _LT_EOF
  16798. ;;
  16799. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16800. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16801. # are listed without --file. Let's play safe and only enable the eval
  16802. # if we detect the quoting.
  16803. case $CONFIG_FILES in
  16804. *\'*) eval set x "$CONFIG_FILES" ;;
  16805. *) set x $CONFIG_FILES ;;
  16806. esac
  16807. shift
  16808. for mf
  16809. do
  16810. # Strip MF so we end up with the name of the file.
  16811. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16812. # Check whether this is an Automake generated Makefile or not.
  16813. # We used to match only the files named `Makefile.in', but
  16814. # some people rename them; so instead we look at the file content.
  16815. # Grep'ing the first line is not enough: some people post-process
  16816. # each Makefile.in and add a new line on top of each file to say so.
  16817. # Grep'ing the whole file is not good either: AIX grep has a line
  16818. # limit of 2048, but all sed's we know have understand at least 4000.
  16819. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16820. dirpart=`$as_dirname -- "$mf" ||
  16821. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16822. X"$mf" : 'X\(//\)[^/]' \| \
  16823. X"$mf" : 'X\(//\)$' \| \
  16824. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16825. $as_echo X"$mf" |
  16826. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16827. s//\1/
  16828. q
  16829. }
  16830. /^X\(\/\/\)[^/].*/{
  16831. s//\1/
  16832. q
  16833. }
  16834. /^X\(\/\/\)$/{
  16835. s//\1/
  16836. q
  16837. }
  16838. /^X\(\/\).*/{
  16839. s//\1/
  16840. q
  16841. }
  16842. s/.*/./; q'`
  16843. else
  16844. continue
  16845. fi
  16846. # Extract the definition of DEPDIR, am__include, and am__quote
  16847. # from the Makefile without running `make'.
  16848. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16849. test -z "$DEPDIR" && continue
  16850. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16851. test -z "am__include" && continue
  16852. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16853. # When using ansi2knr, U may be empty or an underscore; expand it
  16854. U=`sed -n 's/^U = //p' < "$mf"`
  16855. # Find all dependency output files, they are included files with
  16856. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16857. # simplest approach to changing $(DEPDIR) to its actual value in the
  16858. # expansion.
  16859. for file in `sed -n "
  16860. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16861. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16862. # Make sure the directory exists.
  16863. test -f "$dirpart/$file" && continue
  16864. fdir=`$as_dirname -- "$file" ||
  16865. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16866. X"$file" : 'X\(//\)[^/]' \| \
  16867. X"$file" : 'X\(//\)$' \| \
  16868. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16869. $as_echo X"$file" |
  16870. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16871. s//\1/
  16872. q
  16873. }
  16874. /^X\(\/\/\)[^/].*/{
  16875. s//\1/
  16876. q
  16877. }
  16878. /^X\(\/\/\)$/{
  16879. s//\1/
  16880. q
  16881. }
  16882. /^X\(\/\).*/{
  16883. s//\1/
  16884. q
  16885. }
  16886. s/.*/./; q'`
  16887. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16888. # echo "creating $dirpart/$file"
  16889. echo '# dummy' > "$dirpart/$file"
  16890. done
  16891. done
  16892. }
  16893. ;;
  16894. esac
  16895. done # for ac_tag
  16896. as_fn_exit 0
  16897. _ACEOF
  16898. ac_clean_files=$ac_clean_files_save
  16899. test $ac_write_fail = 0 ||
  16900. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16901. # configure is writing to config.log, and then calls config.status.
  16902. # config.status does its own redirection, appending to config.log.
  16903. # Unfortunately, on DOS this fails, as config.log is still kept open
  16904. # by configure, so config.status won't be able to write to it; its
  16905. # output is simply discarded. So we exec the FD to /dev/null,
  16906. # effectively closing config.log, so it can be properly (re)opened and
  16907. # appended to by config.status. When coming back to configure, we
  16908. # need to make the FD available again.
  16909. if test "$no_create" != yes; then
  16910. ac_cs_success=:
  16911. ac_config_status_args=
  16912. test "$silent" = yes &&
  16913. ac_config_status_args="$ac_config_status_args --quiet"
  16914. exec 5>/dev/null
  16915. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16916. exec 5>>config.log
  16917. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16918. # would make configure fail if this is the last instruction.
  16919. $ac_cs_success || as_fn_exit 1
  16920. fi
  16921. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16923. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16924. fi