configure 585 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640
  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. TINYXML_CXXFLAGS
  580. TINYXML_LIBS
  581. TINYRL_CFLAGS
  582. TINYRL_LIBS
  583. KONF_CFLAGS
  584. KONF_LIBS
  585. LUB_CFLAGS
  586. LUB_LIBS
  587. DEBUG_FALSE
  588. DEBUG_TRUE
  589. am__fastdepCXX_FALSE
  590. am__fastdepCXX_TRUE
  591. CXXDEPMODE
  592. am__fastdepCC_FALSE
  593. am__fastdepCC_TRUE
  594. CCDEPMODE
  595. am__nodep
  596. AMDEPBACKSLASH
  597. AMDEP_FALSE
  598. AMDEP_TRUE
  599. am__quote
  600. am__include
  601. DEPDIR
  602. am__untar
  603. am__tar
  604. AMTAR
  605. am__leading_dot
  606. SET_MAKE
  607. mkdir_p
  608. MKDIR_P
  609. INSTALL_STRIP_PROGRAM
  610. install_sh
  611. MAKEINFO
  612. AUTOHEADER
  613. AUTOMAKE
  614. AUTOCONF
  615. ACLOCAL
  616. VERSION
  617. PACKAGE
  618. CYGPATH_W
  619. am__isrc
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. OTOOL64
  625. OTOOL
  626. LIPO
  627. NMEDIT
  628. DSYMUTIL
  629. MANIFEST_TOOL
  630. AWK
  631. RANLIB
  632. STRIP
  633. ac_ct_AR
  634. AR
  635. LN_S
  636. NM
  637. ac_ct_DUMPBIN
  638. DUMPBIN
  639. LD
  640. FGREP
  641. SED
  642. LIBTOOL
  643. OBJDUMP
  644. DLLTOOL
  645. AS
  646. host_os
  647. host_vendor
  648. host_cpu
  649. host
  650. build_os
  651. build_vendor
  652. build_cpu
  653. build
  654. ac_ct_CXX
  655. CXXFLAGS
  656. CXX
  657. EGREP
  658. GREP
  659. CPP
  660. OBJEXT
  661. EXEEXT
  662. ac_ct_CC
  663. CPPFLAGS
  664. LDFLAGS
  665. CFLAGS
  666. CC
  667. target_alias
  668. host_alias
  669. build_alias
  670. LIBS
  671. ECHO_T
  672. ECHO_N
  673. ECHO_C
  674. DEFS
  675. mandir
  676. localedir
  677. libdir
  678. psdir
  679. pdfdir
  680. dvidir
  681. htmldir
  682. infodir
  683. docdir
  684. oldincludedir
  685. includedir
  686. localstatedir
  687. sharedstatedir
  688. sysconfdir
  689. datadir
  690. datarootdir
  691. libexecdir
  692. sbindir
  693. bindir
  694. program_transform_name
  695. prefix
  696. exec_prefix
  697. PACKAGE_URL
  698. PACKAGE_BUGREPORT
  699. PACKAGE_STRING
  700. PACKAGE_VERSION
  701. PACKAGE_TARNAME
  702. PACKAGE_NAME
  703. PATH_SEPARATOR
  704. SHELL'
  705. ac_subst_files=''
  706. ac_user_opts='
  707. enable_option_checking
  708. enable_shared
  709. enable_static
  710. with_pic
  711. enable_fast_install
  712. with_gnu_ld
  713. with_sysroot
  714. enable_libtool_lock
  715. enable_dependency_tracking
  716. enable_debug
  717. with_rt
  718. with_tcl
  719. enable_lubheap
  720. enable_gpl
  721. '
  722. ac_precious_vars='build_alias
  723. host_alias
  724. target_alias
  725. CC
  726. CFLAGS
  727. LDFLAGS
  728. LIBS
  729. CPPFLAGS
  730. CPP
  731. CXX
  732. CXXFLAGS
  733. CCC
  734. CXXCPP'
  735. # Initialize some variables set by options.
  736. ac_init_help=
  737. ac_init_version=false
  738. ac_unrecognized_opts=
  739. ac_unrecognized_sep=
  740. # The variables have the same names as the options, with
  741. # dashes changed to underlines.
  742. cache_file=/dev/null
  743. exec_prefix=NONE
  744. no_create=
  745. no_recursion=
  746. prefix=NONE
  747. program_prefix=NONE
  748. program_suffix=NONE
  749. program_transform_name=s,x,x,
  750. silent=
  751. site=
  752. srcdir=
  753. verbose=
  754. x_includes=NONE
  755. x_libraries=NONE
  756. # Installation directory options.
  757. # These are left unexpanded so users can "make install exec_prefix=/foo"
  758. # and all the variables that are supposed to be based on exec_prefix
  759. # by default will actually change.
  760. # Use braces instead of parens because sh, perl, etc. also accept them.
  761. # (The list follows the same order as the GNU Coding Standards.)
  762. bindir='${exec_prefix}/bin'
  763. sbindir='${exec_prefix}/sbin'
  764. libexecdir='${exec_prefix}/libexec'
  765. datarootdir='${prefix}/share'
  766. datadir='${datarootdir}'
  767. sysconfdir='${prefix}/etc'
  768. sharedstatedir='${prefix}/com'
  769. localstatedir='${prefix}/var'
  770. includedir='${prefix}/include'
  771. oldincludedir='/usr/include'
  772. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  773. infodir='${datarootdir}/info'
  774. htmldir='${docdir}'
  775. dvidir='${docdir}'
  776. pdfdir='${docdir}'
  777. psdir='${docdir}'
  778. libdir='${exec_prefix}/lib'
  779. localedir='${datarootdir}/locale'
  780. mandir='${datarootdir}/man'
  781. ac_prev=
  782. ac_dashdash=
  783. for ac_option
  784. do
  785. # If the previous option needs an argument, assign it.
  786. if test -n "$ac_prev"; then
  787. eval $ac_prev=\$ac_option
  788. ac_prev=
  789. continue
  790. fi
  791. case $ac_option in
  792. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  793. *=) ac_optarg= ;;
  794. *) ac_optarg=yes ;;
  795. esac
  796. # Accept the important Cygnus configure options, so we can diagnose typos.
  797. case $ac_dashdash$ac_option in
  798. --)
  799. ac_dashdash=yes ;;
  800. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  801. ac_prev=bindir ;;
  802. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  803. bindir=$ac_optarg ;;
  804. -build | --build | --buil | --bui | --bu)
  805. ac_prev=build_alias ;;
  806. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  807. build_alias=$ac_optarg ;;
  808. -cache-file | --cache-file | --cache-fil | --cache-fi \
  809. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  810. ac_prev=cache_file ;;
  811. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  812. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  813. cache_file=$ac_optarg ;;
  814. --config-cache | -C)
  815. cache_file=config.cache ;;
  816. -datadir | --datadir | --datadi | --datad)
  817. ac_prev=datadir ;;
  818. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  819. datadir=$ac_optarg ;;
  820. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  821. | --dataroo | --dataro | --datar)
  822. ac_prev=datarootdir ;;
  823. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  824. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  825. datarootdir=$ac_optarg ;;
  826. -disable-* | --disable-*)
  827. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  828. # Reject names that are not valid shell variable names.
  829. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  830. as_fn_error $? "invalid feature name: $ac_useropt"
  831. ac_useropt_orig=$ac_useropt
  832. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  833. case $ac_user_opts in
  834. *"
  835. "enable_$ac_useropt"
  836. "*) ;;
  837. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  838. ac_unrecognized_sep=', ';;
  839. esac
  840. eval enable_$ac_useropt=no ;;
  841. -docdir | --docdir | --docdi | --doc | --do)
  842. ac_prev=docdir ;;
  843. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  844. docdir=$ac_optarg ;;
  845. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  846. ac_prev=dvidir ;;
  847. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  848. dvidir=$ac_optarg ;;
  849. -enable-* | --enable-*)
  850. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  851. # Reject names that are not valid shell variable names.
  852. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  853. as_fn_error $? "invalid feature name: $ac_useropt"
  854. ac_useropt_orig=$ac_useropt
  855. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  856. case $ac_user_opts in
  857. *"
  858. "enable_$ac_useropt"
  859. "*) ;;
  860. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  861. ac_unrecognized_sep=', ';;
  862. esac
  863. eval enable_$ac_useropt=\$ac_optarg ;;
  864. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  865. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  866. | --exec | --exe | --ex)
  867. ac_prev=exec_prefix ;;
  868. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  869. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  870. | --exec=* | --exe=* | --ex=*)
  871. exec_prefix=$ac_optarg ;;
  872. -gas | --gas | --ga | --g)
  873. # Obsolete; use --with-gas.
  874. with_gas=yes ;;
  875. -help | --help | --hel | --he | -h)
  876. ac_init_help=long ;;
  877. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  878. ac_init_help=recursive ;;
  879. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  880. ac_init_help=short ;;
  881. -host | --host | --hos | --ho)
  882. ac_prev=host_alias ;;
  883. -host=* | --host=* | --hos=* | --ho=*)
  884. host_alias=$ac_optarg ;;
  885. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  886. ac_prev=htmldir ;;
  887. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  888. | --ht=*)
  889. htmldir=$ac_optarg ;;
  890. -includedir | --includedir | --includedi | --included | --include \
  891. | --includ | --inclu | --incl | --inc)
  892. ac_prev=includedir ;;
  893. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  894. | --includ=* | --inclu=* | --incl=* | --inc=*)
  895. includedir=$ac_optarg ;;
  896. -infodir | --infodir | --infodi | --infod | --info | --inf)
  897. ac_prev=infodir ;;
  898. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  899. infodir=$ac_optarg ;;
  900. -libdir | --libdir | --libdi | --libd)
  901. ac_prev=libdir ;;
  902. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  903. libdir=$ac_optarg ;;
  904. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  905. | --libexe | --libex | --libe)
  906. ac_prev=libexecdir ;;
  907. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  908. | --libexe=* | --libex=* | --libe=*)
  909. libexecdir=$ac_optarg ;;
  910. -localedir | --localedir | --localedi | --localed | --locale)
  911. ac_prev=localedir ;;
  912. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  913. localedir=$ac_optarg ;;
  914. -localstatedir | --localstatedir | --localstatedi | --localstated \
  915. | --localstate | --localstat | --localsta | --localst | --locals)
  916. ac_prev=localstatedir ;;
  917. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  918. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  919. localstatedir=$ac_optarg ;;
  920. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  921. ac_prev=mandir ;;
  922. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  923. mandir=$ac_optarg ;;
  924. -nfp | --nfp | --nf)
  925. # Obsolete; use --without-fp.
  926. with_fp=no ;;
  927. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  928. | --no-cr | --no-c | -n)
  929. no_create=yes ;;
  930. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  931. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  932. no_recursion=yes ;;
  933. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  934. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  935. | --oldin | --oldi | --old | --ol | --o)
  936. ac_prev=oldincludedir ;;
  937. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  938. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  939. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  940. oldincludedir=$ac_optarg ;;
  941. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  942. ac_prev=prefix ;;
  943. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  944. prefix=$ac_optarg ;;
  945. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  946. | --program-pre | --program-pr | --program-p)
  947. ac_prev=program_prefix ;;
  948. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  949. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  950. program_prefix=$ac_optarg ;;
  951. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  952. | --program-suf | --program-su | --program-s)
  953. ac_prev=program_suffix ;;
  954. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  955. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  956. program_suffix=$ac_optarg ;;
  957. -program-transform-name | --program-transform-name \
  958. | --program-transform-nam | --program-transform-na \
  959. | --program-transform-n | --program-transform- \
  960. | --program-transform | --program-transfor \
  961. | --program-transfo | --program-transf \
  962. | --program-trans | --program-tran \
  963. | --progr-tra | --program-tr | --program-t)
  964. ac_prev=program_transform_name ;;
  965. -program-transform-name=* | --program-transform-name=* \
  966. | --program-transform-nam=* | --program-transform-na=* \
  967. | --program-transform-n=* | --program-transform-=* \
  968. | --program-transform=* | --program-transfor=* \
  969. | --program-transfo=* | --program-transf=* \
  970. | --program-trans=* | --program-tran=* \
  971. | --progr-tra=* | --program-tr=* | --program-t=*)
  972. program_transform_name=$ac_optarg ;;
  973. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  974. ac_prev=pdfdir ;;
  975. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  976. pdfdir=$ac_optarg ;;
  977. -psdir | --psdir | --psdi | --psd | --ps)
  978. ac_prev=psdir ;;
  979. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  980. psdir=$ac_optarg ;;
  981. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  982. | -silent | --silent | --silen | --sile | --sil)
  983. silent=yes ;;
  984. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  985. ac_prev=sbindir ;;
  986. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  987. | --sbi=* | --sb=*)
  988. sbindir=$ac_optarg ;;
  989. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  990. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  991. | --sharedst | --shareds | --shared | --share | --shar \
  992. | --sha | --sh)
  993. ac_prev=sharedstatedir ;;
  994. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  995. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  996. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  997. | --sha=* | --sh=*)
  998. sharedstatedir=$ac_optarg ;;
  999. -site | --site | --sit)
  1000. ac_prev=site ;;
  1001. -site=* | --site=* | --sit=*)
  1002. site=$ac_optarg ;;
  1003. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1004. ac_prev=srcdir ;;
  1005. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1006. srcdir=$ac_optarg ;;
  1007. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1008. | --syscon | --sysco | --sysc | --sys | --sy)
  1009. ac_prev=sysconfdir ;;
  1010. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1011. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1012. sysconfdir=$ac_optarg ;;
  1013. -target | --target | --targe | --targ | --tar | --ta | --t)
  1014. ac_prev=target_alias ;;
  1015. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1016. target_alias=$ac_optarg ;;
  1017. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1018. verbose=yes ;;
  1019. -version | --version | --versio | --versi | --vers | -V)
  1020. ac_init_version=: ;;
  1021. -with-* | --with-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=\$ac_optarg ;;
  1036. -without-* | --without-*)
  1037. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1038. # Reject names that are not valid shell variable names.
  1039. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1040. as_fn_error $? "invalid package name: $ac_useropt"
  1041. ac_useropt_orig=$ac_useropt
  1042. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1043. case $ac_user_opts in
  1044. *"
  1045. "with_$ac_useropt"
  1046. "*) ;;
  1047. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1048. ac_unrecognized_sep=', ';;
  1049. esac
  1050. eval with_$ac_useropt=no ;;
  1051. --x)
  1052. # Obsolete; use --with-x.
  1053. with_x=yes ;;
  1054. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1055. | --x-incl | --x-inc | --x-in | --x-i)
  1056. ac_prev=x_includes ;;
  1057. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1058. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1059. x_includes=$ac_optarg ;;
  1060. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1061. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1062. ac_prev=x_libraries ;;
  1063. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1064. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1065. x_libraries=$ac_optarg ;;
  1066. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1067. Try \`$0 --help' for more information"
  1068. ;;
  1069. *=*)
  1070. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1071. # Reject names that are not valid shell variable names.
  1072. case $ac_envvar in #(
  1073. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1074. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1075. esac
  1076. eval $ac_envvar=\$ac_optarg
  1077. export $ac_envvar ;;
  1078. *)
  1079. # FIXME: should be removed in autoconf 3.0.
  1080. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1081. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1082. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1083. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1084. ;;
  1085. esac
  1086. done
  1087. if test -n "$ac_prev"; then
  1088. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1089. as_fn_error $? "missing argument to $ac_option"
  1090. fi
  1091. if test -n "$ac_unrecognized_opts"; then
  1092. case $enable_option_checking in
  1093. no) ;;
  1094. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1095. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1096. esac
  1097. fi
  1098. # Check all directory arguments for consistency.
  1099. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1100. datadir sysconfdir sharedstatedir localstatedir includedir \
  1101. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1102. libdir localedir mandir
  1103. do
  1104. eval ac_val=\$$ac_var
  1105. # Remove trailing slashes.
  1106. case $ac_val in
  1107. */ )
  1108. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1109. eval $ac_var=\$ac_val;;
  1110. esac
  1111. # Be sure to have absolute directory names.
  1112. case $ac_val in
  1113. [\\/$]* | ?:[\\/]* ) continue;;
  1114. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1115. esac
  1116. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1117. done
  1118. # There might be people who depend on the old broken behavior: `$host'
  1119. # used to hold the argument of --host etc.
  1120. # FIXME: To remove some day.
  1121. build=$build_alias
  1122. host=$host_alias
  1123. target=$target_alias
  1124. # FIXME: To remove some day.
  1125. if test "x$host_alias" != x; then
  1126. if test "x$build_alias" = x; then
  1127. cross_compiling=maybe
  1128. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1129. If a cross compiler is detected then cross compile mode will be used" >&2
  1130. elif test "x$build_alias" != "x$host_alias"; then
  1131. cross_compiling=yes
  1132. fi
  1133. fi
  1134. ac_tool_prefix=
  1135. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1136. test "$silent" = yes && exec 6>/dev/null
  1137. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1138. ac_ls_di=`ls -di .` &&
  1139. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1140. as_fn_error $? "working directory cannot be determined"
  1141. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1142. as_fn_error $? "pwd does not report name of working directory"
  1143. # Find the source files, if location was not specified.
  1144. if test -z "$srcdir"; then
  1145. ac_srcdir_defaulted=yes
  1146. # Try the directory containing this script, then the parent directory.
  1147. ac_confdir=`$as_dirname -- "$as_myself" ||
  1148. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1149. X"$as_myself" : 'X\(//\)[^/]' \| \
  1150. X"$as_myself" : 'X\(//\)$' \| \
  1151. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1152. $as_echo X"$as_myself" |
  1153. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\/\)[^/].*/{
  1158. s//\1/
  1159. q
  1160. }
  1161. /^X\(\/\/\)$/{
  1162. s//\1/
  1163. q
  1164. }
  1165. /^X\(\/\).*/{
  1166. s//\1/
  1167. q
  1168. }
  1169. s/.*/./; q'`
  1170. srcdir=$ac_confdir
  1171. if test ! -r "$srcdir/$ac_unique_file"; then
  1172. srcdir=..
  1173. fi
  1174. else
  1175. ac_srcdir_defaulted=no
  1176. fi
  1177. if test ! -r "$srcdir/$ac_unique_file"; then
  1178. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1179. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1180. fi
  1181. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1182. ac_abs_confdir=`(
  1183. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1184. pwd)`
  1185. # When building in place, set srcdir=.
  1186. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1187. srcdir=.
  1188. fi
  1189. # Remove unnecessary trailing slashes from srcdir.
  1190. # Double slashes in file names in object file debugging info
  1191. # mess up M-x gdb in Emacs.
  1192. case $srcdir in
  1193. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1194. esac
  1195. for ac_var in $ac_precious_vars; do
  1196. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1197. eval ac_env_${ac_var}_value=\$${ac_var}
  1198. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1199. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1200. done
  1201. #
  1202. # Report the --help message.
  1203. #
  1204. if test "$ac_init_help" = "long"; then
  1205. # Omit some internal or obsolete options to make the list less imposing.
  1206. # This message is too long to be a string in the A/UX 3.1 sh.
  1207. cat <<_ACEOF
  1208. \`configure' configures klish 1.5.3 to adapt to many kinds of systems.
  1209. Usage: $0 [OPTION]... [VAR=VALUE]...
  1210. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1211. VAR=VALUE. See below for descriptions of some of the useful variables.
  1212. Defaults for the options are specified in brackets.
  1213. Configuration:
  1214. -h, --help display this help and exit
  1215. --help=short display options specific to this package
  1216. --help=recursive display the short help of all the included packages
  1217. -V, --version display version information and exit
  1218. -q, --quiet, --silent do not print \`checking ...' messages
  1219. --cache-file=FILE cache test results in FILE [disabled]
  1220. -C, --config-cache alias for \`--cache-file=config.cache'
  1221. -n, --no-create do not create output files
  1222. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1223. Installation directories:
  1224. --prefix=PREFIX install architecture-independent files in PREFIX
  1225. [$ac_default_prefix]
  1226. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1227. [PREFIX]
  1228. By default, \`make install' will install all the files in
  1229. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1230. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1231. for instance \`--prefix=\$HOME'.
  1232. For better control, use the options below.
  1233. Fine tuning of the installation directories:
  1234. --bindir=DIR user executables [EPREFIX/bin]
  1235. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1236. --libexecdir=DIR program executables [EPREFIX/libexec]
  1237. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1238. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1239. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1240. --libdir=DIR object code libraries [EPREFIX/lib]
  1241. --includedir=DIR C header files [PREFIX/include]
  1242. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1243. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1244. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1245. --infodir=DIR info documentation [DATAROOTDIR/info]
  1246. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1247. --mandir=DIR man documentation [DATAROOTDIR/man]
  1248. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1249. --htmldir=DIR html documentation [DOCDIR]
  1250. --dvidir=DIR dvi documentation [DOCDIR]
  1251. --pdfdir=DIR pdf documentation [DOCDIR]
  1252. --psdir=DIR ps documentation [DOCDIR]
  1253. _ACEOF
  1254. cat <<\_ACEOF
  1255. Program names:
  1256. --program-prefix=PREFIX prepend PREFIX to installed program names
  1257. --program-suffix=SUFFIX append SUFFIX to installed program names
  1258. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1259. System types:
  1260. --build=BUILD configure for building on BUILD [guessed]
  1261. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1262. _ACEOF
  1263. fi
  1264. if test -n "$ac_init_help"; then
  1265. case $ac_init_help in
  1266. short | recursive ) echo "Configuration of klish 1.5.3:";;
  1267. esac
  1268. cat <<\_ACEOF
  1269. Optional Features:
  1270. --disable-option-checking ignore unrecognized --enable/--with options
  1271. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1272. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1273. --enable-shared[=PKGS] build shared libraries [default=yes]
  1274. --enable-static[=PKGS] build static libraries [default=yes]
  1275. --enable-fast-install[=PKGS]
  1276. optimize for fast installation [default=yes]
  1277. --disable-libtool-lock avoid locking (might break parallel builds)
  1278. --disable-dependency-tracking speeds up one-time build
  1279. --enable-dependency-tracking do not reject slow dependency extractors
  1280. --enable-debug Turn on debugging including asserts [default=no]
  1281. --enable-lubheap Replace standard memory libaries with lubheap
  1282. (EXPERIMENTAL) [default=no]
  1283. --enable-gpl Link with GPL licenced libraries [default=yes]
  1284. Optional Packages:
  1285. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1286. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1287. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1288. both]
  1289. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1290. --with-sysroot=DIR Search for dependent libraries within DIR
  1291. (or the compiler's sysroot if not specified).
  1292. --with-rt=DIR Use POSIX real time library distribution in DIR
  1293. --with-tcl=DIR Use TCL library distribution in DIR
  1294. Some influential environment variables:
  1295. CC C compiler command
  1296. CFLAGS C compiler flags
  1297. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1298. nonstandard directory <lib dir>
  1299. LIBS libraries to pass to the linker, e.g. -l<library>
  1300. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1301. you have headers in a nonstandard directory <include dir>
  1302. CPP C preprocessor
  1303. CXX C++ compiler command
  1304. CXXFLAGS C++ compiler flags
  1305. CXXCPP C++ preprocessor
  1306. Use these variables to override the choices made by `configure' or to help
  1307. it to find libraries and programs with nonstandard names/locations.
  1308. Report bugs to <serj.kalichev at gmail dot com>.
  1309. _ACEOF
  1310. ac_status=$?
  1311. fi
  1312. if test "$ac_init_help" = "recursive"; then
  1313. # If there are subdirs, report their specific --help.
  1314. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1315. test -d "$ac_dir" ||
  1316. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1317. continue
  1318. ac_builddir=.
  1319. case "$ac_dir" in
  1320. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1321. *)
  1322. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1323. # A ".." for each directory in $ac_dir_suffix.
  1324. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1325. case $ac_top_builddir_sub in
  1326. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1327. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1328. esac ;;
  1329. esac
  1330. ac_abs_top_builddir=$ac_pwd
  1331. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1332. # for backward compatibility:
  1333. ac_top_builddir=$ac_top_build_prefix
  1334. case $srcdir in
  1335. .) # We are building in place.
  1336. ac_srcdir=.
  1337. ac_top_srcdir=$ac_top_builddir_sub
  1338. ac_abs_top_srcdir=$ac_pwd ;;
  1339. [\\/]* | ?:[\\/]* ) # Absolute name.
  1340. ac_srcdir=$srcdir$ac_dir_suffix;
  1341. ac_top_srcdir=$srcdir
  1342. ac_abs_top_srcdir=$srcdir ;;
  1343. *) # Relative name.
  1344. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1345. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1346. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1347. esac
  1348. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1349. cd "$ac_dir" || { ac_status=$?; continue; }
  1350. # Check for guested configure.
  1351. if test -f "$ac_srcdir/configure.gnu"; then
  1352. echo &&
  1353. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1354. elif test -f "$ac_srcdir/configure"; then
  1355. echo &&
  1356. $SHELL "$ac_srcdir/configure" --help=recursive
  1357. else
  1358. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1359. fi || ac_status=$?
  1360. cd "$ac_pwd" || { ac_status=$?; break; }
  1361. done
  1362. fi
  1363. test -n "$ac_init_help" && exit $ac_status
  1364. if $ac_init_version; then
  1365. cat <<\_ACEOF
  1366. klish configure 1.5.3
  1367. generated by GNU Autoconf 2.68
  1368. Copyright (C) 2010 Free Software Foundation, Inc.
  1369. This configure script is free software; the Free Software Foundation
  1370. gives unlimited permission to copy, distribute and modify it.
  1371. _ACEOF
  1372. exit
  1373. fi
  1374. ## ------------------------ ##
  1375. ## Autoconf initialization. ##
  1376. ## ------------------------ ##
  1377. # ac_fn_c_try_compile LINENO
  1378. # --------------------------
  1379. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1380. ac_fn_c_try_compile ()
  1381. {
  1382. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1383. rm -f conftest.$ac_objext
  1384. if { { ac_try="$ac_compile"
  1385. case "(($ac_try" in
  1386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1387. *) ac_try_echo=$ac_try;;
  1388. esac
  1389. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1390. $as_echo "$ac_try_echo"; } >&5
  1391. (eval "$ac_compile") 2>conftest.err
  1392. ac_status=$?
  1393. if test -s conftest.err; then
  1394. grep -v '^ *+' conftest.err >conftest.er1
  1395. cat conftest.er1 >&5
  1396. mv -f conftest.er1 conftest.err
  1397. fi
  1398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1399. test $ac_status = 0; } && {
  1400. test -z "$ac_c_werror_flag" ||
  1401. test ! -s conftest.err
  1402. } && test -s conftest.$ac_objext; then :
  1403. ac_retval=0
  1404. else
  1405. $as_echo "$as_me: failed program was:" >&5
  1406. sed 's/^/| /' conftest.$ac_ext >&5
  1407. ac_retval=1
  1408. fi
  1409. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1410. as_fn_set_status $ac_retval
  1411. } # ac_fn_c_try_compile
  1412. # ac_fn_c_try_cpp LINENO
  1413. # ----------------------
  1414. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1415. ac_fn_c_try_cpp ()
  1416. {
  1417. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1418. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1419. case "(($ac_try" in
  1420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1421. *) ac_try_echo=$ac_try;;
  1422. esac
  1423. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1424. $as_echo "$ac_try_echo"; } >&5
  1425. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1426. ac_status=$?
  1427. if test -s conftest.err; then
  1428. grep -v '^ *+' conftest.err >conftest.er1
  1429. cat conftest.er1 >&5
  1430. mv -f conftest.er1 conftest.err
  1431. fi
  1432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1433. test $ac_status = 0; } > conftest.i && {
  1434. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1435. test ! -s conftest.err
  1436. }; then :
  1437. ac_retval=0
  1438. else
  1439. $as_echo "$as_me: failed program was:" >&5
  1440. sed 's/^/| /' conftest.$ac_ext >&5
  1441. ac_retval=1
  1442. fi
  1443. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1444. as_fn_set_status $ac_retval
  1445. } # ac_fn_c_try_cpp
  1446. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1447. # -------------------------------------------------------
  1448. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1449. # the include files in INCLUDES and setting the cache variable VAR
  1450. # accordingly.
  1451. ac_fn_c_check_header_mongrel ()
  1452. {
  1453. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1454. if eval \${$3+:} false; then :
  1455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1456. $as_echo_n "checking for $2... " >&6; }
  1457. if eval \${$3+:} false; then :
  1458. $as_echo_n "(cached) " >&6
  1459. fi
  1460. eval ac_res=\$$3
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1462. $as_echo "$ac_res" >&6; }
  1463. else
  1464. # Is the header compilable?
  1465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1466. $as_echo_n "checking $2 usability... " >&6; }
  1467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1468. /* end confdefs.h. */
  1469. $4
  1470. #include <$2>
  1471. _ACEOF
  1472. if ac_fn_c_try_compile "$LINENO"; then :
  1473. ac_header_compiler=yes
  1474. else
  1475. ac_header_compiler=no
  1476. fi
  1477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1479. $as_echo "$ac_header_compiler" >&6; }
  1480. # Is the header present?
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1482. $as_echo_n "checking $2 presence... " >&6; }
  1483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1484. /* end confdefs.h. */
  1485. #include <$2>
  1486. _ACEOF
  1487. if ac_fn_c_try_cpp "$LINENO"; then :
  1488. ac_header_preproc=yes
  1489. else
  1490. ac_header_preproc=no
  1491. fi
  1492. rm -f conftest.err conftest.i conftest.$ac_ext
  1493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1494. $as_echo "$ac_header_preproc" >&6; }
  1495. # So? What about this header?
  1496. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1497. yes:no: )
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1499. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1501. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1502. ;;
  1503. no:yes:* )
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1505. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1507. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1509. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1511. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1513. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1514. ( $as_echo "## --------------------------------------------- ##
  1515. ## Report this to serj.kalichev at gmail dot com ##
  1516. ## --------------------------------------------- ##"
  1517. ) | sed "s/^/$as_me: WARNING: /" >&2
  1518. ;;
  1519. esac
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1521. $as_echo_n "checking for $2... " >&6; }
  1522. if eval \${$3+:} false; then :
  1523. $as_echo_n "(cached) " >&6
  1524. else
  1525. eval "$3=\$ac_header_compiler"
  1526. fi
  1527. eval ac_res=\$$3
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1529. $as_echo "$ac_res" >&6; }
  1530. fi
  1531. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1532. } # ac_fn_c_check_header_mongrel
  1533. # ac_fn_c_try_run LINENO
  1534. # ----------------------
  1535. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1536. # that executables *can* be run.
  1537. ac_fn_c_try_run ()
  1538. {
  1539. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1540. if { { ac_try="$ac_link"
  1541. case "(($ac_try" in
  1542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1543. *) ac_try_echo=$ac_try;;
  1544. esac
  1545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1546. $as_echo "$ac_try_echo"; } >&5
  1547. (eval "$ac_link") 2>&5
  1548. ac_status=$?
  1549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1550. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1551. { { case "(($ac_try" in
  1552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1553. *) ac_try_echo=$ac_try;;
  1554. esac
  1555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1556. $as_echo "$ac_try_echo"; } >&5
  1557. (eval "$ac_try") 2>&5
  1558. ac_status=$?
  1559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1560. test $ac_status = 0; }; }; then :
  1561. ac_retval=0
  1562. else
  1563. $as_echo "$as_me: program exited with status $ac_status" >&5
  1564. $as_echo "$as_me: failed program was:" >&5
  1565. sed 's/^/| /' conftest.$ac_ext >&5
  1566. ac_retval=$ac_status
  1567. fi
  1568. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1569. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1570. as_fn_set_status $ac_retval
  1571. } # ac_fn_c_try_run
  1572. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1573. # -------------------------------------------------------
  1574. # Tests whether HEADER exists and can be compiled using the include files in
  1575. # INCLUDES, setting the cache variable VAR accordingly.
  1576. ac_fn_c_check_header_compile ()
  1577. {
  1578. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1580. $as_echo_n "checking for $2... " >&6; }
  1581. if eval \${$3+:} false; then :
  1582. $as_echo_n "(cached) " >&6
  1583. else
  1584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1585. /* end confdefs.h. */
  1586. $4
  1587. #include <$2>
  1588. _ACEOF
  1589. if ac_fn_c_try_compile "$LINENO"; then :
  1590. eval "$3=yes"
  1591. else
  1592. eval "$3=no"
  1593. fi
  1594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1595. fi
  1596. eval ac_res=\$$3
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1598. $as_echo "$ac_res" >&6; }
  1599. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1600. } # ac_fn_c_check_header_compile
  1601. # ac_fn_cxx_try_compile LINENO
  1602. # ----------------------------
  1603. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1604. ac_fn_cxx_try_compile ()
  1605. {
  1606. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1607. rm -f conftest.$ac_objext
  1608. if { { ac_try="$ac_compile"
  1609. case "(($ac_try" in
  1610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1611. *) ac_try_echo=$ac_try;;
  1612. esac
  1613. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1614. $as_echo "$ac_try_echo"; } >&5
  1615. (eval "$ac_compile") 2>conftest.err
  1616. ac_status=$?
  1617. if test -s conftest.err; then
  1618. grep -v '^ *+' conftest.err >conftest.er1
  1619. cat conftest.er1 >&5
  1620. mv -f conftest.er1 conftest.err
  1621. fi
  1622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1623. test $ac_status = 0; } && {
  1624. test -z "$ac_cxx_werror_flag" ||
  1625. test ! -s conftest.err
  1626. } && test -s conftest.$ac_objext; then :
  1627. ac_retval=0
  1628. else
  1629. $as_echo "$as_me: failed program was:" >&5
  1630. sed 's/^/| /' conftest.$ac_ext >&5
  1631. ac_retval=1
  1632. fi
  1633. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1634. as_fn_set_status $ac_retval
  1635. } # ac_fn_cxx_try_compile
  1636. # ac_fn_c_try_link LINENO
  1637. # -----------------------
  1638. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1639. ac_fn_c_try_link ()
  1640. {
  1641. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1642. rm -f conftest.$ac_objext conftest$ac_exeext
  1643. if { { ac_try="$ac_link"
  1644. case "(($ac_try" in
  1645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1646. *) ac_try_echo=$ac_try;;
  1647. esac
  1648. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1649. $as_echo "$ac_try_echo"; } >&5
  1650. (eval "$ac_link") 2>conftest.err
  1651. ac_status=$?
  1652. if test -s conftest.err; then
  1653. grep -v '^ *+' conftest.err >conftest.er1
  1654. cat conftest.er1 >&5
  1655. mv -f conftest.er1 conftest.err
  1656. fi
  1657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1658. test $ac_status = 0; } && {
  1659. test -z "$ac_c_werror_flag" ||
  1660. test ! -s conftest.err
  1661. } && test -s conftest$ac_exeext && {
  1662. test "$cross_compiling" = yes ||
  1663. $as_test_x conftest$ac_exeext
  1664. }; then :
  1665. ac_retval=0
  1666. else
  1667. $as_echo "$as_me: failed program was:" >&5
  1668. sed 's/^/| /' conftest.$ac_ext >&5
  1669. ac_retval=1
  1670. fi
  1671. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1672. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1673. # interfere with the next link command; also delete a directory that is
  1674. # left behind by Apple's compiler. We do this before executing the actions.
  1675. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1676. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1677. as_fn_set_status $ac_retval
  1678. } # ac_fn_c_try_link
  1679. # ac_fn_c_check_func LINENO FUNC VAR
  1680. # ----------------------------------
  1681. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1682. ac_fn_c_check_func ()
  1683. {
  1684. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1686. $as_echo_n "checking for $2... " >&6; }
  1687. if eval \${$3+:} false; then :
  1688. $as_echo_n "(cached) " >&6
  1689. else
  1690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1691. /* end confdefs.h. */
  1692. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1693. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1694. #define $2 innocuous_$2
  1695. /* System header to define __stub macros and hopefully few prototypes,
  1696. which can conflict with char $2 (); below.
  1697. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1698. <limits.h> exists even on freestanding compilers. */
  1699. #ifdef __STDC__
  1700. # include <limits.h>
  1701. #else
  1702. # include <assert.h>
  1703. #endif
  1704. #undef $2
  1705. /* Override any GCC internal prototype to avoid an error.
  1706. Use char because int might match the return type of a GCC
  1707. builtin and then its argument prototype would still apply. */
  1708. #ifdef __cplusplus
  1709. extern "C"
  1710. #endif
  1711. char $2 ();
  1712. /* The GNU C library defines this for functions which it implements
  1713. to always fail with ENOSYS. Some functions are actually named
  1714. something starting with __ and the normal name is an alias. */
  1715. #if defined __stub_$2 || defined __stub___$2
  1716. choke me
  1717. #endif
  1718. int
  1719. main ()
  1720. {
  1721. return $2 ();
  1722. ;
  1723. return 0;
  1724. }
  1725. _ACEOF
  1726. if ac_fn_c_try_link "$LINENO"; then :
  1727. eval "$3=yes"
  1728. else
  1729. eval "$3=no"
  1730. fi
  1731. rm -f core conftest.err conftest.$ac_objext \
  1732. conftest$ac_exeext conftest.$ac_ext
  1733. fi
  1734. eval ac_res=\$$3
  1735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1736. $as_echo "$ac_res" >&6; }
  1737. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1738. } # ac_fn_c_check_func
  1739. # ac_fn_cxx_try_cpp LINENO
  1740. # ------------------------
  1741. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1742. ac_fn_cxx_try_cpp ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1746. case "(($ac_try" in
  1747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1748. *) ac_try_echo=$ac_try;;
  1749. esac
  1750. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1751. $as_echo "$ac_try_echo"; } >&5
  1752. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1753. ac_status=$?
  1754. if test -s conftest.err; then
  1755. grep -v '^ *+' conftest.err >conftest.er1
  1756. cat conftest.er1 >&5
  1757. mv -f conftest.er1 conftest.err
  1758. fi
  1759. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1760. test $ac_status = 0; } > conftest.i && {
  1761. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1762. test ! -s conftest.err
  1763. }; then :
  1764. ac_retval=0
  1765. else
  1766. $as_echo "$as_me: failed program was:" >&5
  1767. sed 's/^/| /' conftest.$ac_ext >&5
  1768. ac_retval=1
  1769. fi
  1770. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1771. as_fn_set_status $ac_retval
  1772. } # ac_fn_cxx_try_cpp
  1773. # ac_fn_cxx_try_link LINENO
  1774. # -------------------------
  1775. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1776. ac_fn_cxx_try_link ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. rm -f conftest.$ac_objext conftest$ac_exeext
  1780. if { { ac_try="$ac_link"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo"; } >&5
  1787. (eval "$ac_link") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } && {
  1796. test -z "$ac_cxx_werror_flag" ||
  1797. test ! -s conftest.err
  1798. } && test -s conftest$ac_exeext && {
  1799. test "$cross_compiling" = yes ||
  1800. $as_test_x conftest$ac_exeext
  1801. }; then :
  1802. ac_retval=0
  1803. else
  1804. $as_echo "$as_me: failed program was:" >&5
  1805. sed 's/^/| /' conftest.$ac_ext >&5
  1806. ac_retval=1
  1807. fi
  1808. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1809. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1810. # interfere with the next link command; also delete a directory that is
  1811. # left behind by Apple's compiler. We do this before executing the actions.
  1812. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1813. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1814. as_fn_set_status $ac_retval
  1815. } # ac_fn_cxx_try_link
  1816. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1817. # --------------------------------------------
  1818. # Tries to find the compile-time value of EXPR in a program that includes
  1819. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1820. # computed
  1821. ac_fn_c_compute_int ()
  1822. {
  1823. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1824. if test "$cross_compiling" = yes; then
  1825. # Depending upon the size, compute the lo and hi bounds.
  1826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1827. /* end confdefs.h. */
  1828. $4
  1829. int
  1830. main ()
  1831. {
  1832. static int test_array [1 - 2 * !(($2) >= 0)];
  1833. test_array [0] = 0
  1834. ;
  1835. return 0;
  1836. }
  1837. _ACEOF
  1838. if ac_fn_c_try_compile "$LINENO"; then :
  1839. ac_lo=0 ac_mid=0
  1840. while :; do
  1841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1842. /* end confdefs.h. */
  1843. $4
  1844. int
  1845. main ()
  1846. {
  1847. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1848. test_array [0] = 0
  1849. ;
  1850. return 0;
  1851. }
  1852. _ACEOF
  1853. if ac_fn_c_try_compile "$LINENO"; then :
  1854. ac_hi=$ac_mid; break
  1855. else
  1856. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1857. if test $ac_lo -le $ac_mid; then
  1858. ac_lo= ac_hi=
  1859. break
  1860. fi
  1861. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1862. fi
  1863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1864. done
  1865. else
  1866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1867. /* end confdefs.h. */
  1868. $4
  1869. int
  1870. main ()
  1871. {
  1872. static int test_array [1 - 2 * !(($2) < 0)];
  1873. test_array [0] = 0
  1874. ;
  1875. return 0;
  1876. }
  1877. _ACEOF
  1878. if ac_fn_c_try_compile "$LINENO"; then :
  1879. ac_hi=-1 ac_mid=-1
  1880. while :; do
  1881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1882. /* end confdefs.h. */
  1883. $4
  1884. int
  1885. main ()
  1886. {
  1887. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1888. test_array [0] = 0
  1889. ;
  1890. return 0;
  1891. }
  1892. _ACEOF
  1893. if ac_fn_c_try_compile "$LINENO"; then :
  1894. ac_lo=$ac_mid; break
  1895. else
  1896. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1897. if test $ac_mid -le $ac_hi; then
  1898. ac_lo= ac_hi=
  1899. break
  1900. fi
  1901. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1902. fi
  1903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1904. done
  1905. else
  1906. ac_lo= ac_hi=
  1907. fi
  1908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1909. fi
  1910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1911. # Binary search between lo and hi bounds.
  1912. while test "x$ac_lo" != "x$ac_hi"; do
  1913. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1915. /* end confdefs.h. */
  1916. $4
  1917. int
  1918. main ()
  1919. {
  1920. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1921. test_array [0] = 0
  1922. ;
  1923. return 0;
  1924. }
  1925. _ACEOF
  1926. if ac_fn_c_try_compile "$LINENO"; then :
  1927. ac_hi=$ac_mid
  1928. else
  1929. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1930. fi
  1931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1932. done
  1933. case $ac_lo in #((
  1934. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1935. '') ac_retval=1 ;;
  1936. esac
  1937. else
  1938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1939. /* end confdefs.h. */
  1940. $4
  1941. static long int longval () { return $2; }
  1942. static unsigned long int ulongval () { return $2; }
  1943. #include <stdio.h>
  1944. #include <stdlib.h>
  1945. int
  1946. main ()
  1947. {
  1948. FILE *f = fopen ("conftest.val", "w");
  1949. if (! f)
  1950. return 1;
  1951. if (($2) < 0)
  1952. {
  1953. long int i = longval ();
  1954. if (i != ($2))
  1955. return 1;
  1956. fprintf (f, "%ld", i);
  1957. }
  1958. else
  1959. {
  1960. unsigned long int i = ulongval ();
  1961. if (i != ($2))
  1962. return 1;
  1963. fprintf (f, "%lu", i);
  1964. }
  1965. /* Do not output a trailing newline, as this causes \r\n confusion
  1966. on some platforms. */
  1967. return ferror (f) || fclose (f) != 0;
  1968. ;
  1969. return 0;
  1970. }
  1971. _ACEOF
  1972. if ac_fn_c_try_run "$LINENO"; then :
  1973. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1974. else
  1975. ac_retval=1
  1976. fi
  1977. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1978. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1979. rm -f conftest.val
  1980. fi
  1981. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1982. as_fn_set_status $ac_retval
  1983. } # ac_fn_c_compute_int
  1984. cat >config.log <<_ACEOF
  1985. This file contains any messages produced by compilers while
  1986. running configure, to aid debugging if configure makes a mistake.
  1987. It was created by klish $as_me 1.5.3, which was
  1988. generated by GNU Autoconf 2.68. Invocation command line was
  1989. $ $0 $@
  1990. _ACEOF
  1991. exec 5>>config.log
  1992. {
  1993. cat <<_ASUNAME
  1994. ## --------- ##
  1995. ## Platform. ##
  1996. ## --------- ##
  1997. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1998. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1999. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2000. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2001. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2002. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2003. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2004. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2005. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2006. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2007. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2008. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2009. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2010. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2011. _ASUNAME
  2012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2013. for as_dir in $PATH
  2014. do
  2015. IFS=$as_save_IFS
  2016. test -z "$as_dir" && as_dir=.
  2017. $as_echo "PATH: $as_dir"
  2018. done
  2019. IFS=$as_save_IFS
  2020. } >&5
  2021. cat >&5 <<_ACEOF
  2022. ## ----------- ##
  2023. ## Core tests. ##
  2024. ## ----------- ##
  2025. _ACEOF
  2026. # Keep a trace of the command line.
  2027. # Strip out --no-create and --no-recursion so they do not pile up.
  2028. # Strip out --silent because we don't want to record it for future runs.
  2029. # Also quote any args containing shell meta-characters.
  2030. # Make two passes to allow for proper duplicate-argument suppression.
  2031. ac_configure_args=
  2032. ac_configure_args0=
  2033. ac_configure_args1=
  2034. ac_must_keep_next=false
  2035. for ac_pass in 1 2
  2036. do
  2037. for ac_arg
  2038. do
  2039. case $ac_arg in
  2040. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2041. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2042. | -silent | --silent | --silen | --sile | --sil)
  2043. continue ;;
  2044. *\'*)
  2045. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2046. esac
  2047. case $ac_pass in
  2048. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2049. 2)
  2050. as_fn_append ac_configure_args1 " '$ac_arg'"
  2051. if test $ac_must_keep_next = true; then
  2052. ac_must_keep_next=false # Got value, back to normal.
  2053. else
  2054. case $ac_arg in
  2055. *=* | --config-cache | -C | -disable-* | --disable-* \
  2056. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2057. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2058. | -with-* | --with-* | -without-* | --without-* | --x)
  2059. case "$ac_configure_args0 " in
  2060. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2061. esac
  2062. ;;
  2063. -* ) ac_must_keep_next=true ;;
  2064. esac
  2065. fi
  2066. as_fn_append ac_configure_args " '$ac_arg'"
  2067. ;;
  2068. esac
  2069. done
  2070. done
  2071. { ac_configure_args0=; unset ac_configure_args0;}
  2072. { ac_configure_args1=; unset ac_configure_args1;}
  2073. # When interrupted or exit'd, cleanup temporary files, and complete
  2074. # config.log. We remove comments because anyway the quotes in there
  2075. # would cause problems or look ugly.
  2076. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2077. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2078. trap 'exit_status=$?
  2079. # Save into config.log some information that might help in debugging.
  2080. {
  2081. echo
  2082. $as_echo "## ---------------- ##
  2083. ## Cache variables. ##
  2084. ## ---------------- ##"
  2085. echo
  2086. # The following way of writing the cache mishandles newlines in values,
  2087. (
  2088. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2089. eval ac_val=\$$ac_var
  2090. case $ac_val in #(
  2091. *${as_nl}*)
  2092. case $ac_var in #(
  2093. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2094. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2095. esac
  2096. case $ac_var in #(
  2097. _ | IFS | as_nl) ;; #(
  2098. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2099. *) { eval $ac_var=; unset $ac_var;} ;;
  2100. esac ;;
  2101. esac
  2102. done
  2103. (set) 2>&1 |
  2104. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2105. *${as_nl}ac_space=\ *)
  2106. sed -n \
  2107. "s/'\''/'\''\\\\'\'''\''/g;
  2108. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2109. ;; #(
  2110. *)
  2111. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2112. ;;
  2113. esac |
  2114. sort
  2115. )
  2116. echo
  2117. $as_echo "## ----------------- ##
  2118. ## Output variables. ##
  2119. ## ----------------- ##"
  2120. echo
  2121. for ac_var in $ac_subst_vars
  2122. do
  2123. eval ac_val=\$$ac_var
  2124. case $ac_val in
  2125. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2126. esac
  2127. $as_echo "$ac_var='\''$ac_val'\''"
  2128. done | sort
  2129. echo
  2130. if test -n "$ac_subst_files"; then
  2131. $as_echo "## ------------------- ##
  2132. ## File substitutions. ##
  2133. ## ------------------- ##"
  2134. echo
  2135. for ac_var in $ac_subst_files
  2136. do
  2137. eval ac_val=\$$ac_var
  2138. case $ac_val in
  2139. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2140. esac
  2141. $as_echo "$ac_var='\''$ac_val'\''"
  2142. done | sort
  2143. echo
  2144. fi
  2145. if test -s confdefs.h; then
  2146. $as_echo "## ----------- ##
  2147. ## confdefs.h. ##
  2148. ## ----------- ##"
  2149. echo
  2150. cat confdefs.h
  2151. echo
  2152. fi
  2153. test "$ac_signal" != 0 &&
  2154. $as_echo "$as_me: caught signal $ac_signal"
  2155. $as_echo "$as_me: exit $exit_status"
  2156. } >&5
  2157. rm -f core *.core core.conftest.* &&
  2158. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2159. exit $exit_status
  2160. ' 0
  2161. for ac_signal in 1 2 13 15; do
  2162. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2163. done
  2164. ac_signal=0
  2165. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2166. rm -f -r conftest* confdefs.h
  2167. $as_echo "/* confdefs.h */" > confdefs.h
  2168. # Predefined preprocessor variables.
  2169. cat >>confdefs.h <<_ACEOF
  2170. #define PACKAGE_NAME "$PACKAGE_NAME"
  2171. _ACEOF
  2172. cat >>confdefs.h <<_ACEOF
  2173. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2174. _ACEOF
  2175. cat >>confdefs.h <<_ACEOF
  2176. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2177. _ACEOF
  2178. cat >>confdefs.h <<_ACEOF
  2179. #define PACKAGE_STRING "$PACKAGE_STRING"
  2180. _ACEOF
  2181. cat >>confdefs.h <<_ACEOF
  2182. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2183. _ACEOF
  2184. cat >>confdefs.h <<_ACEOF
  2185. #define PACKAGE_URL "$PACKAGE_URL"
  2186. _ACEOF
  2187. # Let the site file select an alternate cache file if it wants to.
  2188. # Prefer an explicitly selected file to automatically selected ones.
  2189. ac_site_file1=NONE
  2190. ac_site_file2=NONE
  2191. if test -n "$CONFIG_SITE"; then
  2192. # We do not want a PATH search for config.site.
  2193. case $CONFIG_SITE in #((
  2194. -*) ac_site_file1=./$CONFIG_SITE;;
  2195. */*) ac_site_file1=$CONFIG_SITE;;
  2196. *) ac_site_file1=./$CONFIG_SITE;;
  2197. esac
  2198. elif test "x$prefix" != xNONE; then
  2199. ac_site_file1=$prefix/share/config.site
  2200. ac_site_file2=$prefix/etc/config.site
  2201. else
  2202. ac_site_file1=$ac_default_prefix/share/config.site
  2203. ac_site_file2=$ac_default_prefix/etc/config.site
  2204. fi
  2205. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2206. do
  2207. test "x$ac_site_file" = xNONE && continue
  2208. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2210. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2211. sed 's/^/| /' "$ac_site_file" >&5
  2212. . "$ac_site_file" \
  2213. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2214. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2215. as_fn_error $? "failed to load site script $ac_site_file
  2216. See \`config.log' for more details" "$LINENO" 5; }
  2217. fi
  2218. done
  2219. if test -r "$cache_file"; then
  2220. # Some versions of bash will fail to source /dev/null (special files
  2221. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2222. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2224. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2225. case $cache_file in
  2226. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2227. *) . "./$cache_file";;
  2228. esac
  2229. fi
  2230. else
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2232. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2233. >$cache_file
  2234. fi
  2235. # Check that the precious variables saved in the cache have kept the same
  2236. # value.
  2237. ac_cache_corrupted=false
  2238. for ac_var in $ac_precious_vars; do
  2239. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2240. eval ac_new_set=\$ac_env_${ac_var}_set
  2241. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2242. eval ac_new_val=\$ac_env_${ac_var}_value
  2243. case $ac_old_set,$ac_new_set in
  2244. set,)
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2246. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2247. ac_cache_corrupted=: ;;
  2248. ,set)
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2250. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2251. ac_cache_corrupted=: ;;
  2252. ,);;
  2253. *)
  2254. if test "x$ac_old_val" != "x$ac_new_val"; then
  2255. # differences in whitespace do not lead to failure.
  2256. ac_old_val_w=`echo x $ac_old_val`
  2257. ac_new_val_w=`echo x $ac_new_val`
  2258. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2260. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2261. ac_cache_corrupted=:
  2262. else
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2264. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2265. eval $ac_var=\$ac_old_val
  2266. fi
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2268. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2270. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2271. fi;;
  2272. esac
  2273. # Pass precious variables to config.status.
  2274. if test "$ac_new_set" = set; then
  2275. case $ac_new_val in
  2276. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2277. *) ac_arg=$ac_var=$ac_new_val ;;
  2278. esac
  2279. case " $ac_configure_args " in
  2280. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2281. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2282. esac
  2283. fi
  2284. done
  2285. if $ac_cache_corrupted; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2289. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2290. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2291. fi
  2292. ## -------------------- ##
  2293. ## Main body of script. ##
  2294. ## -------------------- ##
  2295. ac_ext=c
  2296. ac_cpp='$CPP $CPPFLAGS'
  2297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2300. ac_aux_dir=
  2301. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2302. if test -f "$ac_dir/install-sh"; then
  2303. ac_aux_dir=$ac_dir
  2304. ac_install_sh="$ac_aux_dir/install-sh -c"
  2305. break
  2306. elif 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/shtool"; then
  2311. ac_aux_dir=$ac_dir
  2312. ac_install_sh="$ac_aux_dir/shtool install -c"
  2313. break
  2314. fi
  2315. done
  2316. if test -z "$ac_aux_dir"; then
  2317. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2318. fi
  2319. # These three variables are undocumented and unsupported,
  2320. # and are intended to be withdrawn in a future Autoconf release.
  2321. # They can cause serious problems if a builder's source tree is in a directory
  2322. # whose full name contains unusual characters.
  2323. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2324. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2325. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2326. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2327. ac_ext=c
  2328. ac_cpp='$CPP $CPPFLAGS'
  2329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2332. if test -n "$ac_tool_prefix"; then
  2333. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2334. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2336. $as_echo_n "checking for $ac_word... " >&6; }
  2337. if ${ac_cv_prog_CC+:} false; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. if test -n "$CC"; then
  2341. ac_cv_prog_CC="$CC" # Let the user override the test.
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. fi
  2358. fi
  2359. CC=$ac_cv_prog_CC
  2360. if test -n "$CC"; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2362. $as_echo "$CC" >&6; }
  2363. else
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2365. $as_echo "no" >&6; }
  2366. fi
  2367. fi
  2368. if test -z "$ac_cv_prog_CC"; then
  2369. ac_ct_CC=$CC
  2370. # Extract the first word of "gcc", so it can be a program name with args.
  2371. set dummy gcc; ac_word=$2
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2373. $as_echo_n "checking for $ac_word... " >&6; }
  2374. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2375. $as_echo_n "(cached) " >&6
  2376. else
  2377. if test -n "$ac_ct_CC"; then
  2378. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2379. else
  2380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2381. for as_dir in $PATH
  2382. do
  2383. IFS=$as_save_IFS
  2384. test -z "$as_dir" && as_dir=.
  2385. for ac_exec_ext in '' $ac_executable_extensions; do
  2386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2387. ac_cv_prog_ac_ct_CC="gcc"
  2388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2389. break 2
  2390. fi
  2391. done
  2392. done
  2393. IFS=$as_save_IFS
  2394. fi
  2395. fi
  2396. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2397. if test -n "$ac_ct_CC"; then
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2399. $as_echo "$ac_ct_CC" >&6; }
  2400. else
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2402. $as_echo "no" >&6; }
  2403. fi
  2404. if test "x$ac_ct_CC" = x; then
  2405. CC=""
  2406. else
  2407. case $cross_compiling:$ac_tool_warned in
  2408. yes:)
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2410. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2411. ac_tool_warned=yes ;;
  2412. esac
  2413. CC=$ac_ct_CC
  2414. fi
  2415. else
  2416. CC="$ac_cv_prog_CC"
  2417. fi
  2418. if test -z "$CC"; then
  2419. if test -n "$ac_tool_prefix"; then
  2420. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2421. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2423. $as_echo_n "checking for $ac_word... " >&6; }
  2424. if ${ac_cv_prog_CC+:} false; then :
  2425. $as_echo_n "(cached) " >&6
  2426. else
  2427. if test -n "$CC"; then
  2428. ac_cv_prog_CC="$CC" # Let the user override the test.
  2429. else
  2430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2431. for as_dir in $PATH
  2432. do
  2433. IFS=$as_save_IFS
  2434. test -z "$as_dir" && as_dir=.
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2437. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2439. break 2
  2440. fi
  2441. done
  2442. done
  2443. IFS=$as_save_IFS
  2444. fi
  2445. fi
  2446. CC=$ac_cv_prog_CC
  2447. if test -n "$CC"; then
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2449. $as_echo "$CC" >&6; }
  2450. else
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2452. $as_echo "no" >&6; }
  2453. fi
  2454. fi
  2455. fi
  2456. if test -z "$CC"; then
  2457. # Extract the first word of "cc", so it can be a program name with args.
  2458. set dummy cc; ac_word=$2
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2460. $as_echo_n "checking for $ac_word... " >&6; }
  2461. if ${ac_cv_prog_CC+:} false; then :
  2462. $as_echo_n "(cached) " >&6
  2463. else
  2464. if test -n "$CC"; then
  2465. ac_cv_prog_CC="$CC" # Let the user override the test.
  2466. else
  2467. ac_prog_rejected=no
  2468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2469. for as_dir in $PATH
  2470. do
  2471. IFS=$as_save_IFS
  2472. test -z "$as_dir" && as_dir=.
  2473. for ac_exec_ext in '' $ac_executable_extensions; do
  2474. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2475. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2476. ac_prog_rejected=yes
  2477. continue
  2478. fi
  2479. ac_cv_prog_CC="cc"
  2480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2481. break 2
  2482. fi
  2483. done
  2484. done
  2485. IFS=$as_save_IFS
  2486. if test $ac_prog_rejected = yes; then
  2487. # We found a bogon in the path, so make sure we never use it.
  2488. set dummy $ac_cv_prog_CC
  2489. shift
  2490. if test $# != 0; then
  2491. # We chose a different compiler from the bogus one.
  2492. # However, it has the same basename, so the bogon will be chosen
  2493. # first if we set CC to just the basename; use the full file name.
  2494. shift
  2495. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2496. fi
  2497. fi
  2498. fi
  2499. fi
  2500. CC=$ac_cv_prog_CC
  2501. if test -n "$CC"; then
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2503. $as_echo "$CC" >&6; }
  2504. else
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2506. $as_echo "no" >&6; }
  2507. fi
  2508. fi
  2509. if test -z "$CC"; then
  2510. if test -n "$ac_tool_prefix"; then
  2511. for ac_prog in cl.exe
  2512. do
  2513. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2514. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2516. $as_echo_n "checking for $ac_word... " >&6; }
  2517. if ${ac_cv_prog_CC+:} false; then :
  2518. $as_echo_n "(cached) " >&6
  2519. else
  2520. if test -n "$CC"; then
  2521. ac_cv_prog_CC="$CC" # Let the user override the test.
  2522. else
  2523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2524. for as_dir in $PATH
  2525. do
  2526. IFS=$as_save_IFS
  2527. test -z "$as_dir" && as_dir=.
  2528. for ac_exec_ext in '' $ac_executable_extensions; do
  2529. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2530. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2532. break 2
  2533. fi
  2534. done
  2535. done
  2536. IFS=$as_save_IFS
  2537. fi
  2538. fi
  2539. CC=$ac_cv_prog_CC
  2540. if test -n "$CC"; then
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2542. $as_echo "$CC" >&6; }
  2543. else
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2545. $as_echo "no" >&6; }
  2546. fi
  2547. test -n "$CC" && break
  2548. done
  2549. fi
  2550. if test -z "$CC"; then
  2551. ac_ct_CC=$CC
  2552. for ac_prog in cl.exe
  2553. do
  2554. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2555. set dummy $ac_prog; ac_word=$2
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2557. $as_echo_n "checking for $ac_word... " >&6; }
  2558. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2559. $as_echo_n "(cached) " >&6
  2560. else
  2561. if test -n "$ac_ct_CC"; then
  2562. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2563. else
  2564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2565. for as_dir in $PATH
  2566. do
  2567. IFS=$as_save_IFS
  2568. test -z "$as_dir" && as_dir=.
  2569. for ac_exec_ext in '' $ac_executable_extensions; do
  2570. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2571. ac_cv_prog_ac_ct_CC="$ac_prog"
  2572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2573. break 2
  2574. fi
  2575. done
  2576. done
  2577. IFS=$as_save_IFS
  2578. fi
  2579. fi
  2580. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2581. if test -n "$ac_ct_CC"; then
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2583. $as_echo "$ac_ct_CC" >&6; }
  2584. else
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2586. $as_echo "no" >&6; }
  2587. fi
  2588. test -n "$ac_ct_CC" && break
  2589. done
  2590. if test "x$ac_ct_CC" = x; then
  2591. CC=""
  2592. else
  2593. case $cross_compiling:$ac_tool_warned in
  2594. yes:)
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2596. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2597. ac_tool_warned=yes ;;
  2598. esac
  2599. CC=$ac_ct_CC
  2600. fi
  2601. fi
  2602. fi
  2603. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2604. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2605. as_fn_error $? "no acceptable C compiler found in \$PATH
  2606. See \`config.log' for more details" "$LINENO" 5; }
  2607. # Provide some information about the compiler.
  2608. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2609. set X $ac_compile
  2610. ac_compiler=$2
  2611. for ac_option in --version -v -V -qversion; do
  2612. { { ac_try="$ac_compiler $ac_option >&5"
  2613. case "(($ac_try" in
  2614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2615. *) ac_try_echo=$ac_try;;
  2616. esac
  2617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2618. $as_echo "$ac_try_echo"; } >&5
  2619. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2620. ac_status=$?
  2621. if test -s conftest.err; then
  2622. sed '10a\
  2623. ... rest of stderr output deleted ...
  2624. 10q' conftest.err >conftest.er1
  2625. cat conftest.er1 >&5
  2626. fi
  2627. rm -f conftest.er1 conftest.err
  2628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2629. test $ac_status = 0; }
  2630. done
  2631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2632. /* end confdefs.h. */
  2633. int
  2634. main ()
  2635. {
  2636. ;
  2637. return 0;
  2638. }
  2639. _ACEOF
  2640. ac_clean_files_save=$ac_clean_files
  2641. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2642. # Try to create an executable without -o first, disregard a.out.
  2643. # It will help us diagnose broken compilers, and finding out an intuition
  2644. # of exeext.
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2646. $as_echo_n "checking whether the C compiler works... " >&6; }
  2647. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2648. # The possible output files:
  2649. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2650. ac_rmfiles=
  2651. for ac_file in $ac_files
  2652. do
  2653. case $ac_file in
  2654. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2655. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2656. esac
  2657. done
  2658. rm -f $ac_rmfiles
  2659. if { { ac_try="$ac_link_default"
  2660. case "(($ac_try" in
  2661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2662. *) ac_try_echo=$ac_try;;
  2663. esac
  2664. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2665. $as_echo "$ac_try_echo"; } >&5
  2666. (eval "$ac_link_default") 2>&5
  2667. ac_status=$?
  2668. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2669. test $ac_status = 0; }; then :
  2670. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2671. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2672. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2673. # so that the user can short-circuit this test for compilers unknown to
  2674. # Autoconf.
  2675. for ac_file in $ac_files ''
  2676. do
  2677. test -f "$ac_file" || continue
  2678. case $ac_file in
  2679. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2680. ;;
  2681. [ab].out )
  2682. # We found the default executable, but exeext='' is most
  2683. # certainly right.
  2684. break;;
  2685. *.* )
  2686. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2687. then :; else
  2688. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2689. fi
  2690. # We set ac_cv_exeext here because the later test for it is not
  2691. # safe: cross compilers may not add the suffix if given an `-o'
  2692. # argument, so we may need to know it at that point already.
  2693. # Even if this section looks crufty: it has the advantage of
  2694. # actually working.
  2695. break;;
  2696. * )
  2697. break;;
  2698. esac
  2699. done
  2700. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2701. else
  2702. ac_file=''
  2703. fi
  2704. if test -z "$ac_file"; then :
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2706. $as_echo "no" >&6; }
  2707. $as_echo "$as_me: failed program was:" >&5
  2708. sed 's/^/| /' conftest.$ac_ext >&5
  2709. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2710. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2711. as_fn_error 77 "C compiler cannot create executables
  2712. See \`config.log' for more details" "$LINENO" 5; }
  2713. else
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2715. $as_echo "yes" >&6; }
  2716. fi
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2718. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2720. $as_echo "$ac_file" >&6; }
  2721. ac_exeext=$ac_cv_exeext
  2722. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2723. ac_clean_files=$ac_clean_files_save
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2725. $as_echo_n "checking for suffix of executables... " >&6; }
  2726. if { { ac_try="$ac_link"
  2727. case "(($ac_try" in
  2728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2729. *) ac_try_echo=$ac_try;;
  2730. esac
  2731. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2732. $as_echo "$ac_try_echo"; } >&5
  2733. (eval "$ac_link") 2>&5
  2734. ac_status=$?
  2735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2736. test $ac_status = 0; }; then :
  2737. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2738. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2739. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2740. # `rm'.
  2741. for ac_file in conftest.exe conftest conftest.*; do
  2742. test -f "$ac_file" || continue
  2743. case $ac_file in
  2744. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2745. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2746. break;;
  2747. * ) break;;
  2748. esac
  2749. done
  2750. else
  2751. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2752. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2753. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2754. See \`config.log' for more details" "$LINENO" 5; }
  2755. fi
  2756. rm -f conftest conftest$ac_cv_exeext
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2758. $as_echo "$ac_cv_exeext" >&6; }
  2759. rm -f conftest.$ac_ext
  2760. EXEEXT=$ac_cv_exeext
  2761. ac_exeext=$EXEEXT
  2762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2763. /* end confdefs.h. */
  2764. #include <stdio.h>
  2765. int
  2766. main ()
  2767. {
  2768. FILE *f = fopen ("conftest.out", "w");
  2769. return ferror (f) || fclose (f) != 0;
  2770. ;
  2771. return 0;
  2772. }
  2773. _ACEOF
  2774. ac_clean_files="$ac_clean_files conftest.out"
  2775. # Check that the compiler produces executables we can run. If not, either
  2776. # the compiler is broken, or we cross compile.
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2778. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2779. if test "$cross_compiling" != yes; then
  2780. { { ac_try="$ac_link"
  2781. case "(($ac_try" in
  2782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2783. *) ac_try_echo=$ac_try;;
  2784. esac
  2785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2786. $as_echo "$ac_try_echo"; } >&5
  2787. (eval "$ac_link") 2>&5
  2788. ac_status=$?
  2789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2790. test $ac_status = 0; }
  2791. if { ac_try='./conftest$ac_cv_exeext'
  2792. { { case "(($ac_try" in
  2793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2794. *) ac_try_echo=$ac_try;;
  2795. esac
  2796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2797. $as_echo "$ac_try_echo"; } >&5
  2798. (eval "$ac_try") 2>&5
  2799. ac_status=$?
  2800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2801. test $ac_status = 0; }; }; then
  2802. cross_compiling=no
  2803. else
  2804. if test "$cross_compiling" = maybe; then
  2805. cross_compiling=yes
  2806. else
  2807. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2808. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2809. as_fn_error $? "cannot run C compiled programs.
  2810. If you meant to cross compile, use \`--host'.
  2811. See \`config.log' for more details" "$LINENO" 5; }
  2812. fi
  2813. fi
  2814. fi
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2816. $as_echo "$cross_compiling" >&6; }
  2817. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2818. ac_clean_files=$ac_clean_files_save
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2820. $as_echo_n "checking for suffix of object files... " >&6; }
  2821. if ${ac_cv_objext+:} false; then :
  2822. $as_echo_n "(cached) " >&6
  2823. else
  2824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2825. /* end confdefs.h. */
  2826. int
  2827. main ()
  2828. {
  2829. ;
  2830. return 0;
  2831. }
  2832. _ACEOF
  2833. rm -f conftest.o conftest.obj
  2834. if { { ac_try="$ac_compile"
  2835. case "(($ac_try" in
  2836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2837. *) ac_try_echo=$ac_try;;
  2838. esac
  2839. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2840. $as_echo "$ac_try_echo"; } >&5
  2841. (eval "$ac_compile") 2>&5
  2842. ac_status=$?
  2843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2844. test $ac_status = 0; }; then :
  2845. for ac_file in conftest.o conftest.obj conftest.*; do
  2846. test -f "$ac_file" || continue;
  2847. case $ac_file in
  2848. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2849. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2850. break;;
  2851. esac
  2852. done
  2853. else
  2854. $as_echo "$as_me: failed program was:" >&5
  2855. sed 's/^/| /' conftest.$ac_ext >&5
  2856. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2859. See \`config.log' for more details" "$LINENO" 5; }
  2860. fi
  2861. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2862. fi
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2864. $as_echo "$ac_cv_objext" >&6; }
  2865. OBJEXT=$ac_cv_objext
  2866. ac_objext=$OBJEXT
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2868. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2869. if ${ac_cv_c_compiler_gnu+:} false; then :
  2870. $as_echo_n "(cached) " >&6
  2871. else
  2872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2873. /* end confdefs.h. */
  2874. int
  2875. main ()
  2876. {
  2877. #ifndef __GNUC__
  2878. choke me
  2879. #endif
  2880. ;
  2881. return 0;
  2882. }
  2883. _ACEOF
  2884. if ac_fn_c_try_compile "$LINENO"; then :
  2885. ac_compiler_gnu=yes
  2886. else
  2887. ac_compiler_gnu=no
  2888. fi
  2889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2890. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2891. fi
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2893. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2894. if test $ac_compiler_gnu = yes; then
  2895. GCC=yes
  2896. else
  2897. GCC=
  2898. fi
  2899. ac_test_CFLAGS=${CFLAGS+set}
  2900. ac_save_CFLAGS=$CFLAGS
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2902. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2903. if ${ac_cv_prog_cc_g+:} false; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. ac_save_c_werror_flag=$ac_c_werror_flag
  2907. ac_c_werror_flag=yes
  2908. ac_cv_prog_cc_g=no
  2909. CFLAGS="-g"
  2910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2911. /* end confdefs.h. */
  2912. int
  2913. main ()
  2914. {
  2915. ;
  2916. return 0;
  2917. }
  2918. _ACEOF
  2919. if ac_fn_c_try_compile "$LINENO"; then :
  2920. ac_cv_prog_cc_g=yes
  2921. else
  2922. CFLAGS=""
  2923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2924. /* end confdefs.h. */
  2925. int
  2926. main ()
  2927. {
  2928. ;
  2929. return 0;
  2930. }
  2931. _ACEOF
  2932. if ac_fn_c_try_compile "$LINENO"; then :
  2933. else
  2934. ac_c_werror_flag=$ac_save_c_werror_flag
  2935. CFLAGS="-g"
  2936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2937. /* end confdefs.h. */
  2938. int
  2939. main ()
  2940. {
  2941. ;
  2942. return 0;
  2943. }
  2944. _ACEOF
  2945. if ac_fn_c_try_compile "$LINENO"; then :
  2946. ac_cv_prog_cc_g=yes
  2947. fi
  2948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2949. fi
  2950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2951. fi
  2952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2953. ac_c_werror_flag=$ac_save_c_werror_flag
  2954. fi
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2956. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2957. if test "$ac_test_CFLAGS" = set; then
  2958. CFLAGS=$ac_save_CFLAGS
  2959. elif test $ac_cv_prog_cc_g = yes; then
  2960. if test "$GCC" = yes; then
  2961. CFLAGS="-g -O2"
  2962. else
  2963. CFLAGS="-g"
  2964. fi
  2965. else
  2966. if test "$GCC" = yes; then
  2967. CFLAGS="-O2"
  2968. else
  2969. CFLAGS=
  2970. fi
  2971. fi
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2973. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2974. if ${ac_cv_prog_cc_c89+:} false; then :
  2975. $as_echo_n "(cached) " >&6
  2976. else
  2977. ac_cv_prog_cc_c89=no
  2978. ac_save_CC=$CC
  2979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2980. /* end confdefs.h. */
  2981. #include <stdarg.h>
  2982. #include <stdio.h>
  2983. #include <sys/types.h>
  2984. #include <sys/stat.h>
  2985. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2986. struct buf { int x; };
  2987. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2988. static char *e (p, i)
  2989. char **p;
  2990. int i;
  2991. {
  2992. return p[i];
  2993. }
  2994. static char *f (char * (*g) (char **, int), char **p, ...)
  2995. {
  2996. char *s;
  2997. va_list v;
  2998. va_start (v,p);
  2999. s = g (p, va_arg (v,int));
  3000. va_end (v);
  3001. return s;
  3002. }
  3003. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3004. function prototypes and stuff, but not '\xHH' hex character constants.
  3005. These don't provoke an error unfortunately, instead are silently treated
  3006. as 'x'. The following induces an error, until -std is added to get
  3007. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3008. array size at least. It's necessary to write '\x00'==0 to get something
  3009. that's true only with -std. */
  3010. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3011. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3012. inside strings and character constants. */
  3013. #define FOO(x) 'x'
  3014. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3015. int test (int i, double x);
  3016. struct s1 {int (*f) (int a);};
  3017. struct s2 {int (*f) (double a);};
  3018. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3019. int argc;
  3020. char **argv;
  3021. int
  3022. main ()
  3023. {
  3024. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3025. ;
  3026. return 0;
  3027. }
  3028. _ACEOF
  3029. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3030. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3031. do
  3032. CC="$ac_save_CC $ac_arg"
  3033. if ac_fn_c_try_compile "$LINENO"; then :
  3034. ac_cv_prog_cc_c89=$ac_arg
  3035. fi
  3036. rm -f core conftest.err conftest.$ac_objext
  3037. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3038. done
  3039. rm -f conftest.$ac_ext
  3040. CC=$ac_save_CC
  3041. fi
  3042. # AC_CACHE_VAL
  3043. case "x$ac_cv_prog_cc_c89" in
  3044. x)
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3046. $as_echo "none needed" >&6; } ;;
  3047. xno)
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3049. $as_echo "unsupported" >&6; } ;;
  3050. *)
  3051. CC="$CC $ac_cv_prog_cc_c89"
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3053. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3054. esac
  3055. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3056. fi
  3057. ac_ext=c
  3058. ac_cpp='$CPP $CPPFLAGS'
  3059. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3060. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3061. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3062. ac_ext=c
  3063. ac_cpp='$CPP $CPPFLAGS'
  3064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3068. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3069. # On Suns, sometimes $CPP names a directory.
  3070. if test -n "$CPP" && test -d "$CPP"; then
  3071. CPP=
  3072. fi
  3073. if test -z "$CPP"; then
  3074. if ${ac_cv_prog_CPP+:} false; then :
  3075. $as_echo_n "(cached) " >&6
  3076. else
  3077. # Double quotes because CPP needs to be expanded
  3078. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3079. do
  3080. ac_preproc_ok=false
  3081. for ac_c_preproc_warn_flag in '' yes
  3082. do
  3083. # Use a header file that comes with gcc, so configuring glibc
  3084. # with a fresh cross-compiler works.
  3085. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3086. # <limits.h> exists even on freestanding compilers.
  3087. # On the NeXT, cc -E runs the code through the compiler's parser,
  3088. # not just through cpp. "Syntax error" is here to catch this case.
  3089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3090. /* end confdefs.h. */
  3091. #ifdef __STDC__
  3092. # include <limits.h>
  3093. #else
  3094. # include <assert.h>
  3095. #endif
  3096. Syntax error
  3097. _ACEOF
  3098. if ac_fn_c_try_cpp "$LINENO"; then :
  3099. else
  3100. # Broken: fails on valid input.
  3101. continue
  3102. fi
  3103. rm -f conftest.err conftest.i conftest.$ac_ext
  3104. # OK, works on sane cases. Now check whether nonexistent headers
  3105. # can be detected and how.
  3106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3107. /* end confdefs.h. */
  3108. #include <ac_nonexistent.h>
  3109. _ACEOF
  3110. if ac_fn_c_try_cpp "$LINENO"; then :
  3111. # Broken: success on invalid input.
  3112. continue
  3113. else
  3114. # Passes both tests.
  3115. ac_preproc_ok=:
  3116. break
  3117. fi
  3118. rm -f conftest.err conftest.i conftest.$ac_ext
  3119. done
  3120. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3121. rm -f conftest.i conftest.err conftest.$ac_ext
  3122. if $ac_preproc_ok; then :
  3123. break
  3124. fi
  3125. done
  3126. ac_cv_prog_CPP=$CPP
  3127. fi
  3128. CPP=$ac_cv_prog_CPP
  3129. else
  3130. ac_cv_prog_CPP=$CPP
  3131. fi
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3133. $as_echo "$CPP" >&6; }
  3134. ac_preproc_ok=false
  3135. for ac_c_preproc_warn_flag in '' yes
  3136. do
  3137. # Use a header file that comes with gcc, so configuring glibc
  3138. # with a fresh cross-compiler works.
  3139. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3140. # <limits.h> exists even on freestanding compilers.
  3141. # On the NeXT, cc -E runs the code through the compiler's parser,
  3142. # not just through cpp. "Syntax error" is here to catch this case.
  3143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3144. /* end confdefs.h. */
  3145. #ifdef __STDC__
  3146. # include <limits.h>
  3147. #else
  3148. # include <assert.h>
  3149. #endif
  3150. Syntax error
  3151. _ACEOF
  3152. if ac_fn_c_try_cpp "$LINENO"; then :
  3153. else
  3154. # Broken: fails on valid input.
  3155. continue
  3156. fi
  3157. rm -f conftest.err conftest.i conftest.$ac_ext
  3158. # OK, works on sane cases. Now check whether nonexistent headers
  3159. # can be detected and how.
  3160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3161. /* end confdefs.h. */
  3162. #include <ac_nonexistent.h>
  3163. _ACEOF
  3164. if ac_fn_c_try_cpp "$LINENO"; then :
  3165. # Broken: success on invalid input.
  3166. continue
  3167. else
  3168. # Passes both tests.
  3169. ac_preproc_ok=:
  3170. break
  3171. fi
  3172. rm -f conftest.err conftest.i conftest.$ac_ext
  3173. done
  3174. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3175. rm -f conftest.i conftest.err conftest.$ac_ext
  3176. if $ac_preproc_ok; then :
  3177. else
  3178. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3179. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3180. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3181. See \`config.log' for more details" "$LINENO" 5; }
  3182. fi
  3183. ac_ext=c
  3184. ac_cpp='$CPP $CPPFLAGS'
  3185. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3186. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3187. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3189. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3190. if ${ac_cv_path_GREP+:} false; then :
  3191. $as_echo_n "(cached) " >&6
  3192. else
  3193. if test -z "$GREP"; then
  3194. ac_path_GREP_found=false
  3195. # Loop through the user's path and test for each of PROGNAME-LIST
  3196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3197. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3198. do
  3199. IFS=$as_save_IFS
  3200. test -z "$as_dir" && as_dir=.
  3201. for ac_prog in grep ggrep; do
  3202. for ac_exec_ext in '' $ac_executable_extensions; do
  3203. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3204. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3205. # Check for GNU ac_path_GREP and select it if it is found.
  3206. # Check for GNU $ac_path_GREP
  3207. case `"$ac_path_GREP" --version 2>&1` in
  3208. *GNU*)
  3209. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3210. *)
  3211. ac_count=0
  3212. $as_echo_n 0123456789 >"conftest.in"
  3213. while :
  3214. do
  3215. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3216. mv "conftest.tmp" "conftest.in"
  3217. cp "conftest.in" "conftest.nl"
  3218. $as_echo 'GREP' >> "conftest.nl"
  3219. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3220. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3221. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3222. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3223. # Best one so far, save it but keep looking for a better one
  3224. ac_cv_path_GREP="$ac_path_GREP"
  3225. ac_path_GREP_max=$ac_count
  3226. fi
  3227. # 10*(2^10) chars as input seems more than enough
  3228. test $ac_count -gt 10 && break
  3229. done
  3230. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3231. esac
  3232. $ac_path_GREP_found && break 3
  3233. done
  3234. done
  3235. done
  3236. IFS=$as_save_IFS
  3237. if test -z "$ac_cv_path_GREP"; then
  3238. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3239. fi
  3240. else
  3241. ac_cv_path_GREP=$GREP
  3242. fi
  3243. fi
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3245. $as_echo "$ac_cv_path_GREP" >&6; }
  3246. GREP="$ac_cv_path_GREP"
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3248. $as_echo_n "checking for egrep... " >&6; }
  3249. if ${ac_cv_path_EGREP+:} false; then :
  3250. $as_echo_n "(cached) " >&6
  3251. else
  3252. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3253. then ac_cv_path_EGREP="$GREP -E"
  3254. else
  3255. if test -z "$EGREP"; then
  3256. ac_path_EGREP_found=false
  3257. # Loop through the user's path and test for each of PROGNAME-LIST
  3258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3259. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3260. do
  3261. IFS=$as_save_IFS
  3262. test -z "$as_dir" && as_dir=.
  3263. for ac_prog in egrep; do
  3264. for ac_exec_ext in '' $ac_executable_extensions; do
  3265. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3266. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3267. # Check for GNU ac_path_EGREP and select it if it is found.
  3268. # Check for GNU $ac_path_EGREP
  3269. case `"$ac_path_EGREP" --version 2>&1` in
  3270. *GNU*)
  3271. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3272. *)
  3273. ac_count=0
  3274. $as_echo_n 0123456789 >"conftest.in"
  3275. while :
  3276. do
  3277. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3278. mv "conftest.tmp" "conftest.in"
  3279. cp "conftest.in" "conftest.nl"
  3280. $as_echo 'EGREP' >> "conftest.nl"
  3281. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3282. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3283. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3284. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3285. # Best one so far, save it but keep looking for a better one
  3286. ac_cv_path_EGREP="$ac_path_EGREP"
  3287. ac_path_EGREP_max=$ac_count
  3288. fi
  3289. # 10*(2^10) chars as input seems more than enough
  3290. test $ac_count -gt 10 && break
  3291. done
  3292. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3293. esac
  3294. $ac_path_EGREP_found && break 3
  3295. done
  3296. done
  3297. done
  3298. IFS=$as_save_IFS
  3299. if test -z "$ac_cv_path_EGREP"; then
  3300. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3301. fi
  3302. else
  3303. ac_cv_path_EGREP=$EGREP
  3304. fi
  3305. fi
  3306. fi
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3308. $as_echo "$ac_cv_path_EGREP" >&6; }
  3309. EGREP="$ac_cv_path_EGREP"
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3311. $as_echo_n "checking for ANSI C header files... " >&6; }
  3312. if ${ac_cv_header_stdc+:} false; then :
  3313. $as_echo_n "(cached) " >&6
  3314. else
  3315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3316. /* end confdefs.h. */
  3317. #include <stdlib.h>
  3318. #include <stdarg.h>
  3319. #include <string.h>
  3320. #include <float.h>
  3321. int
  3322. main ()
  3323. {
  3324. ;
  3325. return 0;
  3326. }
  3327. _ACEOF
  3328. if ac_fn_c_try_compile "$LINENO"; then :
  3329. ac_cv_header_stdc=yes
  3330. else
  3331. ac_cv_header_stdc=no
  3332. fi
  3333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3334. if test $ac_cv_header_stdc = yes; then
  3335. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3337. /* end confdefs.h. */
  3338. #include <string.h>
  3339. _ACEOF
  3340. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3341. $EGREP "memchr" >/dev/null 2>&1; then :
  3342. else
  3343. ac_cv_header_stdc=no
  3344. fi
  3345. rm -f conftest*
  3346. fi
  3347. if test $ac_cv_header_stdc = yes; then
  3348. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3350. /* end confdefs.h. */
  3351. #include <stdlib.h>
  3352. _ACEOF
  3353. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3354. $EGREP "free" >/dev/null 2>&1; then :
  3355. else
  3356. ac_cv_header_stdc=no
  3357. fi
  3358. rm -f conftest*
  3359. fi
  3360. if test $ac_cv_header_stdc = yes; then
  3361. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3362. if test "$cross_compiling" = yes; then :
  3363. :
  3364. else
  3365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3366. /* end confdefs.h. */
  3367. #include <ctype.h>
  3368. #include <stdlib.h>
  3369. #if ((' ' & 0x0FF) == 0x020)
  3370. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3371. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3372. #else
  3373. # define ISLOWER(c) \
  3374. (('a' <= (c) && (c) <= 'i') \
  3375. || ('j' <= (c) && (c) <= 'r') \
  3376. || ('s' <= (c) && (c) <= 'z'))
  3377. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3378. #endif
  3379. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3380. int
  3381. main ()
  3382. {
  3383. int i;
  3384. for (i = 0; i < 256; i++)
  3385. if (XOR (islower (i), ISLOWER (i))
  3386. || toupper (i) != TOUPPER (i))
  3387. return 2;
  3388. return 0;
  3389. }
  3390. _ACEOF
  3391. if ac_fn_c_try_run "$LINENO"; then :
  3392. else
  3393. ac_cv_header_stdc=no
  3394. fi
  3395. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3396. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3397. fi
  3398. fi
  3399. fi
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3401. $as_echo "$ac_cv_header_stdc" >&6; }
  3402. if test $ac_cv_header_stdc = yes; then
  3403. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3404. fi
  3405. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3406. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3407. inttypes.h stdint.h unistd.h
  3408. do :
  3409. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3410. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3411. "
  3412. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3413. cat >>confdefs.h <<_ACEOF
  3414. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3415. _ACEOF
  3416. fi
  3417. done
  3418. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3419. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3420. MINIX=yes
  3421. else
  3422. MINIX=
  3423. fi
  3424. if test "$MINIX" = yes; then
  3425. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3426. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3427. $as_echo "#define _MINIX 1" >>confdefs.h
  3428. fi
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3430. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3431. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3432. $as_echo_n "(cached) " >&6
  3433. else
  3434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3435. /* end confdefs.h. */
  3436. # define __EXTENSIONS__ 1
  3437. $ac_includes_default
  3438. int
  3439. main ()
  3440. {
  3441. ;
  3442. return 0;
  3443. }
  3444. _ACEOF
  3445. if ac_fn_c_try_compile "$LINENO"; then :
  3446. ac_cv_safe_to_define___extensions__=yes
  3447. else
  3448. ac_cv_safe_to_define___extensions__=no
  3449. fi
  3450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3451. fi
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3453. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3454. test $ac_cv_safe_to_define___extensions__ = yes &&
  3455. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3456. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3457. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3458. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3459. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3460. # Checks for programs.
  3461. ac_ext=c
  3462. ac_cpp='$CPP $CPPFLAGS'
  3463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3466. if test -n "$ac_tool_prefix"; then
  3467. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3468. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3470. $as_echo_n "checking for $ac_word... " >&6; }
  3471. if ${ac_cv_prog_CC+:} false; then :
  3472. $as_echo_n "(cached) " >&6
  3473. else
  3474. if test -n "$CC"; then
  3475. ac_cv_prog_CC="$CC" # Let the user override the test.
  3476. else
  3477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3478. for as_dir in $PATH
  3479. do
  3480. IFS=$as_save_IFS
  3481. test -z "$as_dir" && as_dir=.
  3482. for ac_exec_ext in '' $ac_executable_extensions; do
  3483. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3484. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3486. break 2
  3487. fi
  3488. done
  3489. done
  3490. IFS=$as_save_IFS
  3491. fi
  3492. fi
  3493. CC=$ac_cv_prog_CC
  3494. if test -n "$CC"; then
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3496. $as_echo "$CC" >&6; }
  3497. else
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3499. $as_echo "no" >&6; }
  3500. fi
  3501. fi
  3502. if test -z "$ac_cv_prog_CC"; then
  3503. ac_ct_CC=$CC
  3504. # Extract the first word of "gcc", so it can be a program name with args.
  3505. set dummy gcc; ac_word=$2
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3507. $as_echo_n "checking for $ac_word... " >&6; }
  3508. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3509. $as_echo_n "(cached) " >&6
  3510. else
  3511. if test -n "$ac_ct_CC"; then
  3512. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3513. else
  3514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3515. for as_dir in $PATH
  3516. do
  3517. IFS=$as_save_IFS
  3518. test -z "$as_dir" && as_dir=.
  3519. for ac_exec_ext in '' $ac_executable_extensions; do
  3520. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3521. ac_cv_prog_ac_ct_CC="gcc"
  3522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3523. break 2
  3524. fi
  3525. done
  3526. done
  3527. IFS=$as_save_IFS
  3528. fi
  3529. fi
  3530. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3531. if test -n "$ac_ct_CC"; then
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3533. $as_echo "$ac_ct_CC" >&6; }
  3534. else
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3536. $as_echo "no" >&6; }
  3537. fi
  3538. if test "x$ac_ct_CC" = x; then
  3539. CC=""
  3540. else
  3541. case $cross_compiling:$ac_tool_warned in
  3542. yes:)
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3545. ac_tool_warned=yes ;;
  3546. esac
  3547. CC=$ac_ct_CC
  3548. fi
  3549. else
  3550. CC="$ac_cv_prog_CC"
  3551. fi
  3552. if test -z "$CC"; then
  3553. if test -n "$ac_tool_prefix"; then
  3554. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3555. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3557. $as_echo_n "checking for $ac_word... " >&6; }
  3558. if ${ac_cv_prog_CC+:} false; then :
  3559. $as_echo_n "(cached) " >&6
  3560. else
  3561. if test -n "$CC"; then
  3562. ac_cv_prog_CC="$CC" # Let the user override the test.
  3563. else
  3564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3565. for as_dir in $PATH
  3566. do
  3567. IFS=$as_save_IFS
  3568. test -z "$as_dir" && as_dir=.
  3569. for ac_exec_ext in '' $ac_executable_extensions; do
  3570. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3571. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3573. break 2
  3574. fi
  3575. done
  3576. done
  3577. IFS=$as_save_IFS
  3578. fi
  3579. fi
  3580. CC=$ac_cv_prog_CC
  3581. if test -n "$CC"; then
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3583. $as_echo "$CC" >&6; }
  3584. else
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3586. $as_echo "no" >&6; }
  3587. fi
  3588. fi
  3589. fi
  3590. if test -z "$CC"; then
  3591. # Extract the first word of "cc", so it can be a program name with args.
  3592. set dummy cc; ac_word=$2
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3594. $as_echo_n "checking for $ac_word... " >&6; }
  3595. if ${ac_cv_prog_CC+:} false; then :
  3596. $as_echo_n "(cached) " >&6
  3597. else
  3598. if test -n "$CC"; then
  3599. ac_cv_prog_CC="$CC" # Let the user override the test.
  3600. else
  3601. ac_prog_rejected=no
  3602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3603. for as_dir in $PATH
  3604. do
  3605. IFS=$as_save_IFS
  3606. test -z "$as_dir" && as_dir=.
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3609. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3610. ac_prog_rejected=yes
  3611. continue
  3612. fi
  3613. ac_cv_prog_CC="cc"
  3614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3615. break 2
  3616. fi
  3617. done
  3618. done
  3619. IFS=$as_save_IFS
  3620. if test $ac_prog_rejected = yes; then
  3621. # We found a bogon in the path, so make sure we never use it.
  3622. set dummy $ac_cv_prog_CC
  3623. shift
  3624. if test $# != 0; then
  3625. # We chose a different compiler from the bogus one.
  3626. # However, it has the same basename, so the bogon will be chosen
  3627. # first if we set CC to just the basename; use the full file name.
  3628. shift
  3629. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3630. fi
  3631. fi
  3632. fi
  3633. fi
  3634. CC=$ac_cv_prog_CC
  3635. if test -n "$CC"; then
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3637. $as_echo "$CC" >&6; }
  3638. else
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3640. $as_echo "no" >&6; }
  3641. fi
  3642. fi
  3643. if test -z "$CC"; then
  3644. if test -n "$ac_tool_prefix"; then
  3645. for ac_prog in cl.exe
  3646. do
  3647. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3648. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3650. $as_echo_n "checking for $ac_word... " >&6; }
  3651. if ${ac_cv_prog_CC+:} false; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. if test -n "$CC"; then
  3655. ac_cv_prog_CC="$CC" # Let the user override the test.
  3656. else
  3657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3658. for as_dir in $PATH
  3659. do
  3660. IFS=$as_save_IFS
  3661. test -z "$as_dir" && as_dir=.
  3662. for ac_exec_ext in '' $ac_executable_extensions; do
  3663. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3664. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3666. break 2
  3667. fi
  3668. done
  3669. done
  3670. IFS=$as_save_IFS
  3671. fi
  3672. fi
  3673. CC=$ac_cv_prog_CC
  3674. if test -n "$CC"; then
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3676. $as_echo "$CC" >&6; }
  3677. else
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3679. $as_echo "no" >&6; }
  3680. fi
  3681. test -n "$CC" && break
  3682. done
  3683. fi
  3684. if test -z "$CC"; then
  3685. ac_ct_CC=$CC
  3686. for ac_prog in cl.exe
  3687. do
  3688. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3689. set dummy $ac_prog; ac_word=$2
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3691. $as_echo_n "checking for $ac_word... " >&6; }
  3692. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. if test -n "$ac_ct_CC"; then
  3696. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3697. else
  3698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3699. for as_dir in $PATH
  3700. do
  3701. IFS=$as_save_IFS
  3702. test -z "$as_dir" && as_dir=.
  3703. for ac_exec_ext in '' $ac_executable_extensions; do
  3704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3705. ac_cv_prog_ac_ct_CC="$ac_prog"
  3706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3707. break 2
  3708. fi
  3709. done
  3710. done
  3711. IFS=$as_save_IFS
  3712. fi
  3713. fi
  3714. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3715. if test -n "$ac_ct_CC"; then
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3717. $as_echo "$ac_ct_CC" >&6; }
  3718. else
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3720. $as_echo "no" >&6; }
  3721. fi
  3722. test -n "$ac_ct_CC" && break
  3723. done
  3724. if test "x$ac_ct_CC" = x; then
  3725. CC=""
  3726. else
  3727. case $cross_compiling:$ac_tool_warned in
  3728. yes:)
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3730. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3731. ac_tool_warned=yes ;;
  3732. esac
  3733. CC=$ac_ct_CC
  3734. fi
  3735. fi
  3736. fi
  3737. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3738. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3739. as_fn_error $? "no acceptable C compiler found in \$PATH
  3740. See \`config.log' for more details" "$LINENO" 5; }
  3741. # Provide some information about the compiler.
  3742. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3743. set X $ac_compile
  3744. ac_compiler=$2
  3745. for ac_option in --version -v -V -qversion; do
  3746. { { ac_try="$ac_compiler $ac_option >&5"
  3747. case "(($ac_try" in
  3748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3749. *) ac_try_echo=$ac_try;;
  3750. esac
  3751. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3752. $as_echo "$ac_try_echo"; } >&5
  3753. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3754. ac_status=$?
  3755. if test -s conftest.err; then
  3756. sed '10a\
  3757. ... rest of stderr output deleted ...
  3758. 10q' conftest.err >conftest.er1
  3759. cat conftest.er1 >&5
  3760. fi
  3761. rm -f conftest.er1 conftest.err
  3762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3763. test $ac_status = 0; }
  3764. done
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3766. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3767. if ${ac_cv_c_compiler_gnu+:} false; then :
  3768. $as_echo_n "(cached) " >&6
  3769. else
  3770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3771. /* end confdefs.h. */
  3772. int
  3773. main ()
  3774. {
  3775. #ifndef __GNUC__
  3776. choke me
  3777. #endif
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. if ac_fn_c_try_compile "$LINENO"; then :
  3783. ac_compiler_gnu=yes
  3784. else
  3785. ac_compiler_gnu=no
  3786. fi
  3787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3788. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3789. fi
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3791. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3792. if test $ac_compiler_gnu = yes; then
  3793. GCC=yes
  3794. else
  3795. GCC=
  3796. fi
  3797. ac_test_CFLAGS=${CFLAGS+set}
  3798. ac_save_CFLAGS=$CFLAGS
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3800. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3801. if ${ac_cv_prog_cc_g+:} false; then :
  3802. $as_echo_n "(cached) " >&6
  3803. else
  3804. ac_save_c_werror_flag=$ac_c_werror_flag
  3805. ac_c_werror_flag=yes
  3806. ac_cv_prog_cc_g=no
  3807. CFLAGS="-g"
  3808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3809. /* end confdefs.h. */
  3810. int
  3811. main ()
  3812. {
  3813. ;
  3814. return 0;
  3815. }
  3816. _ACEOF
  3817. if ac_fn_c_try_compile "$LINENO"; then :
  3818. ac_cv_prog_cc_g=yes
  3819. else
  3820. CFLAGS=""
  3821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3822. /* end confdefs.h. */
  3823. int
  3824. main ()
  3825. {
  3826. ;
  3827. return 0;
  3828. }
  3829. _ACEOF
  3830. if ac_fn_c_try_compile "$LINENO"; then :
  3831. else
  3832. ac_c_werror_flag=$ac_save_c_werror_flag
  3833. CFLAGS="-g"
  3834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3835. /* end confdefs.h. */
  3836. int
  3837. main ()
  3838. {
  3839. ;
  3840. return 0;
  3841. }
  3842. _ACEOF
  3843. if ac_fn_c_try_compile "$LINENO"; then :
  3844. ac_cv_prog_cc_g=yes
  3845. fi
  3846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3847. fi
  3848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3849. fi
  3850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3851. ac_c_werror_flag=$ac_save_c_werror_flag
  3852. fi
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3854. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3855. if test "$ac_test_CFLAGS" = set; then
  3856. CFLAGS=$ac_save_CFLAGS
  3857. elif test $ac_cv_prog_cc_g = yes; then
  3858. if test "$GCC" = yes; then
  3859. CFLAGS="-g -O2"
  3860. else
  3861. CFLAGS="-g"
  3862. fi
  3863. else
  3864. if test "$GCC" = yes; then
  3865. CFLAGS="-O2"
  3866. else
  3867. CFLAGS=
  3868. fi
  3869. fi
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3871. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3872. if ${ac_cv_prog_cc_c89+:} false; then :
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. ac_cv_prog_cc_c89=no
  3876. ac_save_CC=$CC
  3877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3878. /* end confdefs.h. */
  3879. #include <stdarg.h>
  3880. #include <stdio.h>
  3881. #include <sys/types.h>
  3882. #include <sys/stat.h>
  3883. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3884. struct buf { int x; };
  3885. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3886. static char *e (p, i)
  3887. char **p;
  3888. int i;
  3889. {
  3890. return p[i];
  3891. }
  3892. static char *f (char * (*g) (char **, int), char **p, ...)
  3893. {
  3894. char *s;
  3895. va_list v;
  3896. va_start (v,p);
  3897. s = g (p, va_arg (v,int));
  3898. va_end (v);
  3899. return s;
  3900. }
  3901. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3902. function prototypes and stuff, but not '\xHH' hex character constants.
  3903. These don't provoke an error unfortunately, instead are silently treated
  3904. as 'x'. The following induces an error, until -std is added to get
  3905. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3906. array size at least. It's necessary to write '\x00'==0 to get something
  3907. that's true only with -std. */
  3908. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3909. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3910. inside strings and character constants. */
  3911. #define FOO(x) 'x'
  3912. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3913. int test (int i, double x);
  3914. struct s1 {int (*f) (int a);};
  3915. struct s2 {int (*f) (double a);};
  3916. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3917. int argc;
  3918. char **argv;
  3919. int
  3920. main ()
  3921. {
  3922. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3923. ;
  3924. return 0;
  3925. }
  3926. _ACEOF
  3927. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3928. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3929. do
  3930. CC="$ac_save_CC $ac_arg"
  3931. if ac_fn_c_try_compile "$LINENO"; then :
  3932. ac_cv_prog_cc_c89=$ac_arg
  3933. fi
  3934. rm -f core conftest.err conftest.$ac_objext
  3935. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3936. done
  3937. rm -f conftest.$ac_ext
  3938. CC=$ac_save_CC
  3939. fi
  3940. # AC_CACHE_VAL
  3941. case "x$ac_cv_prog_cc_c89" in
  3942. x)
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3944. $as_echo "none needed" >&6; } ;;
  3945. xno)
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3947. $as_echo "unsupported" >&6; } ;;
  3948. *)
  3949. CC="$CC $ac_cv_prog_cc_c89"
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3951. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3952. esac
  3953. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3954. fi
  3955. ac_ext=c
  3956. ac_cpp='$CPP $CPPFLAGS'
  3957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3960. ac_ext=cpp
  3961. ac_cpp='$CXXCPP $CPPFLAGS'
  3962. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3963. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3964. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3965. if test -z "$CXX"; then
  3966. if test -n "$CCC"; then
  3967. CXX=$CCC
  3968. else
  3969. if test -n "$ac_tool_prefix"; then
  3970. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3971. do
  3972. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3973. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3975. $as_echo_n "checking for $ac_word... " >&6; }
  3976. if ${ac_cv_prog_CXX+:} false; then :
  3977. $as_echo_n "(cached) " >&6
  3978. else
  3979. if test -n "$CXX"; then
  3980. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3981. else
  3982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3983. for as_dir in $PATH
  3984. do
  3985. IFS=$as_save_IFS
  3986. test -z "$as_dir" && as_dir=.
  3987. for ac_exec_ext in '' $ac_executable_extensions; do
  3988. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3989. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3991. break 2
  3992. fi
  3993. done
  3994. done
  3995. IFS=$as_save_IFS
  3996. fi
  3997. fi
  3998. CXX=$ac_cv_prog_CXX
  3999. if test -n "$CXX"; then
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4001. $as_echo "$CXX" >&6; }
  4002. else
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4004. $as_echo "no" >&6; }
  4005. fi
  4006. test -n "$CXX" && break
  4007. done
  4008. fi
  4009. if test -z "$CXX"; then
  4010. ac_ct_CXX=$CXX
  4011. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4012. do
  4013. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4014. set dummy $ac_prog; ac_word=$2
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4016. $as_echo_n "checking for $ac_word... " >&6; }
  4017. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4018. $as_echo_n "(cached) " >&6
  4019. else
  4020. if test -n "$ac_ct_CXX"; then
  4021. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4022. else
  4023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4024. for as_dir in $PATH
  4025. do
  4026. IFS=$as_save_IFS
  4027. test -z "$as_dir" && as_dir=.
  4028. for ac_exec_ext in '' $ac_executable_extensions; do
  4029. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4030. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4032. break 2
  4033. fi
  4034. done
  4035. done
  4036. IFS=$as_save_IFS
  4037. fi
  4038. fi
  4039. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4040. if test -n "$ac_ct_CXX"; then
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4042. $as_echo "$ac_ct_CXX" >&6; }
  4043. else
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4045. $as_echo "no" >&6; }
  4046. fi
  4047. test -n "$ac_ct_CXX" && break
  4048. done
  4049. if test "x$ac_ct_CXX" = x; then
  4050. CXX="g++"
  4051. else
  4052. case $cross_compiling:$ac_tool_warned in
  4053. yes:)
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4055. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4056. ac_tool_warned=yes ;;
  4057. esac
  4058. CXX=$ac_ct_CXX
  4059. fi
  4060. fi
  4061. fi
  4062. fi
  4063. # Provide some information about the compiler.
  4064. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4065. set X $ac_compile
  4066. ac_compiler=$2
  4067. for ac_option in --version -v -V -qversion; do
  4068. { { ac_try="$ac_compiler $ac_option >&5"
  4069. case "(($ac_try" in
  4070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4071. *) ac_try_echo=$ac_try;;
  4072. esac
  4073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4074. $as_echo "$ac_try_echo"; } >&5
  4075. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4076. ac_status=$?
  4077. if test -s conftest.err; then
  4078. sed '10a\
  4079. ... rest of stderr output deleted ...
  4080. 10q' conftest.err >conftest.er1
  4081. cat conftest.er1 >&5
  4082. fi
  4083. rm -f conftest.er1 conftest.err
  4084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4085. test $ac_status = 0; }
  4086. done
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4088. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4089. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4090. $as_echo_n "(cached) " >&6
  4091. else
  4092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4093. /* end confdefs.h. */
  4094. int
  4095. main ()
  4096. {
  4097. #ifndef __GNUC__
  4098. choke me
  4099. #endif
  4100. ;
  4101. return 0;
  4102. }
  4103. _ACEOF
  4104. if ac_fn_cxx_try_compile "$LINENO"; then :
  4105. ac_compiler_gnu=yes
  4106. else
  4107. ac_compiler_gnu=no
  4108. fi
  4109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4110. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4111. fi
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4113. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4114. if test $ac_compiler_gnu = yes; then
  4115. GXX=yes
  4116. else
  4117. GXX=
  4118. fi
  4119. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4120. ac_save_CXXFLAGS=$CXXFLAGS
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4122. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4123. if ${ac_cv_prog_cxx_g+:} false; then :
  4124. $as_echo_n "(cached) " >&6
  4125. else
  4126. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4127. ac_cxx_werror_flag=yes
  4128. ac_cv_prog_cxx_g=no
  4129. CXXFLAGS="-g"
  4130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4131. /* end confdefs.h. */
  4132. int
  4133. main ()
  4134. {
  4135. ;
  4136. return 0;
  4137. }
  4138. _ACEOF
  4139. if ac_fn_cxx_try_compile "$LINENO"; then :
  4140. ac_cv_prog_cxx_g=yes
  4141. else
  4142. CXXFLAGS=""
  4143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4144. /* end confdefs.h. */
  4145. int
  4146. main ()
  4147. {
  4148. ;
  4149. return 0;
  4150. }
  4151. _ACEOF
  4152. if ac_fn_cxx_try_compile "$LINENO"; then :
  4153. else
  4154. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4155. CXXFLAGS="-g"
  4156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4157. /* end confdefs.h. */
  4158. int
  4159. main ()
  4160. {
  4161. ;
  4162. return 0;
  4163. }
  4164. _ACEOF
  4165. if ac_fn_cxx_try_compile "$LINENO"; then :
  4166. ac_cv_prog_cxx_g=yes
  4167. fi
  4168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4169. fi
  4170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4171. fi
  4172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4173. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4174. fi
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4176. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4177. if test "$ac_test_CXXFLAGS" = set; then
  4178. CXXFLAGS=$ac_save_CXXFLAGS
  4179. elif test $ac_cv_prog_cxx_g = yes; then
  4180. if test "$GXX" = yes; then
  4181. CXXFLAGS="-g -O2"
  4182. else
  4183. CXXFLAGS="-g"
  4184. fi
  4185. else
  4186. if test "$GXX" = yes; then
  4187. CXXFLAGS="-O2"
  4188. else
  4189. CXXFLAGS=
  4190. fi
  4191. fi
  4192. ac_ext=c
  4193. ac_cpp='$CPP $CPPFLAGS'
  4194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4197. # Make sure we can run config.sub.
  4198. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4199. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4201. $as_echo_n "checking build system type... " >&6; }
  4202. if ${ac_cv_build+:} false; then :
  4203. $as_echo_n "(cached) " >&6
  4204. else
  4205. ac_build_alias=$build_alias
  4206. test "x$ac_build_alias" = x &&
  4207. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4208. test "x$ac_build_alias" = x &&
  4209. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4210. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4211. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4212. fi
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4214. $as_echo "$ac_cv_build" >&6; }
  4215. case $ac_cv_build in
  4216. *-*-*) ;;
  4217. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4218. esac
  4219. build=$ac_cv_build
  4220. ac_save_IFS=$IFS; IFS='-'
  4221. set x $ac_cv_build
  4222. shift
  4223. build_cpu=$1
  4224. build_vendor=$2
  4225. shift; shift
  4226. # Remember, the first character of IFS is used to create $*,
  4227. # except with old shells:
  4228. build_os=$*
  4229. IFS=$ac_save_IFS
  4230. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4232. $as_echo_n "checking host system type... " >&6; }
  4233. if ${ac_cv_host+:} false; then :
  4234. $as_echo_n "(cached) " >&6
  4235. else
  4236. if test "x$host_alias" = x; then
  4237. ac_cv_host=$ac_cv_build
  4238. else
  4239. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4240. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4241. fi
  4242. fi
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4244. $as_echo "$ac_cv_host" >&6; }
  4245. case $ac_cv_host in
  4246. *-*-*) ;;
  4247. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4248. esac
  4249. host=$ac_cv_host
  4250. ac_save_IFS=$IFS; IFS='-'
  4251. set x $ac_cv_host
  4252. shift
  4253. host_cpu=$1
  4254. host_vendor=$2
  4255. shift; shift
  4256. # Remember, the first character of IFS is used to create $*,
  4257. # except with old shells:
  4258. host_os=$*
  4259. IFS=$ac_save_IFS
  4260. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4261. enable_win32_dll=yes
  4262. case $host in
  4263. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4264. if test -n "$ac_tool_prefix"; then
  4265. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4266. set dummy ${ac_tool_prefix}as; ac_word=$2
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4268. $as_echo_n "checking for $ac_word... " >&6; }
  4269. if ${ac_cv_prog_AS+:} false; then :
  4270. $as_echo_n "(cached) " >&6
  4271. else
  4272. if test -n "$AS"; then
  4273. ac_cv_prog_AS="$AS" # Let the user override the test.
  4274. else
  4275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4276. for as_dir in $PATH
  4277. do
  4278. IFS=$as_save_IFS
  4279. test -z "$as_dir" && as_dir=.
  4280. for ac_exec_ext in '' $ac_executable_extensions; do
  4281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4282. ac_cv_prog_AS="${ac_tool_prefix}as"
  4283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4284. break 2
  4285. fi
  4286. done
  4287. done
  4288. IFS=$as_save_IFS
  4289. fi
  4290. fi
  4291. AS=$ac_cv_prog_AS
  4292. if test -n "$AS"; then
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4294. $as_echo "$AS" >&6; }
  4295. else
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4297. $as_echo "no" >&6; }
  4298. fi
  4299. fi
  4300. if test -z "$ac_cv_prog_AS"; then
  4301. ac_ct_AS=$AS
  4302. # Extract the first word of "as", so it can be a program name with args.
  4303. set dummy as; ac_word=$2
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4305. $as_echo_n "checking for $ac_word... " >&6; }
  4306. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4307. $as_echo_n "(cached) " >&6
  4308. else
  4309. if test -n "$ac_ct_AS"; then
  4310. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4311. else
  4312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4313. for as_dir in $PATH
  4314. do
  4315. IFS=$as_save_IFS
  4316. test -z "$as_dir" && as_dir=.
  4317. for ac_exec_ext in '' $ac_executable_extensions; do
  4318. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4319. ac_cv_prog_ac_ct_AS="as"
  4320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4321. break 2
  4322. fi
  4323. done
  4324. done
  4325. IFS=$as_save_IFS
  4326. fi
  4327. fi
  4328. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4329. if test -n "$ac_ct_AS"; then
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4331. $as_echo "$ac_ct_AS" >&6; }
  4332. else
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4334. $as_echo "no" >&6; }
  4335. fi
  4336. if test "x$ac_ct_AS" = x; then
  4337. AS="false"
  4338. else
  4339. case $cross_compiling:$ac_tool_warned in
  4340. yes:)
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4342. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4343. ac_tool_warned=yes ;;
  4344. esac
  4345. AS=$ac_ct_AS
  4346. fi
  4347. else
  4348. AS="$ac_cv_prog_AS"
  4349. fi
  4350. if test -n "$ac_tool_prefix"; then
  4351. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4352. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4354. $as_echo_n "checking for $ac_word... " >&6; }
  4355. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4356. $as_echo_n "(cached) " >&6
  4357. else
  4358. if test -n "$DLLTOOL"; then
  4359. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4360. else
  4361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4362. for as_dir in $PATH
  4363. do
  4364. IFS=$as_save_IFS
  4365. test -z "$as_dir" && as_dir=.
  4366. for ac_exec_ext in '' $ac_executable_extensions; do
  4367. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4368. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4370. break 2
  4371. fi
  4372. done
  4373. done
  4374. IFS=$as_save_IFS
  4375. fi
  4376. fi
  4377. DLLTOOL=$ac_cv_prog_DLLTOOL
  4378. if test -n "$DLLTOOL"; then
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4380. $as_echo "$DLLTOOL" >&6; }
  4381. else
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4383. $as_echo "no" >&6; }
  4384. fi
  4385. fi
  4386. if test -z "$ac_cv_prog_DLLTOOL"; then
  4387. ac_ct_DLLTOOL=$DLLTOOL
  4388. # Extract the first word of "dlltool", so it can be a program name with args.
  4389. set dummy dlltool; ac_word=$2
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4391. $as_echo_n "checking for $ac_word... " >&6; }
  4392. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. if test -n "$ac_ct_DLLTOOL"; then
  4396. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4397. else
  4398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4399. for as_dir in $PATH
  4400. do
  4401. IFS=$as_save_IFS
  4402. test -z "$as_dir" && as_dir=.
  4403. for ac_exec_ext in '' $ac_executable_extensions; do
  4404. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4405. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4407. break 2
  4408. fi
  4409. done
  4410. done
  4411. IFS=$as_save_IFS
  4412. fi
  4413. fi
  4414. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4415. if test -n "$ac_ct_DLLTOOL"; then
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4417. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4418. else
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4420. $as_echo "no" >&6; }
  4421. fi
  4422. if test "x$ac_ct_DLLTOOL" = x; then
  4423. DLLTOOL="false"
  4424. else
  4425. case $cross_compiling:$ac_tool_warned in
  4426. yes:)
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4428. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4429. ac_tool_warned=yes ;;
  4430. esac
  4431. DLLTOOL=$ac_ct_DLLTOOL
  4432. fi
  4433. else
  4434. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4435. fi
  4436. if test -n "$ac_tool_prefix"; then
  4437. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4438. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4440. $as_echo_n "checking for $ac_word... " >&6; }
  4441. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4442. $as_echo_n "(cached) " >&6
  4443. else
  4444. if test -n "$OBJDUMP"; then
  4445. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4446. else
  4447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4448. for as_dir in $PATH
  4449. do
  4450. IFS=$as_save_IFS
  4451. test -z "$as_dir" && as_dir=.
  4452. for ac_exec_ext in '' $ac_executable_extensions; do
  4453. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4454. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4456. break 2
  4457. fi
  4458. done
  4459. done
  4460. IFS=$as_save_IFS
  4461. fi
  4462. fi
  4463. OBJDUMP=$ac_cv_prog_OBJDUMP
  4464. if test -n "$OBJDUMP"; then
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4466. $as_echo "$OBJDUMP" >&6; }
  4467. else
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4469. $as_echo "no" >&6; }
  4470. fi
  4471. fi
  4472. if test -z "$ac_cv_prog_OBJDUMP"; then
  4473. ac_ct_OBJDUMP=$OBJDUMP
  4474. # Extract the first word of "objdump", so it can be a program name with args.
  4475. set dummy objdump; ac_word=$2
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4477. $as_echo_n "checking for $ac_word... " >&6; }
  4478. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4479. $as_echo_n "(cached) " >&6
  4480. else
  4481. if test -n "$ac_ct_OBJDUMP"; then
  4482. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4483. else
  4484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4485. for as_dir in $PATH
  4486. do
  4487. IFS=$as_save_IFS
  4488. test -z "$as_dir" && as_dir=.
  4489. for ac_exec_ext in '' $ac_executable_extensions; do
  4490. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4491. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4493. break 2
  4494. fi
  4495. done
  4496. done
  4497. IFS=$as_save_IFS
  4498. fi
  4499. fi
  4500. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4501. if test -n "$ac_ct_OBJDUMP"; then
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4503. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4504. else
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4506. $as_echo "no" >&6; }
  4507. fi
  4508. if test "x$ac_ct_OBJDUMP" = x; then
  4509. OBJDUMP="false"
  4510. else
  4511. case $cross_compiling:$ac_tool_warned in
  4512. yes:)
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4514. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4515. ac_tool_warned=yes ;;
  4516. esac
  4517. OBJDUMP=$ac_ct_OBJDUMP
  4518. fi
  4519. else
  4520. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4521. fi
  4522. ;;
  4523. esac
  4524. test -z "$AS" && AS=as
  4525. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4526. test -z "$OBJDUMP" && OBJDUMP=objdump
  4527. case `pwd` in
  4528. *\ * | *\ *)
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4530. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4531. esac
  4532. macro_version='2.4.2'
  4533. macro_revision='1.3337'
  4534. ltmain="$ac_aux_dir/ltmain.sh"
  4535. # Backslashify metacharacters that are still active within
  4536. # double-quoted strings.
  4537. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4538. # Same as above, but do not quote variable references.
  4539. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4540. # Sed substitution to delay expansion of an escaped shell variable in a
  4541. # double_quote_subst'ed string.
  4542. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4543. # Sed substitution to delay expansion of an escaped single quote.
  4544. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4545. # Sed substitution to avoid accidental globbing in evaled expressions
  4546. no_glob_subst='s/\*/\\\*/g'
  4547. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4548. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4549. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4551. $as_echo_n "checking how to print strings... " >&6; }
  4552. # Test print first, because it will be a builtin if present.
  4553. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4554. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4555. ECHO='print -r --'
  4556. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4557. ECHO='printf %s\n'
  4558. else
  4559. # Use this function as a fallback that always works.
  4560. func_fallback_echo ()
  4561. {
  4562. eval 'cat <<_LTECHO_EOF
  4563. $1
  4564. _LTECHO_EOF'
  4565. }
  4566. ECHO='func_fallback_echo'
  4567. fi
  4568. # func_echo_all arg...
  4569. # Invoke $ECHO with all args, space-separated.
  4570. func_echo_all ()
  4571. {
  4572. $ECHO ""
  4573. }
  4574. case "$ECHO" in
  4575. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4576. $as_echo "printf" >&6; } ;;
  4577. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4578. $as_echo "print -r" >&6; } ;;
  4579. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4580. $as_echo "cat" >&6; } ;;
  4581. esac
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4583. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4584. if ${ac_cv_path_SED+:} false; then :
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4588. for ac_i in 1 2 3 4 5 6 7; do
  4589. ac_script="$ac_script$as_nl$ac_script"
  4590. done
  4591. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4592. { ac_script=; unset ac_script;}
  4593. if test -z "$SED"; then
  4594. ac_path_SED_found=false
  4595. # Loop through the user's path and test for each of PROGNAME-LIST
  4596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4597. for as_dir in $PATH
  4598. do
  4599. IFS=$as_save_IFS
  4600. test -z "$as_dir" && as_dir=.
  4601. for ac_prog in sed gsed; do
  4602. for ac_exec_ext in '' $ac_executable_extensions; do
  4603. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4604. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4605. # Check for GNU ac_path_SED and select it if it is found.
  4606. # Check for GNU $ac_path_SED
  4607. case `"$ac_path_SED" --version 2>&1` in
  4608. *GNU*)
  4609. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4610. *)
  4611. ac_count=0
  4612. $as_echo_n 0123456789 >"conftest.in"
  4613. while :
  4614. do
  4615. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4616. mv "conftest.tmp" "conftest.in"
  4617. cp "conftest.in" "conftest.nl"
  4618. $as_echo '' >> "conftest.nl"
  4619. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4620. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4621. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4622. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4623. # Best one so far, save it but keep looking for a better one
  4624. ac_cv_path_SED="$ac_path_SED"
  4625. ac_path_SED_max=$ac_count
  4626. fi
  4627. # 10*(2^10) chars as input seems more than enough
  4628. test $ac_count -gt 10 && break
  4629. done
  4630. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4631. esac
  4632. $ac_path_SED_found && break 3
  4633. done
  4634. done
  4635. done
  4636. IFS=$as_save_IFS
  4637. if test -z "$ac_cv_path_SED"; then
  4638. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4639. fi
  4640. else
  4641. ac_cv_path_SED=$SED
  4642. fi
  4643. fi
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4645. $as_echo "$ac_cv_path_SED" >&6; }
  4646. SED="$ac_cv_path_SED"
  4647. rm -f conftest.sed
  4648. test -z "$SED" && SED=sed
  4649. Xsed="$SED -e 1s/^X//"
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4651. $as_echo_n "checking for fgrep... " >&6; }
  4652. if ${ac_cv_path_FGREP+:} false; then :
  4653. $as_echo_n "(cached) " >&6
  4654. else
  4655. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4656. then ac_cv_path_FGREP="$GREP -F"
  4657. else
  4658. if test -z "$FGREP"; then
  4659. ac_path_FGREP_found=false
  4660. # Loop through the user's path and test for each of PROGNAME-LIST
  4661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4662. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4663. do
  4664. IFS=$as_save_IFS
  4665. test -z "$as_dir" && as_dir=.
  4666. for ac_prog in fgrep; do
  4667. for ac_exec_ext in '' $ac_executable_extensions; do
  4668. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4669. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4670. # Check for GNU ac_path_FGREP and select it if it is found.
  4671. # Check for GNU $ac_path_FGREP
  4672. case `"$ac_path_FGREP" --version 2>&1` in
  4673. *GNU*)
  4674. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4675. *)
  4676. ac_count=0
  4677. $as_echo_n 0123456789 >"conftest.in"
  4678. while :
  4679. do
  4680. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4681. mv "conftest.tmp" "conftest.in"
  4682. cp "conftest.in" "conftest.nl"
  4683. $as_echo 'FGREP' >> "conftest.nl"
  4684. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4685. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4686. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4687. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4688. # Best one so far, save it but keep looking for a better one
  4689. ac_cv_path_FGREP="$ac_path_FGREP"
  4690. ac_path_FGREP_max=$ac_count
  4691. fi
  4692. # 10*(2^10) chars as input seems more than enough
  4693. test $ac_count -gt 10 && break
  4694. done
  4695. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4696. esac
  4697. $ac_path_FGREP_found && break 3
  4698. done
  4699. done
  4700. done
  4701. IFS=$as_save_IFS
  4702. if test -z "$ac_cv_path_FGREP"; then
  4703. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4704. fi
  4705. else
  4706. ac_cv_path_FGREP=$FGREP
  4707. fi
  4708. fi
  4709. fi
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4711. $as_echo "$ac_cv_path_FGREP" >&6; }
  4712. FGREP="$ac_cv_path_FGREP"
  4713. test -z "$GREP" && GREP=grep
  4714. # Check whether --with-gnu-ld was given.
  4715. if test "${with_gnu_ld+set}" = set; then :
  4716. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4717. else
  4718. with_gnu_ld=no
  4719. fi
  4720. ac_prog=ld
  4721. if test "$GCC" = yes; then
  4722. # Check if gcc -print-prog-name=ld gives a path.
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4724. $as_echo_n "checking for ld used by $CC... " >&6; }
  4725. case $host in
  4726. *-*-mingw*)
  4727. # gcc leaves a trailing carriage return which upsets mingw
  4728. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4729. *)
  4730. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4731. esac
  4732. case $ac_prog in
  4733. # Accept absolute paths.
  4734. [\\/]* | ?:[\\/]*)
  4735. re_direlt='/[^/][^/]*/\.\./'
  4736. # Canonicalize the pathname of ld
  4737. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4738. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4739. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4740. done
  4741. test -z "$LD" && LD="$ac_prog"
  4742. ;;
  4743. "")
  4744. # If it fails, then pretend we aren't using GCC.
  4745. ac_prog=ld
  4746. ;;
  4747. *)
  4748. # If it is relative, then search for the first ld in PATH.
  4749. with_gnu_ld=unknown
  4750. ;;
  4751. esac
  4752. elif test "$with_gnu_ld" = yes; then
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4754. $as_echo_n "checking for GNU ld... " >&6; }
  4755. else
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4757. $as_echo_n "checking for non-GNU ld... " >&6; }
  4758. fi
  4759. if ${lt_cv_path_LD+:} false; then :
  4760. $as_echo_n "(cached) " >&6
  4761. else
  4762. if test -z "$LD"; then
  4763. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4764. for ac_dir in $PATH; do
  4765. IFS="$lt_save_ifs"
  4766. test -z "$ac_dir" && ac_dir=.
  4767. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4768. lt_cv_path_LD="$ac_dir/$ac_prog"
  4769. # Check to see if the program is GNU ld. I'd rather use --version,
  4770. # but apparently some variants of GNU ld only accept -v.
  4771. # Break only if it was the GNU/non-GNU ld that we prefer.
  4772. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4773. *GNU* | *'with BFD'*)
  4774. test "$with_gnu_ld" != no && break
  4775. ;;
  4776. *)
  4777. test "$with_gnu_ld" != yes && break
  4778. ;;
  4779. esac
  4780. fi
  4781. done
  4782. IFS="$lt_save_ifs"
  4783. else
  4784. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4785. fi
  4786. fi
  4787. LD="$lt_cv_path_LD"
  4788. if test -n "$LD"; then
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4790. $as_echo "$LD" >&6; }
  4791. else
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4793. $as_echo "no" >&6; }
  4794. fi
  4795. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4797. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4798. if ${lt_cv_prog_gnu_ld+:} false; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4802. case `$LD -v 2>&1 </dev/null` in
  4803. *GNU* | *'with BFD'*)
  4804. lt_cv_prog_gnu_ld=yes
  4805. ;;
  4806. *)
  4807. lt_cv_prog_gnu_ld=no
  4808. ;;
  4809. esac
  4810. fi
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4812. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4813. with_gnu_ld=$lt_cv_prog_gnu_ld
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4815. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4816. if ${lt_cv_path_NM+:} false; then :
  4817. $as_echo_n "(cached) " >&6
  4818. else
  4819. if test -n "$NM"; then
  4820. # Let the user override the test.
  4821. lt_cv_path_NM="$NM"
  4822. else
  4823. lt_nm_to_check="${ac_tool_prefix}nm"
  4824. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4825. lt_nm_to_check="$lt_nm_to_check nm"
  4826. fi
  4827. for lt_tmp_nm in $lt_nm_to_check; do
  4828. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4829. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4830. IFS="$lt_save_ifs"
  4831. test -z "$ac_dir" && ac_dir=.
  4832. tmp_nm="$ac_dir/$lt_tmp_nm"
  4833. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4834. # Check to see if the nm accepts a BSD-compat flag.
  4835. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4836. # nm: unknown option "B" ignored
  4837. # Tru64's nm complains that /dev/null is an invalid object file
  4838. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4839. */dev/null* | *'Invalid file or object type'*)
  4840. lt_cv_path_NM="$tmp_nm -B"
  4841. break
  4842. ;;
  4843. *)
  4844. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4845. */dev/null*)
  4846. lt_cv_path_NM="$tmp_nm -p"
  4847. break
  4848. ;;
  4849. *)
  4850. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4851. continue # so that we can try to find one that supports BSD flags
  4852. ;;
  4853. esac
  4854. ;;
  4855. esac
  4856. fi
  4857. done
  4858. IFS="$lt_save_ifs"
  4859. done
  4860. : ${lt_cv_path_NM=no}
  4861. fi
  4862. fi
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4864. $as_echo "$lt_cv_path_NM" >&6; }
  4865. if test "$lt_cv_path_NM" != "no"; then
  4866. NM="$lt_cv_path_NM"
  4867. else
  4868. # Didn't find any BSD compatible name lister, look for dumpbin.
  4869. if test -n "$DUMPBIN"; then :
  4870. # Let the user override the test.
  4871. else
  4872. if test -n "$ac_tool_prefix"; then
  4873. for ac_prog in dumpbin "link -dump"
  4874. do
  4875. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4876. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4878. $as_echo_n "checking for $ac_word... " >&6; }
  4879. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4880. $as_echo_n "(cached) " >&6
  4881. else
  4882. if test -n "$DUMPBIN"; then
  4883. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4884. else
  4885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4886. for as_dir in $PATH
  4887. do
  4888. IFS=$as_save_IFS
  4889. test -z "$as_dir" && as_dir=.
  4890. for ac_exec_ext in '' $ac_executable_extensions; do
  4891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4892. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4894. break 2
  4895. fi
  4896. done
  4897. done
  4898. IFS=$as_save_IFS
  4899. fi
  4900. fi
  4901. DUMPBIN=$ac_cv_prog_DUMPBIN
  4902. if test -n "$DUMPBIN"; then
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4904. $as_echo "$DUMPBIN" >&6; }
  4905. else
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4907. $as_echo "no" >&6; }
  4908. fi
  4909. test -n "$DUMPBIN" && break
  4910. done
  4911. fi
  4912. if test -z "$DUMPBIN"; then
  4913. ac_ct_DUMPBIN=$DUMPBIN
  4914. for ac_prog in dumpbin "link -dump"
  4915. do
  4916. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4917. set dummy $ac_prog; ac_word=$2
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4919. $as_echo_n "checking for $ac_word... " >&6; }
  4920. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. if test -n "$ac_ct_DUMPBIN"; then
  4924. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4925. else
  4926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4927. for as_dir in $PATH
  4928. do
  4929. IFS=$as_save_IFS
  4930. test -z "$as_dir" && as_dir=.
  4931. for ac_exec_ext in '' $ac_executable_extensions; do
  4932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4933. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4935. break 2
  4936. fi
  4937. done
  4938. done
  4939. IFS=$as_save_IFS
  4940. fi
  4941. fi
  4942. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4943. if test -n "$ac_ct_DUMPBIN"; then
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4945. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4946. else
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4948. $as_echo "no" >&6; }
  4949. fi
  4950. test -n "$ac_ct_DUMPBIN" && break
  4951. done
  4952. if test "x$ac_ct_DUMPBIN" = x; then
  4953. DUMPBIN=":"
  4954. else
  4955. case $cross_compiling:$ac_tool_warned in
  4956. yes:)
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4958. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4959. ac_tool_warned=yes ;;
  4960. esac
  4961. DUMPBIN=$ac_ct_DUMPBIN
  4962. fi
  4963. fi
  4964. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4965. *COFF*)
  4966. DUMPBIN="$DUMPBIN -symbols"
  4967. ;;
  4968. *)
  4969. DUMPBIN=:
  4970. ;;
  4971. esac
  4972. fi
  4973. if test "$DUMPBIN" != ":"; then
  4974. NM="$DUMPBIN"
  4975. fi
  4976. fi
  4977. test -z "$NM" && NM=nm
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4979. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4980. if ${lt_cv_nm_interface+:} false; then :
  4981. $as_echo_n "(cached) " >&6
  4982. else
  4983. lt_cv_nm_interface="BSD nm"
  4984. echo "int some_variable = 0;" > conftest.$ac_ext
  4985. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4986. (eval "$ac_compile" 2>conftest.err)
  4987. cat conftest.err >&5
  4988. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4989. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4990. cat conftest.err >&5
  4991. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4992. cat conftest.out >&5
  4993. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4994. lt_cv_nm_interface="MS dumpbin"
  4995. fi
  4996. rm -f conftest*
  4997. fi
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4999. $as_echo "$lt_cv_nm_interface" >&6; }
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5001. $as_echo_n "checking whether ln -s works... " >&6; }
  5002. LN_S=$as_ln_s
  5003. if test "$LN_S" = "ln -s"; then
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5005. $as_echo "yes" >&6; }
  5006. else
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5008. $as_echo "no, using $LN_S" >&6; }
  5009. fi
  5010. # find the maximum length of command line arguments
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5012. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5013. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5014. $as_echo_n "(cached) " >&6
  5015. else
  5016. i=0
  5017. teststring="ABCD"
  5018. case $build_os in
  5019. msdosdjgpp*)
  5020. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5021. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5022. # during glob expansion). Even if it were fixed, the result of this
  5023. # check would be larger than it should be.
  5024. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5025. ;;
  5026. gnu*)
  5027. # Under GNU Hurd, this test is not required because there is
  5028. # no limit to the length of command line arguments.
  5029. # Libtool will interpret -1 as no limit whatsoever
  5030. lt_cv_sys_max_cmd_len=-1;
  5031. ;;
  5032. cygwin* | mingw* | cegcc*)
  5033. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5034. # about 5 minutes as the teststring grows exponentially.
  5035. # Worse, since 9x/ME are not pre-emptively multitasking,
  5036. # you end up with a "frozen" computer, even though with patience
  5037. # the test eventually succeeds (with a max line length of 256k).
  5038. # Instead, let's just punt: use the minimum linelength reported by
  5039. # all of the supported platforms: 8192 (on NT/2K/XP).
  5040. lt_cv_sys_max_cmd_len=8192;
  5041. ;;
  5042. mint*)
  5043. # On MiNT this can take a long time and run out of memory.
  5044. lt_cv_sys_max_cmd_len=8192;
  5045. ;;
  5046. amigaos*)
  5047. # On AmigaOS with pdksh, this test takes hours, literally.
  5048. # So we just punt and use a minimum line length of 8192.
  5049. lt_cv_sys_max_cmd_len=8192;
  5050. ;;
  5051. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5052. # This has been around since 386BSD, at least. Likely further.
  5053. if test -x /sbin/sysctl; then
  5054. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5055. elif test -x /usr/sbin/sysctl; then
  5056. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5057. else
  5058. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5059. fi
  5060. # And add a safety zone
  5061. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5062. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5063. ;;
  5064. interix*)
  5065. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5066. lt_cv_sys_max_cmd_len=196608
  5067. ;;
  5068. os2*)
  5069. # The test takes a long time on OS/2.
  5070. lt_cv_sys_max_cmd_len=8192
  5071. ;;
  5072. osf*)
  5073. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5074. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5075. # nice to cause kernel panics so lets avoid the loop below.
  5076. # First set a reasonable default.
  5077. lt_cv_sys_max_cmd_len=16384
  5078. #
  5079. if test -x /sbin/sysconfig; then
  5080. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5081. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5082. esac
  5083. fi
  5084. ;;
  5085. sco3.2v5*)
  5086. lt_cv_sys_max_cmd_len=102400
  5087. ;;
  5088. sysv5* | sco5v6* | sysv4.2uw2*)
  5089. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5090. if test -n "$kargmax"; then
  5091. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5092. else
  5093. lt_cv_sys_max_cmd_len=32768
  5094. fi
  5095. ;;
  5096. *)
  5097. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5098. if test -n "$lt_cv_sys_max_cmd_len"; then
  5099. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5100. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5101. else
  5102. # Make teststring a little bigger before we do anything with it.
  5103. # a 1K string should be a reasonable start.
  5104. for i in 1 2 3 4 5 6 7 8 ; do
  5105. teststring=$teststring$teststring
  5106. done
  5107. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5108. # If test is not a shell built-in, we'll probably end up computing a
  5109. # maximum length that is only half of the actual maximum length, but
  5110. # we can't tell.
  5111. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5112. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5113. test $i != 17 # 1/2 MB should be enough
  5114. do
  5115. i=`expr $i + 1`
  5116. teststring=$teststring$teststring
  5117. done
  5118. # Only check the string length outside the loop.
  5119. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5120. teststring=
  5121. # Add a significant safety factor because C++ compilers can tack on
  5122. # massive amounts of additional arguments before passing them to the
  5123. # linker. It appears as though 1/2 is a usable value.
  5124. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5125. fi
  5126. ;;
  5127. esac
  5128. fi
  5129. if test -n $lt_cv_sys_max_cmd_len ; then
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5131. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5132. else
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5134. $as_echo "none" >&6; }
  5135. fi
  5136. max_cmd_len=$lt_cv_sys_max_cmd_len
  5137. : ${CP="cp -f"}
  5138. : ${MV="mv -f"}
  5139. : ${RM="rm -f"}
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5141. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5142. # Try some XSI features
  5143. xsi_shell=no
  5144. ( _lt_dummy="a/b/c"
  5145. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5146. = c,a/b,b/c, \
  5147. && eval 'test $(( 1 + 1 )) -eq 2 \
  5148. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5149. && xsi_shell=yes
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5151. $as_echo "$xsi_shell" >&6; }
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5153. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5154. lt_shell_append=no
  5155. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5156. >/dev/null 2>&1 \
  5157. && lt_shell_append=yes
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5159. $as_echo "$lt_shell_append" >&6; }
  5160. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5161. lt_unset=unset
  5162. else
  5163. lt_unset=false
  5164. fi
  5165. # test EBCDIC or ASCII
  5166. case `echo X|tr X '\101'` in
  5167. A) # ASCII based system
  5168. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5169. lt_SP2NL='tr \040 \012'
  5170. lt_NL2SP='tr \015\012 \040\040'
  5171. ;;
  5172. *) # EBCDIC based system
  5173. lt_SP2NL='tr \100 \n'
  5174. lt_NL2SP='tr \r\n \100\100'
  5175. ;;
  5176. esac
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5178. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5179. if ${lt_cv_to_host_file_cmd+:} false; then :
  5180. $as_echo_n "(cached) " >&6
  5181. else
  5182. case $host in
  5183. *-*-mingw* )
  5184. case $build in
  5185. *-*-mingw* ) # actually msys
  5186. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5187. ;;
  5188. *-*-cygwin* )
  5189. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5190. ;;
  5191. * ) # otherwise, assume *nix
  5192. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5193. ;;
  5194. esac
  5195. ;;
  5196. *-*-cygwin* )
  5197. case $build in
  5198. *-*-mingw* ) # actually msys
  5199. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5200. ;;
  5201. *-*-cygwin* )
  5202. lt_cv_to_host_file_cmd=func_convert_file_noop
  5203. ;;
  5204. * ) # otherwise, assume *nix
  5205. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5206. ;;
  5207. esac
  5208. ;;
  5209. * ) # unhandled hosts (and "normal" native builds)
  5210. lt_cv_to_host_file_cmd=func_convert_file_noop
  5211. ;;
  5212. esac
  5213. fi
  5214. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5216. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5218. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5219. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5220. $as_echo_n "(cached) " >&6
  5221. else
  5222. #assume ordinary cross tools, or native build.
  5223. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5224. case $host in
  5225. *-*-mingw* )
  5226. case $build in
  5227. *-*-mingw* ) # actually msys
  5228. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5229. ;;
  5230. esac
  5231. ;;
  5232. esac
  5233. fi
  5234. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5236. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5238. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5239. if ${lt_cv_ld_reload_flag+:} false; then :
  5240. $as_echo_n "(cached) " >&6
  5241. else
  5242. lt_cv_ld_reload_flag='-r'
  5243. fi
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5245. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5246. reload_flag=$lt_cv_ld_reload_flag
  5247. case $reload_flag in
  5248. "" | " "*) ;;
  5249. *) reload_flag=" $reload_flag" ;;
  5250. esac
  5251. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5252. case $host_os in
  5253. cygwin* | mingw* | pw32* | cegcc*)
  5254. if test "$GCC" != yes; then
  5255. reload_cmds=false
  5256. fi
  5257. ;;
  5258. darwin*)
  5259. if test "$GCC" = yes; then
  5260. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5261. else
  5262. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5263. fi
  5264. ;;
  5265. esac
  5266. if test -n "$ac_tool_prefix"; then
  5267. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5268. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5270. $as_echo_n "checking for $ac_word... " >&6; }
  5271. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5272. $as_echo_n "(cached) " >&6
  5273. else
  5274. if test -n "$OBJDUMP"; then
  5275. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5276. else
  5277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5278. for as_dir in $PATH
  5279. do
  5280. IFS=$as_save_IFS
  5281. test -z "$as_dir" && as_dir=.
  5282. for ac_exec_ext in '' $ac_executable_extensions; do
  5283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5284. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5286. break 2
  5287. fi
  5288. done
  5289. done
  5290. IFS=$as_save_IFS
  5291. fi
  5292. fi
  5293. OBJDUMP=$ac_cv_prog_OBJDUMP
  5294. if test -n "$OBJDUMP"; then
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5296. $as_echo "$OBJDUMP" >&6; }
  5297. else
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5299. $as_echo "no" >&6; }
  5300. fi
  5301. fi
  5302. if test -z "$ac_cv_prog_OBJDUMP"; then
  5303. ac_ct_OBJDUMP=$OBJDUMP
  5304. # Extract the first word of "objdump", so it can be a program name with args.
  5305. set dummy objdump; ac_word=$2
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5307. $as_echo_n "checking for $ac_word... " >&6; }
  5308. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5309. $as_echo_n "(cached) " >&6
  5310. else
  5311. if test -n "$ac_ct_OBJDUMP"; then
  5312. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5313. else
  5314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5315. for as_dir in $PATH
  5316. do
  5317. IFS=$as_save_IFS
  5318. test -z "$as_dir" && as_dir=.
  5319. for ac_exec_ext in '' $ac_executable_extensions; do
  5320. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5321. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5323. break 2
  5324. fi
  5325. done
  5326. done
  5327. IFS=$as_save_IFS
  5328. fi
  5329. fi
  5330. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5331. if test -n "$ac_ct_OBJDUMP"; then
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5333. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5334. else
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5336. $as_echo "no" >&6; }
  5337. fi
  5338. if test "x$ac_ct_OBJDUMP" = x; then
  5339. OBJDUMP="false"
  5340. else
  5341. case $cross_compiling:$ac_tool_warned in
  5342. yes:)
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5344. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5345. ac_tool_warned=yes ;;
  5346. esac
  5347. OBJDUMP=$ac_ct_OBJDUMP
  5348. fi
  5349. else
  5350. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5351. fi
  5352. test -z "$OBJDUMP" && OBJDUMP=objdump
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5354. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5355. if ${lt_cv_deplibs_check_method+:} false; then :
  5356. $as_echo_n "(cached) " >&6
  5357. else
  5358. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5359. lt_cv_file_magic_test_file=
  5360. lt_cv_deplibs_check_method='unknown'
  5361. # Need to set the preceding variable on all platforms that support
  5362. # interlibrary dependencies.
  5363. # 'none' -- dependencies not supported.
  5364. # `unknown' -- same as none, but documents that we really don't know.
  5365. # 'pass_all' -- all dependencies passed with no checks.
  5366. # 'test_compile' -- check by making test program.
  5367. # 'file_magic [[regex]]' -- check by looking for files in library path
  5368. # which responds to the $file_magic_cmd with a given extended regex.
  5369. # If you have `file' or equivalent on your system and you're not sure
  5370. # whether `pass_all' will *always* work, you probably want this one.
  5371. case $host_os in
  5372. aix[4-9]*)
  5373. lt_cv_deplibs_check_method=pass_all
  5374. ;;
  5375. beos*)
  5376. lt_cv_deplibs_check_method=pass_all
  5377. ;;
  5378. bsdi[45]*)
  5379. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5380. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5381. lt_cv_file_magic_test_file=/shlib/libc.so
  5382. ;;
  5383. cygwin*)
  5384. # func_win32_libid is a shell function defined in ltmain.sh
  5385. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5386. lt_cv_file_magic_cmd='func_win32_libid'
  5387. ;;
  5388. mingw* | pw32*)
  5389. # Base MSYS/MinGW do not provide the 'file' command needed by
  5390. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5391. # unless we find 'file', for example because we are cross-compiling.
  5392. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5393. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5394. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5395. lt_cv_file_magic_cmd='func_win32_libid'
  5396. else
  5397. # Keep this pattern in sync with the one in func_win32_libid.
  5398. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5399. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5400. fi
  5401. ;;
  5402. cegcc*)
  5403. # use the weaker test based on 'objdump'. See mingw*.
  5404. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5405. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5406. ;;
  5407. darwin* | rhapsody*)
  5408. lt_cv_deplibs_check_method=pass_all
  5409. ;;
  5410. freebsd* | dragonfly*)
  5411. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5412. case $host_cpu in
  5413. i*86 )
  5414. # Not sure whether the presence of OpenBSD here was a mistake.
  5415. # Let's accept both of them until this is cleared up.
  5416. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5417. lt_cv_file_magic_cmd=/usr/bin/file
  5418. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5419. ;;
  5420. esac
  5421. else
  5422. lt_cv_deplibs_check_method=pass_all
  5423. fi
  5424. ;;
  5425. gnu*)
  5426. lt_cv_deplibs_check_method=pass_all
  5427. ;;
  5428. haiku*)
  5429. lt_cv_deplibs_check_method=pass_all
  5430. ;;
  5431. hpux10.20* | hpux11*)
  5432. lt_cv_file_magic_cmd=/usr/bin/file
  5433. case $host_cpu in
  5434. ia64*)
  5435. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5436. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5437. ;;
  5438. hppa*64*)
  5439. 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]'
  5440. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5441. ;;
  5442. *)
  5443. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5444. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5445. ;;
  5446. esac
  5447. ;;
  5448. interix[3-9]*)
  5449. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5450. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5451. ;;
  5452. irix5* | irix6* | nonstopux*)
  5453. case $LD in
  5454. *-32|*"-32 ") libmagic=32-bit;;
  5455. *-n32|*"-n32 ") libmagic=N32;;
  5456. *-64|*"-64 ") libmagic=64-bit;;
  5457. *) libmagic=never-match;;
  5458. esac
  5459. lt_cv_deplibs_check_method=pass_all
  5460. ;;
  5461. # This must be glibc/ELF.
  5462. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5463. lt_cv_deplibs_check_method=pass_all
  5464. ;;
  5465. netbsd*)
  5466. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5467. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5468. else
  5469. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5470. fi
  5471. ;;
  5472. newos6*)
  5473. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5474. lt_cv_file_magic_cmd=/usr/bin/file
  5475. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5476. ;;
  5477. *nto* | *qnx*)
  5478. lt_cv_deplibs_check_method=pass_all
  5479. ;;
  5480. openbsd*)
  5481. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5483. else
  5484. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5485. fi
  5486. ;;
  5487. osf3* | osf4* | osf5*)
  5488. lt_cv_deplibs_check_method=pass_all
  5489. ;;
  5490. rdos*)
  5491. lt_cv_deplibs_check_method=pass_all
  5492. ;;
  5493. solaris*)
  5494. lt_cv_deplibs_check_method=pass_all
  5495. ;;
  5496. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5497. lt_cv_deplibs_check_method=pass_all
  5498. ;;
  5499. sysv4 | sysv4.3*)
  5500. case $host_vendor in
  5501. motorola)
  5502. 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]'
  5503. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5504. ;;
  5505. ncr)
  5506. lt_cv_deplibs_check_method=pass_all
  5507. ;;
  5508. sequent)
  5509. lt_cv_file_magic_cmd='/bin/file'
  5510. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5511. ;;
  5512. sni)
  5513. lt_cv_file_magic_cmd='/bin/file'
  5514. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5515. lt_cv_file_magic_test_file=/lib/libc.so
  5516. ;;
  5517. siemens)
  5518. lt_cv_deplibs_check_method=pass_all
  5519. ;;
  5520. pc)
  5521. lt_cv_deplibs_check_method=pass_all
  5522. ;;
  5523. esac
  5524. ;;
  5525. tpf*)
  5526. lt_cv_deplibs_check_method=pass_all
  5527. ;;
  5528. esac
  5529. fi
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5531. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5532. file_magic_glob=
  5533. want_nocaseglob=no
  5534. if test "$build" = "$host"; then
  5535. case $host_os in
  5536. mingw* | pw32*)
  5537. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5538. want_nocaseglob=yes
  5539. else
  5540. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5541. fi
  5542. ;;
  5543. esac
  5544. fi
  5545. file_magic_cmd=$lt_cv_file_magic_cmd
  5546. deplibs_check_method=$lt_cv_deplibs_check_method
  5547. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5548. if test -n "$ac_tool_prefix"; then
  5549. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5550. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5552. $as_echo_n "checking for $ac_word... " >&6; }
  5553. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5554. $as_echo_n "(cached) " >&6
  5555. else
  5556. if test -n "$DLLTOOL"; then
  5557. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5558. else
  5559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5560. for as_dir in $PATH
  5561. do
  5562. IFS=$as_save_IFS
  5563. test -z "$as_dir" && as_dir=.
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5566. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5568. break 2
  5569. fi
  5570. done
  5571. done
  5572. IFS=$as_save_IFS
  5573. fi
  5574. fi
  5575. DLLTOOL=$ac_cv_prog_DLLTOOL
  5576. if test -n "$DLLTOOL"; then
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5578. $as_echo "$DLLTOOL" >&6; }
  5579. else
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5581. $as_echo "no" >&6; }
  5582. fi
  5583. fi
  5584. if test -z "$ac_cv_prog_DLLTOOL"; then
  5585. ac_ct_DLLTOOL=$DLLTOOL
  5586. # Extract the first word of "dlltool", so it can be a program name with args.
  5587. set dummy dlltool; ac_word=$2
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5589. $as_echo_n "checking for $ac_word... " >&6; }
  5590. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5591. $as_echo_n "(cached) " >&6
  5592. else
  5593. if test -n "$ac_ct_DLLTOOL"; then
  5594. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5595. else
  5596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5597. for as_dir in $PATH
  5598. do
  5599. IFS=$as_save_IFS
  5600. test -z "$as_dir" && as_dir=.
  5601. for ac_exec_ext in '' $ac_executable_extensions; do
  5602. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5603. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5605. break 2
  5606. fi
  5607. done
  5608. done
  5609. IFS=$as_save_IFS
  5610. fi
  5611. fi
  5612. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5613. if test -n "$ac_ct_DLLTOOL"; then
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5615. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5616. else
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5618. $as_echo "no" >&6; }
  5619. fi
  5620. if test "x$ac_ct_DLLTOOL" = x; then
  5621. DLLTOOL="false"
  5622. else
  5623. case $cross_compiling:$ac_tool_warned in
  5624. yes:)
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5626. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5627. ac_tool_warned=yes ;;
  5628. esac
  5629. DLLTOOL=$ac_ct_DLLTOOL
  5630. fi
  5631. else
  5632. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5633. fi
  5634. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5636. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5637. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5638. $as_echo_n "(cached) " >&6
  5639. else
  5640. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5641. case $host_os in
  5642. cygwin* | mingw* | pw32* | cegcc*)
  5643. # two different shell functions defined in ltmain.sh
  5644. # decide which to use based on capabilities of $DLLTOOL
  5645. case `$DLLTOOL --help 2>&1` in
  5646. *--identify-strict*)
  5647. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5648. ;;
  5649. *)
  5650. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5651. ;;
  5652. esac
  5653. ;;
  5654. *)
  5655. # fallback: assume linklib IS sharedlib
  5656. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5657. ;;
  5658. esac
  5659. fi
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5661. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5662. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5663. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5664. if test -n "$ac_tool_prefix"; then
  5665. for ac_prog in ar
  5666. do
  5667. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5668. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5670. $as_echo_n "checking for $ac_word... " >&6; }
  5671. if ${ac_cv_prog_AR+:} false; then :
  5672. $as_echo_n "(cached) " >&6
  5673. else
  5674. if test -n "$AR"; then
  5675. ac_cv_prog_AR="$AR" # Let the user override the test.
  5676. else
  5677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5678. for as_dir in $PATH
  5679. do
  5680. IFS=$as_save_IFS
  5681. test -z "$as_dir" && as_dir=.
  5682. for ac_exec_ext in '' $ac_executable_extensions; do
  5683. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5684. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5686. break 2
  5687. fi
  5688. done
  5689. done
  5690. IFS=$as_save_IFS
  5691. fi
  5692. fi
  5693. AR=$ac_cv_prog_AR
  5694. if test -n "$AR"; then
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5696. $as_echo "$AR" >&6; }
  5697. else
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5699. $as_echo "no" >&6; }
  5700. fi
  5701. test -n "$AR" && break
  5702. done
  5703. fi
  5704. if test -z "$AR"; then
  5705. ac_ct_AR=$AR
  5706. for ac_prog in ar
  5707. do
  5708. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5709. set dummy $ac_prog; ac_word=$2
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5711. $as_echo_n "checking for $ac_word... " >&6; }
  5712. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5713. $as_echo_n "(cached) " >&6
  5714. else
  5715. if test -n "$ac_ct_AR"; then
  5716. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5717. else
  5718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5719. for as_dir in $PATH
  5720. do
  5721. IFS=$as_save_IFS
  5722. test -z "$as_dir" && as_dir=.
  5723. for ac_exec_ext in '' $ac_executable_extensions; do
  5724. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5725. ac_cv_prog_ac_ct_AR="$ac_prog"
  5726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5727. break 2
  5728. fi
  5729. done
  5730. done
  5731. IFS=$as_save_IFS
  5732. fi
  5733. fi
  5734. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5735. if test -n "$ac_ct_AR"; then
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5737. $as_echo "$ac_ct_AR" >&6; }
  5738. else
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5740. $as_echo "no" >&6; }
  5741. fi
  5742. test -n "$ac_ct_AR" && break
  5743. done
  5744. if test "x$ac_ct_AR" = x; then
  5745. AR="false"
  5746. else
  5747. case $cross_compiling:$ac_tool_warned in
  5748. yes:)
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5750. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5751. ac_tool_warned=yes ;;
  5752. esac
  5753. AR=$ac_ct_AR
  5754. fi
  5755. fi
  5756. : ${AR=ar}
  5757. : ${AR_FLAGS=cru}
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5759. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5760. if ${lt_cv_ar_at_file+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. lt_cv_ar_at_file=no
  5764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5765. /* end confdefs.h. */
  5766. int
  5767. main ()
  5768. {
  5769. ;
  5770. return 0;
  5771. }
  5772. _ACEOF
  5773. if ac_fn_c_try_compile "$LINENO"; then :
  5774. echo conftest.$ac_objext > conftest.lst
  5775. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5776. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5777. (eval $lt_ar_try) 2>&5
  5778. ac_status=$?
  5779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5780. test $ac_status = 0; }
  5781. if test "$ac_status" -eq 0; then
  5782. # Ensure the archiver fails upon bogus file names.
  5783. rm -f conftest.$ac_objext libconftest.a
  5784. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5785. (eval $lt_ar_try) 2>&5
  5786. ac_status=$?
  5787. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5788. test $ac_status = 0; }
  5789. if test "$ac_status" -ne 0; then
  5790. lt_cv_ar_at_file=@
  5791. fi
  5792. fi
  5793. rm -f conftest.* libconftest.a
  5794. fi
  5795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5796. fi
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5798. $as_echo "$lt_cv_ar_at_file" >&6; }
  5799. if test "x$lt_cv_ar_at_file" = xno; then
  5800. archiver_list_spec=
  5801. else
  5802. archiver_list_spec=$lt_cv_ar_at_file
  5803. fi
  5804. if test -n "$ac_tool_prefix"; then
  5805. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5806. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5808. $as_echo_n "checking for $ac_word... " >&6; }
  5809. if ${ac_cv_prog_STRIP+:} false; then :
  5810. $as_echo_n "(cached) " >&6
  5811. else
  5812. if test -n "$STRIP"; then
  5813. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5814. else
  5815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5816. for as_dir in $PATH
  5817. do
  5818. IFS=$as_save_IFS
  5819. test -z "$as_dir" && as_dir=.
  5820. for ac_exec_ext in '' $ac_executable_extensions; do
  5821. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5822. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5824. break 2
  5825. fi
  5826. done
  5827. done
  5828. IFS=$as_save_IFS
  5829. fi
  5830. fi
  5831. STRIP=$ac_cv_prog_STRIP
  5832. if test -n "$STRIP"; then
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5834. $as_echo "$STRIP" >&6; }
  5835. else
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5837. $as_echo "no" >&6; }
  5838. fi
  5839. fi
  5840. if test -z "$ac_cv_prog_STRIP"; then
  5841. ac_ct_STRIP=$STRIP
  5842. # Extract the first word of "strip", so it can be a program name with args.
  5843. set dummy strip; ac_word=$2
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5845. $as_echo_n "checking for $ac_word... " >&6; }
  5846. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. if test -n "$ac_ct_STRIP"; then
  5850. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5851. else
  5852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5853. for as_dir in $PATH
  5854. do
  5855. IFS=$as_save_IFS
  5856. test -z "$as_dir" && as_dir=.
  5857. for ac_exec_ext in '' $ac_executable_extensions; do
  5858. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5859. ac_cv_prog_ac_ct_STRIP="strip"
  5860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5861. break 2
  5862. fi
  5863. done
  5864. done
  5865. IFS=$as_save_IFS
  5866. fi
  5867. fi
  5868. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5869. if test -n "$ac_ct_STRIP"; then
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5871. $as_echo "$ac_ct_STRIP" >&6; }
  5872. else
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5874. $as_echo "no" >&6; }
  5875. fi
  5876. if test "x$ac_ct_STRIP" = x; then
  5877. STRIP=":"
  5878. else
  5879. case $cross_compiling:$ac_tool_warned in
  5880. yes:)
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5883. ac_tool_warned=yes ;;
  5884. esac
  5885. STRIP=$ac_ct_STRIP
  5886. fi
  5887. else
  5888. STRIP="$ac_cv_prog_STRIP"
  5889. fi
  5890. test -z "$STRIP" && STRIP=:
  5891. if test -n "$ac_tool_prefix"; then
  5892. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5893. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5895. $as_echo_n "checking for $ac_word... " >&6; }
  5896. if ${ac_cv_prog_RANLIB+:} false; then :
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. if test -n "$RANLIB"; then
  5900. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5901. else
  5902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5903. for as_dir in $PATH
  5904. do
  5905. IFS=$as_save_IFS
  5906. test -z "$as_dir" && as_dir=.
  5907. for ac_exec_ext in '' $ac_executable_extensions; do
  5908. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5909. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5911. break 2
  5912. fi
  5913. done
  5914. done
  5915. IFS=$as_save_IFS
  5916. fi
  5917. fi
  5918. RANLIB=$ac_cv_prog_RANLIB
  5919. if test -n "$RANLIB"; then
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5921. $as_echo "$RANLIB" >&6; }
  5922. else
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5924. $as_echo "no" >&6; }
  5925. fi
  5926. fi
  5927. if test -z "$ac_cv_prog_RANLIB"; then
  5928. ac_ct_RANLIB=$RANLIB
  5929. # Extract the first word of "ranlib", so it can be a program name with args.
  5930. set dummy ranlib; ac_word=$2
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5932. $as_echo_n "checking for $ac_word... " >&6; }
  5933. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5934. $as_echo_n "(cached) " >&6
  5935. else
  5936. if test -n "$ac_ct_RANLIB"; then
  5937. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5938. else
  5939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5940. for as_dir in $PATH
  5941. do
  5942. IFS=$as_save_IFS
  5943. test -z "$as_dir" && as_dir=.
  5944. for ac_exec_ext in '' $ac_executable_extensions; do
  5945. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5946. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5948. break 2
  5949. fi
  5950. done
  5951. done
  5952. IFS=$as_save_IFS
  5953. fi
  5954. fi
  5955. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5956. if test -n "$ac_ct_RANLIB"; then
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5958. $as_echo "$ac_ct_RANLIB" >&6; }
  5959. else
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5961. $as_echo "no" >&6; }
  5962. fi
  5963. if test "x$ac_ct_RANLIB" = x; then
  5964. RANLIB=":"
  5965. else
  5966. case $cross_compiling:$ac_tool_warned in
  5967. yes:)
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5969. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5970. ac_tool_warned=yes ;;
  5971. esac
  5972. RANLIB=$ac_ct_RANLIB
  5973. fi
  5974. else
  5975. RANLIB="$ac_cv_prog_RANLIB"
  5976. fi
  5977. test -z "$RANLIB" && RANLIB=:
  5978. # Determine commands to create old-style static archives.
  5979. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5980. old_postinstall_cmds='chmod 644 $oldlib'
  5981. old_postuninstall_cmds=
  5982. if test -n "$RANLIB"; then
  5983. case $host_os in
  5984. openbsd*)
  5985. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5986. ;;
  5987. *)
  5988. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5989. ;;
  5990. esac
  5991. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5992. fi
  5993. case $host_os in
  5994. darwin*)
  5995. lock_old_archive_extraction=yes ;;
  5996. *)
  5997. lock_old_archive_extraction=no ;;
  5998. esac
  5999. for ac_prog in gawk mawk nawk awk
  6000. do
  6001. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6002. set dummy $ac_prog; ac_word=$2
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6004. $as_echo_n "checking for $ac_word... " >&6; }
  6005. if ${ac_cv_prog_AWK+:} false; then :
  6006. $as_echo_n "(cached) " >&6
  6007. else
  6008. if test -n "$AWK"; then
  6009. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  6010. else
  6011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6012. for as_dir in $PATH
  6013. do
  6014. IFS=$as_save_IFS
  6015. test -z "$as_dir" && as_dir=.
  6016. for ac_exec_ext in '' $ac_executable_extensions; do
  6017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6018. ac_cv_prog_AWK="$ac_prog"
  6019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6020. break 2
  6021. fi
  6022. done
  6023. done
  6024. IFS=$as_save_IFS
  6025. fi
  6026. fi
  6027. AWK=$ac_cv_prog_AWK
  6028. if test -n "$AWK"; then
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6030. $as_echo "$AWK" >&6; }
  6031. else
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6033. $as_echo "no" >&6; }
  6034. fi
  6035. test -n "$AWK" && break
  6036. done
  6037. # If no C compiler was specified, use CC.
  6038. LTCC=${LTCC-"$CC"}
  6039. # If no C compiler flags were specified, use CFLAGS.
  6040. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6041. # Allow CC to be a program name with arguments.
  6042. compiler=$CC
  6043. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6045. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6046. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6047. $as_echo_n "(cached) " >&6
  6048. else
  6049. # These are sane defaults that work on at least a few old systems.
  6050. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6051. # Character class describing NM global symbol codes.
  6052. symcode='[BCDEGRST]'
  6053. # Regexp to match symbols that can be accessed directly from C.
  6054. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6055. # Define system-specific variables.
  6056. case $host_os in
  6057. aix*)
  6058. symcode='[BCDT]'
  6059. ;;
  6060. cygwin* | mingw* | pw32* | cegcc*)
  6061. symcode='[ABCDGISTW]'
  6062. ;;
  6063. hpux*)
  6064. if test "$host_cpu" = ia64; then
  6065. symcode='[ABCDEGRST]'
  6066. fi
  6067. ;;
  6068. irix* | nonstopux*)
  6069. symcode='[BCDEGRST]'
  6070. ;;
  6071. osf*)
  6072. symcode='[BCDEGQRST]'
  6073. ;;
  6074. solaris*)
  6075. symcode='[BDRT]'
  6076. ;;
  6077. sco3.2v5*)
  6078. symcode='[DT]'
  6079. ;;
  6080. sysv4.2uw2*)
  6081. symcode='[DT]'
  6082. ;;
  6083. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6084. symcode='[ABDT]'
  6085. ;;
  6086. sysv4)
  6087. symcode='[DFNSTU]'
  6088. ;;
  6089. esac
  6090. # If we're using GNU nm, then use its standard symbol codes.
  6091. case `$NM -V 2>&1` in
  6092. *GNU* | *'with BFD'*)
  6093. symcode='[ABCDGIRSTW]' ;;
  6094. esac
  6095. # Transform an extracted symbol line into a proper C declaration.
  6096. # Some systems (esp. on ia64) link data and code symbols differently,
  6097. # so use this general approach.
  6098. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6099. # Transform an extracted symbol line into symbol name and symbol address
  6100. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6101. 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'"
  6102. # Handle CRLF in mingw tool chain
  6103. opt_cr=
  6104. case $build_os in
  6105. mingw*)
  6106. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6107. ;;
  6108. esac
  6109. # Try without a prefix underscore, then with it.
  6110. for ac_symprfx in "" "_"; do
  6111. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6112. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6113. # Write the raw and C identifiers.
  6114. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6115. # Fake it for dumpbin and say T for any non-static function
  6116. # and D for any global variable.
  6117. # Also find C++ and __fastcall symbols from MSVC++,
  6118. # which start with @ or ?.
  6119. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6120. " {last_section=section; section=\$ 3};"\
  6121. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6122. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6123. " \$ 0!~/External *\|/{next};"\
  6124. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6125. " {if(hide[section]) next};"\
  6126. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6127. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6128. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6129. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6130. " ' prfx=^$ac_symprfx"
  6131. else
  6132. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6133. fi
  6134. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6135. # Check to see that the pipe works correctly.
  6136. pipe_works=no
  6137. rm -f conftest*
  6138. cat > conftest.$ac_ext <<_LT_EOF
  6139. #ifdef __cplusplus
  6140. extern "C" {
  6141. #endif
  6142. char nm_test_var;
  6143. void nm_test_func(void);
  6144. void nm_test_func(void){}
  6145. #ifdef __cplusplus
  6146. }
  6147. #endif
  6148. int main(){nm_test_var='a';nm_test_func();return(0);}
  6149. _LT_EOF
  6150. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6151. (eval $ac_compile) 2>&5
  6152. ac_status=$?
  6153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6154. test $ac_status = 0; }; then
  6155. # Now try to grab the symbols.
  6156. nlist=conftest.nm
  6157. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6158. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6159. ac_status=$?
  6160. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6161. test $ac_status = 0; } && test -s "$nlist"; then
  6162. # Try sorting and uniquifying the output.
  6163. if sort "$nlist" | uniq > "$nlist"T; then
  6164. mv -f "$nlist"T "$nlist"
  6165. else
  6166. rm -f "$nlist"T
  6167. fi
  6168. # Make sure that we snagged all the symbols we need.
  6169. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6170. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6171. cat <<_LT_EOF > conftest.$ac_ext
  6172. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6173. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6174. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6175. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6176. # define LT_DLSYM_CONST
  6177. #elif defined(__osf__)
  6178. /* This system does not cope well with relocations in const data. */
  6179. # define LT_DLSYM_CONST
  6180. #else
  6181. # define LT_DLSYM_CONST const
  6182. #endif
  6183. #ifdef __cplusplus
  6184. extern "C" {
  6185. #endif
  6186. _LT_EOF
  6187. # Now generate the symbol file.
  6188. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6189. cat <<_LT_EOF >> conftest.$ac_ext
  6190. /* The mapping between symbol names and symbols. */
  6191. LT_DLSYM_CONST struct {
  6192. const char *name;
  6193. void *address;
  6194. }
  6195. lt__PROGRAM__LTX_preloaded_symbols[] =
  6196. {
  6197. { "@PROGRAM@", (void *) 0 },
  6198. _LT_EOF
  6199. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6200. cat <<\_LT_EOF >> conftest.$ac_ext
  6201. {0, (void *) 0}
  6202. };
  6203. /* This works around a problem in FreeBSD linker */
  6204. #ifdef FREEBSD_WORKAROUND
  6205. static const void *lt_preloaded_setup() {
  6206. return lt__PROGRAM__LTX_preloaded_symbols;
  6207. }
  6208. #endif
  6209. #ifdef __cplusplus
  6210. }
  6211. #endif
  6212. _LT_EOF
  6213. # Now try linking the two files.
  6214. mv conftest.$ac_objext conftstm.$ac_objext
  6215. lt_globsym_save_LIBS=$LIBS
  6216. lt_globsym_save_CFLAGS=$CFLAGS
  6217. LIBS="conftstm.$ac_objext"
  6218. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6219. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6220. (eval $ac_link) 2>&5
  6221. ac_status=$?
  6222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6223. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6224. pipe_works=yes
  6225. fi
  6226. LIBS=$lt_globsym_save_LIBS
  6227. CFLAGS=$lt_globsym_save_CFLAGS
  6228. else
  6229. echo "cannot find nm_test_func in $nlist" >&5
  6230. fi
  6231. else
  6232. echo "cannot find nm_test_var in $nlist" >&5
  6233. fi
  6234. else
  6235. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6236. fi
  6237. else
  6238. echo "$progname: failed program was:" >&5
  6239. cat conftest.$ac_ext >&5
  6240. fi
  6241. rm -rf conftest* conftst*
  6242. # Do not use the global_symbol_pipe unless it works.
  6243. if test "$pipe_works" = yes; then
  6244. break
  6245. else
  6246. lt_cv_sys_global_symbol_pipe=
  6247. fi
  6248. done
  6249. fi
  6250. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6251. lt_cv_sys_global_symbol_to_cdecl=
  6252. fi
  6253. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6255. $as_echo "failed" >&6; }
  6256. else
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6258. $as_echo "ok" >&6; }
  6259. fi
  6260. # Response file support.
  6261. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6262. nm_file_list_spec='@'
  6263. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6264. nm_file_list_spec='@'
  6265. fi
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6267. $as_echo_n "checking for sysroot... " >&6; }
  6268. # Check whether --with-sysroot was given.
  6269. if test "${with_sysroot+set}" = set; then :
  6270. withval=$with_sysroot;
  6271. else
  6272. with_sysroot=no
  6273. fi
  6274. lt_sysroot=
  6275. case ${with_sysroot} in #(
  6276. yes)
  6277. if test "$GCC" = yes; then
  6278. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6279. fi
  6280. ;; #(
  6281. /*)
  6282. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6283. ;; #(
  6284. no|'')
  6285. ;; #(
  6286. *)
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6288. $as_echo "${with_sysroot}" >&6; }
  6289. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6290. ;;
  6291. esac
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6293. $as_echo "${lt_sysroot:-no}" >&6; }
  6294. # Check whether --enable-libtool-lock was given.
  6295. if test "${enable_libtool_lock+set}" = set; then :
  6296. enableval=$enable_libtool_lock;
  6297. fi
  6298. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6299. # Some flags need to be propagated to the compiler or linker for good
  6300. # libtool support.
  6301. case $host in
  6302. ia64-*-hpux*)
  6303. # Find out which ABI we are using.
  6304. echo 'int i;' > conftest.$ac_ext
  6305. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6306. (eval $ac_compile) 2>&5
  6307. ac_status=$?
  6308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6309. test $ac_status = 0; }; then
  6310. case `/usr/bin/file conftest.$ac_objext` in
  6311. *ELF-32*)
  6312. HPUX_IA64_MODE="32"
  6313. ;;
  6314. *ELF-64*)
  6315. HPUX_IA64_MODE="64"
  6316. ;;
  6317. esac
  6318. fi
  6319. rm -rf conftest*
  6320. ;;
  6321. *-*-irix6*)
  6322. # Find out which ABI we are using.
  6323. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6324. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6325. (eval $ac_compile) 2>&5
  6326. ac_status=$?
  6327. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6328. test $ac_status = 0; }; then
  6329. if test "$lt_cv_prog_gnu_ld" = yes; then
  6330. case `/usr/bin/file conftest.$ac_objext` in
  6331. *32-bit*)
  6332. LD="${LD-ld} -melf32bsmip"
  6333. ;;
  6334. *N32*)
  6335. LD="${LD-ld} -melf32bmipn32"
  6336. ;;
  6337. *64-bit*)
  6338. LD="${LD-ld} -melf64bmip"
  6339. ;;
  6340. esac
  6341. else
  6342. case `/usr/bin/file conftest.$ac_objext` in
  6343. *32-bit*)
  6344. LD="${LD-ld} -32"
  6345. ;;
  6346. *N32*)
  6347. LD="${LD-ld} -n32"
  6348. ;;
  6349. *64-bit*)
  6350. LD="${LD-ld} -64"
  6351. ;;
  6352. esac
  6353. fi
  6354. fi
  6355. rm -rf conftest*
  6356. ;;
  6357. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6358. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6359. # Find out which ABI we are using.
  6360. echo 'int i;' > conftest.$ac_ext
  6361. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6362. (eval $ac_compile) 2>&5
  6363. ac_status=$?
  6364. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6365. test $ac_status = 0; }; then
  6366. case `/usr/bin/file conftest.o` in
  6367. *32-bit*)
  6368. case $host in
  6369. x86_64-*kfreebsd*-gnu)
  6370. LD="${LD-ld} -m elf_i386_fbsd"
  6371. ;;
  6372. x86_64-*linux*)
  6373. LD="${LD-ld} -m elf_i386"
  6374. ;;
  6375. ppc64-*linux*|powerpc64-*linux*)
  6376. LD="${LD-ld} -m elf32ppclinux"
  6377. ;;
  6378. s390x-*linux*)
  6379. LD="${LD-ld} -m elf_s390"
  6380. ;;
  6381. sparc64-*linux*)
  6382. LD="${LD-ld} -m elf32_sparc"
  6383. ;;
  6384. esac
  6385. ;;
  6386. *64-bit*)
  6387. case $host in
  6388. x86_64-*kfreebsd*-gnu)
  6389. LD="${LD-ld} -m elf_x86_64_fbsd"
  6390. ;;
  6391. x86_64-*linux*)
  6392. LD="${LD-ld} -m elf_x86_64"
  6393. ;;
  6394. ppc*-*linux*|powerpc*-*linux*)
  6395. LD="${LD-ld} -m elf64ppc"
  6396. ;;
  6397. s390*-*linux*|s390*-*tpf*)
  6398. LD="${LD-ld} -m elf64_s390"
  6399. ;;
  6400. sparc*-*linux*)
  6401. LD="${LD-ld} -m elf64_sparc"
  6402. ;;
  6403. esac
  6404. ;;
  6405. esac
  6406. fi
  6407. rm -rf conftest*
  6408. ;;
  6409. *-*-sco3.2v5*)
  6410. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6411. SAVE_CFLAGS="$CFLAGS"
  6412. CFLAGS="$CFLAGS -belf"
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6414. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6415. if ${lt_cv_cc_needs_belf+:} false; then :
  6416. $as_echo_n "(cached) " >&6
  6417. else
  6418. ac_ext=c
  6419. ac_cpp='$CPP $CPPFLAGS'
  6420. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6421. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6422. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6424. /* end confdefs.h. */
  6425. int
  6426. main ()
  6427. {
  6428. ;
  6429. return 0;
  6430. }
  6431. _ACEOF
  6432. if ac_fn_c_try_link "$LINENO"; then :
  6433. lt_cv_cc_needs_belf=yes
  6434. else
  6435. lt_cv_cc_needs_belf=no
  6436. fi
  6437. rm -f core conftest.err conftest.$ac_objext \
  6438. conftest$ac_exeext conftest.$ac_ext
  6439. ac_ext=c
  6440. ac_cpp='$CPP $CPPFLAGS'
  6441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6444. fi
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6446. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6447. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6448. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6449. CFLAGS="$SAVE_CFLAGS"
  6450. fi
  6451. ;;
  6452. *-*solaris*)
  6453. # Find out which ABI we are using.
  6454. echo 'int i;' > conftest.$ac_ext
  6455. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6456. (eval $ac_compile) 2>&5
  6457. ac_status=$?
  6458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6459. test $ac_status = 0; }; then
  6460. case `/usr/bin/file conftest.o` in
  6461. *64-bit*)
  6462. case $lt_cv_prog_gnu_ld in
  6463. yes*)
  6464. case $host in
  6465. i?86-*-solaris*)
  6466. LD="${LD-ld} -m elf_x86_64"
  6467. ;;
  6468. sparc*-*-solaris*)
  6469. LD="${LD-ld} -m elf64_sparc"
  6470. ;;
  6471. esac
  6472. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6473. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6474. LD="${LD-ld}_sol2"
  6475. fi
  6476. ;;
  6477. *)
  6478. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6479. LD="${LD-ld} -64"
  6480. fi
  6481. ;;
  6482. esac
  6483. ;;
  6484. esac
  6485. fi
  6486. rm -rf conftest*
  6487. ;;
  6488. esac
  6489. need_locks="$enable_libtool_lock"
  6490. if test -n "$ac_tool_prefix"; then
  6491. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6492. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6494. $as_echo_n "checking for $ac_word... " >&6; }
  6495. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6496. $as_echo_n "(cached) " >&6
  6497. else
  6498. if test -n "$MANIFEST_TOOL"; then
  6499. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6500. else
  6501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6502. for as_dir in $PATH
  6503. do
  6504. IFS=$as_save_IFS
  6505. test -z "$as_dir" && as_dir=.
  6506. for ac_exec_ext in '' $ac_executable_extensions; do
  6507. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6508. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6509. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6510. break 2
  6511. fi
  6512. done
  6513. done
  6514. IFS=$as_save_IFS
  6515. fi
  6516. fi
  6517. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6518. if test -n "$MANIFEST_TOOL"; then
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6520. $as_echo "$MANIFEST_TOOL" >&6; }
  6521. else
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6523. $as_echo "no" >&6; }
  6524. fi
  6525. fi
  6526. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6527. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6528. # Extract the first word of "mt", so it can be a program name with args.
  6529. set dummy mt; ac_word=$2
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6531. $as_echo_n "checking for $ac_word... " >&6; }
  6532. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6533. $as_echo_n "(cached) " >&6
  6534. else
  6535. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6536. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6537. else
  6538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6539. for as_dir in $PATH
  6540. do
  6541. IFS=$as_save_IFS
  6542. test -z "$as_dir" && as_dir=.
  6543. for ac_exec_ext in '' $ac_executable_extensions; do
  6544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6545. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6547. break 2
  6548. fi
  6549. done
  6550. done
  6551. IFS=$as_save_IFS
  6552. fi
  6553. fi
  6554. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6555. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6557. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6558. else
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6560. $as_echo "no" >&6; }
  6561. fi
  6562. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6563. MANIFEST_TOOL=":"
  6564. else
  6565. case $cross_compiling:$ac_tool_warned in
  6566. yes:)
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6568. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6569. ac_tool_warned=yes ;;
  6570. esac
  6571. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6572. fi
  6573. else
  6574. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6575. fi
  6576. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6578. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6579. if ${lt_cv_path_mainfest_tool+:} false; then :
  6580. $as_echo_n "(cached) " >&6
  6581. else
  6582. lt_cv_path_mainfest_tool=no
  6583. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6584. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6585. cat conftest.err >&5
  6586. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6587. lt_cv_path_mainfest_tool=yes
  6588. fi
  6589. rm -f conftest*
  6590. fi
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6592. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6593. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6594. MANIFEST_TOOL=:
  6595. fi
  6596. case $host_os in
  6597. rhapsody* | darwin*)
  6598. if test -n "$ac_tool_prefix"; then
  6599. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6600. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6602. $as_echo_n "checking for $ac_word... " >&6; }
  6603. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6604. $as_echo_n "(cached) " >&6
  6605. else
  6606. if test -n "$DSYMUTIL"; then
  6607. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6608. else
  6609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6610. for as_dir in $PATH
  6611. do
  6612. IFS=$as_save_IFS
  6613. test -z "$as_dir" && as_dir=.
  6614. for ac_exec_ext in '' $ac_executable_extensions; do
  6615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6616. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6618. break 2
  6619. fi
  6620. done
  6621. done
  6622. IFS=$as_save_IFS
  6623. fi
  6624. fi
  6625. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6626. if test -n "$DSYMUTIL"; then
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6628. $as_echo "$DSYMUTIL" >&6; }
  6629. else
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6631. $as_echo "no" >&6; }
  6632. fi
  6633. fi
  6634. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6635. ac_ct_DSYMUTIL=$DSYMUTIL
  6636. # Extract the first word of "dsymutil", so it can be a program name with args.
  6637. set dummy dsymutil; ac_word=$2
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6639. $as_echo_n "checking for $ac_word... " >&6; }
  6640. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6641. $as_echo_n "(cached) " >&6
  6642. else
  6643. if test -n "$ac_ct_DSYMUTIL"; then
  6644. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6645. else
  6646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6647. for as_dir in $PATH
  6648. do
  6649. IFS=$as_save_IFS
  6650. test -z "$as_dir" && as_dir=.
  6651. for ac_exec_ext in '' $ac_executable_extensions; do
  6652. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6653. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6655. break 2
  6656. fi
  6657. done
  6658. done
  6659. IFS=$as_save_IFS
  6660. fi
  6661. fi
  6662. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6663. if test -n "$ac_ct_DSYMUTIL"; then
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6665. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6666. else
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6668. $as_echo "no" >&6; }
  6669. fi
  6670. if test "x$ac_ct_DSYMUTIL" = x; then
  6671. DSYMUTIL=":"
  6672. else
  6673. case $cross_compiling:$ac_tool_warned in
  6674. yes:)
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6676. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6677. ac_tool_warned=yes ;;
  6678. esac
  6679. DSYMUTIL=$ac_ct_DSYMUTIL
  6680. fi
  6681. else
  6682. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6683. fi
  6684. if test -n "$ac_tool_prefix"; then
  6685. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6686. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6688. $as_echo_n "checking for $ac_word... " >&6; }
  6689. if ${ac_cv_prog_NMEDIT+:} false; then :
  6690. $as_echo_n "(cached) " >&6
  6691. else
  6692. if test -n "$NMEDIT"; then
  6693. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6694. else
  6695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6696. for as_dir in $PATH
  6697. do
  6698. IFS=$as_save_IFS
  6699. test -z "$as_dir" && as_dir=.
  6700. for ac_exec_ext in '' $ac_executable_extensions; do
  6701. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6702. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6704. break 2
  6705. fi
  6706. done
  6707. done
  6708. IFS=$as_save_IFS
  6709. fi
  6710. fi
  6711. NMEDIT=$ac_cv_prog_NMEDIT
  6712. if test -n "$NMEDIT"; then
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6714. $as_echo "$NMEDIT" >&6; }
  6715. else
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6717. $as_echo "no" >&6; }
  6718. fi
  6719. fi
  6720. if test -z "$ac_cv_prog_NMEDIT"; then
  6721. ac_ct_NMEDIT=$NMEDIT
  6722. # Extract the first word of "nmedit", so it can be a program name with args.
  6723. set dummy nmedit; ac_word=$2
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6725. $as_echo_n "checking for $ac_word... " >&6; }
  6726. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6727. $as_echo_n "(cached) " >&6
  6728. else
  6729. if test -n "$ac_ct_NMEDIT"; then
  6730. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6731. else
  6732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6733. for as_dir in $PATH
  6734. do
  6735. IFS=$as_save_IFS
  6736. test -z "$as_dir" && as_dir=.
  6737. for ac_exec_ext in '' $ac_executable_extensions; do
  6738. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6739. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6741. break 2
  6742. fi
  6743. done
  6744. done
  6745. IFS=$as_save_IFS
  6746. fi
  6747. fi
  6748. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6749. if test -n "$ac_ct_NMEDIT"; then
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6751. $as_echo "$ac_ct_NMEDIT" >&6; }
  6752. else
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6754. $as_echo "no" >&6; }
  6755. fi
  6756. if test "x$ac_ct_NMEDIT" = x; then
  6757. NMEDIT=":"
  6758. else
  6759. case $cross_compiling:$ac_tool_warned in
  6760. yes:)
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6762. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6763. ac_tool_warned=yes ;;
  6764. esac
  6765. NMEDIT=$ac_ct_NMEDIT
  6766. fi
  6767. else
  6768. NMEDIT="$ac_cv_prog_NMEDIT"
  6769. fi
  6770. if test -n "$ac_tool_prefix"; then
  6771. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6772. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6774. $as_echo_n "checking for $ac_word... " >&6; }
  6775. if ${ac_cv_prog_LIPO+:} false; then :
  6776. $as_echo_n "(cached) " >&6
  6777. else
  6778. if test -n "$LIPO"; then
  6779. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6780. else
  6781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6782. for as_dir in $PATH
  6783. do
  6784. IFS=$as_save_IFS
  6785. test -z "$as_dir" && as_dir=.
  6786. for ac_exec_ext in '' $ac_executable_extensions; do
  6787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6788. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6790. break 2
  6791. fi
  6792. done
  6793. done
  6794. IFS=$as_save_IFS
  6795. fi
  6796. fi
  6797. LIPO=$ac_cv_prog_LIPO
  6798. if test -n "$LIPO"; then
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6800. $as_echo "$LIPO" >&6; }
  6801. else
  6802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6803. $as_echo "no" >&6; }
  6804. fi
  6805. fi
  6806. if test -z "$ac_cv_prog_LIPO"; then
  6807. ac_ct_LIPO=$LIPO
  6808. # Extract the first word of "lipo", so it can be a program name with args.
  6809. set dummy lipo; ac_word=$2
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6811. $as_echo_n "checking for $ac_word... " >&6; }
  6812. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6813. $as_echo_n "(cached) " >&6
  6814. else
  6815. if test -n "$ac_ct_LIPO"; then
  6816. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6817. else
  6818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6819. for as_dir in $PATH
  6820. do
  6821. IFS=$as_save_IFS
  6822. test -z "$as_dir" && as_dir=.
  6823. for ac_exec_ext in '' $ac_executable_extensions; do
  6824. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6825. ac_cv_prog_ac_ct_LIPO="lipo"
  6826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6827. break 2
  6828. fi
  6829. done
  6830. done
  6831. IFS=$as_save_IFS
  6832. fi
  6833. fi
  6834. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6835. if test -n "$ac_ct_LIPO"; then
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6837. $as_echo "$ac_ct_LIPO" >&6; }
  6838. else
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6840. $as_echo "no" >&6; }
  6841. fi
  6842. if test "x$ac_ct_LIPO" = x; then
  6843. LIPO=":"
  6844. else
  6845. case $cross_compiling:$ac_tool_warned in
  6846. yes:)
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6848. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6849. ac_tool_warned=yes ;;
  6850. esac
  6851. LIPO=$ac_ct_LIPO
  6852. fi
  6853. else
  6854. LIPO="$ac_cv_prog_LIPO"
  6855. fi
  6856. if test -n "$ac_tool_prefix"; then
  6857. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6858. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6860. $as_echo_n "checking for $ac_word... " >&6; }
  6861. if ${ac_cv_prog_OTOOL+:} false; then :
  6862. $as_echo_n "(cached) " >&6
  6863. else
  6864. if test -n "$OTOOL"; then
  6865. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6866. else
  6867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6868. for as_dir in $PATH
  6869. do
  6870. IFS=$as_save_IFS
  6871. test -z "$as_dir" && as_dir=.
  6872. for ac_exec_ext in '' $ac_executable_extensions; do
  6873. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6874. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6876. break 2
  6877. fi
  6878. done
  6879. done
  6880. IFS=$as_save_IFS
  6881. fi
  6882. fi
  6883. OTOOL=$ac_cv_prog_OTOOL
  6884. if test -n "$OTOOL"; then
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6886. $as_echo "$OTOOL" >&6; }
  6887. else
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6889. $as_echo "no" >&6; }
  6890. fi
  6891. fi
  6892. if test -z "$ac_cv_prog_OTOOL"; then
  6893. ac_ct_OTOOL=$OTOOL
  6894. # Extract the first word of "otool", so it can be a program name with args.
  6895. set dummy otool; ac_word=$2
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6897. $as_echo_n "checking for $ac_word... " >&6; }
  6898. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6899. $as_echo_n "(cached) " >&6
  6900. else
  6901. if test -n "$ac_ct_OTOOL"; then
  6902. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6903. else
  6904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6905. for as_dir in $PATH
  6906. do
  6907. IFS=$as_save_IFS
  6908. test -z "$as_dir" && as_dir=.
  6909. for ac_exec_ext in '' $ac_executable_extensions; do
  6910. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6911. ac_cv_prog_ac_ct_OTOOL="otool"
  6912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6913. break 2
  6914. fi
  6915. done
  6916. done
  6917. IFS=$as_save_IFS
  6918. fi
  6919. fi
  6920. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6921. if test -n "$ac_ct_OTOOL"; then
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6923. $as_echo "$ac_ct_OTOOL" >&6; }
  6924. else
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6926. $as_echo "no" >&6; }
  6927. fi
  6928. if test "x$ac_ct_OTOOL" = x; then
  6929. OTOOL=":"
  6930. else
  6931. case $cross_compiling:$ac_tool_warned in
  6932. yes:)
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6934. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6935. ac_tool_warned=yes ;;
  6936. esac
  6937. OTOOL=$ac_ct_OTOOL
  6938. fi
  6939. else
  6940. OTOOL="$ac_cv_prog_OTOOL"
  6941. fi
  6942. if test -n "$ac_tool_prefix"; then
  6943. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6944. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6946. $as_echo_n "checking for $ac_word... " >&6; }
  6947. if ${ac_cv_prog_OTOOL64+:} false; then :
  6948. $as_echo_n "(cached) " >&6
  6949. else
  6950. if test -n "$OTOOL64"; then
  6951. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6952. else
  6953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6954. for as_dir in $PATH
  6955. do
  6956. IFS=$as_save_IFS
  6957. test -z "$as_dir" && as_dir=.
  6958. for ac_exec_ext in '' $ac_executable_extensions; do
  6959. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6960. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6962. break 2
  6963. fi
  6964. done
  6965. done
  6966. IFS=$as_save_IFS
  6967. fi
  6968. fi
  6969. OTOOL64=$ac_cv_prog_OTOOL64
  6970. if test -n "$OTOOL64"; then
  6971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6972. $as_echo "$OTOOL64" >&6; }
  6973. else
  6974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6975. $as_echo "no" >&6; }
  6976. fi
  6977. fi
  6978. if test -z "$ac_cv_prog_OTOOL64"; then
  6979. ac_ct_OTOOL64=$OTOOL64
  6980. # Extract the first word of "otool64", so it can be a program name with args.
  6981. set dummy otool64; ac_word=$2
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6983. $as_echo_n "checking for $ac_word... " >&6; }
  6984. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6985. $as_echo_n "(cached) " >&6
  6986. else
  6987. if test -n "$ac_ct_OTOOL64"; then
  6988. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6989. else
  6990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6991. for as_dir in $PATH
  6992. do
  6993. IFS=$as_save_IFS
  6994. test -z "$as_dir" && as_dir=.
  6995. for ac_exec_ext in '' $ac_executable_extensions; do
  6996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6997. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6999. break 2
  7000. fi
  7001. done
  7002. done
  7003. IFS=$as_save_IFS
  7004. fi
  7005. fi
  7006. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7007. if test -n "$ac_ct_OTOOL64"; then
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7009. $as_echo "$ac_ct_OTOOL64" >&6; }
  7010. else
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7012. $as_echo "no" >&6; }
  7013. fi
  7014. if test "x$ac_ct_OTOOL64" = x; then
  7015. OTOOL64=":"
  7016. else
  7017. case $cross_compiling:$ac_tool_warned in
  7018. yes:)
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7020. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7021. ac_tool_warned=yes ;;
  7022. esac
  7023. OTOOL64=$ac_ct_OTOOL64
  7024. fi
  7025. else
  7026. OTOOL64="$ac_cv_prog_OTOOL64"
  7027. fi
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7029. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7030. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7031. $as_echo_n "(cached) " >&6
  7032. else
  7033. lt_cv_apple_cc_single_mod=no
  7034. if test -z "${LT_MULTI_MODULE}"; then
  7035. # By default we will add the -single_module flag. You can override
  7036. # by either setting the environment variable LT_MULTI_MODULE
  7037. # non-empty at configure time, or by adding -multi_module to the
  7038. # link flags.
  7039. rm -rf libconftest.dylib*
  7040. echo "int foo(void){return 1;}" > conftest.c
  7041. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7042. -dynamiclib -Wl,-single_module conftest.c" >&5
  7043. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7044. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7045. _lt_result=$?
  7046. # If there is a non-empty error log, and "single_module"
  7047. # appears in it, assume the flag caused a linker warning
  7048. if test -s conftest.err && $GREP single_module conftest.err; then
  7049. cat conftest.err >&5
  7050. # Otherwise, if the output was created with a 0 exit code from
  7051. # the compiler, it worked.
  7052. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7053. lt_cv_apple_cc_single_mod=yes
  7054. else
  7055. cat conftest.err >&5
  7056. fi
  7057. rm -rf libconftest.dylib*
  7058. rm -f conftest.*
  7059. fi
  7060. fi
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7062. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7064. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7065. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7066. $as_echo_n "(cached) " >&6
  7067. else
  7068. lt_cv_ld_exported_symbols_list=no
  7069. save_LDFLAGS=$LDFLAGS
  7070. echo "_main" > conftest.sym
  7071. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7073. /* end confdefs.h. */
  7074. int
  7075. main ()
  7076. {
  7077. ;
  7078. return 0;
  7079. }
  7080. _ACEOF
  7081. if ac_fn_c_try_link "$LINENO"; then :
  7082. lt_cv_ld_exported_symbols_list=yes
  7083. else
  7084. lt_cv_ld_exported_symbols_list=no
  7085. fi
  7086. rm -f core conftest.err conftest.$ac_objext \
  7087. conftest$ac_exeext conftest.$ac_ext
  7088. LDFLAGS="$save_LDFLAGS"
  7089. fi
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7091. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7093. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7094. if ${lt_cv_ld_force_load+:} false; then :
  7095. $as_echo_n "(cached) " >&6
  7096. else
  7097. lt_cv_ld_force_load=no
  7098. cat > conftest.c << _LT_EOF
  7099. int forced_loaded() { return 2;}
  7100. _LT_EOF
  7101. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7102. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7103. echo "$AR cru libconftest.a conftest.o" >&5
  7104. $AR cru libconftest.a conftest.o 2>&5
  7105. echo "$RANLIB libconftest.a" >&5
  7106. $RANLIB libconftest.a 2>&5
  7107. cat > conftest.c << _LT_EOF
  7108. int main() { return 0;}
  7109. _LT_EOF
  7110. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7111. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7112. _lt_result=$?
  7113. if test -s conftest.err && $GREP force_load conftest.err; then
  7114. cat conftest.err >&5
  7115. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7116. lt_cv_ld_force_load=yes
  7117. else
  7118. cat conftest.err >&5
  7119. fi
  7120. rm -f conftest.err libconftest.a conftest conftest.c
  7121. rm -rf conftest.dSYM
  7122. fi
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7124. $as_echo "$lt_cv_ld_force_load" >&6; }
  7125. case $host_os in
  7126. rhapsody* | darwin1.[012])
  7127. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7128. darwin1.*)
  7129. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7130. darwin*) # darwin 5.x on
  7131. # if running on 10.5 or later, the deployment target defaults
  7132. # to the OS version, if on x86, and 10.4, the deployment
  7133. # target defaults to 10.4. Don't you love it?
  7134. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7135. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7136. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7137. 10.[012]*)
  7138. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7139. 10.*)
  7140. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7141. esac
  7142. ;;
  7143. esac
  7144. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7145. _lt_dar_single_mod='$single_module'
  7146. fi
  7147. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7148. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7149. else
  7150. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7151. fi
  7152. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7153. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7154. else
  7155. _lt_dsymutil=
  7156. fi
  7157. ;;
  7158. esac
  7159. for ac_header in dlfcn.h
  7160. do :
  7161. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7162. "
  7163. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7164. cat >>confdefs.h <<_ACEOF
  7165. #define HAVE_DLFCN_H 1
  7166. _ACEOF
  7167. fi
  7168. done
  7169. func_stripname_cnf ()
  7170. {
  7171. case ${2} in
  7172. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7173. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7174. esac
  7175. } # func_stripname_cnf
  7176. # Set options
  7177. enable_dlopen=no
  7178. # Check whether --enable-shared was given.
  7179. if test "${enable_shared+set}" = set; then :
  7180. enableval=$enable_shared; p=${PACKAGE-default}
  7181. case $enableval in
  7182. yes) enable_shared=yes ;;
  7183. no) enable_shared=no ;;
  7184. *)
  7185. enable_shared=no
  7186. # Look at the argument we got. We use all the common list separators.
  7187. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7188. for pkg in $enableval; do
  7189. IFS="$lt_save_ifs"
  7190. if test "X$pkg" = "X$p"; then
  7191. enable_shared=yes
  7192. fi
  7193. done
  7194. IFS="$lt_save_ifs"
  7195. ;;
  7196. esac
  7197. else
  7198. enable_shared=yes
  7199. fi
  7200. # Check whether --enable-static was given.
  7201. if test "${enable_static+set}" = set; then :
  7202. enableval=$enable_static; p=${PACKAGE-default}
  7203. case $enableval in
  7204. yes) enable_static=yes ;;
  7205. no) enable_static=no ;;
  7206. *)
  7207. enable_static=no
  7208. # Look at the argument we got. We use all the common list separators.
  7209. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7210. for pkg in $enableval; do
  7211. IFS="$lt_save_ifs"
  7212. if test "X$pkg" = "X$p"; then
  7213. enable_static=yes
  7214. fi
  7215. done
  7216. IFS="$lt_save_ifs"
  7217. ;;
  7218. esac
  7219. else
  7220. enable_static=yes
  7221. fi
  7222. # Check whether --with-pic was given.
  7223. if test "${with_pic+set}" = set; then :
  7224. withval=$with_pic; lt_p=${PACKAGE-default}
  7225. case $withval in
  7226. yes|no) pic_mode=$withval ;;
  7227. *)
  7228. pic_mode=default
  7229. # Look at the argument we got. We use all the common list separators.
  7230. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7231. for lt_pkg in $withval; do
  7232. IFS="$lt_save_ifs"
  7233. if test "X$lt_pkg" = "X$lt_p"; then
  7234. pic_mode=yes
  7235. fi
  7236. done
  7237. IFS="$lt_save_ifs"
  7238. ;;
  7239. esac
  7240. else
  7241. pic_mode=default
  7242. fi
  7243. test -z "$pic_mode" && pic_mode=default
  7244. # Check whether --enable-fast-install was given.
  7245. if test "${enable_fast_install+set}" = set; then :
  7246. enableval=$enable_fast_install; p=${PACKAGE-default}
  7247. case $enableval in
  7248. yes) enable_fast_install=yes ;;
  7249. no) enable_fast_install=no ;;
  7250. *)
  7251. enable_fast_install=no
  7252. # Look at the argument we got. We use all the common list separators.
  7253. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7254. for pkg in $enableval; do
  7255. IFS="$lt_save_ifs"
  7256. if test "X$pkg" = "X$p"; then
  7257. enable_fast_install=yes
  7258. fi
  7259. done
  7260. IFS="$lt_save_ifs"
  7261. ;;
  7262. esac
  7263. else
  7264. enable_fast_install=yes
  7265. fi
  7266. # This can be used to rebuild libtool when needed
  7267. LIBTOOL_DEPS="$ltmain"
  7268. # Always use our own libtool.
  7269. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7270. test -z "$LN_S" && LN_S="ln -s"
  7271. if test -n "${ZSH_VERSION+set}" ; then
  7272. setopt NO_GLOB_SUBST
  7273. fi
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7275. $as_echo_n "checking for objdir... " >&6; }
  7276. if ${lt_cv_objdir+:} false; then :
  7277. $as_echo_n "(cached) " >&6
  7278. else
  7279. rm -f .libs 2>/dev/null
  7280. mkdir .libs 2>/dev/null
  7281. if test -d .libs; then
  7282. lt_cv_objdir=.libs
  7283. else
  7284. # MS-DOS does not allow filenames that begin with a dot.
  7285. lt_cv_objdir=_libs
  7286. fi
  7287. rmdir .libs 2>/dev/null
  7288. fi
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7290. $as_echo "$lt_cv_objdir" >&6; }
  7291. objdir=$lt_cv_objdir
  7292. cat >>confdefs.h <<_ACEOF
  7293. #define LT_OBJDIR "$lt_cv_objdir/"
  7294. _ACEOF
  7295. case $host_os in
  7296. aix3*)
  7297. # AIX sometimes has problems with the GCC collect2 program. For some
  7298. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7299. # vanish in a puff of smoke.
  7300. if test "X${COLLECT_NAMES+set}" != Xset; then
  7301. COLLECT_NAMES=
  7302. export COLLECT_NAMES
  7303. fi
  7304. ;;
  7305. esac
  7306. # Global variables:
  7307. ofile=libtool
  7308. can_build_shared=yes
  7309. # All known linkers require a `.a' archive for static linking (except MSVC,
  7310. # which needs '.lib').
  7311. libext=a
  7312. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7313. old_CC="$CC"
  7314. old_CFLAGS="$CFLAGS"
  7315. # Set sane defaults for various variables
  7316. test -z "$CC" && CC=cc
  7317. test -z "$LTCC" && LTCC=$CC
  7318. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7319. test -z "$LD" && LD=ld
  7320. test -z "$ac_objext" && ac_objext=o
  7321. for cc_temp in $compiler""; do
  7322. case $cc_temp in
  7323. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7324. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7325. \-*) ;;
  7326. *) break;;
  7327. esac
  7328. done
  7329. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7330. # Only perform the check for file, if the check method requires it
  7331. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7332. case $deplibs_check_method in
  7333. file_magic*)
  7334. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7336. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7337. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7338. $as_echo_n "(cached) " >&6
  7339. else
  7340. case $MAGIC_CMD in
  7341. [\\/*] | ?:[\\/]*)
  7342. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7343. ;;
  7344. *)
  7345. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7346. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7347. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7348. for ac_dir in $ac_dummy; do
  7349. IFS="$lt_save_ifs"
  7350. test -z "$ac_dir" && ac_dir=.
  7351. if test -f $ac_dir/${ac_tool_prefix}file; then
  7352. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7353. if test -n "$file_magic_test_file"; then
  7354. case $deplibs_check_method in
  7355. "file_magic "*)
  7356. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7357. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7358. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7359. $EGREP "$file_magic_regex" > /dev/null; then
  7360. :
  7361. else
  7362. cat <<_LT_EOF 1>&2
  7363. *** Warning: the command libtool uses to detect shared libraries,
  7364. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7365. *** The result is that libtool may fail to recognize shared libraries
  7366. *** as such. This will affect the creation of libtool libraries that
  7367. *** depend on shared libraries, but programs linked with such libtool
  7368. *** libraries will work regardless of this problem. Nevertheless, you
  7369. *** may want to report the problem to your system manager and/or to
  7370. *** bug-libtool@gnu.org
  7371. _LT_EOF
  7372. fi ;;
  7373. esac
  7374. fi
  7375. break
  7376. fi
  7377. done
  7378. IFS="$lt_save_ifs"
  7379. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7380. ;;
  7381. esac
  7382. fi
  7383. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7384. if test -n "$MAGIC_CMD"; then
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7386. $as_echo "$MAGIC_CMD" >&6; }
  7387. else
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7389. $as_echo "no" >&6; }
  7390. fi
  7391. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7392. if test -n "$ac_tool_prefix"; then
  7393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7394. $as_echo_n "checking for file... " >&6; }
  7395. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7396. $as_echo_n "(cached) " >&6
  7397. else
  7398. case $MAGIC_CMD in
  7399. [\\/*] | ?:[\\/]*)
  7400. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7401. ;;
  7402. *)
  7403. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7404. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7405. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7406. for ac_dir in $ac_dummy; do
  7407. IFS="$lt_save_ifs"
  7408. test -z "$ac_dir" && ac_dir=.
  7409. if test -f $ac_dir/file; then
  7410. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7411. if test -n "$file_magic_test_file"; then
  7412. case $deplibs_check_method in
  7413. "file_magic "*)
  7414. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7415. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7416. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7417. $EGREP "$file_magic_regex" > /dev/null; then
  7418. :
  7419. else
  7420. cat <<_LT_EOF 1>&2
  7421. *** Warning: the command libtool uses to detect shared libraries,
  7422. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7423. *** The result is that libtool may fail to recognize shared libraries
  7424. *** as such. This will affect the creation of libtool libraries that
  7425. *** depend on shared libraries, but programs linked with such libtool
  7426. *** libraries will work regardless of this problem. Nevertheless, you
  7427. *** may want to report the problem to your system manager and/or to
  7428. *** bug-libtool@gnu.org
  7429. _LT_EOF
  7430. fi ;;
  7431. esac
  7432. fi
  7433. break
  7434. fi
  7435. done
  7436. IFS="$lt_save_ifs"
  7437. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7438. ;;
  7439. esac
  7440. fi
  7441. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7442. if test -n "$MAGIC_CMD"; then
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7444. $as_echo "$MAGIC_CMD" >&6; }
  7445. else
  7446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7447. $as_echo "no" >&6; }
  7448. fi
  7449. else
  7450. MAGIC_CMD=:
  7451. fi
  7452. fi
  7453. fi
  7454. ;;
  7455. esac
  7456. # Use C for the default configuration in the libtool script
  7457. lt_save_CC="$CC"
  7458. ac_ext=c
  7459. ac_cpp='$CPP $CPPFLAGS'
  7460. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7461. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7462. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7463. # Source file extension for C test sources.
  7464. ac_ext=c
  7465. # Object file extension for compiled C test sources.
  7466. objext=o
  7467. objext=$objext
  7468. # Code to be used in simple compile tests
  7469. lt_simple_compile_test_code="int some_variable = 0;"
  7470. # Code to be used in simple link tests
  7471. lt_simple_link_test_code='int main(){return(0);}'
  7472. # If no C compiler was specified, use CC.
  7473. LTCC=${LTCC-"$CC"}
  7474. # If no C compiler flags were specified, use CFLAGS.
  7475. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7476. # Allow CC to be a program name with arguments.
  7477. compiler=$CC
  7478. # Save the default compiler, since it gets overwritten when the other
  7479. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7480. compiler_DEFAULT=$CC
  7481. # save warnings/boilerplate of simple test code
  7482. ac_outfile=conftest.$ac_objext
  7483. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7484. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7485. _lt_compiler_boilerplate=`cat conftest.err`
  7486. $RM conftest*
  7487. ac_outfile=conftest.$ac_objext
  7488. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7489. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7490. _lt_linker_boilerplate=`cat conftest.err`
  7491. $RM -r conftest*
  7492. if test -n "$compiler"; then
  7493. lt_prog_compiler_no_builtin_flag=
  7494. if test "$GCC" = yes; then
  7495. case $cc_basename in
  7496. nvcc*)
  7497. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7498. *)
  7499. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7500. esac
  7501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7502. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7503. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7504. $as_echo_n "(cached) " >&6
  7505. else
  7506. lt_cv_prog_compiler_rtti_exceptions=no
  7507. ac_outfile=conftest.$ac_objext
  7508. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7509. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7510. # Insert the option either (1) after the last *FLAGS variable, or
  7511. # (2) before a word containing "conftest.", or (3) at the end.
  7512. # Note that $ac_compile itself does not contain backslashes and begins
  7513. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7514. # The option is referenced via a variable to avoid confusing sed.
  7515. lt_compile=`echo "$ac_compile" | $SED \
  7516. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7517. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7518. -e 's:$: $lt_compiler_flag:'`
  7519. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7520. (eval "$lt_compile" 2>conftest.err)
  7521. ac_status=$?
  7522. cat conftest.err >&5
  7523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7524. if (exit $ac_status) && test -s "$ac_outfile"; then
  7525. # The compiler can only warn and ignore the option if not recognized
  7526. # So say no if there are warnings other than the usual output.
  7527. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7528. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7529. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7530. lt_cv_prog_compiler_rtti_exceptions=yes
  7531. fi
  7532. fi
  7533. $RM conftest*
  7534. fi
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7536. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7537. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7538. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7539. else
  7540. :
  7541. fi
  7542. fi
  7543. lt_prog_compiler_wl=
  7544. lt_prog_compiler_pic=
  7545. lt_prog_compiler_static=
  7546. if test "$GCC" = yes; then
  7547. lt_prog_compiler_wl='-Wl,'
  7548. lt_prog_compiler_static='-static'
  7549. case $host_os in
  7550. aix*)
  7551. # All AIX code is PIC.
  7552. if test "$host_cpu" = ia64; then
  7553. # AIX 5 now supports IA64 processor
  7554. lt_prog_compiler_static='-Bstatic'
  7555. fi
  7556. ;;
  7557. amigaos*)
  7558. case $host_cpu in
  7559. powerpc)
  7560. # see comment about AmigaOS4 .so support
  7561. lt_prog_compiler_pic='-fPIC'
  7562. ;;
  7563. m68k)
  7564. # FIXME: we need at least 68020 code to build shared libraries, but
  7565. # adding the `-m68020' flag to GCC prevents building anything better,
  7566. # like `-m68040'.
  7567. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7568. ;;
  7569. esac
  7570. ;;
  7571. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7572. # PIC is the default for these OSes.
  7573. ;;
  7574. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7575. # This hack is so that the source file can tell whether it is being
  7576. # built for inclusion in a dll (and should export symbols for example).
  7577. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7578. # (--disable-auto-import) libraries
  7579. lt_prog_compiler_pic='-DDLL_EXPORT'
  7580. ;;
  7581. darwin* | rhapsody*)
  7582. # PIC is the default on this platform
  7583. # Common symbols not allowed in MH_DYLIB files
  7584. lt_prog_compiler_pic='-fno-common'
  7585. ;;
  7586. haiku*)
  7587. # PIC is the default for Haiku.
  7588. # The "-static" flag exists, but is broken.
  7589. lt_prog_compiler_static=
  7590. ;;
  7591. hpux*)
  7592. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7593. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7594. # sets the default TLS model and affects inlining.
  7595. case $host_cpu in
  7596. hppa*64*)
  7597. # +Z the default
  7598. ;;
  7599. *)
  7600. lt_prog_compiler_pic='-fPIC'
  7601. ;;
  7602. esac
  7603. ;;
  7604. interix[3-9]*)
  7605. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7606. # Instead, we relocate shared libraries at runtime.
  7607. ;;
  7608. msdosdjgpp*)
  7609. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7610. # on systems that don't support them.
  7611. lt_prog_compiler_can_build_shared=no
  7612. enable_shared=no
  7613. ;;
  7614. *nto* | *qnx*)
  7615. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7616. # it will coredump.
  7617. lt_prog_compiler_pic='-fPIC -shared'
  7618. ;;
  7619. sysv4*MP*)
  7620. if test -d /usr/nec; then
  7621. lt_prog_compiler_pic=-Kconform_pic
  7622. fi
  7623. ;;
  7624. *)
  7625. lt_prog_compiler_pic='-fPIC'
  7626. ;;
  7627. esac
  7628. case $cc_basename in
  7629. nvcc*) # Cuda Compiler Driver 2.2
  7630. lt_prog_compiler_wl='-Xlinker '
  7631. if test -n "$lt_prog_compiler_pic"; then
  7632. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7633. fi
  7634. ;;
  7635. esac
  7636. else
  7637. # PORTME Check for flag to pass linker flags through the system compiler.
  7638. case $host_os in
  7639. aix*)
  7640. lt_prog_compiler_wl='-Wl,'
  7641. if test "$host_cpu" = ia64; then
  7642. # AIX 5 now supports IA64 processor
  7643. lt_prog_compiler_static='-Bstatic'
  7644. else
  7645. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7646. fi
  7647. ;;
  7648. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7649. # This hack is so that the source file can tell whether it is being
  7650. # built for inclusion in a dll (and should export symbols for example).
  7651. lt_prog_compiler_pic='-DDLL_EXPORT'
  7652. ;;
  7653. hpux9* | hpux10* | hpux11*)
  7654. lt_prog_compiler_wl='-Wl,'
  7655. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7656. # not for PA HP-UX.
  7657. case $host_cpu in
  7658. hppa*64*|ia64*)
  7659. # +Z the default
  7660. ;;
  7661. *)
  7662. lt_prog_compiler_pic='+Z'
  7663. ;;
  7664. esac
  7665. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7666. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7667. ;;
  7668. irix5* | irix6* | nonstopux*)
  7669. lt_prog_compiler_wl='-Wl,'
  7670. # PIC (with -KPIC) is the default.
  7671. lt_prog_compiler_static='-non_shared'
  7672. ;;
  7673. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7674. case $cc_basename in
  7675. # old Intel for x86_64 which still supported -KPIC.
  7676. ecc*)
  7677. lt_prog_compiler_wl='-Wl,'
  7678. lt_prog_compiler_pic='-KPIC'
  7679. lt_prog_compiler_static='-static'
  7680. ;;
  7681. # icc used to be incompatible with GCC.
  7682. # ICC 10 doesn't accept -KPIC any more.
  7683. icc* | ifort*)
  7684. lt_prog_compiler_wl='-Wl,'
  7685. lt_prog_compiler_pic='-fPIC'
  7686. lt_prog_compiler_static='-static'
  7687. ;;
  7688. # Lahey Fortran 8.1.
  7689. lf95*)
  7690. lt_prog_compiler_wl='-Wl,'
  7691. lt_prog_compiler_pic='--shared'
  7692. lt_prog_compiler_static='--static'
  7693. ;;
  7694. nagfor*)
  7695. # NAG Fortran compiler
  7696. lt_prog_compiler_wl='-Wl,-Wl,,'
  7697. lt_prog_compiler_pic='-PIC'
  7698. lt_prog_compiler_static='-Bstatic'
  7699. ;;
  7700. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7701. # Portland Group compilers (*not* the Pentium gcc compiler,
  7702. # which looks to be a dead project)
  7703. lt_prog_compiler_wl='-Wl,'
  7704. lt_prog_compiler_pic='-fpic'
  7705. lt_prog_compiler_static='-Bstatic'
  7706. ;;
  7707. ccc*)
  7708. lt_prog_compiler_wl='-Wl,'
  7709. # All Alpha code is PIC.
  7710. lt_prog_compiler_static='-non_shared'
  7711. ;;
  7712. xl* | bgxl* | bgf* | mpixl*)
  7713. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7714. lt_prog_compiler_wl='-Wl,'
  7715. lt_prog_compiler_pic='-qpic'
  7716. lt_prog_compiler_static='-qstaticlink'
  7717. ;;
  7718. *)
  7719. case `$CC -V 2>&1 | sed 5q` in
  7720. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7721. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7722. lt_prog_compiler_pic='-KPIC'
  7723. lt_prog_compiler_static='-Bstatic'
  7724. lt_prog_compiler_wl=''
  7725. ;;
  7726. *Sun\ F* | *Sun*Fortran*)
  7727. lt_prog_compiler_pic='-KPIC'
  7728. lt_prog_compiler_static='-Bstatic'
  7729. lt_prog_compiler_wl='-Qoption ld '
  7730. ;;
  7731. *Sun\ C*)
  7732. # Sun C 5.9
  7733. lt_prog_compiler_pic='-KPIC'
  7734. lt_prog_compiler_static='-Bstatic'
  7735. lt_prog_compiler_wl='-Wl,'
  7736. ;;
  7737. *Intel*\ [CF]*Compiler*)
  7738. lt_prog_compiler_wl='-Wl,'
  7739. lt_prog_compiler_pic='-fPIC'
  7740. lt_prog_compiler_static='-static'
  7741. ;;
  7742. *Portland\ Group*)
  7743. lt_prog_compiler_wl='-Wl,'
  7744. lt_prog_compiler_pic='-fpic'
  7745. lt_prog_compiler_static='-Bstatic'
  7746. ;;
  7747. esac
  7748. ;;
  7749. esac
  7750. ;;
  7751. newsos6)
  7752. lt_prog_compiler_pic='-KPIC'
  7753. lt_prog_compiler_static='-Bstatic'
  7754. ;;
  7755. *nto* | *qnx*)
  7756. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7757. # it will coredump.
  7758. lt_prog_compiler_pic='-fPIC -shared'
  7759. ;;
  7760. osf3* | osf4* | osf5*)
  7761. lt_prog_compiler_wl='-Wl,'
  7762. # All OSF/1 code is PIC.
  7763. lt_prog_compiler_static='-non_shared'
  7764. ;;
  7765. rdos*)
  7766. lt_prog_compiler_static='-non_shared'
  7767. ;;
  7768. solaris*)
  7769. lt_prog_compiler_pic='-KPIC'
  7770. lt_prog_compiler_static='-Bstatic'
  7771. case $cc_basename in
  7772. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7773. lt_prog_compiler_wl='-Qoption ld ';;
  7774. *)
  7775. lt_prog_compiler_wl='-Wl,';;
  7776. esac
  7777. ;;
  7778. sunos4*)
  7779. lt_prog_compiler_wl='-Qoption ld '
  7780. lt_prog_compiler_pic='-PIC'
  7781. lt_prog_compiler_static='-Bstatic'
  7782. ;;
  7783. sysv4 | sysv4.2uw2* | sysv4.3*)
  7784. lt_prog_compiler_wl='-Wl,'
  7785. lt_prog_compiler_pic='-KPIC'
  7786. lt_prog_compiler_static='-Bstatic'
  7787. ;;
  7788. sysv4*MP*)
  7789. if test -d /usr/nec ;then
  7790. lt_prog_compiler_pic='-Kconform_pic'
  7791. lt_prog_compiler_static='-Bstatic'
  7792. fi
  7793. ;;
  7794. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7795. lt_prog_compiler_wl='-Wl,'
  7796. lt_prog_compiler_pic='-KPIC'
  7797. lt_prog_compiler_static='-Bstatic'
  7798. ;;
  7799. unicos*)
  7800. lt_prog_compiler_wl='-Wl,'
  7801. lt_prog_compiler_can_build_shared=no
  7802. ;;
  7803. uts4*)
  7804. lt_prog_compiler_pic='-pic'
  7805. lt_prog_compiler_static='-Bstatic'
  7806. ;;
  7807. *)
  7808. lt_prog_compiler_can_build_shared=no
  7809. ;;
  7810. esac
  7811. fi
  7812. case $host_os in
  7813. # For platforms which do not support PIC, -DPIC is meaningless:
  7814. *djgpp*)
  7815. lt_prog_compiler_pic=
  7816. ;;
  7817. *)
  7818. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7819. ;;
  7820. esac
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7822. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7823. if ${lt_cv_prog_compiler_pic+:} false; then :
  7824. $as_echo_n "(cached) " >&6
  7825. else
  7826. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7827. fi
  7828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7829. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7830. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7831. #
  7832. # Check to make sure the PIC flag actually works.
  7833. #
  7834. if test -n "$lt_prog_compiler_pic"; then
  7835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7836. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7837. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7838. $as_echo_n "(cached) " >&6
  7839. else
  7840. lt_cv_prog_compiler_pic_works=no
  7841. ac_outfile=conftest.$ac_objext
  7842. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7843. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7844. # Insert the option either (1) after the last *FLAGS variable, or
  7845. # (2) before a word containing "conftest.", or (3) at the end.
  7846. # Note that $ac_compile itself does not contain backslashes and begins
  7847. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7848. # The option is referenced via a variable to avoid confusing sed.
  7849. lt_compile=`echo "$ac_compile" | $SED \
  7850. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7851. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7852. -e 's:$: $lt_compiler_flag:'`
  7853. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7854. (eval "$lt_compile" 2>conftest.err)
  7855. ac_status=$?
  7856. cat conftest.err >&5
  7857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7858. if (exit $ac_status) && test -s "$ac_outfile"; then
  7859. # The compiler can only warn and ignore the option if not recognized
  7860. # So say no if there are warnings other than the usual output.
  7861. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7862. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7863. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7864. lt_cv_prog_compiler_pic_works=yes
  7865. fi
  7866. fi
  7867. $RM conftest*
  7868. fi
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7870. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7871. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7872. case $lt_prog_compiler_pic in
  7873. "" | " "*) ;;
  7874. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7875. esac
  7876. else
  7877. lt_prog_compiler_pic=
  7878. lt_prog_compiler_can_build_shared=no
  7879. fi
  7880. fi
  7881. #
  7882. # Check to make sure the static flag actually works.
  7883. #
  7884. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7886. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7887. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7888. $as_echo_n "(cached) " >&6
  7889. else
  7890. lt_cv_prog_compiler_static_works=no
  7891. save_LDFLAGS="$LDFLAGS"
  7892. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7893. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7894. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7895. # The linker can only warn and ignore the option if not recognized
  7896. # So say no if there are warnings
  7897. if test -s conftest.err; then
  7898. # Append any errors to the config.log.
  7899. cat conftest.err 1>&5
  7900. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7901. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7902. if diff conftest.exp conftest.er2 >/dev/null; then
  7903. lt_cv_prog_compiler_static_works=yes
  7904. fi
  7905. else
  7906. lt_cv_prog_compiler_static_works=yes
  7907. fi
  7908. fi
  7909. $RM -r conftest*
  7910. LDFLAGS="$save_LDFLAGS"
  7911. fi
  7912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7913. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7914. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7915. :
  7916. else
  7917. lt_prog_compiler_static=
  7918. fi
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7920. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7921. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7922. $as_echo_n "(cached) " >&6
  7923. else
  7924. lt_cv_prog_compiler_c_o=no
  7925. $RM -r conftest 2>/dev/null
  7926. mkdir conftest
  7927. cd conftest
  7928. mkdir out
  7929. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7930. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7931. # Insert the option either (1) after the last *FLAGS variable, or
  7932. # (2) before a word containing "conftest.", or (3) at the end.
  7933. # Note that $ac_compile itself does not contain backslashes and begins
  7934. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7935. lt_compile=`echo "$ac_compile" | $SED \
  7936. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7937. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7938. -e 's:$: $lt_compiler_flag:'`
  7939. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7940. (eval "$lt_compile" 2>out/conftest.err)
  7941. ac_status=$?
  7942. cat out/conftest.err >&5
  7943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7944. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7945. then
  7946. # The compiler can only warn and ignore the option if not recognized
  7947. # So say no if there are warnings
  7948. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7949. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7950. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7951. lt_cv_prog_compiler_c_o=yes
  7952. fi
  7953. fi
  7954. chmod u+w . 2>&5
  7955. $RM conftest*
  7956. # SGI C++ compiler will create directory out/ii_files/ for
  7957. # template instantiation
  7958. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7959. $RM out/* && rmdir out
  7960. cd ..
  7961. $RM -r conftest
  7962. $RM conftest*
  7963. fi
  7964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7965. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7967. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7968. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7969. $as_echo_n "(cached) " >&6
  7970. else
  7971. lt_cv_prog_compiler_c_o=no
  7972. $RM -r conftest 2>/dev/null
  7973. mkdir conftest
  7974. cd conftest
  7975. mkdir out
  7976. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7977. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7978. # Insert the option either (1) after the last *FLAGS variable, or
  7979. # (2) before a word containing "conftest.", or (3) at the end.
  7980. # Note that $ac_compile itself does not contain backslashes and begins
  7981. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7982. lt_compile=`echo "$ac_compile" | $SED \
  7983. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7984. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7985. -e 's:$: $lt_compiler_flag:'`
  7986. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7987. (eval "$lt_compile" 2>out/conftest.err)
  7988. ac_status=$?
  7989. cat out/conftest.err >&5
  7990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7991. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7992. then
  7993. # The compiler can only warn and ignore the option if not recognized
  7994. # So say no if there are warnings
  7995. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7996. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7997. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7998. lt_cv_prog_compiler_c_o=yes
  7999. fi
  8000. fi
  8001. chmod u+w . 2>&5
  8002. $RM conftest*
  8003. # SGI C++ compiler will create directory out/ii_files/ for
  8004. # template instantiation
  8005. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8006. $RM out/* && rmdir out
  8007. cd ..
  8008. $RM -r conftest
  8009. $RM conftest*
  8010. fi
  8011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8012. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8013. hard_links="nottested"
  8014. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8015. # do not overwrite the value of need_locks provided by the user
  8016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8017. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8018. hard_links=yes
  8019. $RM conftest*
  8020. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8021. touch conftest.a
  8022. ln conftest.a conftest.b 2>&5 || hard_links=no
  8023. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8025. $as_echo "$hard_links" >&6; }
  8026. if test "$hard_links" = no; then
  8027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8028. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8029. need_locks=warn
  8030. fi
  8031. else
  8032. need_locks=no
  8033. fi
  8034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8035. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8036. runpath_var=
  8037. allow_undefined_flag=
  8038. always_export_symbols=no
  8039. archive_cmds=
  8040. archive_expsym_cmds=
  8041. compiler_needs_object=no
  8042. enable_shared_with_static_runtimes=no
  8043. export_dynamic_flag_spec=
  8044. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8045. hardcode_automatic=no
  8046. hardcode_direct=no
  8047. hardcode_direct_absolute=no
  8048. hardcode_libdir_flag_spec=
  8049. hardcode_libdir_separator=
  8050. hardcode_minus_L=no
  8051. hardcode_shlibpath_var=unsupported
  8052. inherit_rpath=no
  8053. link_all_deplibs=unknown
  8054. module_cmds=
  8055. module_expsym_cmds=
  8056. old_archive_from_new_cmds=
  8057. old_archive_from_expsyms_cmds=
  8058. thread_safe_flag_spec=
  8059. whole_archive_flag_spec=
  8060. # include_expsyms should be a list of space-separated symbols to be *always*
  8061. # included in the symbol list
  8062. include_expsyms=
  8063. # exclude_expsyms can be an extended regexp of symbols to exclude
  8064. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8065. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8066. # as well as any symbol that contains `d'.
  8067. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8068. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8069. # platforms (ab)use it in PIC code, but their linkers get confused if
  8070. # the symbol is explicitly referenced. Since portable code cannot
  8071. # rely on this symbol name, it's probably fine to never include it in
  8072. # preloaded symbol tables.
  8073. # Exclude shared library initialization/finalization symbols.
  8074. extract_expsyms_cmds=
  8075. case $host_os in
  8076. cygwin* | mingw* | pw32* | cegcc*)
  8077. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8078. # When not using gcc, we currently assume that we are using
  8079. # Microsoft Visual C++.
  8080. if test "$GCC" != yes; then
  8081. with_gnu_ld=no
  8082. fi
  8083. ;;
  8084. interix*)
  8085. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8086. with_gnu_ld=yes
  8087. ;;
  8088. openbsd*)
  8089. with_gnu_ld=no
  8090. ;;
  8091. esac
  8092. ld_shlibs=yes
  8093. # On some targets, GNU ld is compatible enough with the native linker
  8094. # that we're better off using the native interface for both.
  8095. lt_use_gnu_ld_interface=no
  8096. if test "$with_gnu_ld" = yes; then
  8097. case $host_os in
  8098. aix*)
  8099. # The AIX port of GNU ld has always aspired to compatibility
  8100. # with the native linker. However, as the warning in the GNU ld
  8101. # block says, versions before 2.19.5* couldn't really create working
  8102. # shared libraries, regardless of the interface used.
  8103. case `$LD -v 2>&1` in
  8104. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8105. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8106. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8107. *)
  8108. lt_use_gnu_ld_interface=yes
  8109. ;;
  8110. esac
  8111. ;;
  8112. *)
  8113. lt_use_gnu_ld_interface=yes
  8114. ;;
  8115. esac
  8116. fi
  8117. if test "$lt_use_gnu_ld_interface" = yes; then
  8118. # If archive_cmds runs LD, not CC, wlarc should be empty
  8119. wlarc='${wl}'
  8120. # Set some defaults for GNU ld with shared library support. These
  8121. # are reset later if shared libraries are not supported. Putting them
  8122. # here allows them to be overridden if necessary.
  8123. runpath_var=LD_RUN_PATH
  8124. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8125. export_dynamic_flag_spec='${wl}--export-dynamic'
  8126. # ancient GNU ld didn't support --whole-archive et. al.
  8127. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8128. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8129. else
  8130. whole_archive_flag_spec=
  8131. fi
  8132. supports_anon_versioning=no
  8133. case `$LD -v 2>&1` in
  8134. *GNU\ gold*) supports_anon_versioning=yes ;;
  8135. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8136. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8137. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8138. *\ 2.11.*) ;; # other 2.11 versions
  8139. *) supports_anon_versioning=yes ;;
  8140. esac
  8141. # See if GNU ld supports shared libraries.
  8142. case $host_os in
  8143. aix[3-9]*)
  8144. # On AIX/PPC, the GNU linker is very broken
  8145. if test "$host_cpu" != ia64; then
  8146. ld_shlibs=no
  8147. cat <<_LT_EOF 1>&2
  8148. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8149. *** to be unable to reliably create shared libraries on AIX.
  8150. *** Therefore, libtool is disabling shared libraries support. If you
  8151. *** really care for shared libraries, you may want to install binutils
  8152. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8153. *** You will then need to restart the configuration process.
  8154. _LT_EOF
  8155. fi
  8156. ;;
  8157. amigaos*)
  8158. case $host_cpu in
  8159. powerpc)
  8160. # see comment about AmigaOS4 .so support
  8161. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8162. archive_expsym_cmds=''
  8163. ;;
  8164. m68k)
  8165. 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)'
  8166. hardcode_libdir_flag_spec='-L$libdir'
  8167. hardcode_minus_L=yes
  8168. ;;
  8169. esac
  8170. ;;
  8171. beos*)
  8172. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8173. allow_undefined_flag=unsupported
  8174. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8175. # support --undefined. This deserves some investigation. FIXME
  8176. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8177. else
  8178. ld_shlibs=no
  8179. fi
  8180. ;;
  8181. cygwin* | mingw* | pw32* | cegcc*)
  8182. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8183. # as there is no search path for DLLs.
  8184. hardcode_libdir_flag_spec='-L$libdir'
  8185. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8186. allow_undefined_flag=unsupported
  8187. always_export_symbols=no
  8188. enable_shared_with_static_runtimes=yes
  8189. 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'
  8190. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8191. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8192. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8193. # If the export-symbols file already is a .def file (1st line
  8194. # is EXPORTS), use it as is; otherwise, prepend...
  8195. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8196. cp $export_symbols $output_objdir/$soname.def;
  8197. else
  8198. echo EXPORTS > $output_objdir/$soname.def;
  8199. cat $export_symbols >> $output_objdir/$soname.def;
  8200. fi~
  8201. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8202. else
  8203. ld_shlibs=no
  8204. fi
  8205. ;;
  8206. haiku*)
  8207. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8208. link_all_deplibs=yes
  8209. ;;
  8210. interix[3-9]*)
  8211. hardcode_direct=no
  8212. hardcode_shlibpath_var=no
  8213. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8214. export_dynamic_flag_spec='${wl}-E'
  8215. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8216. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8217. # default) and relocated if they conflict, which is a slow very memory
  8218. # consuming and fragmenting process. To avoid this, we pick a random,
  8219. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8220. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8221. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8222. 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'
  8223. ;;
  8224. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8225. tmp_diet=no
  8226. if test "$host_os" = linux-dietlibc; then
  8227. case $cc_basename in
  8228. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8229. esac
  8230. fi
  8231. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8232. && test "$tmp_diet" = no
  8233. then
  8234. tmp_addflag=' $pic_flag'
  8235. tmp_sharedflag='-shared'
  8236. case $cc_basename,$host_cpu in
  8237. pgcc*) # Portland Group C compiler
  8238. 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'
  8239. tmp_addflag=' $pic_flag'
  8240. ;;
  8241. pgf77* | pgf90* | pgf95* | pgfortran*)
  8242. # Portland Group f77 and f90 compilers
  8243. 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'
  8244. tmp_addflag=' $pic_flag -Mnomain' ;;
  8245. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8246. tmp_addflag=' -i_dynamic' ;;
  8247. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8248. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8249. ifc* | ifort*) # Intel Fortran compiler
  8250. tmp_addflag=' -nofor_main' ;;
  8251. lf95*) # Lahey Fortran 8.1
  8252. whole_archive_flag_spec=
  8253. tmp_sharedflag='--shared' ;;
  8254. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8255. tmp_sharedflag='-qmkshrobj'
  8256. tmp_addflag= ;;
  8257. nvcc*) # Cuda Compiler Driver 2.2
  8258. 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'
  8259. compiler_needs_object=yes
  8260. ;;
  8261. esac
  8262. case `$CC -V 2>&1 | sed 5q` in
  8263. *Sun\ C*) # Sun C 5.9
  8264. 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'
  8265. compiler_needs_object=yes
  8266. tmp_sharedflag='-G' ;;
  8267. *Sun\ F*) # Sun Fortran 8.3
  8268. tmp_sharedflag='-G' ;;
  8269. esac
  8270. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8271. if test "x$supports_anon_versioning" = xyes; then
  8272. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8273. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8274. echo "local: *; };" >> $output_objdir/$libname.ver~
  8275. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8276. fi
  8277. case $cc_basename in
  8278. xlf* | bgf* | bgxlf* | mpixlf*)
  8279. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8280. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8281. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8282. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8283. if test "x$supports_anon_versioning" = xyes; then
  8284. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8285. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8286. echo "local: *; };" >> $output_objdir/$libname.ver~
  8287. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8288. fi
  8289. ;;
  8290. esac
  8291. else
  8292. ld_shlibs=no
  8293. fi
  8294. ;;
  8295. netbsd*)
  8296. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8297. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8298. wlarc=
  8299. else
  8300. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8301. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8302. fi
  8303. ;;
  8304. solaris*)
  8305. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8306. ld_shlibs=no
  8307. cat <<_LT_EOF 1>&2
  8308. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8309. *** create shared libraries on Solaris systems. Therefore, libtool
  8310. *** is disabling shared libraries support. We urge you to upgrade GNU
  8311. *** binutils to release 2.9.1 or newer. Another option is to modify
  8312. *** your PATH or compiler configuration so that the native linker is
  8313. *** used, and then restart.
  8314. _LT_EOF
  8315. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8316. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8317. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8318. else
  8319. ld_shlibs=no
  8320. fi
  8321. ;;
  8322. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8323. case `$LD -v 2>&1` in
  8324. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8325. ld_shlibs=no
  8326. cat <<_LT_EOF 1>&2
  8327. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8328. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8329. *** is disabling shared libraries support. We urge you to upgrade GNU
  8330. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8331. *** your PATH or compiler configuration so that the native linker is
  8332. *** used, and then restart.
  8333. _LT_EOF
  8334. ;;
  8335. *)
  8336. # For security reasons, it is highly recommended that you always
  8337. # use absolute paths for naming shared libraries, and exclude the
  8338. # DT_RUNPATH tag from executables and libraries. But doing so
  8339. # requires that you compile everything twice, which is a pain.
  8340. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8341. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8342. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8343. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8344. else
  8345. ld_shlibs=no
  8346. fi
  8347. ;;
  8348. esac
  8349. ;;
  8350. sunos4*)
  8351. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8352. wlarc=
  8353. hardcode_direct=yes
  8354. hardcode_shlibpath_var=no
  8355. ;;
  8356. *)
  8357. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8358. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8359. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8360. else
  8361. ld_shlibs=no
  8362. fi
  8363. ;;
  8364. esac
  8365. if test "$ld_shlibs" = no; then
  8366. runpath_var=
  8367. hardcode_libdir_flag_spec=
  8368. export_dynamic_flag_spec=
  8369. whole_archive_flag_spec=
  8370. fi
  8371. else
  8372. # PORTME fill in a description of your system's linker (not GNU ld)
  8373. case $host_os in
  8374. aix3*)
  8375. allow_undefined_flag=unsupported
  8376. always_export_symbols=yes
  8377. 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'
  8378. # Note: this linker hardcodes the directories in LIBPATH if there
  8379. # are no directories specified by -L.
  8380. hardcode_minus_L=yes
  8381. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8382. # Neither direct hardcoding nor static linking is supported with a
  8383. # broken collect2.
  8384. hardcode_direct=unsupported
  8385. fi
  8386. ;;
  8387. aix[4-9]*)
  8388. if test "$host_cpu" = ia64; then
  8389. # On IA64, the linker does run time linking by default, so we don't
  8390. # have to do anything special.
  8391. aix_use_runtimelinking=no
  8392. exp_sym_flag='-Bexport'
  8393. no_entry_flag=""
  8394. else
  8395. # If we're using GNU nm, then we don't want the "-C" option.
  8396. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8397. # Also, AIX nm treats weak defined symbols like other global
  8398. # defined symbols, whereas GNU nm marks them as "W".
  8399. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8400. 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'
  8401. else
  8402. 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'
  8403. fi
  8404. aix_use_runtimelinking=no
  8405. # Test if we are trying to use run time linking or normal
  8406. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8407. # need to do runtime linking.
  8408. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8409. for ld_flag in $LDFLAGS; do
  8410. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8411. aix_use_runtimelinking=yes
  8412. break
  8413. fi
  8414. done
  8415. ;;
  8416. esac
  8417. exp_sym_flag='-bexport'
  8418. no_entry_flag='-bnoentry'
  8419. fi
  8420. # When large executables or shared objects are built, AIX ld can
  8421. # have problems creating the table of contents. If linking a library
  8422. # or program results in "error TOC overflow" add -mminimal-toc to
  8423. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8424. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8425. archive_cmds=''
  8426. hardcode_direct=yes
  8427. hardcode_direct_absolute=yes
  8428. hardcode_libdir_separator=':'
  8429. link_all_deplibs=yes
  8430. file_list_spec='${wl}-f,'
  8431. if test "$GCC" = yes; then
  8432. case $host_os in aix4.[012]|aix4.[012].*)
  8433. # We only want to do this on AIX 4.2 and lower, the check
  8434. # below for broken collect2 doesn't work under 4.3+
  8435. collect2name=`${CC} -print-prog-name=collect2`
  8436. if test -f "$collect2name" &&
  8437. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8438. then
  8439. # We have reworked collect2
  8440. :
  8441. else
  8442. # We have old collect2
  8443. hardcode_direct=unsupported
  8444. # It fails to find uninstalled libraries when the uninstalled
  8445. # path is not listed in the libpath. Setting hardcode_minus_L
  8446. # to unsupported forces relinking
  8447. hardcode_minus_L=yes
  8448. hardcode_libdir_flag_spec='-L$libdir'
  8449. hardcode_libdir_separator=
  8450. fi
  8451. ;;
  8452. esac
  8453. shared_flag='-shared'
  8454. if test "$aix_use_runtimelinking" = yes; then
  8455. shared_flag="$shared_flag "'${wl}-G'
  8456. fi
  8457. else
  8458. # not using gcc
  8459. if test "$host_cpu" = ia64; then
  8460. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8461. # chokes on -Wl,-G. The following line is correct:
  8462. shared_flag='-G'
  8463. else
  8464. if test "$aix_use_runtimelinking" = yes; then
  8465. shared_flag='${wl}-G'
  8466. else
  8467. shared_flag='${wl}-bM:SRE'
  8468. fi
  8469. fi
  8470. fi
  8471. export_dynamic_flag_spec='${wl}-bexpall'
  8472. # It seems that -bexpall does not export symbols beginning with
  8473. # underscore (_), so it is better to generate a list of symbols to export.
  8474. always_export_symbols=yes
  8475. if test "$aix_use_runtimelinking" = yes; then
  8476. # Warning - without using the other runtime loading flags (-brtl),
  8477. # -berok will link without error, but may produce a broken library.
  8478. allow_undefined_flag='-berok'
  8479. # Determine the default libpath from the value encoded in an
  8480. # empty executable.
  8481. if test "${lt_cv_aix_libpath+set}" = set; then
  8482. aix_libpath=$lt_cv_aix_libpath
  8483. else
  8484. if ${lt_cv_aix_libpath_+:} false; then :
  8485. $as_echo_n "(cached) " >&6
  8486. else
  8487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8488. /* end confdefs.h. */
  8489. int
  8490. main ()
  8491. {
  8492. ;
  8493. return 0;
  8494. }
  8495. _ACEOF
  8496. if ac_fn_c_try_link "$LINENO"; then :
  8497. lt_aix_libpath_sed='
  8498. /Import File Strings/,/^$/ {
  8499. /^0/ {
  8500. s/^0 *\([^ ]*\) *$/\1/
  8501. p
  8502. }
  8503. }'
  8504. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8505. # Check for a 64-bit object if we didn't find anything.
  8506. if test -z "$lt_cv_aix_libpath_"; then
  8507. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8508. fi
  8509. fi
  8510. rm -f core conftest.err conftest.$ac_objext \
  8511. conftest$ac_exeext conftest.$ac_ext
  8512. if test -z "$lt_cv_aix_libpath_"; then
  8513. lt_cv_aix_libpath_="/usr/lib:/lib"
  8514. fi
  8515. fi
  8516. aix_libpath=$lt_cv_aix_libpath_
  8517. fi
  8518. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8519. 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"
  8520. else
  8521. if test "$host_cpu" = ia64; then
  8522. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8523. allow_undefined_flag="-z nodefs"
  8524. 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"
  8525. else
  8526. # Determine the default libpath from the value encoded in an
  8527. # empty executable.
  8528. if test "${lt_cv_aix_libpath+set}" = set; then
  8529. aix_libpath=$lt_cv_aix_libpath
  8530. else
  8531. if ${lt_cv_aix_libpath_+:} false; then :
  8532. $as_echo_n "(cached) " >&6
  8533. else
  8534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8535. /* end confdefs.h. */
  8536. int
  8537. main ()
  8538. {
  8539. ;
  8540. return 0;
  8541. }
  8542. _ACEOF
  8543. if ac_fn_c_try_link "$LINENO"; then :
  8544. lt_aix_libpath_sed='
  8545. /Import File Strings/,/^$/ {
  8546. /^0/ {
  8547. s/^0 *\([^ ]*\) *$/\1/
  8548. p
  8549. }
  8550. }'
  8551. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8552. # Check for a 64-bit object if we didn't find anything.
  8553. if test -z "$lt_cv_aix_libpath_"; then
  8554. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8555. fi
  8556. fi
  8557. rm -f core conftest.err conftest.$ac_objext \
  8558. conftest$ac_exeext conftest.$ac_ext
  8559. if test -z "$lt_cv_aix_libpath_"; then
  8560. lt_cv_aix_libpath_="/usr/lib:/lib"
  8561. fi
  8562. fi
  8563. aix_libpath=$lt_cv_aix_libpath_
  8564. fi
  8565. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8566. # Warning - without using the other run time loading flags,
  8567. # -berok will link without error, but may produce a broken library.
  8568. no_undefined_flag=' ${wl}-bernotok'
  8569. allow_undefined_flag=' ${wl}-berok'
  8570. if test "$with_gnu_ld" = yes; then
  8571. # We only use this code for GNU lds that support --whole-archive.
  8572. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8573. else
  8574. # Exported symbols can be pulled into shared objects from archives
  8575. whole_archive_flag_spec='$convenience'
  8576. fi
  8577. archive_cmds_need_lc=yes
  8578. # This is similar to how AIX traditionally builds its shared libraries.
  8579. 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'
  8580. fi
  8581. fi
  8582. ;;
  8583. amigaos*)
  8584. case $host_cpu in
  8585. powerpc)
  8586. # see comment about AmigaOS4 .so support
  8587. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8588. archive_expsym_cmds=''
  8589. ;;
  8590. m68k)
  8591. 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)'
  8592. hardcode_libdir_flag_spec='-L$libdir'
  8593. hardcode_minus_L=yes
  8594. ;;
  8595. esac
  8596. ;;
  8597. bsdi[45]*)
  8598. export_dynamic_flag_spec=-rdynamic
  8599. ;;
  8600. cygwin* | mingw* | pw32* | cegcc*)
  8601. # When not using gcc, we currently assume that we are using
  8602. # Microsoft Visual C++.
  8603. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8604. # no search path for DLLs.
  8605. case $cc_basename in
  8606. cl*)
  8607. # Native MSVC
  8608. hardcode_libdir_flag_spec=' '
  8609. allow_undefined_flag=unsupported
  8610. always_export_symbols=yes
  8611. file_list_spec='@'
  8612. # Tell ltmain to make .lib files, not .a files.
  8613. libext=lib
  8614. # Tell ltmain to make .dll files, not .so files.
  8615. shrext_cmds=".dll"
  8616. # FIXME: Setting linknames here is a bad hack.
  8617. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8618. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8619. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8620. else
  8621. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8622. fi~
  8623. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8624. linknames='
  8625. # The linker will not automatically build a static lib if we build a DLL.
  8626. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8627. enable_shared_with_static_runtimes=yes
  8628. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8629. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8630. # Don't use ranlib
  8631. old_postinstall_cmds='chmod 644 $oldlib'
  8632. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8633. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8634. case $lt_outputfile in
  8635. *.exe|*.EXE) ;;
  8636. *)
  8637. lt_outputfile="$lt_outputfile.exe"
  8638. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8639. ;;
  8640. esac~
  8641. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8642. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8643. $RM "$lt_outputfile.manifest";
  8644. fi'
  8645. ;;
  8646. *)
  8647. # Assume MSVC wrapper
  8648. hardcode_libdir_flag_spec=' '
  8649. allow_undefined_flag=unsupported
  8650. # Tell ltmain to make .lib files, not .a files.
  8651. libext=lib
  8652. # Tell ltmain to make .dll files, not .so files.
  8653. shrext_cmds=".dll"
  8654. # FIXME: Setting linknames here is a bad hack.
  8655. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8656. # The linker will automatically build a .lib file if we build a DLL.
  8657. old_archive_from_new_cmds='true'
  8658. # FIXME: Should let the user specify the lib program.
  8659. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8660. enable_shared_with_static_runtimes=yes
  8661. ;;
  8662. esac
  8663. ;;
  8664. darwin* | rhapsody*)
  8665. archive_cmds_need_lc=no
  8666. hardcode_direct=no
  8667. hardcode_automatic=yes
  8668. hardcode_shlibpath_var=unsupported
  8669. if test "$lt_cv_ld_force_load" = "yes"; then
  8670. 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\"`'
  8671. else
  8672. whole_archive_flag_spec=''
  8673. fi
  8674. link_all_deplibs=yes
  8675. allow_undefined_flag="$_lt_dar_allow_undefined"
  8676. case $cc_basename in
  8677. ifort*) _lt_dar_can_shared=yes ;;
  8678. *) _lt_dar_can_shared=$GCC ;;
  8679. esac
  8680. if test "$_lt_dar_can_shared" = "yes"; then
  8681. output_verbose_link_cmd=func_echo_all
  8682. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8683. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8684. 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}"
  8685. 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}"
  8686. else
  8687. ld_shlibs=no
  8688. fi
  8689. ;;
  8690. dgux*)
  8691. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8692. hardcode_libdir_flag_spec='-L$libdir'
  8693. hardcode_shlibpath_var=no
  8694. ;;
  8695. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8696. # support. Future versions do this automatically, but an explicit c++rt0.o
  8697. # does not break anything, and helps significantly (at the cost of a little
  8698. # extra space).
  8699. freebsd2.2*)
  8700. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8701. hardcode_libdir_flag_spec='-R$libdir'
  8702. hardcode_direct=yes
  8703. hardcode_shlibpath_var=no
  8704. ;;
  8705. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8706. freebsd2.*)
  8707. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8708. hardcode_direct=yes
  8709. hardcode_minus_L=yes
  8710. hardcode_shlibpath_var=no
  8711. ;;
  8712. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8713. freebsd* | dragonfly*)
  8714. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8715. hardcode_libdir_flag_spec='-R$libdir'
  8716. hardcode_direct=yes
  8717. hardcode_shlibpath_var=no
  8718. ;;
  8719. hpux9*)
  8720. if test "$GCC" = yes; then
  8721. 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'
  8722. else
  8723. 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'
  8724. fi
  8725. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8726. hardcode_libdir_separator=:
  8727. hardcode_direct=yes
  8728. # hardcode_minus_L: Not really in the search PATH,
  8729. # but as the default location of the library.
  8730. hardcode_minus_L=yes
  8731. export_dynamic_flag_spec='${wl}-E'
  8732. ;;
  8733. hpux10*)
  8734. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8735. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8736. else
  8737. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8738. fi
  8739. if test "$with_gnu_ld" = no; then
  8740. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8741. hardcode_libdir_separator=:
  8742. hardcode_direct=yes
  8743. hardcode_direct_absolute=yes
  8744. export_dynamic_flag_spec='${wl}-E'
  8745. # hardcode_minus_L: Not really in the search PATH,
  8746. # but as the default location of the library.
  8747. hardcode_minus_L=yes
  8748. fi
  8749. ;;
  8750. hpux11*)
  8751. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8752. case $host_cpu in
  8753. hppa*64*)
  8754. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8755. ;;
  8756. ia64*)
  8757. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8758. ;;
  8759. *)
  8760. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8761. ;;
  8762. esac
  8763. else
  8764. case $host_cpu in
  8765. hppa*64*)
  8766. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8767. ;;
  8768. ia64*)
  8769. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8770. ;;
  8771. *)
  8772. # Older versions of the 11.00 compiler do not understand -b yet
  8773. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8775. $as_echo_n "checking if $CC understands -b... " >&6; }
  8776. if ${lt_cv_prog_compiler__b+:} false; then :
  8777. $as_echo_n "(cached) " >&6
  8778. else
  8779. lt_cv_prog_compiler__b=no
  8780. save_LDFLAGS="$LDFLAGS"
  8781. LDFLAGS="$LDFLAGS -b"
  8782. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8783. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8784. # The linker can only warn and ignore the option if not recognized
  8785. # So say no if there are warnings
  8786. if test -s conftest.err; then
  8787. # Append any errors to the config.log.
  8788. cat conftest.err 1>&5
  8789. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8790. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8791. if diff conftest.exp conftest.er2 >/dev/null; then
  8792. lt_cv_prog_compiler__b=yes
  8793. fi
  8794. else
  8795. lt_cv_prog_compiler__b=yes
  8796. fi
  8797. fi
  8798. $RM -r conftest*
  8799. LDFLAGS="$save_LDFLAGS"
  8800. fi
  8801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8802. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8803. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8804. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8805. else
  8806. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8807. fi
  8808. ;;
  8809. esac
  8810. fi
  8811. if test "$with_gnu_ld" = no; then
  8812. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8813. hardcode_libdir_separator=:
  8814. case $host_cpu in
  8815. hppa*64*|ia64*)
  8816. hardcode_direct=no
  8817. hardcode_shlibpath_var=no
  8818. ;;
  8819. *)
  8820. hardcode_direct=yes
  8821. hardcode_direct_absolute=yes
  8822. export_dynamic_flag_spec='${wl}-E'
  8823. # hardcode_minus_L: Not really in the search PATH,
  8824. # but as the default location of the library.
  8825. hardcode_minus_L=yes
  8826. ;;
  8827. esac
  8828. fi
  8829. ;;
  8830. irix5* | irix6* | nonstopux*)
  8831. if test "$GCC" = yes; then
  8832. 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'
  8833. # Try to use the -exported_symbol ld option, if it does not
  8834. # work, assume that -exports_file does not work either and
  8835. # implicitly export all symbols.
  8836. # This should be the same for all languages, so no per-tag cache variable.
  8837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8838. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8839. if ${lt_cv_irix_exported_symbol+:} false; then :
  8840. $as_echo_n "(cached) " >&6
  8841. else
  8842. save_LDFLAGS="$LDFLAGS"
  8843. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8845. /* end confdefs.h. */
  8846. int foo (void) { return 0; }
  8847. _ACEOF
  8848. if ac_fn_c_try_link "$LINENO"; then :
  8849. lt_cv_irix_exported_symbol=yes
  8850. else
  8851. lt_cv_irix_exported_symbol=no
  8852. fi
  8853. rm -f core conftest.err conftest.$ac_objext \
  8854. conftest$ac_exeext conftest.$ac_ext
  8855. LDFLAGS="$save_LDFLAGS"
  8856. fi
  8857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8858. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8859. if test "$lt_cv_irix_exported_symbol" = yes; then
  8860. 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'
  8861. fi
  8862. else
  8863. 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'
  8864. 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'
  8865. fi
  8866. archive_cmds_need_lc='no'
  8867. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8868. hardcode_libdir_separator=:
  8869. inherit_rpath=yes
  8870. link_all_deplibs=yes
  8871. ;;
  8872. netbsd*)
  8873. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8874. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8875. else
  8876. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8877. fi
  8878. hardcode_libdir_flag_spec='-R$libdir'
  8879. hardcode_direct=yes
  8880. hardcode_shlibpath_var=no
  8881. ;;
  8882. newsos6)
  8883. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8884. hardcode_direct=yes
  8885. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8886. hardcode_libdir_separator=:
  8887. hardcode_shlibpath_var=no
  8888. ;;
  8889. *nto* | *qnx*)
  8890. ;;
  8891. openbsd*)
  8892. if test -f /usr/libexec/ld.so; then
  8893. hardcode_direct=yes
  8894. hardcode_shlibpath_var=no
  8895. hardcode_direct_absolute=yes
  8896. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8897. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8898. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8899. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8900. export_dynamic_flag_spec='${wl}-E'
  8901. else
  8902. case $host_os in
  8903. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8904. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8905. hardcode_libdir_flag_spec='-R$libdir'
  8906. ;;
  8907. *)
  8908. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8909. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8910. ;;
  8911. esac
  8912. fi
  8913. else
  8914. ld_shlibs=no
  8915. fi
  8916. ;;
  8917. os2*)
  8918. hardcode_libdir_flag_spec='-L$libdir'
  8919. hardcode_minus_L=yes
  8920. allow_undefined_flag=unsupported
  8921. 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'
  8922. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8923. ;;
  8924. osf3*)
  8925. if test "$GCC" = yes; then
  8926. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8927. 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'
  8928. else
  8929. allow_undefined_flag=' -expect_unresolved \*'
  8930. 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'
  8931. fi
  8932. archive_cmds_need_lc='no'
  8933. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8934. hardcode_libdir_separator=:
  8935. ;;
  8936. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8937. if test "$GCC" = yes; then
  8938. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8939. 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'
  8940. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8941. else
  8942. allow_undefined_flag=' -expect_unresolved \*'
  8943. 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'
  8944. 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~
  8945. $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'
  8946. # Both c and cxx compiler support -rpath directly
  8947. hardcode_libdir_flag_spec='-rpath $libdir'
  8948. fi
  8949. archive_cmds_need_lc='no'
  8950. hardcode_libdir_separator=:
  8951. ;;
  8952. solaris*)
  8953. no_undefined_flag=' -z defs'
  8954. if test "$GCC" = yes; then
  8955. wlarc='${wl}'
  8956. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8957. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8958. $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'
  8959. else
  8960. case `$CC -V 2>&1` in
  8961. *"Compilers 5.0"*)
  8962. wlarc=''
  8963. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8964. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8965. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8966. ;;
  8967. *)
  8968. wlarc='${wl}'
  8969. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8970. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8971. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8972. ;;
  8973. esac
  8974. fi
  8975. hardcode_libdir_flag_spec='-R$libdir'
  8976. hardcode_shlibpath_var=no
  8977. case $host_os in
  8978. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8979. *)
  8980. # The compiler driver will combine and reorder linker options,
  8981. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8982. # but is careful enough not to reorder.
  8983. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8984. if test "$GCC" = yes; then
  8985. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8986. else
  8987. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8988. fi
  8989. ;;
  8990. esac
  8991. link_all_deplibs=yes
  8992. ;;
  8993. sunos4*)
  8994. if test "x$host_vendor" = xsequent; then
  8995. # Use $CC to link under sequent, because it throws in some extra .o
  8996. # files that make .init and .fini sections work.
  8997. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8998. else
  8999. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9000. fi
  9001. hardcode_libdir_flag_spec='-L$libdir'
  9002. hardcode_direct=yes
  9003. hardcode_minus_L=yes
  9004. hardcode_shlibpath_var=no
  9005. ;;
  9006. sysv4)
  9007. case $host_vendor in
  9008. sni)
  9009. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9010. hardcode_direct=yes # is this really true???
  9011. ;;
  9012. siemens)
  9013. ## LD is ld it makes a PLAMLIB
  9014. ## CC just makes a GrossModule.
  9015. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9016. reload_cmds='$CC -r -o $output$reload_objs'
  9017. hardcode_direct=no
  9018. ;;
  9019. motorola)
  9020. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9021. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9022. ;;
  9023. esac
  9024. runpath_var='LD_RUN_PATH'
  9025. hardcode_shlibpath_var=no
  9026. ;;
  9027. sysv4.3*)
  9028. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9029. hardcode_shlibpath_var=no
  9030. export_dynamic_flag_spec='-Bexport'
  9031. ;;
  9032. sysv4*MP*)
  9033. if test -d /usr/nec; then
  9034. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9035. hardcode_shlibpath_var=no
  9036. runpath_var=LD_RUN_PATH
  9037. hardcode_runpath_var=yes
  9038. ld_shlibs=yes
  9039. fi
  9040. ;;
  9041. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9042. no_undefined_flag='${wl}-z,text'
  9043. archive_cmds_need_lc=no
  9044. hardcode_shlibpath_var=no
  9045. runpath_var='LD_RUN_PATH'
  9046. if test "$GCC" = yes; then
  9047. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9048. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9049. else
  9050. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9051. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9052. fi
  9053. ;;
  9054. sysv5* | sco3.2v5* | sco5v6*)
  9055. # Note: We can NOT use -z defs as we might desire, because we do not
  9056. # link with -lc, and that would cause any symbols used from libc to
  9057. # always be unresolved, which means just about no library would
  9058. # ever link correctly. If we're not using GNU ld we use -z text
  9059. # though, which does catch some bad symbols but isn't as heavy-handed
  9060. # as -z defs.
  9061. no_undefined_flag='${wl}-z,text'
  9062. allow_undefined_flag='${wl}-z,nodefs'
  9063. archive_cmds_need_lc=no
  9064. hardcode_shlibpath_var=no
  9065. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9066. hardcode_libdir_separator=':'
  9067. link_all_deplibs=yes
  9068. export_dynamic_flag_spec='${wl}-Bexport'
  9069. runpath_var='LD_RUN_PATH'
  9070. if test "$GCC" = yes; then
  9071. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9072. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9073. else
  9074. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9075. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9076. fi
  9077. ;;
  9078. uts4*)
  9079. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9080. hardcode_libdir_flag_spec='-L$libdir'
  9081. hardcode_shlibpath_var=no
  9082. ;;
  9083. *)
  9084. ld_shlibs=no
  9085. ;;
  9086. esac
  9087. if test x$host_vendor = xsni; then
  9088. case $host in
  9089. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9090. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9091. ;;
  9092. esac
  9093. fi
  9094. fi
  9095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9096. $as_echo "$ld_shlibs" >&6; }
  9097. test "$ld_shlibs" = no && can_build_shared=no
  9098. with_gnu_ld=$with_gnu_ld
  9099. #
  9100. # Do we need to explicitly link libc?
  9101. #
  9102. case "x$archive_cmds_need_lc" in
  9103. x|xyes)
  9104. # Assume -lc should be added
  9105. archive_cmds_need_lc=yes
  9106. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9107. case $archive_cmds in
  9108. *'~'*)
  9109. # FIXME: we may have to deal with multi-command sequences.
  9110. ;;
  9111. '$CC '*)
  9112. # Test whether the compiler implicitly links with -lc since on some
  9113. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9114. # to ld, don't add -lc before -lgcc.
  9115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9116. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9117. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9118. $as_echo_n "(cached) " >&6
  9119. else
  9120. $RM conftest*
  9121. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9122. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9123. (eval $ac_compile) 2>&5
  9124. ac_status=$?
  9125. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9126. test $ac_status = 0; } 2>conftest.err; then
  9127. soname=conftest
  9128. lib=conftest
  9129. libobjs=conftest.$ac_objext
  9130. deplibs=
  9131. wl=$lt_prog_compiler_wl
  9132. pic_flag=$lt_prog_compiler_pic
  9133. compiler_flags=-v
  9134. linker_flags=-v
  9135. verstring=
  9136. output_objdir=.
  9137. libname=conftest
  9138. lt_save_allow_undefined_flag=$allow_undefined_flag
  9139. allow_undefined_flag=
  9140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9141. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9142. ac_status=$?
  9143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9144. test $ac_status = 0; }
  9145. then
  9146. lt_cv_archive_cmds_need_lc=no
  9147. else
  9148. lt_cv_archive_cmds_need_lc=yes
  9149. fi
  9150. allow_undefined_flag=$lt_save_allow_undefined_flag
  9151. else
  9152. cat conftest.err 1>&5
  9153. fi
  9154. $RM conftest*
  9155. fi
  9156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9157. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9158. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9159. ;;
  9160. esac
  9161. fi
  9162. ;;
  9163. esac
  9164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9165. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9166. if test "$GCC" = yes; then
  9167. case $host_os in
  9168. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9169. *) lt_awk_arg="/^libraries:/" ;;
  9170. esac
  9171. case $host_os in
  9172. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9173. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9174. esac
  9175. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9176. case $lt_search_path_spec in
  9177. *\;*)
  9178. # if the path contains ";" then we assume it to be the separator
  9179. # otherwise default to the standard path separator (i.e. ":") - it is
  9180. # assumed that no part of a normal pathname contains ";" but that should
  9181. # okay in the real world where ";" in dirpaths is itself problematic.
  9182. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9183. ;;
  9184. *)
  9185. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9186. ;;
  9187. esac
  9188. # Ok, now we have the path, separated by spaces, we can step through it
  9189. # and add multilib dir if necessary.
  9190. lt_tmp_lt_search_path_spec=
  9191. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9192. for lt_sys_path in $lt_search_path_spec; do
  9193. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9194. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9195. else
  9196. test -d "$lt_sys_path" && \
  9197. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9198. fi
  9199. done
  9200. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9201. BEGIN {RS=" "; FS="/|\n";} {
  9202. lt_foo="";
  9203. lt_count=0;
  9204. for (lt_i = NF; lt_i > 0; lt_i--) {
  9205. if ($lt_i != "" && $lt_i != ".") {
  9206. if ($lt_i == "..") {
  9207. lt_count++;
  9208. } else {
  9209. if (lt_count == 0) {
  9210. lt_foo="/" $lt_i lt_foo;
  9211. } else {
  9212. lt_count--;
  9213. }
  9214. }
  9215. }
  9216. }
  9217. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9218. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9219. }'`
  9220. # AWK program above erroneously prepends '/' to C:/dos/paths
  9221. # for these hosts.
  9222. case $host_os in
  9223. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9224. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9225. esac
  9226. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9227. else
  9228. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9229. fi
  9230. library_names_spec=
  9231. libname_spec='lib$name'
  9232. soname_spec=
  9233. shrext_cmds=".so"
  9234. postinstall_cmds=
  9235. postuninstall_cmds=
  9236. finish_cmds=
  9237. finish_eval=
  9238. shlibpath_var=
  9239. shlibpath_overrides_runpath=unknown
  9240. version_type=none
  9241. dynamic_linker="$host_os ld.so"
  9242. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9243. need_lib_prefix=unknown
  9244. hardcode_into_libs=no
  9245. # when you set need_version to no, make sure it does not cause -set_version
  9246. # flags to be left without arguments
  9247. need_version=unknown
  9248. case $host_os in
  9249. aix3*)
  9250. version_type=linux # correct to gnu/linux during the next big refactor
  9251. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9252. shlibpath_var=LIBPATH
  9253. # AIX 3 has no versioning support, so we append a major version to the name.
  9254. soname_spec='${libname}${release}${shared_ext}$major'
  9255. ;;
  9256. aix[4-9]*)
  9257. version_type=linux # correct to gnu/linux during the next big refactor
  9258. need_lib_prefix=no
  9259. need_version=no
  9260. hardcode_into_libs=yes
  9261. if test "$host_cpu" = ia64; then
  9262. # AIX 5 supports IA64
  9263. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9264. shlibpath_var=LD_LIBRARY_PATH
  9265. else
  9266. # With GCC up to 2.95.x, collect2 would create an import file
  9267. # for dependence libraries. The import file would start with
  9268. # the line `#! .'. This would cause the generated library to
  9269. # depend on `.', always an invalid library. This was fixed in
  9270. # development snapshots of GCC prior to 3.0.
  9271. case $host_os in
  9272. aix4 | aix4.[01] | aix4.[01].*)
  9273. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9274. echo ' yes '
  9275. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9276. :
  9277. else
  9278. can_build_shared=no
  9279. fi
  9280. ;;
  9281. esac
  9282. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9283. # soname into executable. Probably we can add versioning support to
  9284. # collect2, so additional links can be useful in future.
  9285. if test "$aix_use_runtimelinking" = yes; then
  9286. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9287. # instead of lib<name>.a to let people know that these are not
  9288. # typical AIX shared libraries.
  9289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9290. else
  9291. # We preserve .a as extension for shared libraries through AIX4.2
  9292. # and later when we are not doing run time linking.
  9293. library_names_spec='${libname}${release}.a $libname.a'
  9294. soname_spec='${libname}${release}${shared_ext}$major'
  9295. fi
  9296. shlibpath_var=LIBPATH
  9297. fi
  9298. ;;
  9299. amigaos*)
  9300. case $host_cpu in
  9301. powerpc)
  9302. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9303. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9305. ;;
  9306. m68k)
  9307. library_names_spec='$libname.ixlibrary $libname.a'
  9308. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9309. 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'
  9310. ;;
  9311. esac
  9312. ;;
  9313. beos*)
  9314. library_names_spec='${libname}${shared_ext}'
  9315. dynamic_linker="$host_os ld.so"
  9316. shlibpath_var=LIBRARY_PATH
  9317. ;;
  9318. bsdi[45]*)
  9319. version_type=linux # correct to gnu/linux during the next big refactor
  9320. need_version=no
  9321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9322. soname_spec='${libname}${release}${shared_ext}$major'
  9323. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9324. shlibpath_var=LD_LIBRARY_PATH
  9325. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9326. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9327. # the default ld.so.conf also contains /usr/contrib/lib and
  9328. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9329. # libtool to hard-code these into programs
  9330. ;;
  9331. cygwin* | mingw* | pw32* | cegcc*)
  9332. version_type=windows
  9333. shrext_cmds=".dll"
  9334. need_version=no
  9335. need_lib_prefix=no
  9336. case $GCC,$cc_basename in
  9337. yes,*)
  9338. # gcc
  9339. library_names_spec='$libname.dll.a'
  9340. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9341. postinstall_cmds='base_file=`basename \${file}`~
  9342. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9343. dldir=$destdir/`dirname \$dlpath`~
  9344. test -d \$dldir || mkdir -p \$dldir~
  9345. $install_prog $dir/$dlname \$dldir/$dlname~
  9346. chmod a+x \$dldir/$dlname~
  9347. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9348. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9349. fi'
  9350. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9351. dlpath=$dir/\$dldll~
  9352. $RM \$dlpath'
  9353. shlibpath_overrides_runpath=yes
  9354. case $host_os in
  9355. cygwin*)
  9356. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9357. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9358. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9359. ;;
  9360. mingw* | cegcc*)
  9361. # MinGW DLLs use traditional 'lib' prefix
  9362. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9363. ;;
  9364. pw32*)
  9365. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9366. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9367. ;;
  9368. esac
  9369. dynamic_linker='Win32 ld.exe'
  9370. ;;
  9371. *,cl*)
  9372. # Native MSVC
  9373. libname_spec='$name'
  9374. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9375. library_names_spec='${libname}.dll.lib'
  9376. case $build_os in
  9377. mingw*)
  9378. sys_lib_search_path_spec=
  9379. lt_save_ifs=$IFS
  9380. IFS=';'
  9381. for lt_path in $LIB
  9382. do
  9383. IFS=$lt_save_ifs
  9384. # Let DOS variable expansion print the short 8.3 style file name.
  9385. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9386. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9387. done
  9388. IFS=$lt_save_ifs
  9389. # Convert to MSYS style.
  9390. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9391. ;;
  9392. cygwin*)
  9393. # Convert to unix form, then to dos form, then back to unix form
  9394. # but this time dos style (no spaces!) so that the unix form looks
  9395. # like /cygdrive/c/PROGRA~1:/cygdr...
  9396. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9397. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9398. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9399. ;;
  9400. *)
  9401. sys_lib_search_path_spec="$LIB"
  9402. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9403. # It is most probably a Windows format PATH.
  9404. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9405. else
  9406. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9407. fi
  9408. # FIXME: find the short name or the path components, as spaces are
  9409. # common. (e.g. "Program Files" -> "PROGRA~1")
  9410. ;;
  9411. esac
  9412. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9413. postinstall_cmds='base_file=`basename \${file}`~
  9414. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9415. dldir=$destdir/`dirname \$dlpath`~
  9416. test -d \$dldir || mkdir -p \$dldir~
  9417. $install_prog $dir/$dlname \$dldir/$dlname'
  9418. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9419. dlpath=$dir/\$dldll~
  9420. $RM \$dlpath'
  9421. shlibpath_overrides_runpath=yes
  9422. dynamic_linker='Win32 link.exe'
  9423. ;;
  9424. *)
  9425. # Assume MSVC wrapper
  9426. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9427. dynamic_linker='Win32 ld.exe'
  9428. ;;
  9429. esac
  9430. # FIXME: first we should search . and the directory the executable is in
  9431. shlibpath_var=PATH
  9432. ;;
  9433. darwin* | rhapsody*)
  9434. dynamic_linker="$host_os dyld"
  9435. version_type=darwin
  9436. need_lib_prefix=no
  9437. need_version=no
  9438. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9439. soname_spec='${libname}${release}${major}$shared_ext'
  9440. shlibpath_overrides_runpath=yes
  9441. shlibpath_var=DYLD_LIBRARY_PATH
  9442. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9443. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9444. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9445. ;;
  9446. dgux*)
  9447. version_type=linux # correct to gnu/linux during the next big refactor
  9448. need_lib_prefix=no
  9449. need_version=no
  9450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9451. soname_spec='${libname}${release}${shared_ext}$major'
  9452. shlibpath_var=LD_LIBRARY_PATH
  9453. ;;
  9454. freebsd* | dragonfly*)
  9455. # DragonFly does not have aout. When/if they implement a new
  9456. # versioning mechanism, adjust this.
  9457. if test -x /usr/bin/objformat; then
  9458. objformat=`/usr/bin/objformat`
  9459. else
  9460. case $host_os in
  9461. freebsd[23].*) objformat=aout ;;
  9462. *) objformat=elf ;;
  9463. esac
  9464. fi
  9465. version_type=freebsd-$objformat
  9466. case $version_type in
  9467. freebsd-elf*)
  9468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9469. need_version=no
  9470. need_lib_prefix=no
  9471. ;;
  9472. freebsd-*)
  9473. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9474. need_version=yes
  9475. ;;
  9476. esac
  9477. shlibpath_var=LD_LIBRARY_PATH
  9478. case $host_os in
  9479. freebsd2.*)
  9480. shlibpath_overrides_runpath=yes
  9481. ;;
  9482. freebsd3.[01]* | freebsdelf3.[01]*)
  9483. shlibpath_overrides_runpath=yes
  9484. hardcode_into_libs=yes
  9485. ;;
  9486. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9487. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9488. shlibpath_overrides_runpath=no
  9489. hardcode_into_libs=yes
  9490. ;;
  9491. *) # from 4.6 on, and DragonFly
  9492. shlibpath_overrides_runpath=yes
  9493. hardcode_into_libs=yes
  9494. ;;
  9495. esac
  9496. ;;
  9497. gnu*)
  9498. version_type=linux # correct to gnu/linux during the next big refactor
  9499. need_lib_prefix=no
  9500. need_version=no
  9501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9502. soname_spec='${libname}${release}${shared_ext}$major'
  9503. shlibpath_var=LD_LIBRARY_PATH
  9504. shlibpath_overrides_runpath=no
  9505. hardcode_into_libs=yes
  9506. ;;
  9507. haiku*)
  9508. version_type=linux # correct to gnu/linux during the next big refactor
  9509. need_lib_prefix=no
  9510. need_version=no
  9511. dynamic_linker="$host_os runtime_loader"
  9512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9513. soname_spec='${libname}${release}${shared_ext}$major'
  9514. shlibpath_var=LIBRARY_PATH
  9515. shlibpath_overrides_runpath=yes
  9516. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9517. hardcode_into_libs=yes
  9518. ;;
  9519. hpux9* | hpux10* | hpux11*)
  9520. # Give a soname corresponding to the major version so that dld.sl refuses to
  9521. # link against other versions.
  9522. version_type=sunos
  9523. need_lib_prefix=no
  9524. need_version=no
  9525. case $host_cpu in
  9526. ia64*)
  9527. shrext_cmds='.so'
  9528. hardcode_into_libs=yes
  9529. dynamic_linker="$host_os dld.so"
  9530. shlibpath_var=LD_LIBRARY_PATH
  9531. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9533. soname_spec='${libname}${release}${shared_ext}$major'
  9534. if test "X$HPUX_IA64_MODE" = X32; then
  9535. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9536. else
  9537. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9538. fi
  9539. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9540. ;;
  9541. hppa*64*)
  9542. shrext_cmds='.sl'
  9543. hardcode_into_libs=yes
  9544. dynamic_linker="$host_os dld.sl"
  9545. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9546. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9548. soname_spec='${libname}${release}${shared_ext}$major'
  9549. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9550. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9551. ;;
  9552. *)
  9553. shrext_cmds='.sl'
  9554. dynamic_linker="$host_os dld.sl"
  9555. shlibpath_var=SHLIB_PATH
  9556. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9558. soname_spec='${libname}${release}${shared_ext}$major'
  9559. ;;
  9560. esac
  9561. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9562. postinstall_cmds='chmod 555 $lib'
  9563. # or fails outright, so override atomically:
  9564. install_override_mode=555
  9565. ;;
  9566. interix[3-9]*)
  9567. version_type=linux # correct to gnu/linux during the next big refactor
  9568. need_lib_prefix=no
  9569. need_version=no
  9570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9571. soname_spec='${libname}${release}${shared_ext}$major'
  9572. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9573. shlibpath_var=LD_LIBRARY_PATH
  9574. shlibpath_overrides_runpath=no
  9575. hardcode_into_libs=yes
  9576. ;;
  9577. irix5* | irix6* | nonstopux*)
  9578. case $host_os in
  9579. nonstopux*) version_type=nonstopux ;;
  9580. *)
  9581. if test "$lt_cv_prog_gnu_ld" = yes; then
  9582. version_type=linux # correct to gnu/linux during the next big refactor
  9583. else
  9584. version_type=irix
  9585. fi ;;
  9586. esac
  9587. need_lib_prefix=no
  9588. need_version=no
  9589. soname_spec='${libname}${release}${shared_ext}$major'
  9590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9591. case $host_os in
  9592. irix5* | nonstopux*)
  9593. libsuff= shlibsuff=
  9594. ;;
  9595. *)
  9596. case $LD in # libtool.m4 will add one of these switches to LD
  9597. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9598. libsuff= shlibsuff= libmagic=32-bit;;
  9599. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9600. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9601. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9602. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9603. *) libsuff= shlibsuff= libmagic=never-match;;
  9604. esac
  9605. ;;
  9606. esac
  9607. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9608. shlibpath_overrides_runpath=no
  9609. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9610. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9611. hardcode_into_libs=yes
  9612. ;;
  9613. # No shared lib support for Linux oldld, aout, or coff.
  9614. linux*oldld* | linux*aout* | linux*coff*)
  9615. dynamic_linker=no
  9616. ;;
  9617. # This must be glibc/ELF.
  9618. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9619. version_type=linux # correct to gnu/linux during the next big refactor
  9620. need_lib_prefix=no
  9621. need_version=no
  9622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9623. soname_spec='${libname}${release}${shared_ext}$major'
  9624. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9625. shlibpath_var=LD_LIBRARY_PATH
  9626. shlibpath_overrides_runpath=no
  9627. # Some binutils ld are patched to set DT_RUNPATH
  9628. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9629. $as_echo_n "(cached) " >&6
  9630. else
  9631. lt_cv_shlibpath_overrides_runpath=no
  9632. save_LDFLAGS=$LDFLAGS
  9633. save_libdir=$libdir
  9634. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9635. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9637. /* end confdefs.h. */
  9638. int
  9639. main ()
  9640. {
  9641. ;
  9642. return 0;
  9643. }
  9644. _ACEOF
  9645. if ac_fn_c_try_link "$LINENO"; then :
  9646. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9647. lt_cv_shlibpath_overrides_runpath=yes
  9648. fi
  9649. fi
  9650. rm -f core conftest.err conftest.$ac_objext \
  9651. conftest$ac_exeext conftest.$ac_ext
  9652. LDFLAGS=$save_LDFLAGS
  9653. libdir=$save_libdir
  9654. fi
  9655. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9656. # This implies no fast_install, which is unacceptable.
  9657. # Some rework will be needed to allow for fast_install
  9658. # before this can be enabled.
  9659. hardcode_into_libs=yes
  9660. # Append ld.so.conf contents to the search path
  9661. if test -f /etc/ld.so.conf; then
  9662. 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' ' '`
  9663. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9664. fi
  9665. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9666. # powerpc, because MkLinux only supported shared libraries with the
  9667. # GNU dynamic linker. Since this was broken with cross compilers,
  9668. # most powerpc-linux boxes support dynamic linking these days and
  9669. # people can always --disable-shared, the test was removed, and we
  9670. # assume the GNU/Linux dynamic linker is in use.
  9671. dynamic_linker='GNU/Linux ld.so'
  9672. ;;
  9673. netbsd*)
  9674. version_type=sunos
  9675. need_lib_prefix=no
  9676. need_version=no
  9677. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9679. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9680. dynamic_linker='NetBSD (a.out) ld.so'
  9681. else
  9682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9683. soname_spec='${libname}${release}${shared_ext}$major'
  9684. dynamic_linker='NetBSD ld.elf_so'
  9685. fi
  9686. shlibpath_var=LD_LIBRARY_PATH
  9687. shlibpath_overrides_runpath=yes
  9688. hardcode_into_libs=yes
  9689. ;;
  9690. newsos6)
  9691. version_type=linux # correct to gnu/linux during the next big refactor
  9692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9693. shlibpath_var=LD_LIBRARY_PATH
  9694. shlibpath_overrides_runpath=yes
  9695. ;;
  9696. *nto* | *qnx*)
  9697. version_type=qnx
  9698. need_lib_prefix=no
  9699. need_version=no
  9700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9701. soname_spec='${libname}${release}${shared_ext}$major'
  9702. shlibpath_var=LD_LIBRARY_PATH
  9703. shlibpath_overrides_runpath=no
  9704. hardcode_into_libs=yes
  9705. dynamic_linker='ldqnx.so'
  9706. ;;
  9707. openbsd*)
  9708. version_type=sunos
  9709. sys_lib_dlsearch_path_spec="/usr/lib"
  9710. need_lib_prefix=no
  9711. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9712. case $host_os in
  9713. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9714. *) need_version=no ;;
  9715. esac
  9716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9717. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9718. shlibpath_var=LD_LIBRARY_PATH
  9719. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9720. case $host_os in
  9721. openbsd2.[89] | openbsd2.[89].*)
  9722. shlibpath_overrides_runpath=no
  9723. ;;
  9724. *)
  9725. shlibpath_overrides_runpath=yes
  9726. ;;
  9727. esac
  9728. else
  9729. shlibpath_overrides_runpath=yes
  9730. fi
  9731. ;;
  9732. os2*)
  9733. libname_spec='$name'
  9734. shrext_cmds=".dll"
  9735. need_lib_prefix=no
  9736. library_names_spec='$libname${shared_ext} $libname.a'
  9737. dynamic_linker='OS/2 ld.exe'
  9738. shlibpath_var=LIBPATH
  9739. ;;
  9740. osf3* | osf4* | osf5*)
  9741. version_type=osf
  9742. need_lib_prefix=no
  9743. need_version=no
  9744. soname_spec='${libname}${release}${shared_ext}$major'
  9745. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9746. shlibpath_var=LD_LIBRARY_PATH
  9747. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9748. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9749. ;;
  9750. rdos*)
  9751. dynamic_linker=no
  9752. ;;
  9753. solaris*)
  9754. version_type=linux # correct to gnu/linux during the next big refactor
  9755. need_lib_prefix=no
  9756. need_version=no
  9757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9758. soname_spec='${libname}${release}${shared_ext}$major'
  9759. shlibpath_var=LD_LIBRARY_PATH
  9760. shlibpath_overrides_runpath=yes
  9761. hardcode_into_libs=yes
  9762. # ldd complains unless libraries are executable
  9763. postinstall_cmds='chmod +x $lib'
  9764. ;;
  9765. sunos4*)
  9766. version_type=sunos
  9767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9768. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9769. shlibpath_var=LD_LIBRARY_PATH
  9770. shlibpath_overrides_runpath=yes
  9771. if test "$with_gnu_ld" = yes; then
  9772. need_lib_prefix=no
  9773. fi
  9774. need_version=yes
  9775. ;;
  9776. sysv4 | sysv4.3*)
  9777. version_type=linux # correct to gnu/linux during the next big refactor
  9778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9779. soname_spec='${libname}${release}${shared_ext}$major'
  9780. shlibpath_var=LD_LIBRARY_PATH
  9781. case $host_vendor in
  9782. sni)
  9783. shlibpath_overrides_runpath=no
  9784. need_lib_prefix=no
  9785. runpath_var=LD_RUN_PATH
  9786. ;;
  9787. siemens)
  9788. need_lib_prefix=no
  9789. ;;
  9790. motorola)
  9791. need_lib_prefix=no
  9792. need_version=no
  9793. shlibpath_overrides_runpath=no
  9794. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9795. ;;
  9796. esac
  9797. ;;
  9798. sysv4*MP*)
  9799. if test -d /usr/nec ;then
  9800. version_type=linux # correct to gnu/linux during the next big refactor
  9801. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9802. soname_spec='$libname${shared_ext}.$major'
  9803. shlibpath_var=LD_LIBRARY_PATH
  9804. fi
  9805. ;;
  9806. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9807. version_type=freebsd-elf
  9808. need_lib_prefix=no
  9809. need_version=no
  9810. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9811. soname_spec='${libname}${release}${shared_ext}$major'
  9812. shlibpath_var=LD_LIBRARY_PATH
  9813. shlibpath_overrides_runpath=yes
  9814. hardcode_into_libs=yes
  9815. if test "$with_gnu_ld" = yes; then
  9816. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9817. else
  9818. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9819. case $host_os in
  9820. sco3.2v5*)
  9821. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9822. ;;
  9823. esac
  9824. fi
  9825. sys_lib_dlsearch_path_spec='/usr/lib'
  9826. ;;
  9827. tpf*)
  9828. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9829. version_type=linux # correct to gnu/linux during the next big refactor
  9830. need_lib_prefix=no
  9831. need_version=no
  9832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9833. shlibpath_var=LD_LIBRARY_PATH
  9834. shlibpath_overrides_runpath=no
  9835. hardcode_into_libs=yes
  9836. ;;
  9837. uts4*)
  9838. version_type=linux # correct to gnu/linux during the next big refactor
  9839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9840. soname_spec='${libname}${release}${shared_ext}$major'
  9841. shlibpath_var=LD_LIBRARY_PATH
  9842. ;;
  9843. *)
  9844. dynamic_linker=no
  9845. ;;
  9846. esac
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9848. $as_echo "$dynamic_linker" >&6; }
  9849. test "$dynamic_linker" = no && can_build_shared=no
  9850. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9851. if test "$GCC" = yes; then
  9852. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9853. fi
  9854. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9855. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9856. fi
  9857. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9858. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9859. fi
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9861. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9862. hardcode_action=
  9863. if test -n "$hardcode_libdir_flag_spec" ||
  9864. test -n "$runpath_var" ||
  9865. test "X$hardcode_automatic" = "Xyes" ; then
  9866. # We can hardcode non-existent directories.
  9867. if test "$hardcode_direct" != no &&
  9868. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9869. # have to relink, otherwise we might link with an installed library
  9870. # when we should be linking with a yet-to-be-installed one
  9871. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9872. test "$hardcode_minus_L" != no; then
  9873. # Linking always hardcodes the temporary library directory.
  9874. hardcode_action=relink
  9875. else
  9876. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9877. hardcode_action=immediate
  9878. fi
  9879. else
  9880. # We cannot hardcode anything, or else we can only hardcode existing
  9881. # directories.
  9882. hardcode_action=unsupported
  9883. fi
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9885. $as_echo "$hardcode_action" >&6; }
  9886. if test "$hardcode_action" = relink ||
  9887. test "$inherit_rpath" = yes; then
  9888. # Fast installation is not supported
  9889. enable_fast_install=no
  9890. elif test "$shlibpath_overrides_runpath" = yes ||
  9891. test "$enable_shared" = no; then
  9892. # Fast installation is not necessary
  9893. enable_fast_install=needless
  9894. fi
  9895. if test "x$enable_dlopen" != xyes; then
  9896. enable_dlopen=unknown
  9897. enable_dlopen_self=unknown
  9898. enable_dlopen_self_static=unknown
  9899. else
  9900. lt_cv_dlopen=no
  9901. lt_cv_dlopen_libs=
  9902. case $host_os in
  9903. beos*)
  9904. lt_cv_dlopen="load_add_on"
  9905. lt_cv_dlopen_libs=
  9906. lt_cv_dlopen_self=yes
  9907. ;;
  9908. mingw* | pw32* | cegcc*)
  9909. lt_cv_dlopen="LoadLibrary"
  9910. lt_cv_dlopen_libs=
  9911. ;;
  9912. cygwin*)
  9913. lt_cv_dlopen="dlopen"
  9914. lt_cv_dlopen_libs=
  9915. ;;
  9916. darwin*)
  9917. # if libdl is installed we need to link against it
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9919. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9920. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9921. $as_echo_n "(cached) " >&6
  9922. else
  9923. ac_check_lib_save_LIBS=$LIBS
  9924. LIBS="-ldl $LIBS"
  9925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9926. /* end confdefs.h. */
  9927. /* Override any GCC internal prototype to avoid an error.
  9928. Use char because int might match the return type of a GCC
  9929. builtin and then its argument prototype would still apply. */
  9930. #ifdef __cplusplus
  9931. extern "C"
  9932. #endif
  9933. char dlopen ();
  9934. int
  9935. main ()
  9936. {
  9937. return dlopen ();
  9938. ;
  9939. return 0;
  9940. }
  9941. _ACEOF
  9942. if ac_fn_c_try_link "$LINENO"; then :
  9943. ac_cv_lib_dl_dlopen=yes
  9944. else
  9945. ac_cv_lib_dl_dlopen=no
  9946. fi
  9947. rm -f core conftest.err conftest.$ac_objext \
  9948. conftest$ac_exeext conftest.$ac_ext
  9949. LIBS=$ac_check_lib_save_LIBS
  9950. fi
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9952. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9953. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9954. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9955. else
  9956. lt_cv_dlopen="dyld"
  9957. lt_cv_dlopen_libs=
  9958. lt_cv_dlopen_self=yes
  9959. fi
  9960. ;;
  9961. *)
  9962. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9963. if test "x$ac_cv_func_shl_load" = xyes; then :
  9964. lt_cv_dlopen="shl_load"
  9965. else
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9967. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9968. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9969. $as_echo_n "(cached) " >&6
  9970. else
  9971. ac_check_lib_save_LIBS=$LIBS
  9972. LIBS="-ldld $LIBS"
  9973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9974. /* end confdefs.h. */
  9975. /* Override any GCC internal prototype to avoid an error.
  9976. Use char because int might match the return type of a GCC
  9977. builtin and then its argument prototype would still apply. */
  9978. #ifdef __cplusplus
  9979. extern "C"
  9980. #endif
  9981. char shl_load ();
  9982. int
  9983. main ()
  9984. {
  9985. return shl_load ();
  9986. ;
  9987. return 0;
  9988. }
  9989. _ACEOF
  9990. if ac_fn_c_try_link "$LINENO"; then :
  9991. ac_cv_lib_dld_shl_load=yes
  9992. else
  9993. ac_cv_lib_dld_shl_load=no
  9994. fi
  9995. rm -f core conftest.err conftest.$ac_objext \
  9996. conftest$ac_exeext conftest.$ac_ext
  9997. LIBS=$ac_check_lib_save_LIBS
  9998. fi
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10000. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10001. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10002. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10003. else
  10004. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10005. if test "x$ac_cv_func_dlopen" = xyes; then :
  10006. lt_cv_dlopen="dlopen"
  10007. else
  10008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10009. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10010. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10011. $as_echo_n "(cached) " >&6
  10012. else
  10013. ac_check_lib_save_LIBS=$LIBS
  10014. LIBS="-ldl $LIBS"
  10015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10016. /* end confdefs.h. */
  10017. /* Override any GCC internal prototype to avoid an error.
  10018. Use char because int might match the return type of a GCC
  10019. builtin and then its argument prototype would still apply. */
  10020. #ifdef __cplusplus
  10021. extern "C"
  10022. #endif
  10023. char dlopen ();
  10024. int
  10025. main ()
  10026. {
  10027. return dlopen ();
  10028. ;
  10029. return 0;
  10030. }
  10031. _ACEOF
  10032. if ac_fn_c_try_link "$LINENO"; then :
  10033. ac_cv_lib_dl_dlopen=yes
  10034. else
  10035. ac_cv_lib_dl_dlopen=no
  10036. fi
  10037. rm -f core conftest.err conftest.$ac_objext \
  10038. conftest$ac_exeext conftest.$ac_ext
  10039. LIBS=$ac_check_lib_save_LIBS
  10040. fi
  10041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10042. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10043. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10044. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10045. else
  10046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10047. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10048. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10049. $as_echo_n "(cached) " >&6
  10050. else
  10051. ac_check_lib_save_LIBS=$LIBS
  10052. LIBS="-lsvld $LIBS"
  10053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10054. /* end confdefs.h. */
  10055. /* Override any GCC internal prototype to avoid an error.
  10056. Use char because int might match the return type of a GCC
  10057. builtin and then its argument prototype would still apply. */
  10058. #ifdef __cplusplus
  10059. extern "C"
  10060. #endif
  10061. char dlopen ();
  10062. int
  10063. main ()
  10064. {
  10065. return dlopen ();
  10066. ;
  10067. return 0;
  10068. }
  10069. _ACEOF
  10070. if ac_fn_c_try_link "$LINENO"; then :
  10071. ac_cv_lib_svld_dlopen=yes
  10072. else
  10073. ac_cv_lib_svld_dlopen=no
  10074. fi
  10075. rm -f core conftest.err conftest.$ac_objext \
  10076. conftest$ac_exeext conftest.$ac_ext
  10077. LIBS=$ac_check_lib_save_LIBS
  10078. fi
  10079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10080. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10081. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10082. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10083. else
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10085. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10086. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10087. $as_echo_n "(cached) " >&6
  10088. else
  10089. ac_check_lib_save_LIBS=$LIBS
  10090. LIBS="-ldld $LIBS"
  10091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10092. /* end confdefs.h. */
  10093. /* Override any GCC internal prototype to avoid an error.
  10094. Use char because int might match the return type of a GCC
  10095. builtin and then its argument prototype would still apply. */
  10096. #ifdef __cplusplus
  10097. extern "C"
  10098. #endif
  10099. char dld_link ();
  10100. int
  10101. main ()
  10102. {
  10103. return dld_link ();
  10104. ;
  10105. return 0;
  10106. }
  10107. _ACEOF
  10108. if ac_fn_c_try_link "$LINENO"; then :
  10109. ac_cv_lib_dld_dld_link=yes
  10110. else
  10111. ac_cv_lib_dld_dld_link=no
  10112. fi
  10113. rm -f core conftest.err conftest.$ac_objext \
  10114. conftest$ac_exeext conftest.$ac_ext
  10115. LIBS=$ac_check_lib_save_LIBS
  10116. fi
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10118. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10119. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10120. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10121. fi
  10122. fi
  10123. fi
  10124. fi
  10125. fi
  10126. fi
  10127. ;;
  10128. esac
  10129. if test "x$lt_cv_dlopen" != xno; then
  10130. enable_dlopen=yes
  10131. else
  10132. enable_dlopen=no
  10133. fi
  10134. case $lt_cv_dlopen in
  10135. dlopen)
  10136. save_CPPFLAGS="$CPPFLAGS"
  10137. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10138. save_LDFLAGS="$LDFLAGS"
  10139. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10140. save_LIBS="$LIBS"
  10141. LIBS="$lt_cv_dlopen_libs $LIBS"
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10143. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10144. if ${lt_cv_dlopen_self+:} false; then :
  10145. $as_echo_n "(cached) " >&6
  10146. else
  10147. if test "$cross_compiling" = yes; then :
  10148. lt_cv_dlopen_self=cross
  10149. else
  10150. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10151. lt_status=$lt_dlunknown
  10152. cat > conftest.$ac_ext <<_LT_EOF
  10153. #line $LINENO "configure"
  10154. #include "confdefs.h"
  10155. #if HAVE_DLFCN_H
  10156. #include <dlfcn.h>
  10157. #endif
  10158. #include <stdio.h>
  10159. #ifdef RTLD_GLOBAL
  10160. # define LT_DLGLOBAL RTLD_GLOBAL
  10161. #else
  10162. # ifdef DL_GLOBAL
  10163. # define LT_DLGLOBAL DL_GLOBAL
  10164. # else
  10165. # define LT_DLGLOBAL 0
  10166. # endif
  10167. #endif
  10168. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10169. find out it does not work in some platform. */
  10170. #ifndef LT_DLLAZY_OR_NOW
  10171. # ifdef RTLD_LAZY
  10172. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10173. # else
  10174. # ifdef DL_LAZY
  10175. # define LT_DLLAZY_OR_NOW DL_LAZY
  10176. # else
  10177. # ifdef RTLD_NOW
  10178. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10179. # else
  10180. # ifdef DL_NOW
  10181. # define LT_DLLAZY_OR_NOW DL_NOW
  10182. # else
  10183. # define LT_DLLAZY_OR_NOW 0
  10184. # endif
  10185. # endif
  10186. # endif
  10187. # endif
  10188. #endif
  10189. /* When -fvisbility=hidden is used, assume the code has been annotated
  10190. correspondingly for the symbols needed. */
  10191. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10192. int fnord () __attribute__((visibility("default")));
  10193. #endif
  10194. int fnord () { return 42; }
  10195. int main ()
  10196. {
  10197. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10198. int status = $lt_dlunknown;
  10199. if (self)
  10200. {
  10201. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10202. else
  10203. {
  10204. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10205. else puts (dlerror ());
  10206. }
  10207. /* dlclose (self); */
  10208. }
  10209. else
  10210. puts (dlerror ());
  10211. return status;
  10212. }
  10213. _LT_EOF
  10214. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10215. (eval $ac_link) 2>&5
  10216. ac_status=$?
  10217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10218. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10219. (./conftest; exit; ) >&5 2>/dev/null
  10220. lt_status=$?
  10221. case x$lt_status in
  10222. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10223. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10224. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10225. esac
  10226. else :
  10227. # compilation failed
  10228. lt_cv_dlopen_self=no
  10229. fi
  10230. fi
  10231. rm -fr conftest*
  10232. fi
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10234. $as_echo "$lt_cv_dlopen_self" >&6; }
  10235. if test "x$lt_cv_dlopen_self" = xyes; then
  10236. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10238. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10239. if ${lt_cv_dlopen_self_static+:} false; then :
  10240. $as_echo_n "(cached) " >&6
  10241. else
  10242. if test "$cross_compiling" = yes; then :
  10243. lt_cv_dlopen_self_static=cross
  10244. else
  10245. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10246. lt_status=$lt_dlunknown
  10247. cat > conftest.$ac_ext <<_LT_EOF
  10248. #line $LINENO "configure"
  10249. #include "confdefs.h"
  10250. #if HAVE_DLFCN_H
  10251. #include <dlfcn.h>
  10252. #endif
  10253. #include <stdio.h>
  10254. #ifdef RTLD_GLOBAL
  10255. # define LT_DLGLOBAL RTLD_GLOBAL
  10256. #else
  10257. # ifdef DL_GLOBAL
  10258. # define LT_DLGLOBAL DL_GLOBAL
  10259. # else
  10260. # define LT_DLGLOBAL 0
  10261. # endif
  10262. #endif
  10263. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10264. find out it does not work in some platform. */
  10265. #ifndef LT_DLLAZY_OR_NOW
  10266. # ifdef RTLD_LAZY
  10267. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10268. # else
  10269. # ifdef DL_LAZY
  10270. # define LT_DLLAZY_OR_NOW DL_LAZY
  10271. # else
  10272. # ifdef RTLD_NOW
  10273. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10274. # else
  10275. # ifdef DL_NOW
  10276. # define LT_DLLAZY_OR_NOW DL_NOW
  10277. # else
  10278. # define LT_DLLAZY_OR_NOW 0
  10279. # endif
  10280. # endif
  10281. # endif
  10282. # endif
  10283. #endif
  10284. /* When -fvisbility=hidden is used, assume the code has been annotated
  10285. correspondingly for the symbols needed. */
  10286. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10287. int fnord () __attribute__((visibility("default")));
  10288. #endif
  10289. int fnord () { return 42; }
  10290. int main ()
  10291. {
  10292. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10293. int status = $lt_dlunknown;
  10294. if (self)
  10295. {
  10296. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10297. else
  10298. {
  10299. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10300. else puts (dlerror ());
  10301. }
  10302. /* dlclose (self); */
  10303. }
  10304. else
  10305. puts (dlerror ());
  10306. return status;
  10307. }
  10308. _LT_EOF
  10309. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10310. (eval $ac_link) 2>&5
  10311. ac_status=$?
  10312. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10313. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10314. (./conftest; exit; ) >&5 2>/dev/null
  10315. lt_status=$?
  10316. case x$lt_status in
  10317. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10318. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10319. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10320. esac
  10321. else :
  10322. # compilation failed
  10323. lt_cv_dlopen_self_static=no
  10324. fi
  10325. fi
  10326. rm -fr conftest*
  10327. fi
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10329. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10330. fi
  10331. CPPFLAGS="$save_CPPFLAGS"
  10332. LDFLAGS="$save_LDFLAGS"
  10333. LIBS="$save_LIBS"
  10334. ;;
  10335. esac
  10336. case $lt_cv_dlopen_self in
  10337. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10338. *) enable_dlopen_self=unknown ;;
  10339. esac
  10340. case $lt_cv_dlopen_self_static in
  10341. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10342. *) enable_dlopen_self_static=unknown ;;
  10343. esac
  10344. fi
  10345. striplib=
  10346. old_striplib=
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10348. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10349. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10350. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10351. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10353. $as_echo "yes" >&6; }
  10354. else
  10355. # FIXME - insert some real tests, host_os isn't really good enough
  10356. case $host_os in
  10357. darwin*)
  10358. if test -n "$STRIP" ; then
  10359. striplib="$STRIP -x"
  10360. old_striplib="$STRIP -S"
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10362. $as_echo "yes" >&6; }
  10363. else
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10365. $as_echo "no" >&6; }
  10366. fi
  10367. ;;
  10368. *)
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10370. $as_echo "no" >&6; }
  10371. ;;
  10372. esac
  10373. fi
  10374. # Report which library types will actually be built
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10376. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10378. $as_echo "$can_build_shared" >&6; }
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10380. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10381. test "$can_build_shared" = "no" && enable_shared=no
  10382. # On AIX, shared libraries and static libraries use the same namespace, and
  10383. # are all built from PIC.
  10384. case $host_os in
  10385. aix3*)
  10386. test "$enable_shared" = yes && enable_static=no
  10387. if test -n "$RANLIB"; then
  10388. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10389. postinstall_cmds='$RANLIB $lib'
  10390. fi
  10391. ;;
  10392. aix[4-9]*)
  10393. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10394. test "$enable_shared" = yes && enable_static=no
  10395. fi
  10396. ;;
  10397. esac
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10399. $as_echo "$enable_shared" >&6; }
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10401. $as_echo_n "checking whether to build static libraries... " >&6; }
  10402. # Make sure either enable_shared or enable_static is yes.
  10403. test "$enable_shared" = yes || enable_static=yes
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10405. $as_echo "$enable_static" >&6; }
  10406. fi
  10407. ac_ext=c
  10408. ac_cpp='$CPP $CPPFLAGS'
  10409. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10410. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10411. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10412. CC="$lt_save_CC"
  10413. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10414. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10415. (test "X$CXX" != "Xg++"))) ; then
  10416. ac_ext=cpp
  10417. ac_cpp='$CXXCPP $CPPFLAGS'
  10418. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10419. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10420. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10422. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10423. if test -z "$CXXCPP"; then
  10424. if ${ac_cv_prog_CXXCPP+:} false; then :
  10425. $as_echo_n "(cached) " >&6
  10426. else
  10427. # Double quotes because CXXCPP needs to be expanded
  10428. for CXXCPP in "$CXX -E" "/lib/cpp"
  10429. do
  10430. ac_preproc_ok=false
  10431. for ac_cxx_preproc_warn_flag in '' yes
  10432. do
  10433. # Use a header file that comes with gcc, so configuring glibc
  10434. # with a fresh cross-compiler works.
  10435. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10436. # <limits.h> exists even on freestanding compilers.
  10437. # On the NeXT, cc -E runs the code through the compiler's parser,
  10438. # not just through cpp. "Syntax error" is here to catch this case.
  10439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10440. /* end confdefs.h. */
  10441. #ifdef __STDC__
  10442. # include <limits.h>
  10443. #else
  10444. # include <assert.h>
  10445. #endif
  10446. Syntax error
  10447. _ACEOF
  10448. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10449. else
  10450. # Broken: fails on valid input.
  10451. continue
  10452. fi
  10453. rm -f conftest.err conftest.i conftest.$ac_ext
  10454. # OK, works on sane cases. Now check whether nonexistent headers
  10455. # can be detected and how.
  10456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10457. /* end confdefs.h. */
  10458. #include <ac_nonexistent.h>
  10459. _ACEOF
  10460. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10461. # Broken: success on invalid input.
  10462. continue
  10463. else
  10464. # Passes both tests.
  10465. ac_preproc_ok=:
  10466. break
  10467. fi
  10468. rm -f conftest.err conftest.i conftest.$ac_ext
  10469. done
  10470. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10471. rm -f conftest.i conftest.err conftest.$ac_ext
  10472. if $ac_preproc_ok; then :
  10473. break
  10474. fi
  10475. done
  10476. ac_cv_prog_CXXCPP=$CXXCPP
  10477. fi
  10478. CXXCPP=$ac_cv_prog_CXXCPP
  10479. else
  10480. ac_cv_prog_CXXCPP=$CXXCPP
  10481. fi
  10482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10483. $as_echo "$CXXCPP" >&6; }
  10484. ac_preproc_ok=false
  10485. for ac_cxx_preproc_warn_flag in '' yes
  10486. do
  10487. # Use a header file that comes with gcc, so configuring glibc
  10488. # with a fresh cross-compiler works.
  10489. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10490. # <limits.h> exists even on freestanding compilers.
  10491. # On the NeXT, cc -E runs the code through the compiler's parser,
  10492. # not just through cpp. "Syntax error" is here to catch this case.
  10493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10494. /* end confdefs.h. */
  10495. #ifdef __STDC__
  10496. # include <limits.h>
  10497. #else
  10498. # include <assert.h>
  10499. #endif
  10500. Syntax error
  10501. _ACEOF
  10502. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10503. else
  10504. # Broken: fails on valid input.
  10505. continue
  10506. fi
  10507. rm -f conftest.err conftest.i conftest.$ac_ext
  10508. # OK, works on sane cases. Now check whether nonexistent headers
  10509. # can be detected and how.
  10510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10511. /* end confdefs.h. */
  10512. #include <ac_nonexistent.h>
  10513. _ACEOF
  10514. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10515. # Broken: success on invalid input.
  10516. continue
  10517. else
  10518. # Passes both tests.
  10519. ac_preproc_ok=:
  10520. break
  10521. fi
  10522. rm -f conftest.err conftest.i conftest.$ac_ext
  10523. done
  10524. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10525. rm -f conftest.i conftest.err conftest.$ac_ext
  10526. if $ac_preproc_ok; then :
  10527. else
  10528. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10529. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10530. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10531. See \`config.log' for more details" "$LINENO" 5; }
  10532. fi
  10533. ac_ext=c
  10534. ac_cpp='$CPP $CPPFLAGS'
  10535. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10536. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10537. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10538. else
  10539. _lt_caught_CXX_error=yes
  10540. fi
  10541. ac_ext=cpp
  10542. ac_cpp='$CXXCPP $CPPFLAGS'
  10543. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10544. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10545. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10546. archive_cmds_need_lc_CXX=no
  10547. allow_undefined_flag_CXX=
  10548. always_export_symbols_CXX=no
  10549. archive_expsym_cmds_CXX=
  10550. compiler_needs_object_CXX=no
  10551. export_dynamic_flag_spec_CXX=
  10552. hardcode_direct_CXX=no
  10553. hardcode_direct_absolute_CXX=no
  10554. hardcode_libdir_flag_spec_CXX=
  10555. hardcode_libdir_separator_CXX=
  10556. hardcode_minus_L_CXX=no
  10557. hardcode_shlibpath_var_CXX=unsupported
  10558. hardcode_automatic_CXX=no
  10559. inherit_rpath_CXX=no
  10560. module_cmds_CXX=
  10561. module_expsym_cmds_CXX=
  10562. link_all_deplibs_CXX=unknown
  10563. old_archive_cmds_CXX=$old_archive_cmds
  10564. reload_flag_CXX=$reload_flag
  10565. reload_cmds_CXX=$reload_cmds
  10566. no_undefined_flag_CXX=
  10567. whole_archive_flag_spec_CXX=
  10568. enable_shared_with_static_runtimes_CXX=no
  10569. # Source file extension for C++ test sources.
  10570. ac_ext=cpp
  10571. # Object file extension for compiled C++ test sources.
  10572. objext=o
  10573. objext_CXX=$objext
  10574. # No sense in running all these tests if we already determined that
  10575. # the CXX compiler isn't working. Some variables (like enable_shared)
  10576. # are currently assumed to apply to all compilers on this platform,
  10577. # and will be corrupted by setting them based on a non-working compiler.
  10578. if test "$_lt_caught_CXX_error" != yes; then
  10579. # Code to be used in simple compile tests
  10580. lt_simple_compile_test_code="int some_variable = 0;"
  10581. # Code to be used in simple link tests
  10582. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10583. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10584. # If no C compiler was specified, use CC.
  10585. LTCC=${LTCC-"$CC"}
  10586. # If no C compiler flags were specified, use CFLAGS.
  10587. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10588. # Allow CC to be a program name with arguments.
  10589. compiler=$CC
  10590. # save warnings/boilerplate of simple test code
  10591. ac_outfile=conftest.$ac_objext
  10592. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10593. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10594. _lt_compiler_boilerplate=`cat conftest.err`
  10595. $RM conftest*
  10596. ac_outfile=conftest.$ac_objext
  10597. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10598. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10599. _lt_linker_boilerplate=`cat conftest.err`
  10600. $RM -r conftest*
  10601. # Allow CC to be a program name with arguments.
  10602. lt_save_CC=$CC
  10603. lt_save_CFLAGS=$CFLAGS
  10604. lt_save_LD=$LD
  10605. lt_save_GCC=$GCC
  10606. GCC=$GXX
  10607. lt_save_with_gnu_ld=$with_gnu_ld
  10608. lt_save_path_LD=$lt_cv_path_LD
  10609. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10610. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10611. else
  10612. $as_unset lt_cv_prog_gnu_ld
  10613. fi
  10614. if test -n "${lt_cv_path_LDCXX+set}"; then
  10615. lt_cv_path_LD=$lt_cv_path_LDCXX
  10616. else
  10617. $as_unset lt_cv_path_LD
  10618. fi
  10619. test -z "${LDCXX+set}" || LD=$LDCXX
  10620. CC=${CXX-"c++"}
  10621. CFLAGS=$CXXFLAGS
  10622. compiler=$CC
  10623. compiler_CXX=$CC
  10624. for cc_temp in $compiler""; do
  10625. case $cc_temp in
  10626. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10627. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10628. \-*) ;;
  10629. *) break;;
  10630. esac
  10631. done
  10632. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10633. if test -n "$compiler"; then
  10634. # We don't want -fno-exception when compiling C++ code, so set the
  10635. # no_builtin_flag separately
  10636. if test "$GXX" = yes; then
  10637. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10638. else
  10639. lt_prog_compiler_no_builtin_flag_CXX=
  10640. fi
  10641. if test "$GXX" = yes; then
  10642. # Set up default GNU C++ configuration
  10643. # Check whether --with-gnu-ld was given.
  10644. if test "${with_gnu_ld+set}" = set; then :
  10645. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10646. else
  10647. with_gnu_ld=no
  10648. fi
  10649. ac_prog=ld
  10650. if test "$GCC" = yes; then
  10651. # Check if gcc -print-prog-name=ld gives a path.
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10653. $as_echo_n "checking for ld used by $CC... " >&6; }
  10654. case $host in
  10655. *-*-mingw*)
  10656. # gcc leaves a trailing carriage return which upsets mingw
  10657. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10658. *)
  10659. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10660. esac
  10661. case $ac_prog in
  10662. # Accept absolute paths.
  10663. [\\/]* | ?:[\\/]*)
  10664. re_direlt='/[^/][^/]*/\.\./'
  10665. # Canonicalize the pathname of ld
  10666. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10667. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10668. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10669. done
  10670. test -z "$LD" && LD="$ac_prog"
  10671. ;;
  10672. "")
  10673. # If it fails, then pretend we aren't using GCC.
  10674. ac_prog=ld
  10675. ;;
  10676. *)
  10677. # If it is relative, then search for the first ld in PATH.
  10678. with_gnu_ld=unknown
  10679. ;;
  10680. esac
  10681. elif test "$with_gnu_ld" = yes; then
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10683. $as_echo_n "checking for GNU ld... " >&6; }
  10684. else
  10685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10686. $as_echo_n "checking for non-GNU ld... " >&6; }
  10687. fi
  10688. if ${lt_cv_path_LD+:} false; then :
  10689. $as_echo_n "(cached) " >&6
  10690. else
  10691. if test -z "$LD"; then
  10692. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10693. for ac_dir in $PATH; do
  10694. IFS="$lt_save_ifs"
  10695. test -z "$ac_dir" && ac_dir=.
  10696. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10697. lt_cv_path_LD="$ac_dir/$ac_prog"
  10698. # Check to see if the program is GNU ld. I'd rather use --version,
  10699. # but apparently some variants of GNU ld only accept -v.
  10700. # Break only if it was the GNU/non-GNU ld that we prefer.
  10701. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10702. *GNU* | *'with BFD'*)
  10703. test "$with_gnu_ld" != no && break
  10704. ;;
  10705. *)
  10706. test "$with_gnu_ld" != yes && break
  10707. ;;
  10708. esac
  10709. fi
  10710. done
  10711. IFS="$lt_save_ifs"
  10712. else
  10713. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10714. fi
  10715. fi
  10716. LD="$lt_cv_path_LD"
  10717. if test -n "$LD"; then
  10718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10719. $as_echo "$LD" >&6; }
  10720. else
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10722. $as_echo "no" >&6; }
  10723. fi
  10724. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10726. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10727. if ${lt_cv_prog_gnu_ld+:} false; then :
  10728. $as_echo_n "(cached) " >&6
  10729. else
  10730. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10731. case `$LD -v 2>&1 </dev/null` in
  10732. *GNU* | *'with BFD'*)
  10733. lt_cv_prog_gnu_ld=yes
  10734. ;;
  10735. *)
  10736. lt_cv_prog_gnu_ld=no
  10737. ;;
  10738. esac
  10739. fi
  10740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10741. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10742. with_gnu_ld=$lt_cv_prog_gnu_ld
  10743. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10744. # archiving commands below assume that GNU ld is being used.
  10745. if test "$with_gnu_ld" = yes; then
  10746. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10747. 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'
  10748. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10749. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10750. # If archive_cmds runs LD, not CC, wlarc should be empty
  10751. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10752. # investigate it a little bit more. (MM)
  10753. wlarc='${wl}'
  10754. # ancient GNU ld didn't support --whole-archive et. al.
  10755. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10756. $GREP 'no-whole-archive' > /dev/null; then
  10757. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10758. else
  10759. whole_archive_flag_spec_CXX=
  10760. fi
  10761. else
  10762. with_gnu_ld=no
  10763. wlarc=
  10764. # A generic and very simple default shared library creation
  10765. # command for GNU C++ for the case where it uses the native
  10766. # linker, instead of GNU ld. If possible, this setting should
  10767. # overridden to take advantage of the native linker features on
  10768. # the platform it is being used on.
  10769. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10770. fi
  10771. # Commands to make compiler produce verbose output that lists
  10772. # what "hidden" libraries, object files and flags are used when
  10773. # linking a shared library.
  10774. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10775. else
  10776. GXX=no
  10777. with_gnu_ld=no
  10778. wlarc=
  10779. fi
  10780. # PORTME: fill in a description of your system's C++ link characteristics
  10781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10782. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10783. ld_shlibs_CXX=yes
  10784. case $host_os in
  10785. aix3*)
  10786. # FIXME: insert proper C++ library support
  10787. ld_shlibs_CXX=no
  10788. ;;
  10789. aix[4-9]*)
  10790. if test "$host_cpu" = ia64; then
  10791. # On IA64, the linker does run time linking by default, so we don't
  10792. # have to do anything special.
  10793. aix_use_runtimelinking=no
  10794. exp_sym_flag='-Bexport'
  10795. no_entry_flag=""
  10796. else
  10797. aix_use_runtimelinking=no
  10798. # Test if we are trying to use run time linking or normal
  10799. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10800. # need to do runtime linking.
  10801. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10802. for ld_flag in $LDFLAGS; do
  10803. case $ld_flag in
  10804. *-brtl*)
  10805. aix_use_runtimelinking=yes
  10806. break
  10807. ;;
  10808. esac
  10809. done
  10810. ;;
  10811. esac
  10812. exp_sym_flag='-bexport'
  10813. no_entry_flag='-bnoentry'
  10814. fi
  10815. # When large executables or shared objects are built, AIX ld can
  10816. # have problems creating the table of contents. If linking a library
  10817. # or program results in "error TOC overflow" add -mminimal-toc to
  10818. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10819. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10820. archive_cmds_CXX=''
  10821. hardcode_direct_CXX=yes
  10822. hardcode_direct_absolute_CXX=yes
  10823. hardcode_libdir_separator_CXX=':'
  10824. link_all_deplibs_CXX=yes
  10825. file_list_spec_CXX='${wl}-f,'
  10826. if test "$GXX" = yes; then
  10827. case $host_os in aix4.[012]|aix4.[012].*)
  10828. # We only want to do this on AIX 4.2 and lower, the check
  10829. # below for broken collect2 doesn't work under 4.3+
  10830. collect2name=`${CC} -print-prog-name=collect2`
  10831. if test -f "$collect2name" &&
  10832. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10833. then
  10834. # We have reworked collect2
  10835. :
  10836. else
  10837. # We have old collect2
  10838. hardcode_direct_CXX=unsupported
  10839. # It fails to find uninstalled libraries when the uninstalled
  10840. # path is not listed in the libpath. Setting hardcode_minus_L
  10841. # to unsupported forces relinking
  10842. hardcode_minus_L_CXX=yes
  10843. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10844. hardcode_libdir_separator_CXX=
  10845. fi
  10846. esac
  10847. shared_flag='-shared'
  10848. if test "$aix_use_runtimelinking" = yes; then
  10849. shared_flag="$shared_flag "'${wl}-G'
  10850. fi
  10851. else
  10852. # not using gcc
  10853. if test "$host_cpu" = ia64; then
  10854. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10855. # chokes on -Wl,-G. The following line is correct:
  10856. shared_flag='-G'
  10857. else
  10858. if test "$aix_use_runtimelinking" = yes; then
  10859. shared_flag='${wl}-G'
  10860. else
  10861. shared_flag='${wl}-bM:SRE'
  10862. fi
  10863. fi
  10864. fi
  10865. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10866. # It seems that -bexpall does not export symbols beginning with
  10867. # underscore (_), so it is better to generate a list of symbols to
  10868. # export.
  10869. always_export_symbols_CXX=yes
  10870. if test "$aix_use_runtimelinking" = yes; then
  10871. # Warning - without using the other runtime loading flags (-brtl),
  10872. # -berok will link without error, but may produce a broken library.
  10873. allow_undefined_flag_CXX='-berok'
  10874. # Determine the default libpath from the value encoded in an empty
  10875. # executable.
  10876. if test "${lt_cv_aix_libpath+set}" = set; then
  10877. aix_libpath=$lt_cv_aix_libpath
  10878. else
  10879. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10880. $as_echo_n "(cached) " >&6
  10881. else
  10882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10883. /* end confdefs.h. */
  10884. int
  10885. main ()
  10886. {
  10887. ;
  10888. return 0;
  10889. }
  10890. _ACEOF
  10891. if ac_fn_cxx_try_link "$LINENO"; then :
  10892. lt_aix_libpath_sed='
  10893. /Import File Strings/,/^$/ {
  10894. /^0/ {
  10895. s/^0 *\([^ ]*\) *$/\1/
  10896. p
  10897. }
  10898. }'
  10899. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10900. # Check for a 64-bit object if we didn't find anything.
  10901. if test -z "$lt_cv_aix_libpath__CXX"; then
  10902. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10903. fi
  10904. fi
  10905. rm -f core conftest.err conftest.$ac_objext \
  10906. conftest$ac_exeext conftest.$ac_ext
  10907. if test -z "$lt_cv_aix_libpath__CXX"; then
  10908. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10909. fi
  10910. fi
  10911. aix_libpath=$lt_cv_aix_libpath__CXX
  10912. fi
  10913. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10914. 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"
  10915. else
  10916. if test "$host_cpu" = ia64; then
  10917. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10918. allow_undefined_flag_CXX="-z nodefs"
  10919. 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"
  10920. else
  10921. # Determine the default libpath from the value encoded in an
  10922. # empty executable.
  10923. if test "${lt_cv_aix_libpath+set}" = set; then
  10924. aix_libpath=$lt_cv_aix_libpath
  10925. else
  10926. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10927. $as_echo_n "(cached) " >&6
  10928. else
  10929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10930. /* end confdefs.h. */
  10931. int
  10932. main ()
  10933. {
  10934. ;
  10935. return 0;
  10936. }
  10937. _ACEOF
  10938. if ac_fn_cxx_try_link "$LINENO"; then :
  10939. lt_aix_libpath_sed='
  10940. /Import File Strings/,/^$/ {
  10941. /^0/ {
  10942. s/^0 *\([^ ]*\) *$/\1/
  10943. p
  10944. }
  10945. }'
  10946. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10947. # Check for a 64-bit object if we didn't find anything.
  10948. if test -z "$lt_cv_aix_libpath__CXX"; then
  10949. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10950. fi
  10951. fi
  10952. rm -f core conftest.err conftest.$ac_objext \
  10953. conftest$ac_exeext conftest.$ac_ext
  10954. if test -z "$lt_cv_aix_libpath__CXX"; then
  10955. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10956. fi
  10957. fi
  10958. aix_libpath=$lt_cv_aix_libpath__CXX
  10959. fi
  10960. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10961. # Warning - without using the other run time loading flags,
  10962. # -berok will link without error, but may produce a broken library.
  10963. no_undefined_flag_CXX=' ${wl}-bernotok'
  10964. allow_undefined_flag_CXX=' ${wl}-berok'
  10965. if test "$with_gnu_ld" = yes; then
  10966. # We only use this code for GNU lds that support --whole-archive.
  10967. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10968. else
  10969. # Exported symbols can be pulled into shared objects from archives
  10970. whole_archive_flag_spec_CXX='$convenience'
  10971. fi
  10972. archive_cmds_need_lc_CXX=yes
  10973. # This is similar to how AIX traditionally builds its shared
  10974. # libraries.
  10975. 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'
  10976. fi
  10977. fi
  10978. ;;
  10979. beos*)
  10980. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10981. allow_undefined_flag_CXX=unsupported
  10982. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10983. # support --undefined. This deserves some investigation. FIXME
  10984. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10985. else
  10986. ld_shlibs_CXX=no
  10987. fi
  10988. ;;
  10989. chorus*)
  10990. case $cc_basename in
  10991. *)
  10992. # FIXME: insert proper C++ library support
  10993. ld_shlibs_CXX=no
  10994. ;;
  10995. esac
  10996. ;;
  10997. cygwin* | mingw* | pw32* | cegcc*)
  10998. case $GXX,$cc_basename in
  10999. ,cl* | no,cl*)
  11000. # Native MSVC
  11001. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11002. # no search path for DLLs.
  11003. hardcode_libdir_flag_spec_CXX=' '
  11004. allow_undefined_flag_CXX=unsupported
  11005. always_export_symbols_CXX=yes
  11006. file_list_spec_CXX='@'
  11007. # Tell ltmain to make .lib files, not .a files.
  11008. libext=lib
  11009. # Tell ltmain to make .dll files, not .so files.
  11010. shrext_cmds=".dll"
  11011. # FIXME: Setting linknames here is a bad hack.
  11012. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11013. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11014. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11015. else
  11016. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11017. fi~
  11018. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11019. linknames='
  11020. # The linker will not automatically build a static lib if we build a DLL.
  11021. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11022. enable_shared_with_static_runtimes_CXX=yes
  11023. # Don't use ranlib
  11024. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11025. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11026. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11027. case $lt_outputfile in
  11028. *.exe|*.EXE) ;;
  11029. *)
  11030. lt_outputfile="$lt_outputfile.exe"
  11031. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11032. ;;
  11033. esac~
  11034. func_to_tool_file "$lt_outputfile"~
  11035. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11036. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11037. $RM "$lt_outputfile.manifest";
  11038. fi'
  11039. ;;
  11040. *)
  11041. # g++
  11042. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11043. # as there is no search path for DLLs.
  11044. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11045. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11046. allow_undefined_flag_CXX=unsupported
  11047. always_export_symbols_CXX=no
  11048. enable_shared_with_static_runtimes_CXX=yes
  11049. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11050. 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'
  11051. # If the export-symbols file already is a .def file (1st line
  11052. # is EXPORTS), use it as is; otherwise, prepend...
  11053. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11054. cp $export_symbols $output_objdir/$soname.def;
  11055. else
  11056. echo EXPORTS > $output_objdir/$soname.def;
  11057. cat $export_symbols >> $output_objdir/$soname.def;
  11058. fi~
  11059. $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'
  11060. else
  11061. ld_shlibs_CXX=no
  11062. fi
  11063. ;;
  11064. esac
  11065. ;;
  11066. darwin* | rhapsody*)
  11067. archive_cmds_need_lc_CXX=no
  11068. hardcode_direct_CXX=no
  11069. hardcode_automatic_CXX=yes
  11070. hardcode_shlibpath_var_CXX=unsupported
  11071. if test "$lt_cv_ld_force_load" = "yes"; then
  11072. 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\"`'
  11073. else
  11074. whole_archive_flag_spec_CXX=''
  11075. fi
  11076. link_all_deplibs_CXX=yes
  11077. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11078. case $cc_basename in
  11079. ifort*) _lt_dar_can_shared=yes ;;
  11080. *) _lt_dar_can_shared=$GCC ;;
  11081. esac
  11082. if test "$_lt_dar_can_shared" = "yes"; then
  11083. output_verbose_link_cmd=func_echo_all
  11084. 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}"
  11085. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11086. 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}"
  11087. 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}"
  11088. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11089. 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}"
  11090. 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}"
  11091. fi
  11092. else
  11093. ld_shlibs_CXX=no
  11094. fi
  11095. ;;
  11096. dgux*)
  11097. case $cc_basename in
  11098. ec++*)
  11099. # FIXME: insert proper C++ library support
  11100. ld_shlibs_CXX=no
  11101. ;;
  11102. ghcx*)
  11103. # Green Hills C++ Compiler
  11104. # FIXME: insert proper C++ library support
  11105. ld_shlibs_CXX=no
  11106. ;;
  11107. *)
  11108. # FIXME: insert proper C++ library support
  11109. ld_shlibs_CXX=no
  11110. ;;
  11111. esac
  11112. ;;
  11113. freebsd2.*)
  11114. # C++ shared libraries reported to be fairly broken before
  11115. # switch to ELF
  11116. ld_shlibs_CXX=no
  11117. ;;
  11118. freebsd-elf*)
  11119. archive_cmds_need_lc_CXX=no
  11120. ;;
  11121. freebsd* | dragonfly*)
  11122. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11123. # conventions
  11124. ld_shlibs_CXX=yes
  11125. ;;
  11126. gnu*)
  11127. ;;
  11128. haiku*)
  11129. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11130. link_all_deplibs_CXX=yes
  11131. ;;
  11132. hpux9*)
  11133. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11134. hardcode_libdir_separator_CXX=:
  11135. export_dynamic_flag_spec_CXX='${wl}-E'
  11136. hardcode_direct_CXX=yes
  11137. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11138. # but as the default
  11139. # location of the library.
  11140. case $cc_basename in
  11141. CC*)
  11142. # FIXME: insert proper C++ library support
  11143. ld_shlibs_CXX=no
  11144. ;;
  11145. aCC*)
  11146. 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'
  11147. # Commands to make compiler produce verbose output that lists
  11148. # what "hidden" libraries, object files and flags are used when
  11149. # linking a shared library.
  11150. #
  11151. # There doesn't appear to be a way to prevent this compiler from
  11152. # explicitly linking system object files so we need to strip them
  11153. # from the output so that they don't get included in the library
  11154. # dependencies.
  11155. 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"'
  11156. ;;
  11157. *)
  11158. if test "$GXX" = yes; then
  11159. 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'
  11160. else
  11161. # FIXME: insert proper C++ library support
  11162. ld_shlibs_CXX=no
  11163. fi
  11164. ;;
  11165. esac
  11166. ;;
  11167. hpux10*|hpux11*)
  11168. if test $with_gnu_ld = no; then
  11169. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11170. hardcode_libdir_separator_CXX=:
  11171. case $host_cpu in
  11172. hppa*64*|ia64*)
  11173. ;;
  11174. *)
  11175. export_dynamic_flag_spec_CXX='${wl}-E'
  11176. ;;
  11177. esac
  11178. fi
  11179. case $host_cpu in
  11180. hppa*64*|ia64*)
  11181. hardcode_direct_CXX=no
  11182. hardcode_shlibpath_var_CXX=no
  11183. ;;
  11184. *)
  11185. hardcode_direct_CXX=yes
  11186. hardcode_direct_absolute_CXX=yes
  11187. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11188. # but as the default
  11189. # location of the library.
  11190. ;;
  11191. esac
  11192. case $cc_basename in
  11193. CC*)
  11194. # FIXME: insert proper C++ library support
  11195. ld_shlibs_CXX=no
  11196. ;;
  11197. aCC*)
  11198. case $host_cpu in
  11199. hppa*64*)
  11200. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11201. ;;
  11202. ia64*)
  11203. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11204. ;;
  11205. *)
  11206. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11207. ;;
  11208. esac
  11209. # Commands to make compiler produce verbose output that lists
  11210. # what "hidden" libraries, object files and flags are used when
  11211. # linking a shared library.
  11212. #
  11213. # There doesn't appear to be a way to prevent this compiler from
  11214. # explicitly linking system object files so we need to strip them
  11215. # from the output so that they don't get included in the library
  11216. # dependencies.
  11217. 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"'
  11218. ;;
  11219. *)
  11220. if test "$GXX" = yes; then
  11221. if test $with_gnu_ld = no; then
  11222. case $host_cpu in
  11223. hppa*64*)
  11224. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11225. ;;
  11226. ia64*)
  11227. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11228. ;;
  11229. *)
  11230. 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'
  11231. ;;
  11232. esac
  11233. fi
  11234. else
  11235. # FIXME: insert proper C++ library support
  11236. ld_shlibs_CXX=no
  11237. fi
  11238. ;;
  11239. esac
  11240. ;;
  11241. interix[3-9]*)
  11242. hardcode_direct_CXX=no
  11243. hardcode_shlibpath_var_CXX=no
  11244. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11245. export_dynamic_flag_spec_CXX='${wl}-E'
  11246. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11247. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11248. # default) and relocated if they conflict, which is a slow very memory
  11249. # consuming and fragmenting process. To avoid this, we pick a random,
  11250. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11251. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11252. 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'
  11253. 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'
  11254. ;;
  11255. irix5* | irix6*)
  11256. case $cc_basename in
  11257. CC*)
  11258. # SGI C++
  11259. 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'
  11260. # Archives containing C++ object files must be created using
  11261. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11262. # necessary to make sure instantiated templates are included
  11263. # in the archive.
  11264. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11265. ;;
  11266. *)
  11267. if test "$GXX" = yes; then
  11268. if test "$with_gnu_ld" = no; then
  11269. 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'
  11270. else
  11271. 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'
  11272. fi
  11273. fi
  11274. link_all_deplibs_CXX=yes
  11275. ;;
  11276. esac
  11277. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11278. hardcode_libdir_separator_CXX=:
  11279. inherit_rpath_CXX=yes
  11280. ;;
  11281. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11282. case $cc_basename in
  11283. KCC*)
  11284. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11285. # KCC will only create a shared library if the output file
  11286. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11287. # to its proper name (with version) after linking.
  11288. 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'
  11289. 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'
  11290. # Commands to make compiler produce verbose output that lists
  11291. # what "hidden" libraries, object files and flags are used when
  11292. # linking a shared library.
  11293. #
  11294. # There doesn't appear to be a way to prevent this compiler from
  11295. # explicitly linking system object files so we need to strip them
  11296. # from the output so that they don't get included in the library
  11297. # dependencies.
  11298. 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"'
  11299. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11300. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11301. # Archives containing C++ object files must be created using
  11302. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11303. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11304. ;;
  11305. icpc* | ecpc* )
  11306. # Intel C++
  11307. with_gnu_ld=yes
  11308. # version 8.0 and above of icpc choke on multiply defined symbols
  11309. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11310. # earlier do not add the objects themselves.
  11311. case `$CC -V 2>&1` in
  11312. *"Version 7."*)
  11313. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11314. 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'
  11315. ;;
  11316. *) # Version 8.0 or newer
  11317. tmp_idyn=
  11318. case $host_cpu in
  11319. ia64*) tmp_idyn=' -i_dynamic';;
  11320. esac
  11321. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11322. 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'
  11323. ;;
  11324. esac
  11325. archive_cmds_need_lc_CXX=no
  11326. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11327. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11328. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11329. ;;
  11330. pgCC* | pgcpp*)
  11331. # Portland Group C++ compiler
  11332. case `$CC -V` in
  11333. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11334. prelink_cmds_CXX='tpldir=Template.dir~
  11335. rm -rf $tpldir~
  11336. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11337. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11338. old_archive_cmds_CXX='tpldir=Template.dir~
  11339. rm -rf $tpldir~
  11340. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11341. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11342. $RANLIB $oldlib'
  11343. archive_cmds_CXX='tpldir=Template.dir~
  11344. rm -rf $tpldir~
  11345. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11346. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11347. archive_expsym_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 ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11351. ;;
  11352. *) # Version 6 and above use weak symbols
  11353. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11354. 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'
  11355. ;;
  11356. esac
  11357. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11358. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11359. 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'
  11360. ;;
  11361. cxx*)
  11362. # Compaq C++
  11363. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11364. 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'
  11365. runpath_var=LD_RUN_PATH
  11366. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11367. hardcode_libdir_separator_CXX=:
  11368. # Commands to make compiler produce verbose output that lists
  11369. # what "hidden" libraries, object files and flags are used when
  11370. # linking a shared library.
  11371. #
  11372. # There doesn't appear to be a way to prevent this compiler from
  11373. # explicitly linking system object files so we need to strip them
  11374. # from the output so that they don't get included in the library
  11375. # dependencies.
  11376. 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'
  11377. ;;
  11378. xl* | mpixl* | bgxl*)
  11379. # IBM XL 8.0 on PPC, with GNU ld
  11380. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11381. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11382. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11383. if test "x$supports_anon_versioning" = xyes; then
  11384. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11385. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11386. echo "local: *; };" >> $output_objdir/$libname.ver~
  11387. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11388. fi
  11389. ;;
  11390. *)
  11391. case `$CC -V 2>&1 | sed 5q` in
  11392. *Sun\ C*)
  11393. # Sun C++ 5.9
  11394. no_undefined_flag_CXX=' -zdefs'
  11395. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11396. 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'
  11397. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11398. 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'
  11399. compiler_needs_object_CXX=yes
  11400. # Not sure whether something based on
  11401. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11402. # would be better.
  11403. output_verbose_link_cmd='func_echo_all'
  11404. # Archives containing C++ object files must be created using
  11405. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11406. # necessary to make sure instantiated templates are included
  11407. # in the archive.
  11408. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11409. ;;
  11410. esac
  11411. ;;
  11412. esac
  11413. ;;
  11414. lynxos*)
  11415. # FIXME: insert proper C++ library support
  11416. ld_shlibs_CXX=no
  11417. ;;
  11418. m88k*)
  11419. # FIXME: insert proper C++ library support
  11420. ld_shlibs_CXX=no
  11421. ;;
  11422. mvs*)
  11423. case $cc_basename in
  11424. cxx*)
  11425. # FIXME: insert proper C++ library support
  11426. ld_shlibs_CXX=no
  11427. ;;
  11428. *)
  11429. # FIXME: insert proper C++ library support
  11430. ld_shlibs_CXX=no
  11431. ;;
  11432. esac
  11433. ;;
  11434. netbsd*)
  11435. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11436. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11437. wlarc=
  11438. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11439. hardcode_direct_CXX=yes
  11440. hardcode_shlibpath_var_CXX=no
  11441. fi
  11442. # Workaround some broken pre-1.5 toolchains
  11443. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11444. ;;
  11445. *nto* | *qnx*)
  11446. ld_shlibs_CXX=yes
  11447. ;;
  11448. openbsd2*)
  11449. # C++ shared libraries are fairly broken
  11450. ld_shlibs_CXX=no
  11451. ;;
  11452. openbsd*)
  11453. if test -f /usr/libexec/ld.so; then
  11454. hardcode_direct_CXX=yes
  11455. hardcode_shlibpath_var_CXX=no
  11456. hardcode_direct_absolute_CXX=yes
  11457. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11458. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11459. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11460. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11461. export_dynamic_flag_spec_CXX='${wl}-E'
  11462. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11463. fi
  11464. output_verbose_link_cmd=func_echo_all
  11465. else
  11466. ld_shlibs_CXX=no
  11467. fi
  11468. ;;
  11469. osf3* | osf4* | osf5*)
  11470. case $cc_basename in
  11471. KCC*)
  11472. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11473. # KCC will only create a shared library if the output file
  11474. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11475. # to its proper name (with version) after linking.
  11476. 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'
  11477. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11478. hardcode_libdir_separator_CXX=:
  11479. # Archives containing C++ object files must be created using
  11480. # the KAI C++ compiler.
  11481. case $host in
  11482. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11483. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11484. esac
  11485. ;;
  11486. RCC*)
  11487. # Rational C++ 2.4.1
  11488. # FIXME: insert proper C++ library support
  11489. ld_shlibs_CXX=no
  11490. ;;
  11491. cxx*)
  11492. case $host in
  11493. osf3*)
  11494. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11495. 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'
  11496. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11497. ;;
  11498. *)
  11499. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11500. 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'
  11501. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11502. echo "-hidden">> $lib.exp~
  11503. $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~
  11504. $RM $lib.exp'
  11505. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11506. ;;
  11507. esac
  11508. hardcode_libdir_separator_CXX=:
  11509. # Commands to make compiler produce verbose output that lists
  11510. # what "hidden" libraries, object files and flags are used when
  11511. # linking a shared library.
  11512. #
  11513. # There doesn't appear to be a way to prevent this compiler from
  11514. # explicitly linking system object files so we need to strip them
  11515. # from the output so that they don't get included in the library
  11516. # dependencies.
  11517. 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"'
  11518. ;;
  11519. *)
  11520. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11521. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11522. case $host in
  11523. osf3*)
  11524. 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'
  11525. ;;
  11526. *)
  11527. 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'
  11528. ;;
  11529. esac
  11530. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11531. hardcode_libdir_separator_CXX=:
  11532. # Commands to make compiler produce verbose output that lists
  11533. # what "hidden" libraries, object files and flags are used when
  11534. # linking a shared library.
  11535. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11536. else
  11537. # FIXME: insert proper C++ library support
  11538. ld_shlibs_CXX=no
  11539. fi
  11540. ;;
  11541. esac
  11542. ;;
  11543. psos*)
  11544. # FIXME: insert proper C++ library support
  11545. ld_shlibs_CXX=no
  11546. ;;
  11547. sunos4*)
  11548. case $cc_basename in
  11549. CC*)
  11550. # Sun C++ 4.x
  11551. # FIXME: insert proper C++ library support
  11552. ld_shlibs_CXX=no
  11553. ;;
  11554. lcc*)
  11555. # Lucid
  11556. # FIXME: insert proper C++ library support
  11557. ld_shlibs_CXX=no
  11558. ;;
  11559. *)
  11560. # FIXME: insert proper C++ library support
  11561. ld_shlibs_CXX=no
  11562. ;;
  11563. esac
  11564. ;;
  11565. solaris*)
  11566. case $cc_basename in
  11567. CC* | sunCC*)
  11568. # Sun C++ 4.2, 5.x and Centerline C++
  11569. archive_cmds_need_lc_CXX=yes
  11570. no_undefined_flag_CXX=' -zdefs'
  11571. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11572. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11573. $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'
  11574. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11575. hardcode_shlibpath_var_CXX=no
  11576. case $host_os in
  11577. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11578. *)
  11579. # The compiler driver will combine and reorder linker options,
  11580. # but understands `-z linker_flag'.
  11581. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11582. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11583. ;;
  11584. esac
  11585. link_all_deplibs_CXX=yes
  11586. output_verbose_link_cmd='func_echo_all'
  11587. # Archives containing C++ object files must be created using
  11588. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11589. # necessary to make sure instantiated templates are included
  11590. # in the archive.
  11591. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11592. ;;
  11593. gcx*)
  11594. # Green Hills C++ Compiler
  11595. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11596. # The C++ compiler must be used to create the archive.
  11597. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11598. ;;
  11599. *)
  11600. # GNU C++ compiler with Solaris linker
  11601. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11602. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11603. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11604. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11605. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11606. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11607. # Commands to make compiler produce verbose output that lists
  11608. # what "hidden" libraries, object files and flags are used when
  11609. # linking a shared library.
  11610. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11611. else
  11612. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11613. # platform.
  11614. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11615. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11616. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11617. # Commands to make compiler produce verbose output that lists
  11618. # what "hidden" libraries, object files and flags are used when
  11619. # linking a shared library.
  11620. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11621. fi
  11622. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11623. case $host_os in
  11624. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11625. *)
  11626. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11627. ;;
  11628. esac
  11629. fi
  11630. ;;
  11631. esac
  11632. ;;
  11633. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11634. no_undefined_flag_CXX='${wl}-z,text'
  11635. archive_cmds_need_lc_CXX=no
  11636. hardcode_shlibpath_var_CXX=no
  11637. runpath_var='LD_RUN_PATH'
  11638. case $cc_basename in
  11639. CC*)
  11640. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11641. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11642. ;;
  11643. *)
  11644. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11645. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11646. ;;
  11647. esac
  11648. ;;
  11649. sysv5* | sco3.2v5* | sco5v6*)
  11650. # Note: We can NOT use -z defs as we might desire, because we do not
  11651. # link with -lc, and that would cause any symbols used from libc to
  11652. # always be unresolved, which means just about no library would
  11653. # ever link correctly. If we're not using GNU ld we use -z text
  11654. # though, which does catch some bad symbols but isn't as heavy-handed
  11655. # as -z defs.
  11656. no_undefined_flag_CXX='${wl}-z,text'
  11657. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11658. archive_cmds_need_lc_CXX=no
  11659. hardcode_shlibpath_var_CXX=no
  11660. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11661. hardcode_libdir_separator_CXX=':'
  11662. link_all_deplibs_CXX=yes
  11663. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11664. runpath_var='LD_RUN_PATH'
  11665. case $cc_basename in
  11666. CC*)
  11667. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11668. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11669. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11670. '"$old_archive_cmds_CXX"
  11671. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11672. '"$reload_cmds_CXX"
  11673. ;;
  11674. *)
  11675. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11676. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11677. ;;
  11678. esac
  11679. ;;
  11680. tandem*)
  11681. case $cc_basename in
  11682. NCC*)
  11683. # NonStop-UX NCC 3.20
  11684. # FIXME: insert proper C++ library support
  11685. ld_shlibs_CXX=no
  11686. ;;
  11687. *)
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. ;;
  11691. esac
  11692. ;;
  11693. vxworks*)
  11694. # FIXME: insert proper C++ library support
  11695. ld_shlibs_CXX=no
  11696. ;;
  11697. *)
  11698. # FIXME: insert proper C++ library support
  11699. ld_shlibs_CXX=no
  11700. ;;
  11701. esac
  11702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11703. $as_echo "$ld_shlibs_CXX" >&6; }
  11704. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11705. GCC_CXX="$GXX"
  11706. LD_CXX="$LD"
  11707. ## CAVEAT EMPTOR:
  11708. ## There is no encapsulation within the following macros, do not change
  11709. ## the running order or otherwise move them around unless you know exactly
  11710. ## what you are doing...
  11711. # Dependencies to place before and after the object being linked:
  11712. predep_objects_CXX=
  11713. postdep_objects_CXX=
  11714. predeps_CXX=
  11715. postdeps_CXX=
  11716. compiler_lib_search_path_CXX=
  11717. cat > conftest.$ac_ext <<_LT_EOF
  11718. class Foo
  11719. {
  11720. public:
  11721. Foo (void) { a = 0; }
  11722. private:
  11723. int a;
  11724. };
  11725. _LT_EOF
  11726. _lt_libdeps_save_CFLAGS=$CFLAGS
  11727. case "$CC $CFLAGS " in #(
  11728. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11729. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11730. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11731. esac
  11732. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11733. (eval $ac_compile) 2>&5
  11734. ac_status=$?
  11735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11736. test $ac_status = 0; }; then
  11737. # Parse the compiler output and extract the necessary
  11738. # objects, libraries and library flags.
  11739. # Sentinel used to keep track of whether or not we are before
  11740. # the conftest object file.
  11741. pre_test_object_deps_done=no
  11742. for p in `eval "$output_verbose_link_cmd"`; do
  11743. case ${prev}${p} in
  11744. -L* | -R* | -l*)
  11745. # Some compilers place space between "-{L,R}" and the path.
  11746. # Remove the space.
  11747. if test $p = "-L" ||
  11748. test $p = "-R"; then
  11749. prev=$p
  11750. continue
  11751. fi
  11752. # Expand the sysroot to ease extracting the directories later.
  11753. if test -z "$prev"; then
  11754. case $p in
  11755. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11756. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11757. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11758. esac
  11759. fi
  11760. case $p in
  11761. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11762. esac
  11763. if test "$pre_test_object_deps_done" = no; then
  11764. case ${prev} in
  11765. -L | -R)
  11766. # Internal compiler library paths should come after those
  11767. # provided the user. The postdeps already come after the
  11768. # user supplied libs so there is no need to process them.
  11769. if test -z "$compiler_lib_search_path_CXX"; then
  11770. compiler_lib_search_path_CXX="${prev}${p}"
  11771. else
  11772. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11773. fi
  11774. ;;
  11775. # The "-l" case would never come before the object being
  11776. # linked, so don't bother handling this case.
  11777. esac
  11778. else
  11779. if test -z "$postdeps_CXX"; then
  11780. postdeps_CXX="${prev}${p}"
  11781. else
  11782. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11783. fi
  11784. fi
  11785. prev=
  11786. ;;
  11787. *.lto.$objext) ;; # Ignore GCC LTO objects
  11788. *.$objext)
  11789. # This assumes that the test object file only shows up
  11790. # once in the compiler output.
  11791. if test "$p" = "conftest.$objext"; then
  11792. pre_test_object_deps_done=yes
  11793. continue
  11794. fi
  11795. if test "$pre_test_object_deps_done" = no; then
  11796. if test -z "$predep_objects_CXX"; then
  11797. predep_objects_CXX="$p"
  11798. else
  11799. predep_objects_CXX="$predep_objects_CXX $p"
  11800. fi
  11801. else
  11802. if test -z "$postdep_objects_CXX"; then
  11803. postdep_objects_CXX="$p"
  11804. else
  11805. postdep_objects_CXX="$postdep_objects_CXX $p"
  11806. fi
  11807. fi
  11808. ;;
  11809. *) ;; # Ignore the rest.
  11810. esac
  11811. done
  11812. # Clean up.
  11813. rm -f a.out a.exe
  11814. else
  11815. echo "libtool.m4: error: problem compiling CXX test program"
  11816. fi
  11817. $RM -f confest.$objext
  11818. CFLAGS=$_lt_libdeps_save_CFLAGS
  11819. # PORTME: override above test on systems where it is broken
  11820. case $host_os in
  11821. interix[3-9]*)
  11822. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11823. # hack all around it, let's just trust "g++" to DTRT.
  11824. predep_objects_CXX=
  11825. postdep_objects_CXX=
  11826. postdeps_CXX=
  11827. ;;
  11828. linux*)
  11829. case `$CC -V 2>&1 | sed 5q` in
  11830. *Sun\ C*)
  11831. # Sun C++ 5.9
  11832. # The more standards-conforming stlport4 library is
  11833. # incompatible with the Cstd library. Avoid specifying
  11834. # it if it's in CXXFLAGS. Ignore libCrun as
  11835. # -library=stlport4 depends on it.
  11836. case " $CXX $CXXFLAGS " in
  11837. *" -library=stlport4 "*)
  11838. solaris_use_stlport4=yes
  11839. ;;
  11840. esac
  11841. if test "$solaris_use_stlport4" != yes; then
  11842. postdeps_CXX='-library=Cstd -library=Crun'
  11843. fi
  11844. ;;
  11845. esac
  11846. ;;
  11847. solaris*)
  11848. case $cc_basename in
  11849. CC* | sunCC*)
  11850. # The more standards-conforming stlport4 library is
  11851. # incompatible with the Cstd library. Avoid specifying
  11852. # it if it's in CXXFLAGS. Ignore libCrun as
  11853. # -library=stlport4 depends on it.
  11854. case " $CXX $CXXFLAGS " in
  11855. *" -library=stlport4 "*)
  11856. solaris_use_stlport4=yes
  11857. ;;
  11858. esac
  11859. # Adding this requires a known-good setup of shared libraries for
  11860. # Sun compiler versions before 5.6, else PIC objects from an old
  11861. # archive will be linked into the output, leading to subtle bugs.
  11862. if test "$solaris_use_stlport4" != yes; then
  11863. postdeps_CXX='-library=Cstd -library=Crun'
  11864. fi
  11865. ;;
  11866. esac
  11867. ;;
  11868. esac
  11869. case " $postdeps_CXX " in
  11870. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11871. esac
  11872. compiler_lib_search_dirs_CXX=
  11873. if test -n "${compiler_lib_search_path_CXX}"; then
  11874. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11875. fi
  11876. lt_prog_compiler_wl_CXX=
  11877. lt_prog_compiler_pic_CXX=
  11878. lt_prog_compiler_static_CXX=
  11879. # C++ specific cases for pic, static, wl, etc.
  11880. if test "$GXX" = yes; then
  11881. lt_prog_compiler_wl_CXX='-Wl,'
  11882. lt_prog_compiler_static_CXX='-static'
  11883. case $host_os in
  11884. aix*)
  11885. # All AIX code is PIC.
  11886. if test "$host_cpu" = ia64; then
  11887. # AIX 5 now supports IA64 processor
  11888. lt_prog_compiler_static_CXX='-Bstatic'
  11889. fi
  11890. ;;
  11891. amigaos*)
  11892. case $host_cpu in
  11893. powerpc)
  11894. # see comment about AmigaOS4 .so support
  11895. lt_prog_compiler_pic_CXX='-fPIC'
  11896. ;;
  11897. m68k)
  11898. # FIXME: we need at least 68020 code to build shared libraries, but
  11899. # adding the `-m68020' flag to GCC prevents building anything better,
  11900. # like `-m68040'.
  11901. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11902. ;;
  11903. esac
  11904. ;;
  11905. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11906. # PIC is the default for these OSes.
  11907. ;;
  11908. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11909. # This hack is so that the source file can tell whether it is being
  11910. # built for inclusion in a dll (and should export symbols for example).
  11911. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11912. # (--disable-auto-import) libraries
  11913. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11914. ;;
  11915. darwin* | rhapsody*)
  11916. # PIC is the default on this platform
  11917. # Common symbols not allowed in MH_DYLIB files
  11918. lt_prog_compiler_pic_CXX='-fno-common'
  11919. ;;
  11920. *djgpp*)
  11921. # DJGPP does not support shared libraries at all
  11922. lt_prog_compiler_pic_CXX=
  11923. ;;
  11924. haiku*)
  11925. # PIC is the default for Haiku.
  11926. # The "-static" flag exists, but is broken.
  11927. lt_prog_compiler_static_CXX=
  11928. ;;
  11929. interix[3-9]*)
  11930. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11931. # Instead, we relocate shared libraries at runtime.
  11932. ;;
  11933. sysv4*MP*)
  11934. if test -d /usr/nec; then
  11935. lt_prog_compiler_pic_CXX=-Kconform_pic
  11936. fi
  11937. ;;
  11938. hpux*)
  11939. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11940. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11941. # sets the default TLS model and affects inlining.
  11942. case $host_cpu in
  11943. hppa*64*)
  11944. ;;
  11945. *)
  11946. lt_prog_compiler_pic_CXX='-fPIC'
  11947. ;;
  11948. esac
  11949. ;;
  11950. *qnx* | *nto*)
  11951. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11952. # it will coredump.
  11953. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11954. ;;
  11955. *)
  11956. lt_prog_compiler_pic_CXX='-fPIC'
  11957. ;;
  11958. esac
  11959. else
  11960. case $host_os in
  11961. aix[4-9]*)
  11962. # All AIX code is PIC.
  11963. if test "$host_cpu" = ia64; then
  11964. # AIX 5 now supports IA64 processor
  11965. lt_prog_compiler_static_CXX='-Bstatic'
  11966. else
  11967. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11968. fi
  11969. ;;
  11970. chorus*)
  11971. case $cc_basename in
  11972. cxch68*)
  11973. # Green Hills C++ Compiler
  11974. # _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"
  11975. ;;
  11976. esac
  11977. ;;
  11978. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11979. # This hack is so that the source file can tell whether it is being
  11980. # built for inclusion in a dll (and should export symbols for example).
  11981. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11982. ;;
  11983. dgux*)
  11984. case $cc_basename in
  11985. ec++*)
  11986. lt_prog_compiler_pic_CXX='-KPIC'
  11987. ;;
  11988. ghcx*)
  11989. # Green Hills C++ Compiler
  11990. lt_prog_compiler_pic_CXX='-pic'
  11991. ;;
  11992. *)
  11993. ;;
  11994. esac
  11995. ;;
  11996. freebsd* | dragonfly*)
  11997. # FreeBSD uses GNU C++
  11998. ;;
  11999. hpux9* | hpux10* | hpux11*)
  12000. case $cc_basename in
  12001. CC*)
  12002. lt_prog_compiler_wl_CXX='-Wl,'
  12003. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12004. if test "$host_cpu" != ia64; then
  12005. lt_prog_compiler_pic_CXX='+Z'
  12006. fi
  12007. ;;
  12008. aCC*)
  12009. lt_prog_compiler_wl_CXX='-Wl,'
  12010. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12011. case $host_cpu in
  12012. hppa*64*|ia64*)
  12013. # +Z the default
  12014. ;;
  12015. *)
  12016. lt_prog_compiler_pic_CXX='+Z'
  12017. ;;
  12018. esac
  12019. ;;
  12020. *)
  12021. ;;
  12022. esac
  12023. ;;
  12024. interix*)
  12025. # This is c89, which is MS Visual C++ (no shared libs)
  12026. # Anyone wants to do a port?
  12027. ;;
  12028. irix5* | irix6* | nonstopux*)
  12029. case $cc_basename in
  12030. CC*)
  12031. lt_prog_compiler_wl_CXX='-Wl,'
  12032. lt_prog_compiler_static_CXX='-non_shared'
  12033. # CC pic flag -KPIC is the default.
  12034. ;;
  12035. *)
  12036. ;;
  12037. esac
  12038. ;;
  12039. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12040. case $cc_basename in
  12041. KCC*)
  12042. # KAI C++ Compiler
  12043. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12044. lt_prog_compiler_pic_CXX='-fPIC'
  12045. ;;
  12046. ecpc* )
  12047. # old Intel C++ for x86_64 which still supported -KPIC.
  12048. lt_prog_compiler_wl_CXX='-Wl,'
  12049. lt_prog_compiler_pic_CXX='-KPIC'
  12050. lt_prog_compiler_static_CXX='-static'
  12051. ;;
  12052. icpc* )
  12053. # Intel C++, used to be incompatible with GCC.
  12054. # ICC 10 doesn't accept -KPIC any more.
  12055. lt_prog_compiler_wl_CXX='-Wl,'
  12056. lt_prog_compiler_pic_CXX='-fPIC'
  12057. lt_prog_compiler_static_CXX='-static'
  12058. ;;
  12059. pgCC* | pgcpp*)
  12060. # Portland Group C++ compiler
  12061. lt_prog_compiler_wl_CXX='-Wl,'
  12062. lt_prog_compiler_pic_CXX='-fpic'
  12063. lt_prog_compiler_static_CXX='-Bstatic'
  12064. ;;
  12065. cxx*)
  12066. # Compaq C++
  12067. # Make sure the PIC flag is empty. It appears that all Alpha
  12068. # Linux and Compaq Tru64 Unix objects are PIC.
  12069. lt_prog_compiler_pic_CXX=
  12070. lt_prog_compiler_static_CXX='-non_shared'
  12071. ;;
  12072. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12073. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12074. lt_prog_compiler_wl_CXX='-Wl,'
  12075. lt_prog_compiler_pic_CXX='-qpic'
  12076. lt_prog_compiler_static_CXX='-qstaticlink'
  12077. ;;
  12078. *)
  12079. case `$CC -V 2>&1 | sed 5q` in
  12080. *Sun\ C*)
  12081. # Sun C++ 5.9
  12082. lt_prog_compiler_pic_CXX='-KPIC'
  12083. lt_prog_compiler_static_CXX='-Bstatic'
  12084. lt_prog_compiler_wl_CXX='-Qoption ld '
  12085. ;;
  12086. esac
  12087. ;;
  12088. esac
  12089. ;;
  12090. lynxos*)
  12091. ;;
  12092. m88k*)
  12093. ;;
  12094. mvs*)
  12095. case $cc_basename in
  12096. cxx*)
  12097. lt_prog_compiler_pic_CXX='-W c,exportall'
  12098. ;;
  12099. *)
  12100. ;;
  12101. esac
  12102. ;;
  12103. netbsd*)
  12104. ;;
  12105. *qnx* | *nto*)
  12106. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12107. # it will coredump.
  12108. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12109. ;;
  12110. osf3* | osf4* | osf5*)
  12111. case $cc_basename in
  12112. KCC*)
  12113. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12114. ;;
  12115. RCC*)
  12116. # Rational C++ 2.4.1
  12117. lt_prog_compiler_pic_CXX='-pic'
  12118. ;;
  12119. cxx*)
  12120. # Digital/Compaq C++
  12121. lt_prog_compiler_wl_CXX='-Wl,'
  12122. # Make sure the PIC flag is empty. It appears that all Alpha
  12123. # Linux and Compaq Tru64 Unix objects are PIC.
  12124. lt_prog_compiler_pic_CXX=
  12125. lt_prog_compiler_static_CXX='-non_shared'
  12126. ;;
  12127. *)
  12128. ;;
  12129. esac
  12130. ;;
  12131. psos*)
  12132. ;;
  12133. solaris*)
  12134. case $cc_basename in
  12135. CC* | sunCC*)
  12136. # Sun C++ 4.2, 5.x and Centerline C++
  12137. lt_prog_compiler_pic_CXX='-KPIC'
  12138. lt_prog_compiler_static_CXX='-Bstatic'
  12139. lt_prog_compiler_wl_CXX='-Qoption ld '
  12140. ;;
  12141. gcx*)
  12142. # Green Hills C++ Compiler
  12143. lt_prog_compiler_pic_CXX='-PIC'
  12144. ;;
  12145. *)
  12146. ;;
  12147. esac
  12148. ;;
  12149. sunos4*)
  12150. case $cc_basename in
  12151. CC*)
  12152. # Sun C++ 4.x
  12153. lt_prog_compiler_pic_CXX='-pic'
  12154. lt_prog_compiler_static_CXX='-Bstatic'
  12155. ;;
  12156. lcc*)
  12157. # Lucid
  12158. lt_prog_compiler_pic_CXX='-pic'
  12159. ;;
  12160. *)
  12161. ;;
  12162. esac
  12163. ;;
  12164. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12165. case $cc_basename in
  12166. CC*)
  12167. lt_prog_compiler_wl_CXX='-Wl,'
  12168. lt_prog_compiler_pic_CXX='-KPIC'
  12169. lt_prog_compiler_static_CXX='-Bstatic'
  12170. ;;
  12171. esac
  12172. ;;
  12173. tandem*)
  12174. case $cc_basename in
  12175. NCC*)
  12176. # NonStop-UX NCC 3.20
  12177. lt_prog_compiler_pic_CXX='-KPIC'
  12178. ;;
  12179. *)
  12180. ;;
  12181. esac
  12182. ;;
  12183. vxworks*)
  12184. ;;
  12185. *)
  12186. lt_prog_compiler_can_build_shared_CXX=no
  12187. ;;
  12188. esac
  12189. fi
  12190. case $host_os in
  12191. # For platforms which do not support PIC, -DPIC is meaningless:
  12192. *djgpp*)
  12193. lt_prog_compiler_pic_CXX=
  12194. ;;
  12195. *)
  12196. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12197. ;;
  12198. esac
  12199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12200. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12201. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12202. $as_echo_n "(cached) " >&6
  12203. else
  12204. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12205. fi
  12206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12207. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12208. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12209. #
  12210. # Check to make sure the PIC flag actually works.
  12211. #
  12212. if test -n "$lt_prog_compiler_pic_CXX"; then
  12213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12214. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12215. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12216. $as_echo_n "(cached) " >&6
  12217. else
  12218. lt_cv_prog_compiler_pic_works_CXX=no
  12219. ac_outfile=conftest.$ac_objext
  12220. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12221. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12222. # Insert the option either (1) after the last *FLAGS variable, or
  12223. # (2) before a word containing "conftest.", or (3) at the end.
  12224. # Note that $ac_compile itself does not contain backslashes and begins
  12225. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12226. # The option is referenced via a variable to avoid confusing sed.
  12227. lt_compile=`echo "$ac_compile" | $SED \
  12228. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12229. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12230. -e 's:$: $lt_compiler_flag:'`
  12231. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12232. (eval "$lt_compile" 2>conftest.err)
  12233. ac_status=$?
  12234. cat conftest.err >&5
  12235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12236. if (exit $ac_status) && test -s "$ac_outfile"; then
  12237. # The compiler can only warn and ignore the option if not recognized
  12238. # So say no if there are warnings other than the usual output.
  12239. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12240. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12241. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12242. lt_cv_prog_compiler_pic_works_CXX=yes
  12243. fi
  12244. fi
  12245. $RM conftest*
  12246. fi
  12247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12248. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12249. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12250. case $lt_prog_compiler_pic_CXX in
  12251. "" | " "*) ;;
  12252. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12253. esac
  12254. else
  12255. lt_prog_compiler_pic_CXX=
  12256. lt_prog_compiler_can_build_shared_CXX=no
  12257. fi
  12258. fi
  12259. #
  12260. # Check to make sure the static flag actually works.
  12261. #
  12262. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12264. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12265. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12266. $as_echo_n "(cached) " >&6
  12267. else
  12268. lt_cv_prog_compiler_static_works_CXX=no
  12269. save_LDFLAGS="$LDFLAGS"
  12270. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12271. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12272. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12273. # The linker can only warn and ignore the option if not recognized
  12274. # So say no if there are warnings
  12275. if test -s conftest.err; then
  12276. # Append any errors to the config.log.
  12277. cat conftest.err 1>&5
  12278. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12279. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12280. if diff conftest.exp conftest.er2 >/dev/null; then
  12281. lt_cv_prog_compiler_static_works_CXX=yes
  12282. fi
  12283. else
  12284. lt_cv_prog_compiler_static_works_CXX=yes
  12285. fi
  12286. fi
  12287. $RM -r conftest*
  12288. LDFLAGS="$save_LDFLAGS"
  12289. fi
  12290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12291. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12292. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12293. :
  12294. else
  12295. lt_prog_compiler_static_CXX=
  12296. fi
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12298. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12299. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12300. $as_echo_n "(cached) " >&6
  12301. else
  12302. lt_cv_prog_compiler_c_o_CXX=no
  12303. $RM -r conftest 2>/dev/null
  12304. mkdir conftest
  12305. cd conftest
  12306. mkdir out
  12307. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12308. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12309. # Insert the option either (1) after the last *FLAGS variable, or
  12310. # (2) before a word containing "conftest.", or (3) at the end.
  12311. # Note that $ac_compile itself does not contain backslashes and begins
  12312. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12313. lt_compile=`echo "$ac_compile" | $SED \
  12314. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12315. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12316. -e 's:$: $lt_compiler_flag:'`
  12317. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12318. (eval "$lt_compile" 2>out/conftest.err)
  12319. ac_status=$?
  12320. cat out/conftest.err >&5
  12321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12322. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12323. then
  12324. # The compiler can only warn and ignore the option if not recognized
  12325. # So say no if there are warnings
  12326. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12327. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12328. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12329. lt_cv_prog_compiler_c_o_CXX=yes
  12330. fi
  12331. fi
  12332. chmod u+w . 2>&5
  12333. $RM conftest*
  12334. # SGI C++ compiler will create directory out/ii_files/ for
  12335. # template instantiation
  12336. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12337. $RM out/* && rmdir out
  12338. cd ..
  12339. $RM -r conftest
  12340. $RM conftest*
  12341. fi
  12342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12343. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12345. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12346. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12347. $as_echo_n "(cached) " >&6
  12348. else
  12349. lt_cv_prog_compiler_c_o_CXX=no
  12350. $RM -r conftest 2>/dev/null
  12351. mkdir conftest
  12352. cd conftest
  12353. mkdir out
  12354. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12355. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12356. # Insert the option either (1) after the last *FLAGS variable, or
  12357. # (2) before a word containing "conftest.", or (3) at the end.
  12358. # Note that $ac_compile itself does not contain backslashes and begins
  12359. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12360. lt_compile=`echo "$ac_compile" | $SED \
  12361. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12362. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12363. -e 's:$: $lt_compiler_flag:'`
  12364. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12365. (eval "$lt_compile" 2>out/conftest.err)
  12366. ac_status=$?
  12367. cat out/conftest.err >&5
  12368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12369. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12370. then
  12371. # The compiler can only warn and ignore the option if not recognized
  12372. # So say no if there are warnings
  12373. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12374. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12375. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12376. lt_cv_prog_compiler_c_o_CXX=yes
  12377. fi
  12378. fi
  12379. chmod u+w . 2>&5
  12380. $RM conftest*
  12381. # SGI C++ compiler will create directory out/ii_files/ for
  12382. # template instantiation
  12383. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12384. $RM out/* && rmdir out
  12385. cd ..
  12386. $RM -r conftest
  12387. $RM conftest*
  12388. fi
  12389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12390. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12391. hard_links="nottested"
  12392. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12393. # do not overwrite the value of need_locks provided by the user
  12394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12395. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12396. hard_links=yes
  12397. $RM conftest*
  12398. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12399. touch conftest.a
  12400. ln conftest.a conftest.b 2>&5 || hard_links=no
  12401. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12403. $as_echo "$hard_links" >&6; }
  12404. if test "$hard_links" = no; then
  12405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12406. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12407. need_locks=warn
  12408. fi
  12409. else
  12410. need_locks=no
  12411. fi
  12412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12413. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12414. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12415. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12416. case $host_os in
  12417. aix[4-9]*)
  12418. # If we're using GNU nm, then we don't want the "-C" option.
  12419. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12420. # Also, AIX nm treats weak defined symbols like other global defined
  12421. # symbols, whereas GNU nm marks them as "W".
  12422. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12423. 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'
  12424. else
  12425. 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'
  12426. fi
  12427. ;;
  12428. pw32*)
  12429. export_symbols_cmds_CXX="$ltdll_cmds"
  12430. ;;
  12431. cygwin* | mingw* | cegcc*)
  12432. case $cc_basename in
  12433. cl*)
  12434. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12435. ;;
  12436. *)
  12437. 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'
  12438. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12439. ;;
  12440. esac
  12441. ;;
  12442. *)
  12443. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12444. ;;
  12445. esac
  12446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12447. $as_echo "$ld_shlibs_CXX" >&6; }
  12448. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12449. with_gnu_ld_CXX=$with_gnu_ld
  12450. #
  12451. # Do we need to explicitly link libc?
  12452. #
  12453. case "x$archive_cmds_need_lc_CXX" in
  12454. x|xyes)
  12455. # Assume -lc should be added
  12456. archive_cmds_need_lc_CXX=yes
  12457. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12458. case $archive_cmds_CXX in
  12459. *'~'*)
  12460. # FIXME: we may have to deal with multi-command sequences.
  12461. ;;
  12462. '$CC '*)
  12463. # Test whether the compiler implicitly links with -lc since on some
  12464. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12465. # to ld, don't add -lc before -lgcc.
  12466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12467. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12468. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12469. $as_echo_n "(cached) " >&6
  12470. else
  12471. $RM conftest*
  12472. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12473. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12474. (eval $ac_compile) 2>&5
  12475. ac_status=$?
  12476. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12477. test $ac_status = 0; } 2>conftest.err; then
  12478. soname=conftest
  12479. lib=conftest
  12480. libobjs=conftest.$ac_objext
  12481. deplibs=
  12482. wl=$lt_prog_compiler_wl_CXX
  12483. pic_flag=$lt_prog_compiler_pic_CXX
  12484. compiler_flags=-v
  12485. linker_flags=-v
  12486. verstring=
  12487. output_objdir=.
  12488. libname=conftest
  12489. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12490. allow_undefined_flag_CXX=
  12491. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12492. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12493. ac_status=$?
  12494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12495. test $ac_status = 0; }
  12496. then
  12497. lt_cv_archive_cmds_need_lc_CXX=no
  12498. else
  12499. lt_cv_archive_cmds_need_lc_CXX=yes
  12500. fi
  12501. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12502. else
  12503. cat conftest.err 1>&5
  12504. fi
  12505. $RM conftest*
  12506. fi
  12507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12508. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12509. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12510. ;;
  12511. esac
  12512. fi
  12513. ;;
  12514. esac
  12515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12516. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12517. library_names_spec=
  12518. libname_spec='lib$name'
  12519. soname_spec=
  12520. shrext_cmds=".so"
  12521. postinstall_cmds=
  12522. postuninstall_cmds=
  12523. finish_cmds=
  12524. finish_eval=
  12525. shlibpath_var=
  12526. shlibpath_overrides_runpath=unknown
  12527. version_type=none
  12528. dynamic_linker="$host_os ld.so"
  12529. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12530. need_lib_prefix=unknown
  12531. hardcode_into_libs=no
  12532. # when you set need_version to no, make sure it does not cause -set_version
  12533. # flags to be left without arguments
  12534. need_version=unknown
  12535. case $host_os in
  12536. aix3*)
  12537. version_type=linux # correct to gnu/linux during the next big refactor
  12538. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12539. shlibpath_var=LIBPATH
  12540. # AIX 3 has no versioning support, so we append a major version to the name.
  12541. soname_spec='${libname}${release}${shared_ext}$major'
  12542. ;;
  12543. aix[4-9]*)
  12544. version_type=linux # correct to gnu/linux during the next big refactor
  12545. need_lib_prefix=no
  12546. need_version=no
  12547. hardcode_into_libs=yes
  12548. if test "$host_cpu" = ia64; then
  12549. # AIX 5 supports IA64
  12550. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12551. shlibpath_var=LD_LIBRARY_PATH
  12552. else
  12553. # With GCC up to 2.95.x, collect2 would create an import file
  12554. # for dependence libraries. The import file would start with
  12555. # the line `#! .'. This would cause the generated library to
  12556. # depend on `.', always an invalid library. This was fixed in
  12557. # development snapshots of GCC prior to 3.0.
  12558. case $host_os in
  12559. aix4 | aix4.[01] | aix4.[01].*)
  12560. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12561. echo ' yes '
  12562. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12563. :
  12564. else
  12565. can_build_shared=no
  12566. fi
  12567. ;;
  12568. esac
  12569. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12570. # soname into executable. Probably we can add versioning support to
  12571. # collect2, so additional links can be useful in future.
  12572. if test "$aix_use_runtimelinking" = yes; then
  12573. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12574. # instead of lib<name>.a to let people know that these are not
  12575. # typical AIX shared libraries.
  12576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12577. else
  12578. # We preserve .a as extension for shared libraries through AIX4.2
  12579. # and later when we are not doing run time linking.
  12580. library_names_spec='${libname}${release}.a $libname.a'
  12581. soname_spec='${libname}${release}${shared_ext}$major'
  12582. fi
  12583. shlibpath_var=LIBPATH
  12584. fi
  12585. ;;
  12586. amigaos*)
  12587. case $host_cpu in
  12588. powerpc)
  12589. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12590. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12591. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12592. ;;
  12593. m68k)
  12594. library_names_spec='$libname.ixlibrary $libname.a'
  12595. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12596. 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'
  12597. ;;
  12598. esac
  12599. ;;
  12600. beos*)
  12601. library_names_spec='${libname}${shared_ext}'
  12602. dynamic_linker="$host_os ld.so"
  12603. shlibpath_var=LIBRARY_PATH
  12604. ;;
  12605. bsdi[45]*)
  12606. version_type=linux # correct to gnu/linux during the next big refactor
  12607. need_version=no
  12608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12609. soname_spec='${libname}${release}${shared_ext}$major'
  12610. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12611. shlibpath_var=LD_LIBRARY_PATH
  12612. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12613. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12614. # the default ld.so.conf also contains /usr/contrib/lib and
  12615. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12616. # libtool to hard-code these into programs
  12617. ;;
  12618. cygwin* | mingw* | pw32* | cegcc*)
  12619. version_type=windows
  12620. shrext_cmds=".dll"
  12621. need_version=no
  12622. need_lib_prefix=no
  12623. case $GCC,$cc_basename in
  12624. yes,*)
  12625. # gcc
  12626. library_names_spec='$libname.dll.a'
  12627. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12628. postinstall_cmds='base_file=`basename \${file}`~
  12629. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12630. dldir=$destdir/`dirname \$dlpath`~
  12631. test -d \$dldir || mkdir -p \$dldir~
  12632. $install_prog $dir/$dlname \$dldir/$dlname~
  12633. chmod a+x \$dldir/$dlname~
  12634. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12635. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12636. fi'
  12637. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12638. dlpath=$dir/\$dldll~
  12639. $RM \$dlpath'
  12640. shlibpath_overrides_runpath=yes
  12641. case $host_os in
  12642. cygwin*)
  12643. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12644. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12645. ;;
  12646. mingw* | cegcc*)
  12647. # MinGW DLLs use traditional 'lib' prefix
  12648. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12649. ;;
  12650. pw32*)
  12651. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12652. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12653. ;;
  12654. esac
  12655. dynamic_linker='Win32 ld.exe'
  12656. ;;
  12657. *,cl*)
  12658. # Native MSVC
  12659. libname_spec='$name'
  12660. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12661. library_names_spec='${libname}.dll.lib'
  12662. case $build_os in
  12663. mingw*)
  12664. sys_lib_search_path_spec=
  12665. lt_save_ifs=$IFS
  12666. IFS=';'
  12667. for lt_path in $LIB
  12668. do
  12669. IFS=$lt_save_ifs
  12670. # Let DOS variable expansion print the short 8.3 style file name.
  12671. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12672. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12673. done
  12674. IFS=$lt_save_ifs
  12675. # Convert to MSYS style.
  12676. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12677. ;;
  12678. cygwin*)
  12679. # Convert to unix form, then to dos form, then back to unix form
  12680. # but this time dos style (no spaces!) so that the unix form looks
  12681. # like /cygdrive/c/PROGRA~1:/cygdr...
  12682. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12683. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12684. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12685. ;;
  12686. *)
  12687. sys_lib_search_path_spec="$LIB"
  12688. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12689. # It is most probably a Windows format PATH.
  12690. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12691. else
  12692. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12693. fi
  12694. # FIXME: find the short name or the path components, as spaces are
  12695. # common. (e.g. "Program Files" -> "PROGRA~1")
  12696. ;;
  12697. esac
  12698. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12699. postinstall_cmds='base_file=`basename \${file}`~
  12700. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12701. dldir=$destdir/`dirname \$dlpath`~
  12702. test -d \$dldir || mkdir -p \$dldir~
  12703. $install_prog $dir/$dlname \$dldir/$dlname'
  12704. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12705. dlpath=$dir/\$dldll~
  12706. $RM \$dlpath'
  12707. shlibpath_overrides_runpath=yes
  12708. dynamic_linker='Win32 link.exe'
  12709. ;;
  12710. *)
  12711. # Assume MSVC wrapper
  12712. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12713. dynamic_linker='Win32 ld.exe'
  12714. ;;
  12715. esac
  12716. # FIXME: first we should search . and the directory the executable is in
  12717. shlibpath_var=PATH
  12718. ;;
  12719. darwin* | rhapsody*)
  12720. dynamic_linker="$host_os dyld"
  12721. version_type=darwin
  12722. need_lib_prefix=no
  12723. need_version=no
  12724. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12725. soname_spec='${libname}${release}${major}$shared_ext'
  12726. shlibpath_overrides_runpath=yes
  12727. shlibpath_var=DYLD_LIBRARY_PATH
  12728. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12729. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12730. ;;
  12731. dgux*)
  12732. version_type=linux # correct to gnu/linux during the next big refactor
  12733. need_lib_prefix=no
  12734. need_version=no
  12735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12736. soname_spec='${libname}${release}${shared_ext}$major'
  12737. shlibpath_var=LD_LIBRARY_PATH
  12738. ;;
  12739. freebsd* | dragonfly*)
  12740. # DragonFly does not have aout. When/if they implement a new
  12741. # versioning mechanism, adjust this.
  12742. if test -x /usr/bin/objformat; then
  12743. objformat=`/usr/bin/objformat`
  12744. else
  12745. case $host_os in
  12746. freebsd[23].*) objformat=aout ;;
  12747. *) objformat=elf ;;
  12748. esac
  12749. fi
  12750. version_type=freebsd-$objformat
  12751. case $version_type in
  12752. freebsd-elf*)
  12753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12754. need_version=no
  12755. need_lib_prefix=no
  12756. ;;
  12757. freebsd-*)
  12758. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12759. need_version=yes
  12760. ;;
  12761. esac
  12762. shlibpath_var=LD_LIBRARY_PATH
  12763. case $host_os in
  12764. freebsd2.*)
  12765. shlibpath_overrides_runpath=yes
  12766. ;;
  12767. freebsd3.[01]* | freebsdelf3.[01]*)
  12768. shlibpath_overrides_runpath=yes
  12769. hardcode_into_libs=yes
  12770. ;;
  12771. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12772. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12773. shlibpath_overrides_runpath=no
  12774. hardcode_into_libs=yes
  12775. ;;
  12776. *) # from 4.6 on, and DragonFly
  12777. shlibpath_overrides_runpath=yes
  12778. hardcode_into_libs=yes
  12779. ;;
  12780. esac
  12781. ;;
  12782. gnu*)
  12783. version_type=linux # correct to gnu/linux during the next big refactor
  12784. need_lib_prefix=no
  12785. need_version=no
  12786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12787. soname_spec='${libname}${release}${shared_ext}$major'
  12788. shlibpath_var=LD_LIBRARY_PATH
  12789. shlibpath_overrides_runpath=no
  12790. hardcode_into_libs=yes
  12791. ;;
  12792. haiku*)
  12793. version_type=linux # correct to gnu/linux during the next big refactor
  12794. need_lib_prefix=no
  12795. need_version=no
  12796. dynamic_linker="$host_os runtime_loader"
  12797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12798. soname_spec='${libname}${release}${shared_ext}$major'
  12799. shlibpath_var=LIBRARY_PATH
  12800. shlibpath_overrides_runpath=yes
  12801. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12802. hardcode_into_libs=yes
  12803. ;;
  12804. hpux9* | hpux10* | hpux11*)
  12805. # Give a soname corresponding to the major version so that dld.sl refuses to
  12806. # link against other versions.
  12807. version_type=sunos
  12808. need_lib_prefix=no
  12809. need_version=no
  12810. case $host_cpu in
  12811. ia64*)
  12812. shrext_cmds='.so'
  12813. hardcode_into_libs=yes
  12814. dynamic_linker="$host_os dld.so"
  12815. shlibpath_var=LD_LIBRARY_PATH
  12816. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12818. soname_spec='${libname}${release}${shared_ext}$major'
  12819. if test "X$HPUX_IA64_MODE" = X32; then
  12820. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12821. else
  12822. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12823. fi
  12824. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12825. ;;
  12826. hppa*64*)
  12827. shrext_cmds='.sl'
  12828. hardcode_into_libs=yes
  12829. dynamic_linker="$host_os dld.sl"
  12830. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12831. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12833. soname_spec='${libname}${release}${shared_ext}$major'
  12834. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12835. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12836. ;;
  12837. *)
  12838. shrext_cmds='.sl'
  12839. dynamic_linker="$host_os dld.sl"
  12840. shlibpath_var=SHLIB_PATH
  12841. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12843. soname_spec='${libname}${release}${shared_ext}$major'
  12844. ;;
  12845. esac
  12846. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12847. postinstall_cmds='chmod 555 $lib'
  12848. # or fails outright, so override atomically:
  12849. install_override_mode=555
  12850. ;;
  12851. interix[3-9]*)
  12852. version_type=linux # correct to gnu/linux during the next big refactor
  12853. need_lib_prefix=no
  12854. need_version=no
  12855. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12856. soname_spec='${libname}${release}${shared_ext}$major'
  12857. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12858. shlibpath_var=LD_LIBRARY_PATH
  12859. shlibpath_overrides_runpath=no
  12860. hardcode_into_libs=yes
  12861. ;;
  12862. irix5* | irix6* | nonstopux*)
  12863. case $host_os in
  12864. nonstopux*) version_type=nonstopux ;;
  12865. *)
  12866. if test "$lt_cv_prog_gnu_ld" = yes; then
  12867. version_type=linux # correct to gnu/linux during the next big refactor
  12868. else
  12869. version_type=irix
  12870. fi ;;
  12871. esac
  12872. need_lib_prefix=no
  12873. need_version=no
  12874. soname_spec='${libname}${release}${shared_ext}$major'
  12875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12876. case $host_os in
  12877. irix5* | nonstopux*)
  12878. libsuff= shlibsuff=
  12879. ;;
  12880. *)
  12881. case $LD in # libtool.m4 will add one of these switches to LD
  12882. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12883. libsuff= shlibsuff= libmagic=32-bit;;
  12884. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12885. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12886. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12887. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12888. *) libsuff= shlibsuff= libmagic=never-match;;
  12889. esac
  12890. ;;
  12891. esac
  12892. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12893. shlibpath_overrides_runpath=no
  12894. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12895. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12896. hardcode_into_libs=yes
  12897. ;;
  12898. # No shared lib support for Linux oldld, aout, or coff.
  12899. linux*oldld* | linux*aout* | linux*coff*)
  12900. dynamic_linker=no
  12901. ;;
  12902. # This must be glibc/ELF.
  12903. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12904. version_type=linux # correct to gnu/linux during the next big refactor
  12905. need_lib_prefix=no
  12906. need_version=no
  12907. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12908. soname_spec='${libname}${release}${shared_ext}$major'
  12909. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12910. shlibpath_var=LD_LIBRARY_PATH
  12911. shlibpath_overrides_runpath=no
  12912. # Some binutils ld are patched to set DT_RUNPATH
  12913. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12914. $as_echo_n "(cached) " >&6
  12915. else
  12916. lt_cv_shlibpath_overrides_runpath=no
  12917. save_LDFLAGS=$LDFLAGS
  12918. save_libdir=$libdir
  12919. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12920. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12922. /* end confdefs.h. */
  12923. int
  12924. main ()
  12925. {
  12926. ;
  12927. return 0;
  12928. }
  12929. _ACEOF
  12930. if ac_fn_cxx_try_link "$LINENO"; then :
  12931. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12932. lt_cv_shlibpath_overrides_runpath=yes
  12933. fi
  12934. fi
  12935. rm -f core conftest.err conftest.$ac_objext \
  12936. conftest$ac_exeext conftest.$ac_ext
  12937. LDFLAGS=$save_LDFLAGS
  12938. libdir=$save_libdir
  12939. fi
  12940. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12941. # This implies no fast_install, which is unacceptable.
  12942. # Some rework will be needed to allow for fast_install
  12943. # before this can be enabled.
  12944. hardcode_into_libs=yes
  12945. # Append ld.so.conf contents to the search path
  12946. if test -f /etc/ld.so.conf; then
  12947. 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' ' '`
  12948. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12949. fi
  12950. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12951. # powerpc, because MkLinux only supported shared libraries with the
  12952. # GNU dynamic linker. Since this was broken with cross compilers,
  12953. # most powerpc-linux boxes support dynamic linking these days and
  12954. # people can always --disable-shared, the test was removed, and we
  12955. # assume the GNU/Linux dynamic linker is in use.
  12956. dynamic_linker='GNU/Linux ld.so'
  12957. ;;
  12958. netbsd*)
  12959. version_type=sunos
  12960. need_lib_prefix=no
  12961. need_version=no
  12962. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12964. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12965. dynamic_linker='NetBSD (a.out) ld.so'
  12966. else
  12967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12968. soname_spec='${libname}${release}${shared_ext}$major'
  12969. dynamic_linker='NetBSD ld.elf_so'
  12970. fi
  12971. shlibpath_var=LD_LIBRARY_PATH
  12972. shlibpath_overrides_runpath=yes
  12973. hardcode_into_libs=yes
  12974. ;;
  12975. newsos6)
  12976. version_type=linux # correct to gnu/linux during the next big refactor
  12977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12978. shlibpath_var=LD_LIBRARY_PATH
  12979. shlibpath_overrides_runpath=yes
  12980. ;;
  12981. *nto* | *qnx*)
  12982. version_type=qnx
  12983. need_lib_prefix=no
  12984. need_version=no
  12985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12986. soname_spec='${libname}${release}${shared_ext}$major'
  12987. shlibpath_var=LD_LIBRARY_PATH
  12988. shlibpath_overrides_runpath=no
  12989. hardcode_into_libs=yes
  12990. dynamic_linker='ldqnx.so'
  12991. ;;
  12992. openbsd*)
  12993. version_type=sunos
  12994. sys_lib_dlsearch_path_spec="/usr/lib"
  12995. need_lib_prefix=no
  12996. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12997. case $host_os in
  12998. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12999. *) need_version=no ;;
  13000. esac
  13001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13002. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13003. shlibpath_var=LD_LIBRARY_PATH
  13004. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13005. case $host_os in
  13006. openbsd2.[89] | openbsd2.[89].*)
  13007. shlibpath_overrides_runpath=no
  13008. ;;
  13009. *)
  13010. shlibpath_overrides_runpath=yes
  13011. ;;
  13012. esac
  13013. else
  13014. shlibpath_overrides_runpath=yes
  13015. fi
  13016. ;;
  13017. os2*)
  13018. libname_spec='$name'
  13019. shrext_cmds=".dll"
  13020. need_lib_prefix=no
  13021. library_names_spec='$libname${shared_ext} $libname.a'
  13022. dynamic_linker='OS/2 ld.exe'
  13023. shlibpath_var=LIBPATH
  13024. ;;
  13025. osf3* | osf4* | osf5*)
  13026. version_type=osf
  13027. need_lib_prefix=no
  13028. need_version=no
  13029. soname_spec='${libname}${release}${shared_ext}$major'
  13030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13031. shlibpath_var=LD_LIBRARY_PATH
  13032. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13033. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13034. ;;
  13035. rdos*)
  13036. dynamic_linker=no
  13037. ;;
  13038. solaris*)
  13039. version_type=linux # correct to gnu/linux during the next big refactor
  13040. need_lib_prefix=no
  13041. need_version=no
  13042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13043. soname_spec='${libname}${release}${shared_ext}$major'
  13044. shlibpath_var=LD_LIBRARY_PATH
  13045. shlibpath_overrides_runpath=yes
  13046. hardcode_into_libs=yes
  13047. # ldd complains unless libraries are executable
  13048. postinstall_cmds='chmod +x $lib'
  13049. ;;
  13050. sunos4*)
  13051. version_type=sunos
  13052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13053. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13054. shlibpath_var=LD_LIBRARY_PATH
  13055. shlibpath_overrides_runpath=yes
  13056. if test "$with_gnu_ld" = yes; then
  13057. need_lib_prefix=no
  13058. fi
  13059. need_version=yes
  13060. ;;
  13061. sysv4 | sysv4.3*)
  13062. version_type=linux # correct to gnu/linux during the next big refactor
  13063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13064. soname_spec='${libname}${release}${shared_ext}$major'
  13065. shlibpath_var=LD_LIBRARY_PATH
  13066. case $host_vendor in
  13067. sni)
  13068. shlibpath_overrides_runpath=no
  13069. need_lib_prefix=no
  13070. runpath_var=LD_RUN_PATH
  13071. ;;
  13072. siemens)
  13073. need_lib_prefix=no
  13074. ;;
  13075. motorola)
  13076. need_lib_prefix=no
  13077. need_version=no
  13078. shlibpath_overrides_runpath=no
  13079. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13080. ;;
  13081. esac
  13082. ;;
  13083. sysv4*MP*)
  13084. if test -d /usr/nec ;then
  13085. version_type=linux # correct to gnu/linux during the next big refactor
  13086. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13087. soname_spec='$libname${shared_ext}.$major'
  13088. shlibpath_var=LD_LIBRARY_PATH
  13089. fi
  13090. ;;
  13091. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13092. version_type=freebsd-elf
  13093. need_lib_prefix=no
  13094. need_version=no
  13095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13096. soname_spec='${libname}${release}${shared_ext}$major'
  13097. shlibpath_var=LD_LIBRARY_PATH
  13098. shlibpath_overrides_runpath=yes
  13099. hardcode_into_libs=yes
  13100. if test "$with_gnu_ld" = yes; then
  13101. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13102. else
  13103. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13104. case $host_os in
  13105. sco3.2v5*)
  13106. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13107. ;;
  13108. esac
  13109. fi
  13110. sys_lib_dlsearch_path_spec='/usr/lib'
  13111. ;;
  13112. tpf*)
  13113. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13114. version_type=linux # correct to gnu/linux during the next big refactor
  13115. need_lib_prefix=no
  13116. need_version=no
  13117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13118. shlibpath_var=LD_LIBRARY_PATH
  13119. shlibpath_overrides_runpath=no
  13120. hardcode_into_libs=yes
  13121. ;;
  13122. uts4*)
  13123. version_type=linux # correct to gnu/linux during the next big refactor
  13124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13125. soname_spec='${libname}${release}${shared_ext}$major'
  13126. shlibpath_var=LD_LIBRARY_PATH
  13127. ;;
  13128. *)
  13129. dynamic_linker=no
  13130. ;;
  13131. esac
  13132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13133. $as_echo "$dynamic_linker" >&6; }
  13134. test "$dynamic_linker" = no && can_build_shared=no
  13135. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13136. if test "$GCC" = yes; then
  13137. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13138. fi
  13139. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13140. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13141. fi
  13142. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13143. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13144. fi
  13145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13146. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13147. hardcode_action_CXX=
  13148. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13149. test -n "$runpath_var_CXX" ||
  13150. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13151. # We can hardcode non-existent directories.
  13152. if test "$hardcode_direct_CXX" != no &&
  13153. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13154. # have to relink, otherwise we might link with an installed library
  13155. # when we should be linking with a yet-to-be-installed one
  13156. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13157. test "$hardcode_minus_L_CXX" != no; then
  13158. # Linking always hardcodes the temporary library directory.
  13159. hardcode_action_CXX=relink
  13160. else
  13161. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13162. hardcode_action_CXX=immediate
  13163. fi
  13164. else
  13165. # We cannot hardcode anything, or else we can only hardcode existing
  13166. # directories.
  13167. hardcode_action_CXX=unsupported
  13168. fi
  13169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13170. $as_echo "$hardcode_action_CXX" >&6; }
  13171. if test "$hardcode_action_CXX" = relink ||
  13172. test "$inherit_rpath_CXX" = yes; then
  13173. # Fast installation is not supported
  13174. enable_fast_install=no
  13175. elif test "$shlibpath_overrides_runpath" = yes ||
  13176. test "$enable_shared" = no; then
  13177. # Fast installation is not necessary
  13178. enable_fast_install=needless
  13179. fi
  13180. fi # test -n "$compiler"
  13181. CC=$lt_save_CC
  13182. CFLAGS=$lt_save_CFLAGS
  13183. LDCXX=$LD
  13184. LD=$lt_save_LD
  13185. GCC=$lt_save_GCC
  13186. with_gnu_ld=$lt_save_with_gnu_ld
  13187. lt_cv_path_LDCXX=$lt_cv_path_LD
  13188. lt_cv_path_LD=$lt_save_path_LD
  13189. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13190. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13191. fi # test "$_lt_caught_CXX_error" != yes
  13192. ac_ext=c
  13193. ac_cpp='$CPP $CPPFLAGS'
  13194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13197. ac_config_commands="$ac_config_commands libtool"
  13198. # Only expand once:
  13199. ac_config_headers="$ac_config_headers config.h"
  13200. am__api_version='1.11'
  13201. # Find a good install program. We prefer a C program (faster),
  13202. # so one script is as good as another. But avoid the broken or
  13203. # incompatible versions:
  13204. # SysV /etc/install, /usr/sbin/install
  13205. # SunOS /usr/etc/install
  13206. # IRIX /sbin/install
  13207. # AIX /bin/install
  13208. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13209. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13210. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13211. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13212. # OS/2's system install, which has a completely different semantic
  13213. # ./install, which can be erroneously created by make from ./install.sh.
  13214. # Reject install programs that cannot install multiple files.
  13215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13216. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13217. if test -z "$INSTALL"; then
  13218. if ${ac_cv_path_install+:} false; then :
  13219. $as_echo_n "(cached) " >&6
  13220. else
  13221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13222. for as_dir in $PATH
  13223. do
  13224. IFS=$as_save_IFS
  13225. test -z "$as_dir" && as_dir=.
  13226. # Account for people who put trailing slashes in PATH elements.
  13227. case $as_dir/ in #((
  13228. ./ | .// | /[cC]/* | \
  13229. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13230. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13231. /usr/ucb/* ) ;;
  13232. *)
  13233. # OSF1 and SCO ODT 3.0 have their own names for install.
  13234. # Don't use installbsd from OSF since it installs stuff as root
  13235. # by default.
  13236. for ac_prog in ginstall scoinst install; do
  13237. for ac_exec_ext in '' $ac_executable_extensions; do
  13238. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  13239. if test $ac_prog = install &&
  13240. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13241. # AIX install. It has an incompatible calling convention.
  13242. :
  13243. elif test $ac_prog = install &&
  13244. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13245. # program-specific install script used by HP pwplus--don't use.
  13246. :
  13247. else
  13248. rm -rf conftest.one conftest.two conftest.dir
  13249. echo one > conftest.one
  13250. echo two > conftest.two
  13251. mkdir conftest.dir
  13252. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13253. test -s conftest.one && test -s conftest.two &&
  13254. test -s conftest.dir/conftest.one &&
  13255. test -s conftest.dir/conftest.two
  13256. then
  13257. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13258. break 3
  13259. fi
  13260. fi
  13261. fi
  13262. done
  13263. done
  13264. ;;
  13265. esac
  13266. done
  13267. IFS=$as_save_IFS
  13268. rm -rf conftest.one conftest.two conftest.dir
  13269. fi
  13270. if test "${ac_cv_path_install+set}" = set; then
  13271. INSTALL=$ac_cv_path_install
  13272. else
  13273. # As a last resort, use the slow shell script. Don't cache a
  13274. # value for INSTALL within a source directory, because that will
  13275. # break other packages using the cache if that directory is
  13276. # removed, or if the value is a relative name.
  13277. INSTALL=$ac_install_sh
  13278. fi
  13279. fi
  13280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13281. $as_echo "$INSTALL" >&6; }
  13282. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13283. # It thinks the first close brace ends the variable substitution.
  13284. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13285. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13286. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  13288. $as_echo_n "checking whether build environment is sane... " >&6; }
  13289. # Just in case
  13290. sleep 1
  13291. echo timestamp > conftest.file
  13292. # Reject unsafe characters in $srcdir or the absolute working directory
  13293. # name. Accept space and tab only in the latter.
  13294. am_lf='
  13295. '
  13296. case `pwd` in
  13297. *[\\\"\#\$\&\'\`$am_lf]*)
  13298. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  13299. esac
  13300. case $srcdir in
  13301. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  13302. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  13303. esac
  13304. # Do `set' in a subshell so we don't clobber the current shell's
  13305. # arguments. Must try -L first in case configure is actually a
  13306. # symlink; some systems play weird games with the mod time of symlinks
  13307. # (eg FreeBSD returns the mod time of the symlink's containing
  13308. # directory).
  13309. if (
  13310. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13311. if test "$*" = "X"; then
  13312. # -L didn't work.
  13313. set X `ls -t "$srcdir/configure" conftest.file`
  13314. fi
  13315. rm -f conftest.file
  13316. if test "$*" != "X $srcdir/configure conftest.file" \
  13317. && test "$*" != "X conftest.file $srcdir/configure"; then
  13318. # If neither matched, then we have a broken ls. This can happen
  13319. # if, for instance, CONFIG_SHELL is bash and it inherits a
  13320. # broken ls alias from the environment. This has actually
  13321. # happened. Such a system could not be considered "sane".
  13322. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  13323. alias in your environment" "$LINENO" 5
  13324. fi
  13325. test "$2" = conftest.file
  13326. )
  13327. then
  13328. # Ok.
  13329. :
  13330. else
  13331. as_fn_error $? "newly created file is older than distributed files!
  13332. Check your system clock" "$LINENO" 5
  13333. fi
  13334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13335. $as_echo "yes" >&6; }
  13336. test "$program_prefix" != NONE &&
  13337. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  13338. # Use a double $ so make ignores it.
  13339. test "$program_suffix" != NONE &&
  13340. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  13341. # Double any \ or $.
  13342. # By default was `s,x,x', remove it if useless.
  13343. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  13344. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  13345. # expand $ac_aux_dir to an absolute path
  13346. am_aux_dir=`cd $ac_aux_dir && pwd`
  13347. if test x"${MISSING+set}" != xset; then
  13348. case $am_aux_dir in
  13349. *\ * | *\ *)
  13350. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13351. *)
  13352. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13353. esac
  13354. fi
  13355. # Use eval to expand $SHELL
  13356. if eval "$MISSING --run true"; then
  13357. am_missing_run="$MISSING --run "
  13358. else
  13359. am_missing_run=
  13360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  13361. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  13362. fi
  13363. if test x"${install_sh}" != xset; then
  13364. case $am_aux_dir in
  13365. *\ * | *\ *)
  13366. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13367. *)
  13368. install_sh="\${SHELL} $am_aux_dir/install-sh"
  13369. esac
  13370. fi
  13371. # Installed binaries are usually stripped using `strip' when the user
  13372. # run `make install-strip'. However `strip' might not be the right
  13373. # tool to use in cross-compilation environments, therefore Automake
  13374. # will honor the `STRIP' environment variable to overrule this program.
  13375. if test "$cross_compiling" != no; then
  13376. if test -n "$ac_tool_prefix"; then
  13377. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  13378. set dummy ${ac_tool_prefix}strip; ac_word=$2
  13379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13380. $as_echo_n "checking for $ac_word... " >&6; }
  13381. if ${ac_cv_prog_STRIP+:} false; then :
  13382. $as_echo_n "(cached) " >&6
  13383. else
  13384. if test -n "$STRIP"; then
  13385. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  13386. else
  13387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13388. for as_dir in $PATH
  13389. do
  13390. IFS=$as_save_IFS
  13391. test -z "$as_dir" && as_dir=.
  13392. for ac_exec_ext in '' $ac_executable_extensions; do
  13393. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13394. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  13395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13396. break 2
  13397. fi
  13398. done
  13399. done
  13400. IFS=$as_save_IFS
  13401. fi
  13402. fi
  13403. STRIP=$ac_cv_prog_STRIP
  13404. if test -n "$STRIP"; then
  13405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  13406. $as_echo "$STRIP" >&6; }
  13407. else
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13409. $as_echo "no" >&6; }
  13410. fi
  13411. fi
  13412. if test -z "$ac_cv_prog_STRIP"; then
  13413. ac_ct_STRIP=$STRIP
  13414. # Extract the first word of "strip", so it can be a program name with args.
  13415. set dummy strip; ac_word=$2
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13417. $as_echo_n "checking for $ac_word... " >&6; }
  13418. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  13419. $as_echo_n "(cached) " >&6
  13420. else
  13421. if test -n "$ac_ct_STRIP"; then
  13422. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  13423. else
  13424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13425. for as_dir in $PATH
  13426. do
  13427. IFS=$as_save_IFS
  13428. test -z "$as_dir" && as_dir=.
  13429. for ac_exec_ext in '' $ac_executable_extensions; do
  13430. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13431. ac_cv_prog_ac_ct_STRIP="strip"
  13432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13433. break 2
  13434. fi
  13435. done
  13436. done
  13437. IFS=$as_save_IFS
  13438. fi
  13439. fi
  13440. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  13441. if test -n "$ac_ct_STRIP"; then
  13442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  13443. $as_echo "$ac_ct_STRIP" >&6; }
  13444. else
  13445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13446. $as_echo "no" >&6; }
  13447. fi
  13448. if test "x$ac_ct_STRIP" = x; then
  13449. STRIP=":"
  13450. else
  13451. case $cross_compiling:$ac_tool_warned in
  13452. yes:)
  13453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13454. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13455. ac_tool_warned=yes ;;
  13456. esac
  13457. STRIP=$ac_ct_STRIP
  13458. fi
  13459. else
  13460. STRIP="$ac_cv_prog_STRIP"
  13461. fi
  13462. fi
  13463. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  13465. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  13466. if test -z "$MKDIR_P"; then
  13467. if ${ac_cv_path_mkdir+:} false; then :
  13468. $as_echo_n "(cached) " >&6
  13469. else
  13470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13471. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  13472. do
  13473. IFS=$as_save_IFS
  13474. test -z "$as_dir" && as_dir=.
  13475. for ac_prog in mkdir gmkdir; do
  13476. for ac_exec_ext in '' $ac_executable_extensions; do
  13477. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  13478. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  13479. 'mkdir (GNU coreutils) '* | \
  13480. 'mkdir (coreutils) '* | \
  13481. 'mkdir (fileutils) '4.1*)
  13482. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  13483. break 3;;
  13484. esac
  13485. done
  13486. done
  13487. done
  13488. IFS=$as_save_IFS
  13489. fi
  13490. test -d ./--version && rmdir ./--version
  13491. if test "${ac_cv_path_mkdir+set}" = set; then
  13492. MKDIR_P="$ac_cv_path_mkdir -p"
  13493. else
  13494. # As a last resort, use the slow shell script. Don't cache a
  13495. # value for MKDIR_P within a source directory, because that will
  13496. # break other packages using the cache if that directory is
  13497. # removed, or if the value is a relative name.
  13498. MKDIR_P="$ac_install_sh -d"
  13499. fi
  13500. fi
  13501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  13502. $as_echo "$MKDIR_P" >&6; }
  13503. mkdir_p="$MKDIR_P"
  13504. case $mkdir_p in
  13505. [\\/$]* | ?:[\\/]*) ;;
  13506. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13507. esac
  13508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13509. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13510. set x ${MAKE-make}
  13511. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13512. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13513. $as_echo_n "(cached) " >&6
  13514. else
  13515. cat >conftest.make <<\_ACEOF
  13516. SHELL = /bin/sh
  13517. all:
  13518. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13519. _ACEOF
  13520. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13521. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13522. *@@@%%%=?*=@@@%%%*)
  13523. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13524. *)
  13525. eval ac_cv_prog_make_${ac_make}_set=no;;
  13526. esac
  13527. rm -f conftest.make
  13528. fi
  13529. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13531. $as_echo "yes" >&6; }
  13532. SET_MAKE=
  13533. else
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13535. $as_echo "no" >&6; }
  13536. SET_MAKE="MAKE=${MAKE-make}"
  13537. fi
  13538. rm -rf .tst 2>/dev/null
  13539. mkdir .tst 2>/dev/null
  13540. if test -d .tst; then
  13541. am__leading_dot=.
  13542. else
  13543. am__leading_dot=_
  13544. fi
  13545. rmdir .tst 2>/dev/null
  13546. DEPDIR="${am__leading_dot}deps"
  13547. ac_config_commands="$ac_config_commands depfiles"
  13548. am_make=${MAKE-make}
  13549. cat > confinc << 'END'
  13550. am__doit:
  13551. @echo this is the am__doit target
  13552. .PHONY: am__doit
  13553. END
  13554. # If we don't find an include directive, just comment out the code.
  13555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  13556. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  13557. am__include="#"
  13558. am__quote=
  13559. _am_result=none
  13560. # First try GNU make style include.
  13561. echo "include confinc" > confmf
  13562. # Ignore all kinds of additional output from `make'.
  13563. case `$am_make -s -f confmf 2> /dev/null` in #(
  13564. *the\ am__doit\ target*)
  13565. am__include=include
  13566. am__quote=
  13567. _am_result=GNU
  13568. ;;
  13569. esac
  13570. # Now try BSD make style include.
  13571. if test "$am__include" = "#"; then
  13572. echo '.include "confinc"' > confmf
  13573. case `$am_make -s -f confmf 2> /dev/null` in #(
  13574. *the\ am__doit\ target*)
  13575. am__include=.include
  13576. am__quote="\""
  13577. _am_result=BSD
  13578. ;;
  13579. esac
  13580. fi
  13581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  13582. $as_echo "$_am_result" >&6; }
  13583. rm -f confinc confmf
  13584. # Check whether --enable-dependency-tracking was given.
  13585. if test "${enable_dependency_tracking+set}" = set; then :
  13586. enableval=$enable_dependency_tracking;
  13587. fi
  13588. if test "x$enable_dependency_tracking" != xno; then
  13589. am_depcomp="$ac_aux_dir/depcomp"
  13590. AMDEPBACKSLASH='\'
  13591. am__nodep='_no'
  13592. fi
  13593. if test "x$enable_dependency_tracking" != xno; then
  13594. AMDEP_TRUE=
  13595. AMDEP_FALSE='#'
  13596. else
  13597. AMDEP_TRUE='#'
  13598. AMDEP_FALSE=
  13599. fi
  13600. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13601. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13602. # is not polluted with repeated "-I."
  13603. am__isrc=' -I$(srcdir)'
  13604. # test to see if srcdir already configured
  13605. if test -f $srcdir/config.status; then
  13606. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  13607. fi
  13608. fi
  13609. # test whether we have cygpath
  13610. if test -z "$CYGPATH_W"; then
  13611. if (cygpath --version) >/dev/null 2>/dev/null; then
  13612. CYGPATH_W='cygpath -w'
  13613. else
  13614. CYGPATH_W=echo
  13615. fi
  13616. fi
  13617. # Define the identity of the package.
  13618. PACKAGE='klish'
  13619. VERSION='1.5.3'
  13620. cat >>confdefs.h <<_ACEOF
  13621. #define PACKAGE "$PACKAGE"
  13622. _ACEOF
  13623. cat >>confdefs.h <<_ACEOF
  13624. #define VERSION "$VERSION"
  13625. _ACEOF
  13626. # Some tools Automake needs.
  13627. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  13628. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  13629. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  13630. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  13631. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13632. # We need awk for the "check" target. The system "awk" is bad on
  13633. # some platforms.
  13634. # Always define AMTAR for backward compatibility. Yes, it's still used
  13635. # in the wild :-( We should find a proper way to deprecate it ...
  13636. AMTAR='$${TAR-tar}'
  13637. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  13638. depcc="$CC" am_compiler_list=
  13639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13640. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13641. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  13642. $as_echo_n "(cached) " >&6
  13643. else
  13644. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13645. # We make a subdir and do the tests there. Otherwise we can end up
  13646. # making bogus files that we don't know about and never remove. For
  13647. # instance it was reported that on HP-UX the gcc test will end up
  13648. # making a dummy file named `D' -- because `-MD' means `put the output
  13649. # in D'.
  13650. rm -rf conftest.dir
  13651. mkdir conftest.dir
  13652. # Copy depcomp to subdir because otherwise we won't find it if we're
  13653. # using a relative directory.
  13654. cp "$am_depcomp" conftest.dir
  13655. cd conftest.dir
  13656. # We will build objects and dependencies in a subdirectory because
  13657. # it helps to detect inapplicable dependency modes. For instance
  13658. # both Tru64's cc and ICC support -MD to output dependencies as a
  13659. # side effect of compilation, but ICC will put the dependencies in
  13660. # the current directory while Tru64 will put them in the object
  13661. # directory.
  13662. mkdir sub
  13663. am_cv_CC_dependencies_compiler_type=none
  13664. if test "$am_compiler_list" = ""; then
  13665. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13666. fi
  13667. am__universal=false
  13668. case " $depcc " in #(
  13669. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13670. esac
  13671. for depmode in $am_compiler_list; do
  13672. # Setup a source with many dependencies, because some compilers
  13673. # like to wrap large dependency lists on column 80 (with \), and
  13674. # we should not choose a depcomp mode which is confused by this.
  13675. #
  13676. # We need to recreate these files for each test, as the compiler may
  13677. # overwrite some of them when testing with obscure command lines.
  13678. # This happens at least with the AIX C compiler.
  13679. : > sub/conftest.c
  13680. for i in 1 2 3 4 5 6; do
  13681. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13682. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13683. # Solaris 8's {/usr,}/bin/sh.
  13684. touch sub/conftst$i.h
  13685. done
  13686. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13687. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13688. # mode. It turns out that the SunPro C++ compiler does not properly
  13689. # handle `-M -o', and we need to detect this. Also, some Intel
  13690. # versions had trouble with output in subdirs
  13691. am__obj=sub/conftest.${OBJEXT-o}
  13692. am__minus_obj="-o $am__obj"
  13693. case $depmode in
  13694. gcc)
  13695. # This depmode causes a compiler race in universal mode.
  13696. test "$am__universal" = false || continue
  13697. ;;
  13698. nosideeffect)
  13699. # after this tag, mechanisms are not by side-effect, so they'll
  13700. # only be used when explicitly requested
  13701. if test "x$enable_dependency_tracking" = xyes; then
  13702. continue
  13703. else
  13704. break
  13705. fi
  13706. ;;
  13707. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13708. # This compiler won't grok `-c -o', but also, the minuso test has
  13709. # not run yet. These depmodes are late enough in the game, and
  13710. # so weak that their functioning should not be impacted.
  13711. am__obj=conftest.${OBJEXT-o}
  13712. am__minus_obj=
  13713. ;;
  13714. none) break ;;
  13715. esac
  13716. if depmode=$depmode \
  13717. source=sub/conftest.c object=$am__obj \
  13718. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13719. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13720. >/dev/null 2>conftest.err &&
  13721. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13722. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13723. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13724. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13725. # icc doesn't choke on unknown options, it will just issue warnings
  13726. # or remarks (even with -Werror). So we grep stderr for any message
  13727. # that says an option was ignored or not supported.
  13728. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13729. # icc: Command line warning: ignoring option '-M'; no argument required
  13730. # The diagnosis changed in icc 8.0:
  13731. # icc: Command line remark: option '-MP' not supported
  13732. if (grep 'ignoring option' conftest.err ||
  13733. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13734. am_cv_CC_dependencies_compiler_type=$depmode
  13735. break
  13736. fi
  13737. fi
  13738. done
  13739. cd ..
  13740. rm -rf conftest.dir
  13741. else
  13742. am_cv_CC_dependencies_compiler_type=none
  13743. fi
  13744. fi
  13745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13746. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13747. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13748. if
  13749. test "x$enable_dependency_tracking" != xno \
  13750. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13751. am__fastdepCC_TRUE=
  13752. am__fastdepCC_FALSE='#'
  13753. else
  13754. am__fastdepCC_TRUE='#'
  13755. am__fastdepCC_FALSE=
  13756. fi
  13757. depcc="$CXX" am_compiler_list=
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13759. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13760. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13761. $as_echo_n "(cached) " >&6
  13762. else
  13763. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13764. # We make a subdir and do the tests there. Otherwise we can end up
  13765. # making bogus files that we don't know about and never remove. For
  13766. # instance it was reported that on HP-UX the gcc test will end up
  13767. # making a dummy file named `D' -- because `-MD' means `put the output
  13768. # in D'.
  13769. rm -rf conftest.dir
  13770. mkdir conftest.dir
  13771. # Copy depcomp to subdir because otherwise we won't find it if we're
  13772. # using a relative directory.
  13773. cp "$am_depcomp" conftest.dir
  13774. cd conftest.dir
  13775. # We will build objects and dependencies in a subdirectory because
  13776. # it helps to detect inapplicable dependency modes. For instance
  13777. # both Tru64's cc and ICC support -MD to output dependencies as a
  13778. # side effect of compilation, but ICC will put the dependencies in
  13779. # the current directory while Tru64 will put them in the object
  13780. # directory.
  13781. mkdir sub
  13782. am_cv_CXX_dependencies_compiler_type=none
  13783. if test "$am_compiler_list" = ""; then
  13784. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13785. fi
  13786. am__universal=false
  13787. case " $depcc " in #(
  13788. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13789. esac
  13790. for depmode in $am_compiler_list; do
  13791. # Setup a source with many dependencies, because some compilers
  13792. # like to wrap large dependency lists on column 80 (with \), and
  13793. # we should not choose a depcomp mode which is confused by this.
  13794. #
  13795. # We need to recreate these files for each test, as the compiler may
  13796. # overwrite some of them when testing with obscure command lines.
  13797. # This happens at least with the AIX C compiler.
  13798. : > sub/conftest.c
  13799. for i in 1 2 3 4 5 6; do
  13800. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13801. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13802. # Solaris 8's {/usr,}/bin/sh.
  13803. touch sub/conftst$i.h
  13804. done
  13805. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13806. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13807. # mode. It turns out that the SunPro C++ compiler does not properly
  13808. # handle `-M -o', and we need to detect this. Also, some Intel
  13809. # versions had trouble with output in subdirs
  13810. am__obj=sub/conftest.${OBJEXT-o}
  13811. am__minus_obj="-o $am__obj"
  13812. case $depmode in
  13813. gcc)
  13814. # This depmode causes a compiler race in universal mode.
  13815. test "$am__universal" = false || continue
  13816. ;;
  13817. nosideeffect)
  13818. # after this tag, mechanisms are not by side-effect, so they'll
  13819. # only be used when explicitly requested
  13820. if test "x$enable_dependency_tracking" = xyes; then
  13821. continue
  13822. else
  13823. break
  13824. fi
  13825. ;;
  13826. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13827. # This compiler won't grok `-c -o', but also, the minuso test has
  13828. # not run yet. These depmodes are late enough in the game, and
  13829. # so weak that their functioning should not be impacted.
  13830. am__obj=conftest.${OBJEXT-o}
  13831. am__minus_obj=
  13832. ;;
  13833. none) break ;;
  13834. esac
  13835. if depmode=$depmode \
  13836. source=sub/conftest.c object=$am__obj \
  13837. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13838. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13839. >/dev/null 2>conftest.err &&
  13840. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13841. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13842. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13843. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13844. # icc doesn't choke on unknown options, it will just issue warnings
  13845. # or remarks (even with -Werror). So we grep stderr for any message
  13846. # that says an option was ignored or not supported.
  13847. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13848. # icc: Command line warning: ignoring option '-M'; no argument required
  13849. # The diagnosis changed in icc 8.0:
  13850. # icc: Command line remark: option '-MP' not supported
  13851. if (grep 'ignoring option' conftest.err ||
  13852. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13853. am_cv_CXX_dependencies_compiler_type=$depmode
  13854. break
  13855. fi
  13856. fi
  13857. done
  13858. cd ..
  13859. rm -rf conftest.dir
  13860. else
  13861. am_cv_CXX_dependencies_compiler_type=none
  13862. fi
  13863. fi
  13864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13865. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13866. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13867. if
  13868. test "x$enable_dependency_tracking" != xno \
  13869. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13870. am__fastdepCXX_TRUE=
  13871. am__fastdepCXX_FALSE='#'
  13872. else
  13873. am__fastdepCXX_TRUE='#'
  13874. am__fastdepCXX_FALSE=
  13875. fi
  13876. if test "x$CC" != xcc; then
  13877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  13878. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  13879. else
  13880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  13881. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  13882. fi
  13883. set dummy $CC; ac_cc=`$as_echo "$2" |
  13884. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13885. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  13886. $as_echo_n "(cached) " >&6
  13887. else
  13888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13889. /* end confdefs.h. */
  13890. int
  13891. main ()
  13892. {
  13893. ;
  13894. return 0;
  13895. }
  13896. _ACEOF
  13897. # Make sure it works both with $CC and with simple cc.
  13898. # We do the test twice because some compilers refuse to overwrite an
  13899. # existing .o file with -o, though they will create one.
  13900. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13901. rm -f conftest2.*
  13902. if { { case "(($ac_try" in
  13903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13904. *) ac_try_echo=$ac_try;;
  13905. esac
  13906. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13907. $as_echo "$ac_try_echo"; } >&5
  13908. (eval "$ac_try") 2>&5
  13909. ac_status=$?
  13910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13911. test $ac_status = 0; } &&
  13912. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13914. *) ac_try_echo=$ac_try;;
  13915. esac
  13916. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13917. $as_echo "$ac_try_echo"; } >&5
  13918. (eval "$ac_try") 2>&5
  13919. ac_status=$?
  13920. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13921. test $ac_status = 0; };
  13922. then
  13923. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  13924. if test "x$CC" != xcc; then
  13925. # Test first that cc exists at all.
  13926. if { ac_try='cc -c conftest.$ac_ext >&5'
  13927. { { case "(($ac_try" in
  13928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13929. *) ac_try_echo=$ac_try;;
  13930. esac
  13931. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13932. $as_echo "$ac_try_echo"; } >&5
  13933. (eval "$ac_try") 2>&5
  13934. ac_status=$?
  13935. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13936. test $ac_status = 0; }; }; then
  13937. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13938. rm -f conftest2.*
  13939. if { { case "(($ac_try" in
  13940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13941. *) ac_try_echo=$ac_try;;
  13942. esac
  13943. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13944. $as_echo "$ac_try_echo"; } >&5
  13945. (eval "$ac_try") 2>&5
  13946. ac_status=$?
  13947. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13948. test $ac_status = 0; } &&
  13949. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13951. *) ac_try_echo=$ac_try;;
  13952. esac
  13953. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13954. $as_echo "$ac_try_echo"; } >&5
  13955. (eval "$ac_try") 2>&5
  13956. ac_status=$?
  13957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13958. test $ac_status = 0; };
  13959. then
  13960. # cc works too.
  13961. :
  13962. else
  13963. # cc exists but doesn't like -o.
  13964. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13965. fi
  13966. fi
  13967. fi
  13968. else
  13969. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13970. fi
  13971. rm -f core conftest*
  13972. fi
  13973. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  13974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13975. $as_echo "yes" >&6; }
  13976. else
  13977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13978. $as_echo "no" >&6; }
  13979. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  13980. fi
  13981. # FIXME: we rely on the cache variable name because
  13982. # there is no other way.
  13983. set dummy $CC
  13984. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13985. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13986. if test "$am_t" != yes; then
  13987. # Losing compiler, so override with the script.
  13988. # FIXME: It is wrong to rewrite CC.
  13989. # But if we don't then we get into trouble of one sort or another.
  13990. # A longer-term fix would be to have automake use am__CC in this case,
  13991. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13992. CC="$am_aux_dir/compile $CC"
  13993. fi
  13994. # needed to handle 64-bit architecture
  13995. # The cast to long int works around a bug in the HP C Compiler
  13996. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13997. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13998. # This bug is HP SR number 8606223364.
  13999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  14000. $as_echo_n "checking size of int... " >&6; }
  14001. if ${ac_cv_sizeof_int+:} false; then :
  14002. $as_echo_n "(cached) " >&6
  14003. else
  14004. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  14005. else
  14006. if test "$ac_cv_type_int" = yes; then
  14007. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14008. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14009. as_fn_error 77 "cannot compute sizeof (int)
  14010. See \`config.log' for more details" "$LINENO" 5; }
  14011. else
  14012. ac_cv_sizeof_int=0
  14013. fi
  14014. fi
  14015. fi
  14016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14017. $as_echo "$ac_cv_sizeof_int" >&6; }
  14018. cat >>confdefs.h <<_ACEOF
  14019. #define SIZEOF_INT $ac_cv_sizeof_int
  14020. _ACEOF
  14021. # The cast to long int works around a bug in the HP C Compiler
  14022. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14023. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14024. # This bug is HP SR number 8606223364.
  14025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14026. $as_echo_n "checking size of long... " >&6; }
  14027. if ${ac_cv_sizeof_long+:} false; then :
  14028. $as_echo_n "(cached) " >&6
  14029. else
  14030. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14031. else
  14032. if test "$ac_cv_type_long" = yes; then
  14033. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14035. as_fn_error 77 "cannot compute sizeof (long)
  14036. See \`config.log' for more details" "$LINENO" 5; }
  14037. else
  14038. ac_cv_sizeof_long=0
  14039. fi
  14040. fi
  14041. fi
  14042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14043. $as_echo "$ac_cv_sizeof_long" >&6; }
  14044. cat >>confdefs.h <<_ACEOF
  14045. #define SIZEOF_LONG $ac_cv_sizeof_long
  14046. _ACEOF
  14047. # The cast to long int works around a bug in the HP C Compiler
  14048. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14049. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14050. # This bug is HP SR number 8606223364.
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  14052. $as_echo_n "checking size of size_t... " >&6; }
  14053. if ${ac_cv_sizeof_size_t+:} false; then :
  14054. $as_echo_n "(cached) " >&6
  14055. else
  14056. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  14057. else
  14058. if test "$ac_cv_type_size_t" = yes; then
  14059. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14060. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14061. as_fn_error 77 "cannot compute sizeof (size_t)
  14062. See \`config.log' for more details" "$LINENO" 5; }
  14063. else
  14064. ac_cv_sizeof_size_t=0
  14065. fi
  14066. fi
  14067. fi
  14068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  14069. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  14070. cat >>confdefs.h <<_ACEOF
  14071. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  14072. _ACEOF
  14073. #------------------------------------------------------------------------
  14074. # Handle the --prefix=... option
  14075. #------------------------------------------------------------------------
  14076. if test "${prefix}" = "NONE"; then
  14077. prefix=/usr/local
  14078. fi
  14079. if test "${exec_prefix}" = "NONE"; then
  14080. exec_prefix=$prefix
  14081. fi
  14082. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  14083. eval libdir="$libdir"
  14084. ################################
  14085. # Deal with debugging options
  14086. ################################
  14087. # Check whether --enable-debug was given.
  14088. if test "${enable_debug+set}" = set; then :
  14089. enableval=$enable_debug;
  14090. else
  14091. enable_debug=no
  14092. fi
  14093. if test x$enable_debug = xyes; then
  14094. DEBUG_TRUE=
  14095. DEBUG_FALSE='#'
  14096. else
  14097. DEBUG_TRUE='#'
  14098. DEBUG_FALSE=
  14099. fi
  14100. ################################
  14101. # Check for the LUB library
  14102. ################################
  14103. LUB_LIBS="-llub"
  14104. LUB_CFLAGS=""
  14105. if test "x$LUB_LIBS" = "x"; then
  14106. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  14107. fi
  14108. ################################
  14109. # Check for the KONF library
  14110. ################################
  14111. KONF_LIBS="-lkonf"
  14112. KONF_CFLAGS=""
  14113. if test "x$KONF_LIBS" = "x"; then
  14114. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  14115. fi
  14116. ################################
  14117. # Check for the TINYRL library
  14118. ################################
  14119. TINYRL_LIBS="-ltinyrl"
  14120. TINYRL_CFLAGS=""
  14121. if test "x$TINYRL_LIBS" = "x"; then
  14122. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  14123. fi
  14124. ################################
  14125. # Check for the TINYXML library
  14126. ################################
  14127. TINYXML_LIBS="-ltinyxml"
  14128. TINYXML_CXXFLAGS="-std=gnu++98"
  14129. if test "x$TINYXML_LIBS" = "x"; then
  14130. as_fn_error $? "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  14131. fi
  14132. ################################
  14133. # Check for the PTHREAD library
  14134. ################################
  14135. #C_ARG_WITH(pthread,
  14136. # [AS_HELP_STRING([--with-pthread=DIR],
  14137. # [Use POSIX threads library distribution in DIR])
  14138. # ])
  14139. for ac_header in pthread.h
  14140. do :
  14141. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  14142. if test "x$ac_cv_header_pthread_h" = xyes; then :
  14143. cat >>confdefs.h <<_ACEOF
  14144. #define HAVE_PTHREAD_H 1
  14145. _ACEOF
  14146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
  14147. $as_echo_n "checking for library containing pthread_create... " >&6; }
  14148. if ${ac_cv_search_pthread_create+:} false; then :
  14149. $as_echo_n "(cached) " >&6
  14150. else
  14151. ac_func_search_save_LIBS=$LIBS
  14152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14153. /* end confdefs.h. */
  14154. /* Override any GCC internal prototype to avoid an error.
  14155. Use char because int might match the return type of a GCC
  14156. builtin and then its argument prototype would still apply. */
  14157. #ifdef __cplusplus
  14158. extern "C"
  14159. #endif
  14160. char pthread_create ();
  14161. int
  14162. main ()
  14163. {
  14164. return pthread_create ();
  14165. ;
  14166. return 0;
  14167. }
  14168. _ACEOF
  14169. for ac_lib in '' pthread; do
  14170. if test -z "$ac_lib"; then
  14171. ac_res="none required"
  14172. else
  14173. ac_res=-l$ac_lib
  14174. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14175. fi
  14176. if ac_fn_c_try_link "$LINENO"; then :
  14177. ac_cv_search_pthread_create=$ac_res
  14178. fi
  14179. rm -f core conftest.err conftest.$ac_objext \
  14180. conftest$ac_exeext
  14181. if ${ac_cv_search_pthread_create+:} false; then :
  14182. break
  14183. fi
  14184. done
  14185. if ${ac_cv_search_pthread_create+:} false; then :
  14186. else
  14187. ac_cv_search_pthread_create=no
  14188. fi
  14189. rm conftest.$ac_ext
  14190. LIBS=$ac_func_search_save_LIBS
  14191. fi
  14192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
  14193. $as_echo "$ac_cv_search_pthread_create" >&6; }
  14194. ac_res=$ac_cv_search_pthread_create
  14195. if test "$ac_res" != no; then :
  14196. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14197. else
  14198. as_fn_error $? "Cannot find the POSIX threads library" "$LINENO" 5
  14199. fi
  14200. fi
  14201. done
  14202. ################################
  14203. # Check for the RT library
  14204. ################################
  14205. # Check whether --with-rt was given.
  14206. if test "${with_rt+set}" = set; then :
  14207. withval=$with_rt;
  14208. fi
  14209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  14210. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  14211. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  14212. $as_echo_n "(cached) " >&6
  14213. else
  14214. ac_check_lib_save_LIBS=$LIBS
  14215. LIBS="-lrt $LIBS"
  14216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14217. /* end confdefs.h. */
  14218. /* Override any GCC internal prototype to avoid an error.
  14219. Use char because int might match the return type of a GCC
  14220. builtin and then its argument prototype would still apply. */
  14221. #ifdef __cplusplus
  14222. extern "C"
  14223. #endif
  14224. char clock_gettime ();
  14225. int
  14226. main ()
  14227. {
  14228. return clock_gettime ();
  14229. ;
  14230. return 0;
  14231. }
  14232. _ACEOF
  14233. if ac_fn_c_try_link "$LINENO"; then :
  14234. ac_cv_lib_rt_clock_gettime=yes
  14235. else
  14236. ac_cv_lib_rt_clock_gettime=no
  14237. fi
  14238. rm -f core conftest.err conftest.$ac_objext \
  14239. conftest$ac_exeext conftest.$ac_ext
  14240. LIBS=$ac_check_lib_save_LIBS
  14241. fi
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  14243. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  14244. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  14245. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  14246. if test "x$with_rt" = "x"; then
  14247. RT_LIBS="-lrt"
  14248. else
  14249. RT_CFLAGS="-I$with_rt/include"
  14250. RT_LIBS="-L$with_rt/lib -lrt"
  14251. fi
  14252. fi
  14253. ################################
  14254. # Check for the TCL library
  14255. ################################
  14256. TCL_CONFIG=${libdir}/tclConfig.sh
  14257. # Check whether --with-tcl was given.
  14258. if test "${with_tcl+set}" = set; then :
  14259. withval=$with_tcl; if test -e $TCL_CONFIG; then
  14260. source ${TCL_CONFIG} # get TCL_VERSION
  14261. if test "${with_tcl}" = "yes"; then
  14262. TCL_CFLAGS="${TCL_INCLUDE_SPEC}"
  14263. TCL_LIBS="${TCL_LIB_SPEC}"
  14264. else
  14265. TCL_CFLAGS="-I${with_tcl}/include"
  14266. TCL_LIBS="-L${with_tcl}/lib -ltcl"
  14267. fi
  14268. CPPFLAGS="$CPPFLAGS $TCL_CFLAGS"
  14269. for ac_header in tcl.h
  14270. do :
  14271. ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
  14272. if test "x$ac_cv_header_tcl_h" = xyes; then :
  14273. cat >>confdefs.h <<_ACEOF
  14274. #define HAVE_TCL_H 1
  14275. _ACEOF
  14276. as_ac_Lib=`$as_echo "ac_cv_lib_tcl${TCL_VERSION}''_Tcl_CreateInterp" | $as_tr_sh`
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}" >&5
  14278. $as_echo_n "checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}... " >&6; }
  14279. if eval \${$as_ac_Lib+:} false; then :
  14280. $as_echo_n "(cached) " >&6
  14281. else
  14282. ac_check_lib_save_LIBS=$LIBS
  14283. LIBS="-ltcl${TCL_VERSION} $LIBS"
  14284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14285. /* end confdefs.h. */
  14286. /* Override any GCC internal prototype to avoid an error.
  14287. Use char because int might match the return type of a GCC
  14288. builtin and then its argument prototype would still apply. */
  14289. #ifdef __cplusplus
  14290. extern "C"
  14291. #endif
  14292. char Tcl_CreateInterp ();
  14293. int
  14294. main ()
  14295. {
  14296. return Tcl_CreateInterp ();
  14297. ;
  14298. return 0;
  14299. }
  14300. _ACEOF
  14301. if ac_fn_c_try_link "$LINENO"; then :
  14302. eval "$as_ac_Lib=yes"
  14303. else
  14304. eval "$as_ac_Lib=no"
  14305. fi
  14306. rm -f core conftest.err conftest.$ac_objext \
  14307. conftest$ac_exeext conftest.$ac_ext
  14308. LIBS=$ac_check_lib_save_LIBS
  14309. fi
  14310. eval ac_res=\$$as_ac_Lib
  14311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14312. $as_echo "$ac_res" >&6; }
  14313. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14314. $as_echo "#define HAVE_LIBTCL /**/" >>confdefs.h
  14315. have_tcl="yes"
  14316. fi
  14317. fi
  14318. done
  14319. fi
  14320. fi
  14321. if test "x${have_tcl}" = "xyes"; then
  14322. TCL_TRUE=
  14323. TCL_FALSE='#'
  14324. else
  14325. TCL_TRUE='#'
  14326. TCL_FALSE=
  14327. fi
  14328. ################################
  14329. # Check for inclusion of lub_heap
  14330. ################################
  14331. # Check whether --enable-lubheap was given.
  14332. if test "${enable_lubheap+set}" = set; then :
  14333. enableval=$enable_lubheap;
  14334. else
  14335. enable_lubheap=no
  14336. fi
  14337. if test "x$enable_lubheap" = "xyes"; then
  14338. LUBHEAP_TRUE=
  14339. LUBHEAP_FALSE='#'
  14340. else
  14341. LUBHEAP_TRUE='#'
  14342. LUBHEAP_FALSE=
  14343. fi
  14344. if test "x$enable_lubheap" = "xyes"; then
  14345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing standard memory libraries with lubheap" >&5
  14346. $as_echo "$as_me: WARNING: Replacing standard memory libraries with lubheap" >&2;}
  14347. LUBHEAP_LIBS="-llubheap"
  14348. LUBHEAP_CFLAGS=""
  14349. if test "x$LUBHEAP_LIBS" = "x"; then
  14350. as_fn_error $? "Cannot find the \"Little Useful Bits Heap\" library" "$LINENO" 5
  14351. fi
  14352. fi
  14353. ################################
  14354. # Check for linkage with GPL libraries
  14355. ################################
  14356. # Check whether --enable-gpl was given.
  14357. if test "${enable_gpl+set}" = set; then :
  14358. enableval=$enable_gpl;
  14359. else
  14360. enable_gpl=yes
  14361. fi
  14362. if test "x$enable_gpl" = "xyes"; then
  14363. ################################
  14364. # Check for BFD library
  14365. ################################
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking with GPL licence libraries" >&5
  14367. $as_echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  14368. for ac_header in bfd.h
  14369. do :
  14370. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  14371. if test "x$ac_cv_header_bfd_h" = xyes; then :
  14372. cat >>confdefs.h <<_ACEOF
  14373. #define HAVE_BFD_H 1
  14374. _ACEOF
  14375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
  14376. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  14377. if ${ac_cv_lib_bfd_bfd_init+:} false; then :
  14378. $as_echo_n "(cached) " >&6
  14379. else
  14380. ac_check_lib_save_LIBS=$LIBS
  14381. LIBS="-lbfd $LIBS"
  14382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14383. /* end confdefs.h. */
  14384. /* Override any GCC internal prototype to avoid an error.
  14385. Use char because int might match the return type of a GCC
  14386. builtin and then its argument prototype would still apply. */
  14387. #ifdef __cplusplus
  14388. extern "C"
  14389. #endif
  14390. char bfd_init ();
  14391. int
  14392. main ()
  14393. {
  14394. return bfd_init ();
  14395. ;
  14396. return 0;
  14397. }
  14398. _ACEOF
  14399. if ac_fn_c_try_link "$LINENO"; then :
  14400. ac_cv_lib_bfd_bfd_init=yes
  14401. else
  14402. ac_cv_lib_bfd_bfd_init=no
  14403. fi
  14404. rm -f core conftest.err conftest.$ac_objext \
  14405. conftest$ac_exeext conftest.$ac_ext
  14406. LIBS=$ac_check_lib_save_LIBS
  14407. fi
  14408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
  14409. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  14410. if test "x$ac_cv_lib_bfd_bfd_init" = xyes; then :
  14411. $as_echo "#define HAVE_LIBBFD /**/" >>confdefs.h
  14412. BFD_LIBS="-lbfd -liberty"
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_dgettext in -lintl" >&5
  14414. $as_echo_n "checking for libintl_dgettext in -lintl... " >&6; }
  14415. if ${ac_cv_lib_intl_libintl_dgettext+:} false; then :
  14416. $as_echo_n "(cached) " >&6
  14417. else
  14418. ac_check_lib_save_LIBS=$LIBS
  14419. LIBS="-lintl $LIBS"
  14420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14421. /* end confdefs.h. */
  14422. /* Override any GCC internal prototype to avoid an error.
  14423. Use char because int might match the return type of a GCC
  14424. builtin and then its argument prototype would still apply. */
  14425. #ifdef __cplusplus
  14426. extern "C"
  14427. #endif
  14428. char libintl_dgettext ();
  14429. int
  14430. main ()
  14431. {
  14432. return libintl_dgettext ();
  14433. ;
  14434. return 0;
  14435. }
  14436. _ACEOF
  14437. if ac_fn_c_try_link "$LINENO"; then :
  14438. ac_cv_lib_intl_libintl_dgettext=yes
  14439. else
  14440. ac_cv_lib_intl_libintl_dgettext=no
  14441. fi
  14442. rm -f core conftest.err conftest.$ac_objext \
  14443. conftest$ac_exeext conftest.$ac_ext
  14444. LIBS=$ac_check_lib_save_LIBS
  14445. fi
  14446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  14447. $as_echo "$ac_cv_lib_intl_libintl_dgettext" >&6; }
  14448. if test "x$ac_cv_lib_intl_libintl_dgettext" = xyes; then :
  14449. $as_echo "#define HAVE_LIBINTL /**/" >>confdefs.h
  14450. BFD_LIBS="$BFD_LIBS -lintl"
  14451. fi
  14452. fi
  14453. fi
  14454. done
  14455. else
  14456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  14457. $as_echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  14458. fi
  14459. ################################
  14460. # Search for network functions (like connect())
  14461. ################################
  14462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  14463. $as_echo_n "checking for library containing socket... " >&6; }
  14464. if ${ac_cv_search_socket+:} false; then :
  14465. $as_echo_n "(cached) " >&6
  14466. else
  14467. ac_func_search_save_LIBS=$LIBS
  14468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14469. /* end confdefs.h. */
  14470. /* Override any GCC internal prototype to avoid an error.
  14471. Use char because int might match the return type of a GCC
  14472. builtin and then its argument prototype would still apply. */
  14473. #ifdef __cplusplus
  14474. extern "C"
  14475. #endif
  14476. char socket ();
  14477. int
  14478. main ()
  14479. {
  14480. return socket ();
  14481. ;
  14482. return 0;
  14483. }
  14484. _ACEOF
  14485. for ac_lib in '' socket; do
  14486. if test -z "$ac_lib"; then
  14487. ac_res="none required"
  14488. else
  14489. ac_res=-l$ac_lib
  14490. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14491. fi
  14492. if ac_fn_c_try_link "$LINENO"; then :
  14493. ac_cv_search_socket=$ac_res
  14494. fi
  14495. rm -f core conftest.err conftest.$ac_objext \
  14496. conftest$ac_exeext
  14497. if ${ac_cv_search_socket+:} false; then :
  14498. break
  14499. fi
  14500. done
  14501. if ${ac_cv_search_socket+:} false; then :
  14502. else
  14503. ac_cv_search_socket=no
  14504. fi
  14505. rm conftest.$ac_ext
  14506. LIBS=$ac_func_search_save_LIBS
  14507. fi
  14508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  14509. $as_echo "$ac_cv_search_socket" >&6; }
  14510. ac_res=$ac_cv_search_socket
  14511. if test "$ac_res" != no; then :
  14512. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14513. fi
  14514. ################################
  14515. # Check for regex.h
  14516. ################################
  14517. for ac_header in regex.h
  14518. do :
  14519. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  14520. if test "x$ac_cv_header_regex_h" = xyes; then :
  14521. cat >>confdefs.h <<_ACEOF
  14522. #define HAVE_REGEX_H 1
  14523. _ACEOF
  14524. else
  14525. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  14526. fi
  14527. done
  14528. ################################
  14529. # Check for getopt_long()
  14530. ################################
  14531. for ac_header in getopt.h
  14532. do :
  14533. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  14534. if test "x$ac_cv_header_getopt_h" = xyes; then :
  14535. cat >>confdefs.h <<_ACEOF
  14536. #define HAVE_GETOPT_H 1
  14537. _ACEOF
  14538. else
  14539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  14540. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  14541. fi
  14542. done
  14543. ################################
  14544. # Check for locale.h
  14545. ################################
  14546. for ac_header in locale.h
  14547. do :
  14548. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  14549. if test "x$ac_cv_header_locale_h" = xyes; then :
  14550. cat >>confdefs.h <<_ACEOF
  14551. #define HAVE_LOCALE_H 1
  14552. _ACEOF
  14553. else
  14554. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  14555. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  14556. fi
  14557. done
  14558. ################################
  14559. # Check for CODESET within nl_langinfo
  14560. ################################
  14561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  14562. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  14563. if ${am_cv_langinfo_codeset+:} false; then :
  14564. $as_echo_n "(cached) " >&6
  14565. else
  14566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14567. /* end confdefs.h. */
  14568. #include <langinfo.h>
  14569. int
  14570. main ()
  14571. {
  14572. char* cs = nl_langinfo(CODESET); return !cs;
  14573. ;
  14574. return 0;
  14575. }
  14576. _ACEOF
  14577. if ac_fn_c_try_link "$LINENO"; then :
  14578. am_cv_langinfo_codeset=yes
  14579. else
  14580. am_cv_langinfo_codeset=no
  14581. fi
  14582. rm -f core conftest.err conftest.$ac_objext \
  14583. conftest$ac_exeext conftest.$ac_ext
  14584. fi
  14585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  14586. $as_echo "$am_cv_langinfo_codeset" >&6; }
  14587. if test $am_cv_langinfo_codeset = yes; then
  14588. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  14589. fi
  14590. ################################
  14591. # Check for pwd.h and grp.h
  14592. ################################
  14593. for ac_header in pwd.h
  14594. do :
  14595. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  14596. if test "x$ac_cv_header_pwd_h" = xyes; then :
  14597. cat >>confdefs.h <<_ACEOF
  14598. #define HAVE_PWD_H 1
  14599. _ACEOF
  14600. else
  14601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  14602. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  14603. fi
  14604. done
  14605. for ac_header in grp.h
  14606. do :
  14607. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  14608. if test "x$ac_cv_header_grp_h" = xyes; then :
  14609. cat >>confdefs.h <<_ACEOF
  14610. #define HAVE_GRP_H 1
  14611. _ACEOF
  14612. else
  14613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  14614. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  14615. fi
  14616. done
  14617. ################################
  14618. # Check for chroot
  14619. ################################
  14620. for ac_func in chroot
  14621. do :
  14622. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  14623. if test "x$ac_cv_func_chroot" = xyes; then :
  14624. cat >>confdefs.h <<_ACEOF
  14625. #define HAVE_CHROOT 1
  14626. _ACEOF
  14627. else
  14628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  14629. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  14630. fi
  14631. done
  14632. ac_config_files="$ac_config_files Makefile"
  14633. cat >confcache <<\_ACEOF
  14634. # This file is a shell script that caches the results of configure
  14635. # tests run on this system so they can be shared between configure
  14636. # scripts and configure runs, see configure's option --config-cache.
  14637. # It is not useful on other systems. If it contains results you don't
  14638. # want to keep, you may remove or edit it.
  14639. #
  14640. # config.status only pays attention to the cache file if you give it
  14641. # the --recheck option to rerun configure.
  14642. #
  14643. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14644. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14645. # following values.
  14646. _ACEOF
  14647. # The following way of writing the cache mishandles newlines in values,
  14648. # but we know of no workaround that is simple, portable, and efficient.
  14649. # So, we kill variables containing newlines.
  14650. # Ultrix sh set writes to stderr and can't be redirected directly,
  14651. # and sets the high bit in the cache file unless we assign to the vars.
  14652. (
  14653. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14654. eval ac_val=\$$ac_var
  14655. case $ac_val in #(
  14656. *${as_nl}*)
  14657. case $ac_var in #(
  14658. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14659. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14660. esac
  14661. case $ac_var in #(
  14662. _ | IFS | as_nl) ;; #(
  14663. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14664. *) { eval $ac_var=; unset $ac_var;} ;;
  14665. esac ;;
  14666. esac
  14667. done
  14668. (set) 2>&1 |
  14669. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14670. *${as_nl}ac_space=\ *)
  14671. # `set' does not quote correctly, so add quotes: double-quote
  14672. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14673. sed -n \
  14674. "s/'/'\\\\''/g;
  14675. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14676. ;; #(
  14677. *)
  14678. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14679. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14680. ;;
  14681. esac |
  14682. sort
  14683. ) |
  14684. sed '
  14685. /^ac_cv_env_/b end
  14686. t clear
  14687. :clear
  14688. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14689. t end
  14690. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14691. :end' >>confcache
  14692. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14693. if test -w "$cache_file"; then
  14694. if test "x$cache_file" != "x/dev/null"; then
  14695. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14696. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14697. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14698. cat confcache >"$cache_file"
  14699. else
  14700. case $cache_file in #(
  14701. */* | ?:*)
  14702. mv -f confcache "$cache_file"$$ &&
  14703. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14704. *)
  14705. mv -f confcache "$cache_file" ;;
  14706. esac
  14707. fi
  14708. fi
  14709. else
  14710. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14711. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14712. fi
  14713. fi
  14714. rm -f confcache
  14715. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14716. # Let make expand exec_prefix.
  14717. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14718. DEFS=-DHAVE_CONFIG_H
  14719. ac_libobjs=
  14720. ac_ltlibobjs=
  14721. U=
  14722. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14723. # 1. Remove the extension, and $U if already installed.
  14724. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14725. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14726. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14727. # will be set to the directory where LIBOBJS objects are built.
  14728. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14729. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14730. done
  14731. LIBOBJS=$ac_libobjs
  14732. LTLIBOBJS=$ac_ltlibobjs
  14733. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14734. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14735. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14736. fi
  14737. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14738. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14739. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14740. fi
  14741. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14742. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14743. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14744. fi
  14745. if test -n "$EXEEXT"; then
  14746. am__EXEEXT_TRUE=
  14747. am__EXEEXT_FALSE='#'
  14748. else
  14749. am__EXEEXT_TRUE='#'
  14750. am__EXEEXT_FALSE=
  14751. fi
  14752. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  14753. as_fn_error $? "conditional \"DEBUG\" was never defined.
  14754. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14755. fi
  14756. if test -z "${TCL_TRUE}" && test -z "${TCL_FALSE}"; then
  14757. as_fn_error $? "conditional \"TCL\" was never defined.
  14758. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14759. fi
  14760. if test -z "${LUBHEAP_TRUE}" && test -z "${LUBHEAP_FALSE}"; then
  14761. as_fn_error $? "conditional \"LUBHEAP\" was never defined.
  14762. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14763. fi
  14764. : "${CONFIG_STATUS=./config.status}"
  14765. ac_write_fail=0
  14766. ac_clean_files_save=$ac_clean_files
  14767. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14768. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14769. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14770. as_write_fail=0
  14771. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14772. #! $SHELL
  14773. # Generated by $as_me.
  14774. # Run this file to recreate the current configuration.
  14775. # Compiler output produced by configure, useful for debugging
  14776. # configure, is in config.log if it exists.
  14777. debug=false
  14778. ac_cs_recheck=false
  14779. ac_cs_silent=false
  14780. SHELL=\${CONFIG_SHELL-$SHELL}
  14781. export SHELL
  14782. _ASEOF
  14783. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14784. ## -------------------- ##
  14785. ## M4sh Initialization. ##
  14786. ## -------------------- ##
  14787. # Be more Bourne compatible
  14788. DUALCASE=1; export DUALCASE # for MKS sh
  14789. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14790. emulate sh
  14791. NULLCMD=:
  14792. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14793. # is contrary to our usage. Disable this feature.
  14794. alias -g '${1+"$@"}'='"$@"'
  14795. setopt NO_GLOB_SUBST
  14796. else
  14797. case `(set -o) 2>/dev/null` in #(
  14798. *posix*) :
  14799. set -o posix ;; #(
  14800. *) :
  14801. ;;
  14802. esac
  14803. fi
  14804. as_nl='
  14805. '
  14806. export as_nl
  14807. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14808. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14809. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14810. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14811. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14812. # but without wasting forks for bash or zsh.
  14813. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14814. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14815. as_echo='print -r --'
  14816. as_echo_n='print -rn --'
  14817. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14818. as_echo='printf %s\n'
  14819. as_echo_n='printf %s'
  14820. else
  14821. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14822. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14823. as_echo_n='/usr/ucb/echo -n'
  14824. else
  14825. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14826. as_echo_n_body='eval
  14827. arg=$1;
  14828. case $arg in #(
  14829. *"$as_nl"*)
  14830. expr "X$arg" : "X\\(.*\\)$as_nl";
  14831. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14832. esac;
  14833. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14834. '
  14835. export as_echo_n_body
  14836. as_echo_n='sh -c $as_echo_n_body as_echo'
  14837. fi
  14838. export as_echo_body
  14839. as_echo='sh -c $as_echo_body as_echo'
  14840. fi
  14841. # The user is always right.
  14842. if test "${PATH_SEPARATOR+set}" != set; then
  14843. PATH_SEPARATOR=:
  14844. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14845. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14846. PATH_SEPARATOR=';'
  14847. }
  14848. fi
  14849. # IFS
  14850. # We need space, tab and new line, in precisely that order. Quoting is
  14851. # there to prevent editors from complaining about space-tab.
  14852. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14853. # splitting by setting IFS to empty value.)
  14854. IFS=" "" $as_nl"
  14855. # Find who we are. Look in the path if we contain no directory separator.
  14856. as_myself=
  14857. case $0 in #((
  14858. *[\\/]* ) as_myself=$0 ;;
  14859. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14860. for as_dir in $PATH
  14861. do
  14862. IFS=$as_save_IFS
  14863. test -z "$as_dir" && as_dir=.
  14864. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14865. done
  14866. IFS=$as_save_IFS
  14867. ;;
  14868. esac
  14869. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14870. # in which case we are not to be found in the path.
  14871. if test "x$as_myself" = x; then
  14872. as_myself=$0
  14873. fi
  14874. if test ! -f "$as_myself"; then
  14875. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14876. exit 1
  14877. fi
  14878. # Unset variables that we do not need and which cause bugs (e.g. in
  14879. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14880. # suppresses any "Segmentation fault" message there. '((' could
  14881. # trigger a bug in pdksh 5.2.14.
  14882. for as_var in BASH_ENV ENV MAIL MAILPATH
  14883. do eval test x\${$as_var+set} = xset \
  14884. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14885. done
  14886. PS1='$ '
  14887. PS2='> '
  14888. PS4='+ '
  14889. # NLS nuisances.
  14890. LC_ALL=C
  14891. export LC_ALL
  14892. LANGUAGE=C
  14893. export LANGUAGE
  14894. # CDPATH.
  14895. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14896. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14897. # ----------------------------------------
  14898. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14899. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14900. # script with STATUS, using 1 if that was 0.
  14901. as_fn_error ()
  14902. {
  14903. as_status=$1; test $as_status -eq 0 && as_status=1
  14904. if test "$4"; then
  14905. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14906. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14907. fi
  14908. $as_echo "$as_me: error: $2" >&2
  14909. as_fn_exit $as_status
  14910. } # as_fn_error
  14911. # as_fn_set_status STATUS
  14912. # -----------------------
  14913. # Set $? to STATUS, without forking.
  14914. as_fn_set_status ()
  14915. {
  14916. return $1
  14917. } # as_fn_set_status
  14918. # as_fn_exit STATUS
  14919. # -----------------
  14920. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14921. as_fn_exit ()
  14922. {
  14923. set +e
  14924. as_fn_set_status $1
  14925. exit $1
  14926. } # as_fn_exit
  14927. # as_fn_unset VAR
  14928. # ---------------
  14929. # Portably unset VAR.
  14930. as_fn_unset ()
  14931. {
  14932. { eval $1=; unset $1;}
  14933. }
  14934. as_unset=as_fn_unset
  14935. # as_fn_append VAR VALUE
  14936. # ----------------------
  14937. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14938. # advantage of any shell optimizations that allow amortized linear growth over
  14939. # repeated appends, instead of the typical quadratic growth present in naive
  14940. # implementations.
  14941. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14942. eval 'as_fn_append ()
  14943. {
  14944. eval $1+=\$2
  14945. }'
  14946. else
  14947. as_fn_append ()
  14948. {
  14949. eval $1=\$$1\$2
  14950. }
  14951. fi # as_fn_append
  14952. # as_fn_arith ARG...
  14953. # ------------------
  14954. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14955. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14956. # must be portable across $(()) and expr.
  14957. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14958. eval 'as_fn_arith ()
  14959. {
  14960. as_val=$(( $* ))
  14961. }'
  14962. else
  14963. as_fn_arith ()
  14964. {
  14965. as_val=`expr "$@" || test $? -eq 1`
  14966. }
  14967. fi # as_fn_arith
  14968. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14969. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14970. as_expr=expr
  14971. else
  14972. as_expr=false
  14973. fi
  14974. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14975. as_basename=basename
  14976. else
  14977. as_basename=false
  14978. fi
  14979. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14980. as_dirname=dirname
  14981. else
  14982. as_dirname=false
  14983. fi
  14984. as_me=`$as_basename -- "$0" ||
  14985. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14986. X"$0" : 'X\(//\)$' \| \
  14987. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14988. $as_echo X/"$0" |
  14989. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14990. s//\1/
  14991. q
  14992. }
  14993. /^X\/\(\/\/\)$/{
  14994. s//\1/
  14995. q
  14996. }
  14997. /^X\/\(\/\).*/{
  14998. s//\1/
  14999. q
  15000. }
  15001. s/.*/./; q'`
  15002. # Avoid depending upon Character Ranges.
  15003. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15004. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15005. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15006. as_cr_digits='0123456789'
  15007. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15008. ECHO_C= ECHO_N= ECHO_T=
  15009. case `echo -n x` in #(((((
  15010. -n*)
  15011. case `echo 'xy\c'` in
  15012. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15013. xy) ECHO_C='\c';;
  15014. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15015. ECHO_T=' ';;
  15016. esac;;
  15017. *)
  15018. ECHO_N='-n';;
  15019. esac
  15020. rm -f conf$$ conf$$.exe conf$$.file
  15021. if test -d conf$$.dir; then
  15022. rm -f conf$$.dir/conf$$.file
  15023. else
  15024. rm -f conf$$.dir
  15025. mkdir conf$$.dir 2>/dev/null
  15026. fi
  15027. if (echo >conf$$.file) 2>/dev/null; then
  15028. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15029. as_ln_s='ln -s'
  15030. # ... but there are two gotchas:
  15031. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15032. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15033. # In both cases, we have to default to `cp -p'.
  15034. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15035. as_ln_s='cp -p'
  15036. elif ln conf$$.file conf$$ 2>/dev/null; then
  15037. as_ln_s=ln
  15038. else
  15039. as_ln_s='cp -p'
  15040. fi
  15041. else
  15042. as_ln_s='cp -p'
  15043. fi
  15044. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15045. rmdir conf$$.dir 2>/dev/null
  15046. # as_fn_mkdir_p
  15047. # -------------
  15048. # Create "$as_dir" as a directory, including parents if necessary.
  15049. as_fn_mkdir_p ()
  15050. {
  15051. case $as_dir in #(
  15052. -*) as_dir=./$as_dir;;
  15053. esac
  15054. test -d "$as_dir" || eval $as_mkdir_p || {
  15055. as_dirs=
  15056. while :; do
  15057. case $as_dir in #(
  15058. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15059. *) as_qdir=$as_dir;;
  15060. esac
  15061. as_dirs="'$as_qdir' $as_dirs"
  15062. as_dir=`$as_dirname -- "$as_dir" ||
  15063. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15064. X"$as_dir" : 'X\(//\)[^/]' \| \
  15065. X"$as_dir" : 'X\(//\)$' \| \
  15066. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15067. $as_echo X"$as_dir" |
  15068. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15069. s//\1/
  15070. q
  15071. }
  15072. /^X\(\/\/\)[^/].*/{
  15073. s//\1/
  15074. q
  15075. }
  15076. /^X\(\/\/\)$/{
  15077. s//\1/
  15078. q
  15079. }
  15080. /^X\(\/\).*/{
  15081. s//\1/
  15082. q
  15083. }
  15084. s/.*/./; q'`
  15085. test -d "$as_dir" && break
  15086. done
  15087. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15088. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15089. } # as_fn_mkdir_p
  15090. if mkdir -p . 2>/dev/null; then
  15091. as_mkdir_p='mkdir -p "$as_dir"'
  15092. else
  15093. test -d ./-p && rmdir ./-p
  15094. as_mkdir_p=false
  15095. fi
  15096. if test -x / >/dev/null 2>&1; then
  15097. as_test_x='test -x'
  15098. else
  15099. if ls -dL / >/dev/null 2>&1; then
  15100. as_ls_L_option=L
  15101. else
  15102. as_ls_L_option=
  15103. fi
  15104. as_test_x='
  15105. eval sh -c '\''
  15106. if test -d "$1"; then
  15107. test -d "$1/.";
  15108. else
  15109. case $1 in #(
  15110. -*)set "./$1";;
  15111. esac;
  15112. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15113. ???[sx]*):;;*)false;;esac;fi
  15114. '\'' sh
  15115. '
  15116. fi
  15117. as_executable_p=$as_test_x
  15118. # Sed expression to map a string onto a valid CPP name.
  15119. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15120. # Sed expression to map a string onto a valid variable name.
  15121. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15122. exec 6>&1
  15123. ## ----------------------------------- ##
  15124. ## Main body of $CONFIG_STATUS script. ##
  15125. ## ----------------------------------- ##
  15126. _ASEOF
  15127. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15128. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15129. # Save the log message, to keep $0 and so on meaningful, and to
  15130. # report actual input values of CONFIG_FILES etc. instead of their
  15131. # values after options handling.
  15132. ac_log="
  15133. This file was extended by klish $as_me 1.5.3, which was
  15134. generated by GNU Autoconf 2.68. Invocation command line was
  15135. CONFIG_FILES = $CONFIG_FILES
  15136. CONFIG_HEADERS = $CONFIG_HEADERS
  15137. CONFIG_LINKS = $CONFIG_LINKS
  15138. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15139. $ $0 $@
  15140. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15141. "
  15142. _ACEOF
  15143. case $ac_config_files in *"
  15144. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15145. esac
  15146. case $ac_config_headers in *"
  15147. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15148. esac
  15149. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15150. # Files that config.status was made for.
  15151. config_files="$ac_config_files"
  15152. config_headers="$ac_config_headers"
  15153. config_commands="$ac_config_commands"
  15154. _ACEOF
  15155. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15156. ac_cs_usage="\
  15157. \`$as_me' instantiates files and other configuration actions
  15158. from templates according to the current configuration. Unless the files
  15159. and actions are specified as TAGs, all are instantiated by default.
  15160. Usage: $0 [OPTION]... [TAG]...
  15161. -h, --help print this help, then exit
  15162. -V, --version print version number and configuration settings, then exit
  15163. --config print configuration, then exit
  15164. -q, --quiet, --silent
  15165. do not print progress messages
  15166. -d, --debug don't remove temporary files
  15167. --recheck update $as_me by reconfiguring in the same conditions
  15168. --file=FILE[:TEMPLATE]
  15169. instantiate the configuration file FILE
  15170. --header=FILE[:TEMPLATE]
  15171. instantiate the configuration header FILE
  15172. Configuration files:
  15173. $config_files
  15174. Configuration headers:
  15175. $config_headers
  15176. Configuration commands:
  15177. $config_commands
  15178. Report bugs to <serj.kalichev at gmail dot com>."
  15179. _ACEOF
  15180. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15181. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15182. ac_cs_version="\\
  15183. klish config.status 1.5.3
  15184. configured by $0, generated by GNU Autoconf 2.68,
  15185. with options \\"\$ac_cs_config\\"
  15186. Copyright (C) 2010 Free Software Foundation, Inc.
  15187. This config.status script is free software; the Free Software Foundation
  15188. gives unlimited permission to copy, distribute and modify it."
  15189. ac_pwd='$ac_pwd'
  15190. srcdir='$srcdir'
  15191. INSTALL='$INSTALL'
  15192. MKDIR_P='$MKDIR_P'
  15193. AWK='$AWK'
  15194. test -n "\$AWK" || AWK=awk
  15195. _ACEOF
  15196. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15197. # The default lists apply if the user does not specify any file.
  15198. ac_need_defaults=:
  15199. while test $# != 0
  15200. do
  15201. case $1 in
  15202. --*=?*)
  15203. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15204. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15205. ac_shift=:
  15206. ;;
  15207. --*=)
  15208. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15209. ac_optarg=
  15210. ac_shift=:
  15211. ;;
  15212. *)
  15213. ac_option=$1
  15214. ac_optarg=$2
  15215. ac_shift=shift
  15216. ;;
  15217. esac
  15218. case $ac_option in
  15219. # Handling of the options.
  15220. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15221. ac_cs_recheck=: ;;
  15222. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15223. $as_echo "$ac_cs_version"; exit ;;
  15224. --config | --confi | --conf | --con | --co | --c )
  15225. $as_echo "$ac_cs_config"; exit ;;
  15226. --debug | --debu | --deb | --de | --d | -d )
  15227. debug=: ;;
  15228. --file | --fil | --fi | --f )
  15229. $ac_shift
  15230. case $ac_optarg in
  15231. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15232. '') as_fn_error $? "missing file argument" ;;
  15233. esac
  15234. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15235. ac_need_defaults=false;;
  15236. --header | --heade | --head | --hea )
  15237. $ac_shift
  15238. case $ac_optarg in
  15239. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15240. esac
  15241. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15242. ac_need_defaults=false;;
  15243. --he | --h)
  15244. # Conflict between --help and --header
  15245. as_fn_error $? "ambiguous option: \`$1'
  15246. Try \`$0 --help' for more information.";;
  15247. --help | --hel | -h )
  15248. $as_echo "$ac_cs_usage"; exit ;;
  15249. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15250. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15251. ac_cs_silent=: ;;
  15252. # This is an error.
  15253. -*) as_fn_error $? "unrecognized option: \`$1'
  15254. Try \`$0 --help' for more information." ;;
  15255. *) as_fn_append ac_config_targets " $1"
  15256. ac_need_defaults=false ;;
  15257. esac
  15258. shift
  15259. done
  15260. ac_configure_extra_args=
  15261. if $ac_cs_silent; then
  15262. exec 6>/dev/null
  15263. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15264. fi
  15265. _ACEOF
  15266. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15267. if \$ac_cs_recheck; then
  15268. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15269. shift
  15270. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15271. CONFIG_SHELL='$SHELL'
  15272. export CONFIG_SHELL
  15273. exec "\$@"
  15274. fi
  15275. _ACEOF
  15276. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15277. exec 5>>config.log
  15278. {
  15279. echo
  15280. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15281. ## Running $as_me. ##
  15282. _ASBOX
  15283. $as_echo "$ac_log"
  15284. } >&5
  15285. _ACEOF
  15286. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15287. #
  15288. # INIT-COMMANDS
  15289. #
  15290. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15291. # if CDPATH is set.
  15292. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15293. sed_quote_subst='$sed_quote_subst'
  15294. double_quote_subst='$double_quote_subst'
  15295. delay_variable_subst='$delay_variable_subst'
  15296. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  15297. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15298. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15299. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15300. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15301. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15302. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15303. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15304. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15305. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15306. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15307. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15308. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15309. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15310. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15311. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15312. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15313. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15314. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15315. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15316. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15317. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15318. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15319. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15320. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15321. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15322. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15323. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15324. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15325. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15326. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15327. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15328. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15329. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15330. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15331. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15332. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15333. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15334. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15335. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15336. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15337. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15338. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15339. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15340. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15341. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15342. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15343. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15344. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15345. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15346. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15347. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15348. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15349. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15350. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15351. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15352. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15353. 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"`'
  15354. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15355. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15356. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15357. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15358. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15359. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15360. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15361. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15362. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15363. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15364. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15365. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15366. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15367. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15368. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15369. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15370. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15371. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15372. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15373. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15374. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15375. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15376. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15377. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15378. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15379. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15380. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15381. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15382. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15383. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15384. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15385. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15386. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15387. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15388. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15389. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15390. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15391. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15392. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15393. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15394. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15395. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15396. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15397. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15398. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15399. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15400. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15401. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15402. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15403. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15404. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15405. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15406. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15407. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15408. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15409. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15410. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15411. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15412. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15413. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15414. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15415. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15416. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15417. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15418. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15419. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15420. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15421. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15422. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15423. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15424. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15425. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15426. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15427. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15428. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15429. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15430. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15431. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15432. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15433. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15434. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15435. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15436. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15437. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15438. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15439. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15440. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15441. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15442. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15443. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15444. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15445. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15446. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15447. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15448. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15449. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15450. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15451. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15452. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15453. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15454. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15455. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15456. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15457. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15458. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15459. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15460. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15461. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15462. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15463. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15464. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15465. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15466. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15467. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15468. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15469. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15470. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15471. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15472. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15473. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15474. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15475. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15476. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15477. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15478. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15479. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15480. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15481. LTCC='$LTCC'
  15482. LTCFLAGS='$LTCFLAGS'
  15483. compiler='$compiler_DEFAULT'
  15484. # A function that is used when there is no print builtin or printf.
  15485. func_fallback_echo ()
  15486. {
  15487. eval 'cat <<_LTECHO_EOF
  15488. \$1
  15489. _LTECHO_EOF'
  15490. }
  15491. # Quote evaled strings.
  15492. for var in AS \
  15493. DLLTOOL \
  15494. OBJDUMP \
  15495. SHELL \
  15496. ECHO \
  15497. PATH_SEPARATOR \
  15498. SED \
  15499. GREP \
  15500. EGREP \
  15501. FGREP \
  15502. LD \
  15503. NM \
  15504. LN_S \
  15505. lt_SP2NL \
  15506. lt_NL2SP \
  15507. reload_flag \
  15508. deplibs_check_method \
  15509. file_magic_cmd \
  15510. file_magic_glob \
  15511. want_nocaseglob \
  15512. sharedlib_from_linklib_cmd \
  15513. AR \
  15514. AR_FLAGS \
  15515. archiver_list_spec \
  15516. STRIP \
  15517. RANLIB \
  15518. CC \
  15519. CFLAGS \
  15520. compiler \
  15521. lt_cv_sys_global_symbol_pipe \
  15522. lt_cv_sys_global_symbol_to_cdecl \
  15523. lt_cv_sys_global_symbol_to_c_name_address \
  15524. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15525. nm_file_list_spec \
  15526. lt_prog_compiler_no_builtin_flag \
  15527. lt_prog_compiler_pic \
  15528. lt_prog_compiler_wl \
  15529. lt_prog_compiler_static \
  15530. lt_cv_prog_compiler_c_o \
  15531. need_locks \
  15532. MANIFEST_TOOL \
  15533. DSYMUTIL \
  15534. NMEDIT \
  15535. LIPO \
  15536. OTOOL \
  15537. OTOOL64 \
  15538. shrext_cmds \
  15539. export_dynamic_flag_spec \
  15540. whole_archive_flag_spec \
  15541. compiler_needs_object \
  15542. with_gnu_ld \
  15543. allow_undefined_flag \
  15544. no_undefined_flag \
  15545. hardcode_libdir_flag_spec \
  15546. hardcode_libdir_separator \
  15547. exclude_expsyms \
  15548. include_expsyms \
  15549. file_list_spec \
  15550. variables_saved_for_relink \
  15551. libname_spec \
  15552. library_names_spec \
  15553. soname_spec \
  15554. install_override_mode \
  15555. finish_eval \
  15556. old_striplib \
  15557. striplib \
  15558. compiler_lib_search_dirs \
  15559. predep_objects \
  15560. postdep_objects \
  15561. predeps \
  15562. postdeps \
  15563. compiler_lib_search_path \
  15564. LD_CXX \
  15565. reload_flag_CXX \
  15566. compiler_CXX \
  15567. lt_prog_compiler_no_builtin_flag_CXX \
  15568. lt_prog_compiler_pic_CXX \
  15569. lt_prog_compiler_wl_CXX \
  15570. lt_prog_compiler_static_CXX \
  15571. lt_cv_prog_compiler_c_o_CXX \
  15572. export_dynamic_flag_spec_CXX \
  15573. whole_archive_flag_spec_CXX \
  15574. compiler_needs_object_CXX \
  15575. with_gnu_ld_CXX \
  15576. allow_undefined_flag_CXX \
  15577. no_undefined_flag_CXX \
  15578. hardcode_libdir_flag_spec_CXX \
  15579. hardcode_libdir_separator_CXX \
  15580. exclude_expsyms_CXX \
  15581. include_expsyms_CXX \
  15582. file_list_spec_CXX \
  15583. compiler_lib_search_dirs_CXX \
  15584. predep_objects_CXX \
  15585. postdep_objects_CXX \
  15586. predeps_CXX \
  15587. postdeps_CXX \
  15588. compiler_lib_search_path_CXX; do
  15589. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15590. *[\\\\\\\`\\"\\\$]*)
  15591. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15592. ;;
  15593. *)
  15594. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15595. ;;
  15596. esac
  15597. done
  15598. # Double-quote double-evaled strings.
  15599. for var in reload_cmds \
  15600. old_postinstall_cmds \
  15601. old_postuninstall_cmds \
  15602. old_archive_cmds \
  15603. extract_expsyms_cmds \
  15604. old_archive_from_new_cmds \
  15605. old_archive_from_expsyms_cmds \
  15606. archive_cmds \
  15607. archive_expsym_cmds \
  15608. module_cmds \
  15609. module_expsym_cmds \
  15610. export_symbols_cmds \
  15611. prelink_cmds \
  15612. postlink_cmds \
  15613. postinstall_cmds \
  15614. postuninstall_cmds \
  15615. finish_cmds \
  15616. sys_lib_search_path_spec \
  15617. sys_lib_dlsearch_path_spec \
  15618. reload_cmds_CXX \
  15619. old_archive_cmds_CXX \
  15620. old_archive_from_new_cmds_CXX \
  15621. old_archive_from_expsyms_cmds_CXX \
  15622. archive_cmds_CXX \
  15623. archive_expsym_cmds_CXX \
  15624. module_cmds_CXX \
  15625. module_expsym_cmds_CXX \
  15626. export_symbols_cmds_CXX \
  15627. prelink_cmds_CXX \
  15628. postlink_cmds_CXX; do
  15629. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15630. *[\\\\\\\`\\"\\\$]*)
  15631. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15632. ;;
  15633. *)
  15634. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15635. ;;
  15636. esac
  15637. done
  15638. ac_aux_dir='$ac_aux_dir'
  15639. xsi_shell='$xsi_shell'
  15640. lt_shell_append='$lt_shell_append'
  15641. # See if we are running on zsh, and set the options which allow our
  15642. # commands through without removal of \ escapes INIT.
  15643. if test -n "\${ZSH_VERSION+set}" ; then
  15644. setopt NO_GLOB_SUBST
  15645. fi
  15646. PACKAGE='$PACKAGE'
  15647. VERSION='$VERSION'
  15648. TIMESTAMP='$TIMESTAMP'
  15649. RM='$RM'
  15650. ofile='$ofile'
  15651. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15652. _ACEOF
  15653. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15654. # Handling of arguments.
  15655. for ac_config_target in $ac_config_targets
  15656. do
  15657. case $ac_config_target in
  15658. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15659. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15660. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15661. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15662. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15663. esac
  15664. done
  15665. # If the user did not use the arguments to specify the items to instantiate,
  15666. # then the envvar interface is used. Set only those that are not.
  15667. # We use the long form for the default assignment because of an extremely
  15668. # bizarre bug on SunOS 4.1.3.
  15669. if $ac_need_defaults; then
  15670. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15671. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15672. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15673. fi
  15674. # Have a temporary directory for convenience. Make it in the build tree
  15675. # simply because there is no reason against having it here, and in addition,
  15676. # creating and moving files from /tmp can sometimes cause problems.
  15677. # Hook for its removal unless debugging.
  15678. # Note that there is a small window in which the directory will not be cleaned:
  15679. # after its creation but before its name has been assigned to `$tmp'.
  15680. $debug ||
  15681. {
  15682. tmp= ac_tmp=
  15683. trap 'exit_status=$?
  15684. : "${ac_tmp:=$tmp}"
  15685. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15686. ' 0
  15687. trap 'as_fn_exit 1' 1 2 13 15
  15688. }
  15689. # Create a (secure) tmp directory for tmp files.
  15690. {
  15691. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15692. test -d "$tmp"
  15693. } ||
  15694. {
  15695. tmp=./conf$$-$RANDOM
  15696. (umask 077 && mkdir "$tmp")
  15697. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15698. ac_tmp=$tmp
  15699. # Set up the scripts for CONFIG_FILES section.
  15700. # No need to generate them if there are no CONFIG_FILES.
  15701. # This happens for instance with `./config.status config.h'.
  15702. if test -n "$CONFIG_FILES"; then
  15703. ac_cr=`echo X | tr X '\015'`
  15704. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15705. # But we know of no other shell where ac_cr would be empty at this
  15706. # point, so we can use a bashism as a fallback.
  15707. if test "x$ac_cr" = x; then
  15708. eval ac_cr=\$\'\\r\'
  15709. fi
  15710. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15711. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15712. ac_cs_awk_cr='\\r'
  15713. else
  15714. ac_cs_awk_cr=$ac_cr
  15715. fi
  15716. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15717. _ACEOF
  15718. {
  15719. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15720. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15721. echo "_ACEOF"
  15722. } >conf$$subs.sh ||
  15723. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15724. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15725. ac_delim='%!_!# '
  15726. for ac_last_try in false false false false false :; do
  15727. . ./conf$$subs.sh ||
  15728. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15729. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15730. if test $ac_delim_n = $ac_delim_num; then
  15731. break
  15732. elif $ac_last_try; then
  15733. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15734. else
  15735. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15736. fi
  15737. done
  15738. rm -f conf$$subs.sh
  15739. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15740. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15741. _ACEOF
  15742. sed -n '
  15743. h
  15744. s/^/S["/; s/!.*/"]=/
  15745. p
  15746. g
  15747. s/^[^!]*!//
  15748. :repl
  15749. t repl
  15750. s/'"$ac_delim"'$//
  15751. t delim
  15752. :nl
  15753. h
  15754. s/\(.\{148\}\)..*/\1/
  15755. t more1
  15756. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15757. p
  15758. n
  15759. b repl
  15760. :more1
  15761. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15762. p
  15763. g
  15764. s/.\{148\}//
  15765. t nl
  15766. :delim
  15767. h
  15768. s/\(.\{148\}\)..*/\1/
  15769. t more2
  15770. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15771. p
  15772. b
  15773. :more2
  15774. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15775. p
  15776. g
  15777. s/.\{148\}//
  15778. t delim
  15779. ' <conf$$subs.awk | sed '
  15780. /^[^""]/{
  15781. N
  15782. s/\n//
  15783. }
  15784. ' >>$CONFIG_STATUS || ac_write_fail=1
  15785. rm -f conf$$subs.awk
  15786. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15787. _ACAWK
  15788. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15789. for (key in S) S_is_set[key] = 1
  15790. FS = ""
  15791. }
  15792. {
  15793. line = $ 0
  15794. nfields = split(line, field, "@")
  15795. substed = 0
  15796. len = length(field[1])
  15797. for (i = 2; i < nfields; i++) {
  15798. key = field[i]
  15799. keylen = length(key)
  15800. if (S_is_set[key]) {
  15801. value = S[key]
  15802. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15803. len += length(value) + length(field[++i])
  15804. substed = 1
  15805. } else
  15806. len += 1 + keylen
  15807. }
  15808. print line
  15809. }
  15810. _ACAWK
  15811. _ACEOF
  15812. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15813. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15814. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15815. else
  15816. cat
  15817. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15818. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15819. _ACEOF
  15820. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15821. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15822. # trailing colons and then remove the whole line if VPATH becomes empty
  15823. # (actually we leave an empty line to preserve line numbers).
  15824. if test "x$srcdir" = x.; then
  15825. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15826. h
  15827. s///
  15828. s/^/:/
  15829. s/[ ]*$/:/
  15830. s/:\$(srcdir):/:/g
  15831. s/:\${srcdir}:/:/g
  15832. s/:@srcdir@:/:/g
  15833. s/^:*//
  15834. s/:*$//
  15835. x
  15836. s/\(=[ ]*\).*/\1/
  15837. G
  15838. s/\n//
  15839. s/^[^=]*=[ ]*$//
  15840. }'
  15841. fi
  15842. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15843. fi # test -n "$CONFIG_FILES"
  15844. # Set up the scripts for CONFIG_HEADERS section.
  15845. # No need to generate them if there are no CONFIG_HEADERS.
  15846. # This happens for instance with `./config.status Makefile'.
  15847. if test -n "$CONFIG_HEADERS"; then
  15848. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15849. BEGIN {
  15850. _ACEOF
  15851. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15852. # here-document in config.status, that substitutes the proper values into
  15853. # config.h.in to produce config.h.
  15854. # Create a delimiter string that does not exist in confdefs.h, to ease
  15855. # handling of long lines.
  15856. ac_delim='%!_!# '
  15857. for ac_last_try in false false :; do
  15858. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15859. if test -z "$ac_tt"; then
  15860. break
  15861. elif $ac_last_try; then
  15862. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15863. else
  15864. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15865. fi
  15866. done
  15867. # For the awk script, D is an array of macro values keyed by name,
  15868. # likewise P contains macro parameters if any. Preserve backslash
  15869. # newline sequences.
  15870. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15871. sed -n '
  15872. s/.\{148\}/&'"$ac_delim"'/g
  15873. t rset
  15874. :rset
  15875. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15876. t def
  15877. d
  15878. :def
  15879. s/\\$//
  15880. t bsnl
  15881. s/["\\]/\\&/g
  15882. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15883. D["\1"]=" \3"/p
  15884. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15885. d
  15886. :bsnl
  15887. s/["\\]/\\&/g
  15888. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15889. D["\1"]=" \3\\\\\\n"\\/p
  15890. t cont
  15891. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15892. t cont
  15893. d
  15894. :cont
  15895. n
  15896. s/.\{148\}/&'"$ac_delim"'/g
  15897. t clear
  15898. :clear
  15899. s/\\$//
  15900. t bsnlc
  15901. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15902. d
  15903. :bsnlc
  15904. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15905. b cont
  15906. ' <confdefs.h | sed '
  15907. s/'"$ac_delim"'/"\\\
  15908. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15909. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15910. for (key in D) D_is_set[key] = 1
  15911. FS = ""
  15912. }
  15913. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15914. line = \$ 0
  15915. split(line, arg, " ")
  15916. if (arg[1] == "#") {
  15917. defundef = arg[2]
  15918. mac1 = arg[3]
  15919. } else {
  15920. defundef = substr(arg[1], 2)
  15921. mac1 = arg[2]
  15922. }
  15923. split(mac1, mac2, "(") #)
  15924. macro = mac2[1]
  15925. prefix = substr(line, 1, index(line, defundef) - 1)
  15926. if (D_is_set[macro]) {
  15927. # Preserve the white space surrounding the "#".
  15928. print prefix "define", macro P[macro] D[macro]
  15929. next
  15930. } else {
  15931. # Replace #undef with comments. This is necessary, for example,
  15932. # in the case of _POSIX_SOURCE, which is predefined and required
  15933. # on some systems where configure will not decide to define it.
  15934. if (defundef == "undef") {
  15935. print "/*", prefix defundef, macro, "*/"
  15936. next
  15937. }
  15938. }
  15939. }
  15940. { print }
  15941. _ACAWK
  15942. _ACEOF
  15943. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15944. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15945. fi # test -n "$CONFIG_HEADERS"
  15946. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15947. shift
  15948. for ac_tag
  15949. do
  15950. case $ac_tag in
  15951. :[FHLC]) ac_mode=$ac_tag; continue;;
  15952. esac
  15953. case $ac_mode$ac_tag in
  15954. :[FHL]*:*);;
  15955. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15956. :[FH]-) ac_tag=-:-;;
  15957. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15958. esac
  15959. ac_save_IFS=$IFS
  15960. IFS=:
  15961. set x $ac_tag
  15962. IFS=$ac_save_IFS
  15963. shift
  15964. ac_file=$1
  15965. shift
  15966. case $ac_mode in
  15967. :L) ac_source=$1;;
  15968. :[FH])
  15969. ac_file_inputs=
  15970. for ac_f
  15971. do
  15972. case $ac_f in
  15973. -) ac_f="$ac_tmp/stdin";;
  15974. *) # Look for the file first in the build tree, then in the source tree
  15975. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15976. # because $ac_f cannot contain `:'.
  15977. test -f "$ac_f" ||
  15978. case $ac_f in
  15979. [\\/$]*) false;;
  15980. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15981. esac ||
  15982. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15983. esac
  15984. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15985. as_fn_append ac_file_inputs " '$ac_f'"
  15986. done
  15987. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15988. # use $as_me), people would be surprised to read:
  15989. # /* config.h. Generated by config.status. */
  15990. configure_input='Generated from '`
  15991. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15992. `' by configure.'
  15993. if test x"$ac_file" != x-; then
  15994. configure_input="$ac_file. $configure_input"
  15995. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15996. $as_echo "$as_me: creating $ac_file" >&6;}
  15997. fi
  15998. # Neutralize special characters interpreted by sed in replacement strings.
  15999. case $configure_input in #(
  16000. *\&* | *\|* | *\\* )
  16001. ac_sed_conf_input=`$as_echo "$configure_input" |
  16002. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16003. *) ac_sed_conf_input=$configure_input;;
  16004. esac
  16005. case $ac_tag in
  16006. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16007. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16008. esac
  16009. ;;
  16010. esac
  16011. ac_dir=`$as_dirname -- "$ac_file" ||
  16012. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16013. X"$ac_file" : 'X\(//\)[^/]' \| \
  16014. X"$ac_file" : 'X\(//\)$' \| \
  16015. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16016. $as_echo X"$ac_file" |
  16017. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16018. s//\1/
  16019. q
  16020. }
  16021. /^X\(\/\/\)[^/].*/{
  16022. s//\1/
  16023. q
  16024. }
  16025. /^X\(\/\/\)$/{
  16026. s//\1/
  16027. q
  16028. }
  16029. /^X\(\/\).*/{
  16030. s//\1/
  16031. q
  16032. }
  16033. s/.*/./; q'`
  16034. as_dir="$ac_dir"; as_fn_mkdir_p
  16035. ac_builddir=.
  16036. case "$ac_dir" in
  16037. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16038. *)
  16039. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16040. # A ".." for each directory in $ac_dir_suffix.
  16041. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16042. case $ac_top_builddir_sub in
  16043. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16044. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16045. esac ;;
  16046. esac
  16047. ac_abs_top_builddir=$ac_pwd
  16048. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16049. # for backward compatibility:
  16050. ac_top_builddir=$ac_top_build_prefix
  16051. case $srcdir in
  16052. .) # We are building in place.
  16053. ac_srcdir=.
  16054. ac_top_srcdir=$ac_top_builddir_sub
  16055. ac_abs_top_srcdir=$ac_pwd ;;
  16056. [\\/]* | ?:[\\/]* ) # Absolute name.
  16057. ac_srcdir=$srcdir$ac_dir_suffix;
  16058. ac_top_srcdir=$srcdir
  16059. ac_abs_top_srcdir=$srcdir ;;
  16060. *) # Relative name.
  16061. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16062. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16063. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16064. esac
  16065. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16066. case $ac_mode in
  16067. :F)
  16068. #
  16069. # CONFIG_FILE
  16070. #
  16071. case $INSTALL in
  16072. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16073. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16074. esac
  16075. ac_MKDIR_P=$MKDIR_P
  16076. case $MKDIR_P in
  16077. [\\/$]* | ?:[\\/]* ) ;;
  16078. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16079. esac
  16080. _ACEOF
  16081. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16082. # If the template does not know about datarootdir, expand it.
  16083. # FIXME: This hack should be removed a few years after 2.60.
  16084. ac_datarootdir_hack=; ac_datarootdir_seen=
  16085. ac_sed_dataroot='
  16086. /datarootdir/ {
  16087. p
  16088. q
  16089. }
  16090. /@datadir@/p
  16091. /@docdir@/p
  16092. /@infodir@/p
  16093. /@localedir@/p
  16094. /@mandir@/p'
  16095. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16096. *datarootdir*) ac_datarootdir_seen=yes;;
  16097. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16099. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16100. _ACEOF
  16101. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16102. ac_datarootdir_hack='
  16103. s&@datadir@&$datadir&g
  16104. s&@docdir@&$docdir&g
  16105. s&@infodir@&$infodir&g
  16106. s&@localedir@&$localedir&g
  16107. s&@mandir@&$mandir&g
  16108. s&\\\${datarootdir}&$datarootdir&g' ;;
  16109. esac
  16110. _ACEOF
  16111. # Neutralize VPATH when `$srcdir' = `.'.
  16112. # Shell code in configure.ac might set extrasub.
  16113. # FIXME: do we really want to maintain this feature?
  16114. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16115. ac_sed_extra="$ac_vpsub
  16116. $extrasub
  16117. _ACEOF
  16118. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16119. :t
  16120. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16121. s|@configure_input@|$ac_sed_conf_input|;t t
  16122. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16123. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16124. s&@srcdir@&$ac_srcdir&;t t
  16125. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16126. s&@top_srcdir@&$ac_top_srcdir&;t t
  16127. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16128. s&@builddir@&$ac_builddir&;t t
  16129. s&@abs_builddir@&$ac_abs_builddir&;t t
  16130. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16131. s&@INSTALL@&$ac_INSTALL&;t t
  16132. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16133. $ac_datarootdir_hack
  16134. "
  16135. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16136. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16137. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16138. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16139. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16140. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16142. which seems to be undefined. Please make sure it is defined" >&5
  16143. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16144. which seems to be undefined. Please make sure it is defined" >&2;}
  16145. rm -f "$ac_tmp/stdin"
  16146. case $ac_file in
  16147. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16148. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16149. esac \
  16150. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16151. ;;
  16152. :H)
  16153. #
  16154. # CONFIG_HEADER
  16155. #
  16156. if test x"$ac_file" != x-; then
  16157. {
  16158. $as_echo "/* $configure_input */" \
  16159. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16160. } >"$ac_tmp/config.h" \
  16161. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16162. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16163. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16164. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16165. else
  16166. rm -f "$ac_file"
  16167. mv "$ac_tmp/config.h" "$ac_file" \
  16168. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16169. fi
  16170. else
  16171. $as_echo "/* $configure_input */" \
  16172. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16173. || as_fn_error $? "could not create -" "$LINENO" 5
  16174. fi
  16175. # Compute "$ac_file"'s index in $config_headers.
  16176. _am_arg="$ac_file"
  16177. _am_stamp_count=1
  16178. for _am_header in $config_headers :; do
  16179. case $_am_header in
  16180. $_am_arg | $_am_arg:* )
  16181. break ;;
  16182. * )
  16183. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16184. esac
  16185. done
  16186. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16187. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16188. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16189. X"$_am_arg" : 'X\(//\)$' \| \
  16190. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16191. $as_echo X"$_am_arg" |
  16192. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16193. s//\1/
  16194. q
  16195. }
  16196. /^X\(\/\/\)[^/].*/{
  16197. s//\1/
  16198. q
  16199. }
  16200. /^X\(\/\/\)$/{
  16201. s//\1/
  16202. q
  16203. }
  16204. /^X\(\/\).*/{
  16205. s//\1/
  16206. q
  16207. }
  16208. s/.*/./; q'`/stamp-h$_am_stamp_count
  16209. ;;
  16210. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16211. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16212. ;;
  16213. esac
  16214. case $ac_file$ac_mode in
  16215. "libtool":C)
  16216. # See if we are running on zsh, and set the options which allow our
  16217. # commands through without removal of \ escapes.
  16218. if test -n "${ZSH_VERSION+set}" ; then
  16219. setopt NO_GLOB_SUBST
  16220. fi
  16221. cfgfile="${ofile}T"
  16222. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16223. $RM "$cfgfile"
  16224. cat <<_LT_EOF >> "$cfgfile"
  16225. #! $SHELL
  16226. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16227. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16228. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16229. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16230. #
  16231. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16232. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  16233. # Foundation, Inc.
  16234. # Written by Gordon Matzigkeit, 1996
  16235. #
  16236. # This file is part of GNU Libtool.
  16237. #
  16238. # GNU Libtool is free software; you can redistribute it and/or
  16239. # modify it under the terms of the GNU General Public License as
  16240. # published by the Free Software Foundation; either version 2 of
  16241. # the License, or (at your option) any later version.
  16242. #
  16243. # As a special exception to the GNU General Public License,
  16244. # if you distribute this file as part of a program or library that
  16245. # is built using GNU Libtool, you may include this file under the
  16246. # same distribution terms that you use for the rest of that program.
  16247. #
  16248. # GNU Libtool is distributed in the hope that it will be useful,
  16249. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16250. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16251. # GNU General Public License for more details.
  16252. #
  16253. # You should have received a copy of the GNU General Public License
  16254. # along with GNU Libtool; see the file COPYING. If not, a copy
  16255. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16256. # obtained by writing to the Free Software Foundation, Inc.,
  16257. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16258. # The names of the tagged configurations supported by this script.
  16259. available_tags="CXX "
  16260. # ### BEGIN LIBTOOL CONFIG
  16261. # Assembler program.
  16262. AS=$lt_AS
  16263. # DLL creation program.
  16264. DLLTOOL=$lt_DLLTOOL
  16265. # Object dumper program.
  16266. OBJDUMP=$lt_OBJDUMP
  16267. # Which release of libtool.m4 was used?
  16268. macro_version=$macro_version
  16269. macro_revision=$macro_revision
  16270. # Whether or not to build shared libraries.
  16271. build_libtool_libs=$enable_shared
  16272. # Whether or not to build static libraries.
  16273. build_old_libs=$enable_static
  16274. # What type of objects to build.
  16275. pic_mode=$pic_mode
  16276. # Whether or not to optimize for fast installation.
  16277. fast_install=$enable_fast_install
  16278. # Shell to use when invoking shell scripts.
  16279. SHELL=$lt_SHELL
  16280. # An echo program that protects backslashes.
  16281. ECHO=$lt_ECHO
  16282. # The PATH separator for the build system.
  16283. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16284. # The host system.
  16285. host_alias=$host_alias
  16286. host=$host
  16287. host_os=$host_os
  16288. # The build system.
  16289. build_alias=$build_alias
  16290. build=$build
  16291. build_os=$build_os
  16292. # A sed program that does not truncate output.
  16293. SED=$lt_SED
  16294. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16295. Xsed="\$SED -e 1s/^X//"
  16296. # A grep program that handles long lines.
  16297. GREP=$lt_GREP
  16298. # An ERE matcher.
  16299. EGREP=$lt_EGREP
  16300. # A literal string matcher.
  16301. FGREP=$lt_FGREP
  16302. # A BSD- or MS-compatible name lister.
  16303. NM=$lt_NM
  16304. # Whether we need soft or hard links.
  16305. LN_S=$lt_LN_S
  16306. # What is the maximum length of a command?
  16307. max_cmd_len=$max_cmd_len
  16308. # Object file suffix (normally "o").
  16309. objext=$ac_objext
  16310. # Executable file suffix (normally "").
  16311. exeext=$exeext
  16312. # whether the shell understands "unset".
  16313. lt_unset=$lt_unset
  16314. # turn spaces into newlines.
  16315. SP2NL=$lt_lt_SP2NL
  16316. # turn newlines into spaces.
  16317. NL2SP=$lt_lt_NL2SP
  16318. # convert \$build file names to \$host format.
  16319. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16320. # convert \$build files to toolchain format.
  16321. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16322. # Method to check whether dependent libraries are shared objects.
  16323. deplibs_check_method=$lt_deplibs_check_method
  16324. # Command to use when deplibs_check_method = "file_magic".
  16325. file_magic_cmd=$lt_file_magic_cmd
  16326. # How to find potential files when deplibs_check_method = "file_magic".
  16327. file_magic_glob=$lt_file_magic_glob
  16328. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16329. want_nocaseglob=$lt_want_nocaseglob
  16330. # Command to associate shared and link libraries.
  16331. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16332. # The archiver.
  16333. AR=$lt_AR
  16334. # Flags to create an archive.
  16335. AR_FLAGS=$lt_AR_FLAGS
  16336. # How to feed a file listing to the archiver.
  16337. archiver_list_spec=$lt_archiver_list_spec
  16338. # A symbol stripping program.
  16339. STRIP=$lt_STRIP
  16340. # Commands used to install an old-style archive.
  16341. RANLIB=$lt_RANLIB
  16342. old_postinstall_cmds=$lt_old_postinstall_cmds
  16343. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16344. # Whether to use a lock for old archive extraction.
  16345. lock_old_archive_extraction=$lock_old_archive_extraction
  16346. # A C compiler.
  16347. LTCC=$lt_CC
  16348. # LTCC compiler flags.
  16349. LTCFLAGS=$lt_CFLAGS
  16350. # Take the output of nm and produce a listing of raw symbols and C names.
  16351. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16352. # Transform the output of nm in a proper C declaration.
  16353. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16354. # Transform the output of nm in a C name address pair.
  16355. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16356. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16357. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16358. # Specify filename containing input files for \$NM.
  16359. nm_file_list_spec=$lt_nm_file_list_spec
  16360. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16361. lt_sysroot=$lt_sysroot
  16362. # The name of the directory that contains temporary libtool files.
  16363. objdir=$objdir
  16364. # Used to examine libraries when file_magic_cmd begins with "file".
  16365. MAGIC_CMD=$MAGIC_CMD
  16366. # Must we lock files when doing compilation?
  16367. need_locks=$lt_need_locks
  16368. # Manifest tool.
  16369. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16370. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16371. DSYMUTIL=$lt_DSYMUTIL
  16372. # Tool to change global to local symbols on Mac OS X.
  16373. NMEDIT=$lt_NMEDIT
  16374. # Tool to manipulate fat objects and archives on Mac OS X.
  16375. LIPO=$lt_LIPO
  16376. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16377. OTOOL=$lt_OTOOL
  16378. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16379. OTOOL64=$lt_OTOOL64
  16380. # Old archive suffix (normally "a").
  16381. libext=$libext
  16382. # Shared library suffix (normally ".so").
  16383. shrext_cmds=$lt_shrext_cmds
  16384. # The commands to extract the exported symbol list from a shared archive.
  16385. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16386. # Variables whose values should be saved in libtool wrapper scripts and
  16387. # restored at link time.
  16388. variables_saved_for_relink=$lt_variables_saved_for_relink
  16389. # Do we need the "lib" prefix for modules?
  16390. need_lib_prefix=$need_lib_prefix
  16391. # Do we need a version for libraries?
  16392. need_version=$need_version
  16393. # Library versioning type.
  16394. version_type=$version_type
  16395. # Shared library runtime path variable.
  16396. runpath_var=$runpath_var
  16397. # Shared library path variable.
  16398. shlibpath_var=$shlibpath_var
  16399. # Is shlibpath searched before the hard-coded library search path?
  16400. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16401. # Format of library name prefix.
  16402. libname_spec=$lt_libname_spec
  16403. # List of archive names. First name is the real one, the rest are links.
  16404. # The last name is the one that the linker finds with -lNAME
  16405. library_names_spec=$lt_library_names_spec
  16406. # The coded name of the library, if different from the real name.
  16407. soname_spec=$lt_soname_spec
  16408. # Permission mode override for installation of shared libraries.
  16409. install_override_mode=$lt_install_override_mode
  16410. # Command to use after installation of a shared archive.
  16411. postinstall_cmds=$lt_postinstall_cmds
  16412. # Command to use after uninstallation of a shared archive.
  16413. postuninstall_cmds=$lt_postuninstall_cmds
  16414. # Commands used to finish a libtool library installation in a directory.
  16415. finish_cmds=$lt_finish_cmds
  16416. # As "finish_cmds", except a single script fragment to be evaled but
  16417. # not shown.
  16418. finish_eval=$lt_finish_eval
  16419. # Whether we should hardcode library paths into libraries.
  16420. hardcode_into_libs=$hardcode_into_libs
  16421. # Compile-time system search path for libraries.
  16422. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16423. # Run-time system search path for libraries.
  16424. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16425. # Whether dlopen is supported.
  16426. dlopen_support=$enable_dlopen
  16427. # Whether dlopen of programs is supported.
  16428. dlopen_self=$enable_dlopen_self
  16429. # Whether dlopen of statically linked programs is supported.
  16430. dlopen_self_static=$enable_dlopen_self_static
  16431. # Commands to strip libraries.
  16432. old_striplib=$lt_old_striplib
  16433. striplib=$lt_striplib
  16434. # The linker used to build libraries.
  16435. LD=$lt_LD
  16436. # How to create reloadable object files.
  16437. reload_flag=$lt_reload_flag
  16438. reload_cmds=$lt_reload_cmds
  16439. # Commands used to build an old-style archive.
  16440. old_archive_cmds=$lt_old_archive_cmds
  16441. # A language specific compiler.
  16442. CC=$lt_compiler
  16443. # Is the compiler the GNU compiler?
  16444. with_gcc=$GCC
  16445. # Compiler flag to turn off builtin functions.
  16446. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16447. # Additional compiler flags for building library objects.
  16448. pic_flag=$lt_lt_prog_compiler_pic
  16449. # How to pass a linker flag through the compiler.
  16450. wl=$lt_lt_prog_compiler_wl
  16451. # Compiler flag to prevent dynamic linking.
  16452. link_static_flag=$lt_lt_prog_compiler_static
  16453. # Does compiler simultaneously support -c and -o options?
  16454. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16455. # Whether or not to add -lc for building shared libraries.
  16456. build_libtool_need_lc=$archive_cmds_need_lc
  16457. # Whether or not to disallow shared libs when runtime libs are static.
  16458. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16459. # Compiler flag to allow reflexive dlopens.
  16460. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16461. # Compiler flag to generate shared objects directly from archives.
  16462. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16463. # Whether the compiler copes with passing no objects directly.
  16464. compiler_needs_object=$lt_compiler_needs_object
  16465. # Create an old-style archive from a shared archive.
  16466. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16467. # Create a temporary old-style archive to link instead of a shared archive.
  16468. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16469. # Commands used to build a shared archive.
  16470. archive_cmds=$lt_archive_cmds
  16471. archive_expsym_cmds=$lt_archive_expsym_cmds
  16472. # Commands used to build a loadable module if different from building
  16473. # a shared archive.
  16474. module_cmds=$lt_module_cmds
  16475. module_expsym_cmds=$lt_module_expsym_cmds
  16476. # Whether we are building with GNU ld or not.
  16477. with_gnu_ld=$lt_with_gnu_ld
  16478. # Flag that allows shared libraries with undefined symbols to be built.
  16479. allow_undefined_flag=$lt_allow_undefined_flag
  16480. # Flag that enforces no undefined symbols.
  16481. no_undefined_flag=$lt_no_undefined_flag
  16482. # Flag to hardcode \$libdir into a binary during linking.
  16483. # This must work even if \$libdir does not exist
  16484. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16485. # Whether we need a single "-rpath" flag with a separated argument.
  16486. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16487. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16488. # DIR into the resulting binary.
  16489. hardcode_direct=$hardcode_direct
  16490. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16491. # DIR into the resulting binary and the resulting library dependency is
  16492. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16493. # library is relocated.
  16494. hardcode_direct_absolute=$hardcode_direct_absolute
  16495. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16496. # into the resulting binary.
  16497. hardcode_minus_L=$hardcode_minus_L
  16498. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16499. # into the resulting binary.
  16500. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16501. # Set to "yes" if building a shared library automatically hardcodes DIR
  16502. # into the library and all subsequent libraries and executables linked
  16503. # against it.
  16504. hardcode_automatic=$hardcode_automatic
  16505. # Set to yes if linker adds runtime paths of dependent libraries
  16506. # to runtime path list.
  16507. inherit_rpath=$inherit_rpath
  16508. # Whether libtool must link a program against all its dependency libraries.
  16509. link_all_deplibs=$link_all_deplibs
  16510. # Set to "yes" if exported symbols are required.
  16511. always_export_symbols=$always_export_symbols
  16512. # The commands to list exported symbols.
  16513. export_symbols_cmds=$lt_export_symbols_cmds
  16514. # Symbols that should not be listed in the preloaded symbols.
  16515. exclude_expsyms=$lt_exclude_expsyms
  16516. # Symbols that must always be exported.
  16517. include_expsyms=$lt_include_expsyms
  16518. # Commands necessary for linking programs (against libraries) with templates.
  16519. prelink_cmds=$lt_prelink_cmds
  16520. # Commands necessary for finishing linking programs.
  16521. postlink_cmds=$lt_postlink_cmds
  16522. # Specify filename containing input files.
  16523. file_list_spec=$lt_file_list_spec
  16524. # How to hardcode a shared library path into an executable.
  16525. hardcode_action=$hardcode_action
  16526. # The directories searched by this compiler when creating a shared library.
  16527. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16528. # Dependencies to place before and after the objects being linked to
  16529. # create a shared library.
  16530. predep_objects=$lt_predep_objects
  16531. postdep_objects=$lt_postdep_objects
  16532. predeps=$lt_predeps
  16533. postdeps=$lt_postdeps
  16534. # The library search path used internally by the compiler when linking
  16535. # a shared library.
  16536. compiler_lib_search_path=$lt_compiler_lib_search_path
  16537. # ### END LIBTOOL CONFIG
  16538. _LT_EOF
  16539. case $host_os in
  16540. aix3*)
  16541. cat <<\_LT_EOF >> "$cfgfile"
  16542. # AIX sometimes has problems with the GCC collect2 program. For some
  16543. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16544. # vanish in a puff of smoke.
  16545. if test "X${COLLECT_NAMES+set}" != Xset; then
  16546. COLLECT_NAMES=
  16547. export COLLECT_NAMES
  16548. fi
  16549. _LT_EOF
  16550. ;;
  16551. esac
  16552. ltmain="$ac_aux_dir/ltmain.sh"
  16553. # We use sed instead of cat because bash on DJGPP gets confused if
  16554. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16555. # text mode, it properly converts lines to CR/LF. This bash problem
  16556. # is reportedly fixed, but why not run on old versions too?
  16557. sed '$q' "$ltmain" >> "$cfgfile" \
  16558. || (rm -f "$cfgfile"; exit 1)
  16559. if test x"$xsi_shell" = xyes; then
  16560. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16561. func_dirname ()\
  16562. {\
  16563. \ case ${1} in\
  16564. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16565. \ * ) func_dirname_result="${3}" ;;\
  16566. \ esac\
  16567. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16568. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16569. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16570. test 0 -eq $? || _lt_function_replace_fail=:
  16571. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16572. func_basename ()\
  16573. {\
  16574. \ func_basename_result="${1##*/}"\
  16575. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16576. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16577. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16578. test 0 -eq $? || _lt_function_replace_fail=:
  16579. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16580. func_dirname_and_basename ()\
  16581. {\
  16582. \ case ${1} in\
  16583. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16584. \ * ) func_dirname_result="${3}" ;;\
  16585. \ esac\
  16586. \ func_basename_result="${1##*/}"\
  16587. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16588. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16589. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16590. test 0 -eq $? || _lt_function_replace_fail=:
  16591. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16592. func_stripname ()\
  16593. {\
  16594. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16595. \ # positional parameters, so assign one to ordinary parameter first.\
  16596. \ func_stripname_result=${3}\
  16597. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16598. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16599. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16600. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16601. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16602. test 0 -eq $? || _lt_function_replace_fail=:
  16603. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16604. func_split_long_opt ()\
  16605. {\
  16606. \ func_split_long_opt_name=${1%%=*}\
  16607. \ func_split_long_opt_arg=${1#*=}\
  16608. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16609. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16610. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16611. test 0 -eq $? || _lt_function_replace_fail=:
  16612. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16613. func_split_short_opt ()\
  16614. {\
  16615. \ func_split_short_opt_arg=${1#??}\
  16616. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16617. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16618. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16619. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16620. test 0 -eq $? || _lt_function_replace_fail=:
  16621. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16622. func_lo2o ()\
  16623. {\
  16624. \ case ${1} in\
  16625. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16626. \ *) func_lo2o_result=${1} ;;\
  16627. \ esac\
  16628. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16629. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16630. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16631. test 0 -eq $? || _lt_function_replace_fail=:
  16632. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16633. func_xform ()\
  16634. {\
  16635. func_xform_result=${1%.*}.lo\
  16636. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16637. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16638. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16639. test 0 -eq $? || _lt_function_replace_fail=:
  16640. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16641. func_arith ()\
  16642. {\
  16643. func_arith_result=$(( $* ))\
  16644. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16645. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16646. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16647. test 0 -eq $? || _lt_function_replace_fail=:
  16648. sed -e '/^func_len ()$/,/^} # func_len /c\
  16649. func_len ()\
  16650. {\
  16651. func_len_result=${#1}\
  16652. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16653. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16654. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16655. test 0 -eq $? || _lt_function_replace_fail=:
  16656. fi
  16657. if test x"$lt_shell_append" = xyes; then
  16658. sed -e '/^func_append ()$/,/^} # func_append /c\
  16659. func_append ()\
  16660. {\
  16661. eval "${1}+=\\${2}"\
  16662. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16663. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16664. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16665. test 0 -eq $? || _lt_function_replace_fail=:
  16666. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16667. func_append_quoted ()\
  16668. {\
  16669. \ func_quote_for_eval "${2}"\
  16670. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16671. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16672. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16673. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16674. test 0 -eq $? || _lt_function_replace_fail=:
  16675. # Save a `func_append' function call where possible by direct use of '+='
  16676. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16677. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16678. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16679. test 0 -eq $? || _lt_function_replace_fail=:
  16680. else
  16681. # Save a `func_append' function call even when '+=' is not available
  16682. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16683. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16684. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16685. test 0 -eq $? || _lt_function_replace_fail=:
  16686. fi
  16687. if test x"$_lt_function_replace_fail" = x":"; then
  16688. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16689. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16690. fi
  16691. mv -f "$cfgfile" "$ofile" ||
  16692. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16693. chmod +x "$ofile"
  16694. cat <<_LT_EOF >> "$ofile"
  16695. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16696. # The linker used to build libraries.
  16697. LD=$lt_LD_CXX
  16698. # How to create reloadable object files.
  16699. reload_flag=$lt_reload_flag_CXX
  16700. reload_cmds=$lt_reload_cmds_CXX
  16701. # Commands used to build an old-style archive.
  16702. old_archive_cmds=$lt_old_archive_cmds_CXX
  16703. # A language specific compiler.
  16704. CC=$lt_compiler_CXX
  16705. # Is the compiler the GNU compiler?
  16706. with_gcc=$GCC_CXX
  16707. # Compiler flag to turn off builtin functions.
  16708. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16709. # Additional compiler flags for building library objects.
  16710. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16711. # How to pass a linker flag through the compiler.
  16712. wl=$lt_lt_prog_compiler_wl_CXX
  16713. # Compiler flag to prevent dynamic linking.
  16714. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16715. # Does compiler simultaneously support -c and -o options?
  16716. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16717. # Whether or not to add -lc for building shared libraries.
  16718. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16719. # Whether or not to disallow shared libs when runtime libs are static.
  16720. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16721. # Compiler flag to allow reflexive dlopens.
  16722. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16723. # Compiler flag to generate shared objects directly from archives.
  16724. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16725. # Whether the compiler copes with passing no objects directly.
  16726. compiler_needs_object=$lt_compiler_needs_object_CXX
  16727. # Create an old-style archive from a shared archive.
  16728. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16729. # Create a temporary old-style archive to link instead of a shared archive.
  16730. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16731. # Commands used to build a shared archive.
  16732. archive_cmds=$lt_archive_cmds_CXX
  16733. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16734. # Commands used to build a loadable module if different from building
  16735. # a shared archive.
  16736. module_cmds=$lt_module_cmds_CXX
  16737. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16738. # Whether we are building with GNU ld or not.
  16739. with_gnu_ld=$lt_with_gnu_ld_CXX
  16740. # Flag that allows shared libraries with undefined symbols to be built.
  16741. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16742. # Flag that enforces no undefined symbols.
  16743. no_undefined_flag=$lt_no_undefined_flag_CXX
  16744. # Flag to hardcode \$libdir into a binary during linking.
  16745. # This must work even if \$libdir does not exist
  16746. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16747. # Whether we need a single "-rpath" flag with a separated argument.
  16748. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16749. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16750. # DIR into the resulting binary.
  16751. hardcode_direct=$hardcode_direct_CXX
  16752. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16753. # DIR into the resulting binary and the resulting library dependency is
  16754. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16755. # library is relocated.
  16756. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16757. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16758. # into the resulting binary.
  16759. hardcode_minus_L=$hardcode_minus_L_CXX
  16760. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16761. # into the resulting binary.
  16762. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16763. # Set to "yes" if building a shared library automatically hardcodes DIR
  16764. # into the library and all subsequent libraries and executables linked
  16765. # against it.
  16766. hardcode_automatic=$hardcode_automatic_CXX
  16767. # Set to yes if linker adds runtime paths of dependent libraries
  16768. # to runtime path list.
  16769. inherit_rpath=$inherit_rpath_CXX
  16770. # Whether libtool must link a program against all its dependency libraries.
  16771. link_all_deplibs=$link_all_deplibs_CXX
  16772. # Set to "yes" if exported symbols are required.
  16773. always_export_symbols=$always_export_symbols_CXX
  16774. # The commands to list exported symbols.
  16775. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16776. # Symbols that should not be listed in the preloaded symbols.
  16777. exclude_expsyms=$lt_exclude_expsyms_CXX
  16778. # Symbols that must always be exported.
  16779. include_expsyms=$lt_include_expsyms_CXX
  16780. # Commands necessary for linking programs (against libraries) with templates.
  16781. prelink_cmds=$lt_prelink_cmds_CXX
  16782. # Commands necessary for finishing linking programs.
  16783. postlink_cmds=$lt_postlink_cmds_CXX
  16784. # Specify filename containing input files.
  16785. file_list_spec=$lt_file_list_spec_CXX
  16786. # How to hardcode a shared library path into an executable.
  16787. hardcode_action=$hardcode_action_CXX
  16788. # The directories searched by this compiler when creating a shared library.
  16789. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16790. # Dependencies to place before and after the objects being linked to
  16791. # create a shared library.
  16792. predep_objects=$lt_predep_objects_CXX
  16793. postdep_objects=$lt_postdep_objects_CXX
  16794. predeps=$lt_predeps_CXX
  16795. postdeps=$lt_postdeps_CXX
  16796. # The library search path used internally by the compiler when linking
  16797. # a shared library.
  16798. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16799. # ### END LIBTOOL TAG CONFIG: CXX
  16800. _LT_EOF
  16801. ;;
  16802. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16803. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16804. # are listed without --file. Let's play safe and only enable the eval
  16805. # if we detect the quoting.
  16806. case $CONFIG_FILES in
  16807. *\'*) eval set x "$CONFIG_FILES" ;;
  16808. *) set x $CONFIG_FILES ;;
  16809. esac
  16810. shift
  16811. for mf
  16812. do
  16813. # Strip MF so we end up with the name of the file.
  16814. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16815. # Check whether this is an Automake generated Makefile or not.
  16816. # We used to match only the files named `Makefile.in', but
  16817. # some people rename them; so instead we look at the file content.
  16818. # Grep'ing the first line is not enough: some people post-process
  16819. # each Makefile.in and add a new line on top of each file to say so.
  16820. # Grep'ing the whole file is not good either: AIX grep has a line
  16821. # limit of 2048, but all sed's we know have understand at least 4000.
  16822. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16823. dirpart=`$as_dirname -- "$mf" ||
  16824. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16825. X"$mf" : 'X\(//\)[^/]' \| \
  16826. X"$mf" : 'X\(//\)$' \| \
  16827. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16828. $as_echo X"$mf" |
  16829. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16830. s//\1/
  16831. q
  16832. }
  16833. /^X\(\/\/\)[^/].*/{
  16834. s//\1/
  16835. q
  16836. }
  16837. /^X\(\/\/\)$/{
  16838. s//\1/
  16839. q
  16840. }
  16841. /^X\(\/\).*/{
  16842. s//\1/
  16843. q
  16844. }
  16845. s/.*/./; q'`
  16846. else
  16847. continue
  16848. fi
  16849. # Extract the definition of DEPDIR, am__include, and am__quote
  16850. # from the Makefile without running `make'.
  16851. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16852. test -z "$DEPDIR" && continue
  16853. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16854. test -z "am__include" && continue
  16855. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16856. # When using ansi2knr, U may be empty or an underscore; expand it
  16857. U=`sed -n 's/^U = //p' < "$mf"`
  16858. # Find all dependency output files, they are included files with
  16859. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16860. # simplest approach to changing $(DEPDIR) to its actual value in the
  16861. # expansion.
  16862. for file in `sed -n "
  16863. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16864. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16865. # Make sure the directory exists.
  16866. test -f "$dirpart/$file" && continue
  16867. fdir=`$as_dirname -- "$file" ||
  16868. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16869. X"$file" : 'X\(//\)[^/]' \| \
  16870. X"$file" : 'X\(//\)$' \| \
  16871. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16872. $as_echo X"$file" |
  16873. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16874. s//\1/
  16875. q
  16876. }
  16877. /^X\(\/\/\)[^/].*/{
  16878. s//\1/
  16879. q
  16880. }
  16881. /^X\(\/\/\)$/{
  16882. s//\1/
  16883. q
  16884. }
  16885. /^X\(\/\).*/{
  16886. s//\1/
  16887. q
  16888. }
  16889. s/.*/./; q'`
  16890. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16891. # echo "creating $dirpart/$file"
  16892. echo '# dummy' > "$dirpart/$file"
  16893. done
  16894. done
  16895. }
  16896. ;;
  16897. esac
  16898. done # for ac_tag
  16899. as_fn_exit 0
  16900. _ACEOF
  16901. ac_clean_files=$ac_clean_files_save
  16902. test $ac_write_fail = 0 ||
  16903. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16904. # configure is writing to config.log, and then calls config.status.
  16905. # config.status does its own redirection, appending to config.log.
  16906. # Unfortunately, on DOS this fails, as config.log is still kept open
  16907. # by configure, so config.status won't be able to write to it; its
  16908. # output is simply discarded. So we exec the FD to /dev/null,
  16909. # effectively closing config.log, so it can be properly (re)opened and
  16910. # appended to by config.status. When coming back to configure, we
  16911. # need to make the FD available again.
  16912. if test "$no_create" != yes; then
  16913. ac_cs_success=:
  16914. ac_config_status_args=
  16915. test "$silent" = yes &&
  16916. ac_config_status_args="$ac_config_status_args --quiet"
  16917. exec 5>/dev/null
  16918. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16919. exec 5>>config.log
  16920. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16921. # would make configure fail if this is the last instruction.
  16922. $ac_cs_success || as_fn_exit 1
  16923. fi
  16924. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16926. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16927. fi